/* Bingo Branches — Elementor / standalone (section only) */

@font-face {
  font-family: "iranyekan";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("https://bingoiran.co/wp-content/uploads/2026/08/IRANYekanX-Light.woff") format("woff");
}
@font-face {
  font-family: "iranyekan";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://bingoiran.co/wp-content/uploads/2026/08/IRANYekanX-Regular.woff") format("woff");
}
@font-face {
  font-family: "iranyekan";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://bingoiran.co/wp-content/uploads/2026/08/IRANYekanX-Medium.woff") format("woff");
}
@font-face {
  font-family: "iranyekan";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://bingoiran.co/wp-content/uploads/2026/08/IRANYekanX-Bold.woff") format("woff");
}
@font-face {
  font-family: "iranyekan";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("https://bingoiran.co/wp-content/uploads/2026/08/IRANYekanX-ExtraBold.woff") format("woff");
}

.bingo-branches-embed {
  --bingo-dark: #012c1a;
  --bingo-teal: #017a5b;
  --bingo-teal-deep: #00684d;
  --bingo-title: #007a5b;
  --bingo-text: #242424;
  --font: "iranyekan", Tahoma, sans-serif;
  --side-w: clamp(300px, 25.7vw, 470px);
  /* No overlay header inside Elementor — only a small top inset */
  --header-h: 0px;
  font-family: var(--font);
  color: #fff;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
}

.bingo-branches-embed *,
.bingo-branches-embed *::before,
.bingo-branches-embed *::after {
  box-sizing: border-box;
}

.bingo-branches-embed ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bingo-branches-embed a {
  color: inherit;
  text-decoration: none;
}

.bingo-branches-embed .branches {
  position: relative;
  height: min(100vh, 57.7vw);
  min-height: 560px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--bingo-dark);
  color: #fff;
  margin: 0;
}

.bingo-branches-embed .branches__bg {
  position: absolute;
  inset: 0;
  background-color: var(--bingo-dark);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  transition: opacity 0.45s ease;
  z-index: 0;
}

.bingo-branches-embed .branches.is-switching .branches__bg {
  opacity: 0.25;
}

.bingo-branches-embed .branches__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--bingo-teal) 0,
    var(--bingo-teal) var(--side-w),
    transparent calc(var(--side-w) + 1px)
  );
}

.bingo-branches-embed .branches__layout {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  grid-template-rows: 100%;
  direction: ltr;
}

.bingo-branches-embed .branches__side {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: clamp(40px, 4.5vw, 72px)
    calc(var(--side-w) * 0.13) 30px calc(var(--side-w) * 0.24);
  background: var(--bingo-teal);
}

.bingo-branches-embed .branches__side-title {
  margin: 0;
  font-size: clamp(26px, 2.15vw, 33px);
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
  direction: rtl;
  white-space: nowrap;
  color: #fff;
}

.bingo-branches-embed .branches__side-sub {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
  direction: rtl;
  line-height: 1.6;
  white-space: nowrap;
}

.bingo-branches-embed .branches__cities {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 6px 0;
  margin: clamp(28px, 2.8vw, 44px) 0 24px calc(var(--side-w) * 0.28);
  direction: ltr;
  scrollbar-width: none;
}

.bingo-branches-embed .branches__cities::-webkit-scrollbar {
  display: none;
}

.bingo-branches-embed .branches__city::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 2px;
  height: 100%;
  background: #fff;
}

.bingo-branches-embed .branches__city:last-child::after {
  display: none;
}

.bingo-branches-embed .branches__city {
  position: relative;
  padding: 12px 4px 12px 38px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  text-align: left;
  unicode-bidi: plaintext;
  line-height: 1.45;
  transition: color 0.25s ease, font-size 0.25s ease, font-weight 0.25s ease;
  user-select: none;
}

.bingo-branches-embed .branches__city::before {
  content: "";
  position: absolute;
  left: 10.5px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  transition: width 0.25s ease, height 0.25s ease, left 0.25s ease;
  z-index: 1;
}

.bingo-branches-embed .branches__city:hover {
  color: #fff;
}

.bingo-branches-embed .branches__city.is-active {
  color: #fff;
  font-weight: 800;
  font-size: 23px;
}

.bingo-branches-embed .branches__city.is-active::before {
  width: 22px;
  height: 22px;
  left: 5px;
}

