/* Sol sabit — elden teslim şube kartları */
.bp-rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 980;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.bp-tab {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 148px;
  padding: 10px 10px 10px 8px;
  border: 0;
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(109, 61, 245, 0.1);
  border-left: 0;
  box-shadow: 4px 8px 24px rgba(74, 40, 160, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #3a3450;
  cursor: pointer;
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.bp-tab:hover {
  transform: translateX(2px);
  background: #fff;
  box-shadow: 6px 12px 28px rgba(74, 40, 160, 0.12);
}
.bp-tab__ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(109, 61, 245, 0.1);
  color: #6339f9;
  font-size: 13px;
  flex-shrink: 0;
}
.bp-tab__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.bp-tab__text strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1333;
}
.bp-tab__text span {
  font-size: 10px;
  font-weight: 600;
  color: #8a849c;
  line-height: 1.2;
}

/* Geniş ortalanmış şube popup — kaydırmasız */
.bp-popup {
  --bp-purple: #7444FD;
  --bp-purple-2: #8e55ff;
  --bp-ink: #17141f;
  --bp-muted: #756f84;
  --bp-line: #e9e4f4;
  --bp-soft: #f7f4ff;
  --bp-photo: none;
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  pointer-events: none;
}
.bp-popup.is-open {
  display: flex;
  pointer-events: auto;
}
.bp-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 28, 0.52);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.bp-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 35px 100px rgba(34, 20, 69, 0.3);
  border: 1px solid rgba(111, 66, 255, 0.12);
}
.bp-popup__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  color: #302a3e;
  cursor: pointer;
  z-index: 20;
  font-size: 22px;
  line-height: 1;
}
.bp-popup__close:hover {
  color: var(--bp-purple);
}

.bp-popup__hero {
  position: relative;
  flex: 0 0 auto;
  min-height: clamp(210px, 26vh, 260px);
  overflow: hidden;
  isolation: isolate;
}
.bp-popup__hero::before {
  content: "";
  position: absolute;
  inset: -10px;
  background-image: var(--bp-photo);
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(0.96) brightness(0.78);
  transform: scale(1.03);
  z-index: -3;
}
.bp-popup__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 11, 31, 0.94) 0%, rgba(26, 15, 48, 0.82) 45%, rgba(28, 16, 49, 0.45) 100%),
    linear-gradient(180deg, transparent 40%, rgba(13, 8, 23, 0.35));
  z-index: -2;
}
.bp-popup__hero-main {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 22px 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  color: #fff;
  box-sizing: border-box;
}
.bp-popup__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}
.bp-popup__pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bda4ff;
  box-shadow: 0 0 0 4px rgba(189, 164, 255, 0.12);
}
.bp-popup__hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.bp-popup__hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.bp-popup__title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1;
  letter-spacing: -1.2px;
  margin: 0 0 8px;
  color: #fff;
  font-weight: 800;
}
.bp-popup__desc {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bp-popup__badge {
  flex: 0 0 auto;
  min-width: 280px;
  max-width: 340px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.91);
  color: var(--bp-ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}
.bp-popup__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(26, 19, 51, 0.18);
  background: #ebe7f5;
}
.bp-popup__badge-text {
  min-width: 0;
}
.bp-popup__badge small {
  display: block;
  color: var(--bp-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 800;
  margin-bottom: 3px;
}
.bp-popup__badge strong {
  font-size: 16px;
  display: block;
  line-height: 1.2;
}
.bp-popup__badge span {
  display: block;
  font-size: 13px;
  color: #5e586d;
  margin-top: 4px;
}
.bp-popup__hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bp-popup__btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
}
.bp-popup__btn svg {
  width: 17px;
  height: 17px;
}
.bp-popup__btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--bp-purple), var(--bp-purple-2));
  box-shadow: 0 8px 22px rgba(89, 53, 193, 0.34);
}
.bp-popup__btn--primary:hover {
  color: #fff !important;
  filter: brightness(1.03);
}
.bp-popup__btn--ghost {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bp-popup__btn--ghost:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16);
}
.bp-popup__btn--wa {
  color: #fff !important;
  background: #25d366;
}
.bp-popup__btn--wa:hover {
  color: #fff !important;
  filter: brightness(1.04);
}