.bingo-branches-embed .branches__map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 auto;
  margin-top: auto;
  margin-left: calc(var(--side-w) * -0.11);
  padding: 13px 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.bingo-branches-embed .branches__map:hover {
  background: #fff;
  color: var(--bingo-teal-deep);
}

.bingo-branches-embed .branches__main {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(40px, 5vw, 88px) 4% 60px clamp(28px, 2.8vw, 48px);
  direction: rtl;
  min-width: 0;
}

.bingo-branches-embed .branches__info {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: min(25vw, 360px);
  text-align: right;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.bingo-branches-embed .branches.is-switching .branches__info {
  opacity: 0;
  transform: translateY(12px);
}

.bingo-branches-embed .branches__name {
  margin: 0 0 clamp(30px, 3vw, 48px);
  font-size: clamp(40px, 3.9vw, 60px);
  font-weight: 800;
  line-height: 1;
  color: var(--bingo-title);
  text-shadow: 0 0 26px rgba(0, 182, 123, 0.35);
}

.bingo-branches-embed .branches__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bingo-branches-embed .branches__branch-addr {
  margin: 0;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 2.05;
  color: #fff;
}

.bingo-branches-embed .branches__branch-addr .line {
  display: block;
}

.bingo-branches-embed .branches__branch-addr .postal {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 30px;
  margin-top: 16px;
}

.bingo-branches-embed .branches__branch-addr .postal .num {
  font-weight: 600;
  letter-spacing: 0.32em;
}

@media (max-width: 1100px) {
  .bingo-branches-embed {
    --side-w: clamp(280px, 30vw, 360px);
  }
  .bingo-branches-embed .branches {
    height: auto;
    min-height: 720px;
    max-height: none;
  }
  .bingo-branches-embed .branches__layout {
    grid-template-rows: auto;
  }
  .bingo-branches-embed .branches__cities {
    max-height: 44vh;
  }
  .bingo-branches-embed .branches__side-title {
    font-size: 25px;
  }
  .bingo-branches-embed .branches__city {
    font-size: 15px;
  }
  .bingo-branches-embed .branches__city.is-active {
    font-size: 20px;
  }
  .bingo-branches-embed .branches__info {
    max-width: min(40vw, 360px);
  }
}

@media (max-width: 900px) {
  .bingo-branches-embed .branches {
    height: 100svh;
    min-height: 560px;
    max-height: none;
  }
  .bingo-branches-embed .branches__shade {
    background: transparent;
  }
  .bingo-branches-embed .branches__bg {
    background-position: center top;
    bottom: 84px;
  }
  .bingo-branches-embed .branches__layout {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .bingo-branches-embed .branches__side {
    display: contents;
  }
  .bingo-branches-embed .branches__side-title,
  .bingo-branches-embed .branches__side-sub {
    display: none;
  }
  .bingo-branches-embed .branches__main {
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    align-items: flex-end;
    justify-content: center;
    padding: 20px 18px 10px;
  }
  .bingo-branches-embed .branches__info {
    max-width: min(92vw, 340px);
    width: auto;
    text-align: center;
  }
  .bingo-branches-embed .branches__name {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .bingo-branches-embed .branches__branch-addr {
    font-size: 12px;
    line-height: 1.7;
  }
  .bingo-branches-embed .branches__branch-addr .postal {
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
  }
  .bingo-branches-embed .branches__map {
    order: 2;
    align-self: center;
    margin: 0 0 12px;
    padding: 8px 22px;
    font-size: 12px;
  }
  .bingo-branches-embed .branches__cities {
    order: 3;
    position: sticky;
    bottom: 0;
    z-index: 5;
    flex: none;
    height: 84px;
    max-height: none;
    margin: 0;
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--bingo-teal);
    direction: rtl;
  }
  .bingo-branches-embed .branches__city {
    flex: 0 0 auto;
    padding: 30px 22px 0;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
  }
  .bingo-branches-embed .branches__city.is-active {
    font-size: 16px;
  }
  .bingo-branches-embed .branches__city::before {
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
  }
  .bingo-branches-embed .branches__city.is-active::before {
    left: 50%;
    top: 2px;
    width: 18px;
    height: 18px;
  }
  .bingo-branches-embed .branches__city::after {
    top: 10px;
    left: auto;
    right: 50%;
    width: 100%;
    height: 2px;
  }
}