.bp-popup__content {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.4fr) minmax(0, 0.6fr);
  gap: 16px;
  padding: 16px 20px 20px;
  overflow: hidden;
}
.bp-popup__info,
.bp-popup__map-card {
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(42, 26, 84, 0.05);
  min-height: 0;
}
.bp-popup__info {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bp-popup__kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bp-purple);
  margin-bottom: 4px;
}
.bp-popup__info h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  letter-spacing: -0.4px;
  color: var(--bp-ink);
  font-weight: 800;
}
.bp-popup__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.bp-popup__detail {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bp-soft);
  border: 1px solid rgba(109, 61, 245, 0.06);
}
.bp-popup__detail--wide {
  grid-column: 1 / -1;
}
.bp-popup__detail-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--bp-purple);
  box-shadow: 0 4px 10px rgba(74, 40, 160, 0.06);
}
.bp-popup__detail-ico svg {
  width: 17px;
  height: 17px;
}
.bp-popup__detail small {
  display: block;
  color: #8b8497;
  font-size: 10px;
  margin-bottom: 2px;
  font-weight: 700;
  letter-spacing: 0.35px;
}
.bp-popup__detail strong {
  font-size: 13.5px;
  color: var(--bp-ink);
  font-weight: 700;
  line-height: 1.35;
}

.bp-popup__map-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bp-popup__map-head {
  flex: 0 0 auto;
  padding: 14px 18px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--bp-line);
}
.bp-popup__map-head strong {
  font-size: 15px;
  color: var(--bp-ink);
}
.bp-popup__map-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--bp-purple) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.bp-popup__map-link:hover {
  color: var(--bp-purple-2) !important;
}
.bp-popup__map-wrap {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}
.bp-popup__map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #f1eff7;
}

/* Orta ekran — tek sütun ama hâlâ kaydırmasız */
@media (max-width: 1100px) {
  .bp-popup__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(220px, 1fr);
  }
  .bp-popup__hero {
    min-height: clamp(200px, 24vh, 240px);
  }
}

@media (max-width: 991px) {
  .bp-rail {
    top: auto;
    bottom: 88px;
    transform: none;
    gap: 6px;
  }
  .bp-tab {
    max-width: 118px;
    padding: 8px 8px 8px 6px;
    border-radius: 0 12px 12px 0;
  }
  .bp-tab__ico {
    width: 26px;
    height: 26px;
    font-size: 11px;
    border-radius: 8px;
  }
  .bp-tab__text strong { font-size: 11px; }
  .bp-tab__text span { font-size: 9px; }
}

@media (max-width: 760px) {
  .bp-popup {
    padding: 0;
    align-items: flex-end;
  }
  .bp-popup__dialog {
    width: 100%;
    max-height: 96vh;
    border-radius: 24px 24px 0 0;
  }
  .bp-popup__hero {
    min-height: auto;
  }
  .bp-popup__hero-main {
    padding: 18px 16px 16px;
    padding-top: 52px;
  }
  .bp-popup__hero-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .bp-popup__badge {
    min-width: 0;
    max-width: none;
  }
  .bp-popup__avatar {
    width: 68px;
    height: 68px;
  }
  .bp-popup__title {
    font-size: 1.85rem;
  }
  .bp-popup__desc {
    -webkit-line-clamp: 3;
    font-size: 13px;
  }
  .bp-popup__hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
  }
  .bp-popup__hero-actions .bp-popup__btn {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    flex: 0 0 46px;
  }
  .bp-popup__hero-actions .bp-popup__btn-label {
    display: none;
  }
  .bp-popup__hero-actions .bp-popup__btn svg {
    width: 20px;
    height: 20px;
  }
  .bp-popup__content {
    padding: 12px 14px 16px;
    gap: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 1fr);
  }
  .bp-popup__info {
    display: none !important;
  }
  .bp-popup__map-card {
    min-height: 260px;
  }
}

@media (max-width: 575px) {
  .bp-rail { bottom: 76px; }
  .bp-tab { max-width: 52px; padding: 8px 6px; }
  .bp-tab__text { display: none; }
  .bp-tab__ico { width: 28px; height: 28px; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .bp-popup__hero {
    min-height: 190px;
  }
  .bp-popup__hero-main {
    padding: 16px 22px 14px;
    gap: 10px;
  }
  .bp-popup__title {
    font-size: 2rem;
    margin-bottom: 6px;
  }
  .bp-popup__desc {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }
  .bp-popup__content {
    padding: 12px 18px 16px;
  }
  .bp-popup__info h2 {
    margin-bottom: 10px;
    font-size: 1.15rem;
  }
  .bp-popup__detail {
    padding: 8px 10px;
  }
}
