/*
 * StudentsBooking UI v2 — Arama sonuçları (PRD §6.7–6.9, §7.2)
 */
:root { --sb-toolbar-h: 60px; }

.sb-search-page { position: relative; }

/* ===================== Toolbar (§6.7) ===================== */
.sb-toolbar {
  position: sticky;
  top: var(--sb-header-h);
  z-index: 1020;
  background: #fff;
  box-shadow: 0 2px 4px #E8E8E8;
}
.sb-toolbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--sb-toolbar-h);
  padding: 10px 20px;
  box-sizing: border-box;
}
.sb-toolbar__location {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 480px;
  min-width: 0;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--sb-border);
  background: #fff;
  color: var(--sb-text-muted);
  transition: box-shadow var(--sb-ease);
}
.sb-toolbar__location:focus-within { box-shadow: var(--sb-focus); }
.sb-toolbar__location .sb-icon { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--sb-text-heading); pointer-events: none; }
.sb-toolbar__location input {
  width: 100%; height: 100%;
  padding: 0 12px 0 45px;
  border: 0; background: transparent;
  color: var(--sb-text-heading);
  font-family: var(--sb-font); font-size: 14px;
  outline: none;
  text-overflow: ellipsis;
}
body.sb-v2 .sb-toolbar__location input:focus-visible { outline: none; }
.sb-toolbar__location input::placeholder { color: var(--sb-text-muted); }
.sb-toolbar__actions { display: flex; align-items: center; gap: 12px; flex: none; }
/* Referans araç çubuğu düğmeleri: beyaz, 1px #BCC6CA halka, r8, 40px */
.sb-tbtn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px;
  border: 0; border-radius: 8px;
  background: #fff; color: var(--sb-text-heading);
  box-shadow: 0 0 0 1px var(--sb-border);
  font-family: var(--sb-font); font-size: 14px; font-weight: 400;
  white-space: nowrap; cursor: pointer;
  transition: box-shadow var(--sb-ease);
}
.sb-tbtn:hover, .sb-tbtn[aria-expanded="true"] { box-shadow: 0 0 0 1px var(--sb-text-heading); }
.sb-tbtn .sb-icon { width: 22px; height: 22px; flex: none; }
.sb-tbtn .sb-icon--sm { width: 20px; height: 20px; }
.sb-toolbar__dates { min-width: 118px; }
.sb-toolbar__dates span { flex: 1 1 auto; text-align: left; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.sb-toolbar__chev { width: 18px !important; height: 18px !important; color: var(--sb-text-heading); }

.sb-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--sb-primary); color: #fff;
  font-size: 12px; font-weight: 600;
}
.sb-count-badge[hidden] { display: none; }

/* Header'daki kompakt arama bu sayfada gereksiz */
body.sb-page-search .sb-header__search { visibility: hidden !important; }

/* ===================== Tarih popover'ı ===================== */
.sb-popover { position: relative; }
.sb-popover__panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  width: 360px; max-width: calc(100vw - 32px);
  padding: 16px;
  background: #fff;
  border-radius: var(--sb-radius-lg);
  box-shadow: var(--sb-shadow-pop), var(--sb-ring);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--sb-ease), transform var(--sb-ease), visibility var(--sb-ease);
}
.sb-popover.is-open .sb-popover__panel { opacity: 1; visibility: visible; transform: none; }
body.sb-v2 .datepicker.dropdown-menu { z-index: 1100 !important; }

/* ===================== Form alanları ===================== */
.sb-field { display: block; margin: 0; font-weight: 400; }
.sb-field__label {
  display: block; margin: 0 0 6px;
  color: var(--sb-text-muted); font-size: 12px; font-weight: 500;
}
.sb-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.sb-v2 .sb-field .form-control { height: 44px; font-size: 15px; }
body.sb-v2 .sb-field input[readonly].form-control { background: #fff; cursor: pointer; }

/* ===================== Liste + harita yerleşimi ===================== */
.sb-search-layout { position: relative; }
.sb-search-layout__list {
  position: relative;
  box-sizing: border-box;
  max-width: calc(var(--sb-container) + 2 * var(--sb-gutter));
  margin: 0 auto;
  padding: 18px 20px 96px;
  min-height: 60vh;
}
.sb-search-layout__map { display: none; }
.sb-search-layout:not(.is-map-open) #map_deva { display: none; }

.sb-search-layout.is-map-open .sb-search-layout__map {
  display: block;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: calc(var(--sb-header-h) + var(--sb-toolbar-h));
  z-index: 1010;
  background: var(--sb-surface);
}
.sb-search-layout.is-map-open .sb-search-layout__list { display: none; }
#map_deva { width: 100%; height: 100% !important; }

@media (min-width: 1024px) {
  .sb-search-layout.is-map-open {
    display: grid;
    grid-template-columns: 55% minmax(0, 1fr);
  }
  .sb-search-layout.is-map-open .sb-search-layout__list {
    display: block;
    max-width: none;
    margin: 0;
    padding-bottom: 48px;
  }
  /* Masaüstünde harita her zaman açık (referans düzeni) — liste/harita düğmesi gereksiz */
  .sb-btn--floating { display: none; }
  .sb-search-layout.is-map-open .sb-grid--search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-search-layout.is-map-open .sb-search-layout__map {
    position: sticky;
    top: calc(var(--sb-header-h) + var(--sb-toolbar-h));
    height: calc(100vh - var(--sb-header-h) - var(--sb-toolbar-h));
    z-index: 1;
  }
  body.sb-map-open .sb-footer { display: none; }
}

/* Harita üzerindeki kontroller */
.sb-map-move, .sb-map-research {
  position: absolute; top: 16px; left: 50%; z-index: 500;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px;
  background: #fff;
  border-radius: var(--sb-radius-pill);
  box-shadow: var(--sb-shadow-float);
  color: var(--sb-text-heading); font-size: 14px; white-space: nowrap;
}
.sb-map-move label { margin: 0; font-weight: 400; cursor: pointer; }
.sb-map-move input { width: 16px; height: 16px; margin: 0; accent-color: var(--sb-primary); cursor: pointer; }
.sb-map-research { cursor: pointer; font-weight: 600; }
.sb-map-research:hover { color: var(--sb-primary); }

/* Leaflet fiyat pinleri (search_list_scripts.php → .customBox .price-marker__from) */
.leaflet-marker-icon.customBox { background: none; border: 0; width: auto !important; height: auto !important; }
.customBox .price-marker__from {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--sb-radius-pill);
  background: #fff;
  color: var(--sb-text-heading);
  box-shadow: var(--sb-shadow-float);
  font-family: var(--sb-font); font-size: 13px; font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--sb-ease), color var(--sb-ease), transform var(--sb-ease);
}
.customBox .price-marker__from:hover { background: var(--sb-primary); color: #fff; transform: scale(1.05); }
.leaflet-popup-content-wrapper { border-radius: var(--sb-radius-lg); box-shadow: var(--sb-shadow-pop); font-family: var(--sb-font); }
.leaflet-popup-content { width: 220px !important; margin: 10px; }
.leaflet-popup-content .search_row img { display: block; width: 100%; height: 140px; object-fit: cover; border-radius: var(--sb-radius-md); }
.leaflet-popup-content .carousel-indicators, .leaflet-popup-content .carousel-control { display: none; }
.leaflet-popup-content .media-heading { margin: 10px 0 4px; color: var(--sb-text-heading); font-size: 15px; font-weight: 600; line-height: 1.3; }
.leaflet-popup-content .instant-booking { display: none; }

/* ===================== Breadcrumb + başlık + sıralama ===================== */
.sb-crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 16px;
  font-size: 14px; line-height: 22px;
}
.sb-crumbs a { color: var(--sb-primary); }
body.sb-v2 .sb-crumbs a { color: var(--sb-primary); }
.sb-crumbs a:hover { text-decoration: underline; }
.sb-crumbs .sb-icon { width: 12px; height: 12px; color: var(--sb-text-muted); }
.sb-crumbs span { color: var(--sb-text-muted); }
.sb-results-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  margin: 0 0 20px;
}
.sb-results-head__title {
  margin: 0;
  color: var(--sb-text-heading);
  font-size: 16px; font-weight: 500; line-height: 18px;
}
.sb-results-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.sb-results-head__count { color: #000; font-size: 13px; line-height: 13px; }
.sb-results-head__count strong { font-weight: 400; }
.sb-sort {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0;
  color: var(--sb-text-heading);
  font-weight: 400;
}
.sb-sort__label { font-size: 16px; line-height: 16px; }
.sb-sort select {
  height: 20px; padding: 0 26px 0 0;
  border: 0; border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23224251' stroke-width='1.6'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") no-repeat right 0 center;
  color: var(--sb-primary);
  font-family: var(--sb-font); font-size: 14px; font-weight: 600;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
body.sb-v2 .sb-sort select:focus-visible { outline: 2px solid var(--sb-primary); outline-offset: 2px; }

/* ===================== Promo banner (§6.8) ===================== */
.sb-promo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 0 0 16px;
  padding: 24px;
  border-radius: 4px;
  background: var(--sb-accent-pink);
  color: #fff;
}
.sb-promo-banner__text { max-width: 560px; margin: 0; font-size: 18px; font-weight: 700; line-height: 21.6px; }
/* Referans: beyaz zemin, pembe yazı/çerçeve, r4, 32px */
.sb-promo-banner .sb-btn {
  flex: none; gap: 6px;
  height: 32px; padding: 0 10px;
  border: 1px solid var(--sb-accent-pink); border-radius: 4px;
  background: #fff; color: var(--sb-accent-pink);
  font-size: 16px; font-weight: 400;
}
.sb-promo-banner .sb-btn:hover, .sb-promo-banner .sb-btn:focus { background: #fff; color: var(--sb-accent-pink); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }

/* ===================== Grid / boş durum / yükleniyor ===================== */
.sb-grid--search { gap: 20px; }

/* Arama kartı (referans: 2 sütun, foto 240 r12, sağ üstte 40px beyaz kalp) */
.sb-card--search .sb-card__media { border-radius: 12px; }
.sb-card--search .sb-card__body { padding: 17px 4px 0; }
.sb-card--search .sb-card__meta { margin: 0 0 1px; }
.sb-card--search .sb-card__location { margin-top: 2px; }
.sb-card--search .sb-badges { margin-top: 8px; }
.sb-card--search .sb-card__price { margin-top: 6px; color: var(--sb-text-muted); font-size: 14px; }
.sb-card--search .sb-card__price-now { color: var(--sb-text-heading); line-height: 29px; }
.sb-card--search .sb-card__fav {
  top: 10px; right: 8px;
  width: 40px; height: 40px;
  border-radius: 32px;
  box-shadow: none;
}
.sb-card--search .sb-card__fav:hover { transform: none; }
.sb-card--search .sb-card__media-badge { top: 16px; left: 0; }
.sb-card--search .sb-card__media-badge .sb-badge {
  height: 28px; padding: 0 8px;
  border-radius: 0 4px 4px 0;
  background: rgba(247, 247, 247, .8);
  color: var(--sb-text-heading);
  font-size: 14px; font-weight: 500;
}
.sb-card--search .sb-carousel__dots { bottom: 12px; gap: 6px; }
.sb-card--search .sb-carousel__nav {
  width: 30px; height: 30px; margin-top: -15px;
  background: #F7F7F7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.sb-empty--search { padding: 64px 16px; }
.sb-empty__icon { width: 48px; height: 48px; color: var(--sb-border); }
.sb-empty__title { margin: 16px 0 8px; font-size: 20px; font-weight: 600; }
.sb-empty--search p { max-width: 460px; margin: 0 auto 20px; font-size: 14px; line-height: 1.5; }

.sb-loading {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(255, 255, 255, .7);
}
.sb-spinner {
  position: sticky; top: 45vh;
  display: block; width: 36px; height: 36px; margin: 120px auto 0;
  border: 3px solid var(--sb-divider); border-top-color: var(--sb-primary);
  border-radius: 50%;
  animation: sb-spin .8s linear infinite;
}
@keyframes sb-spin { to { transform: rotate(360deg); } }

/* ===================== Sayfalama (referans: 28×26, r4, aktif #E4EAED) ===================== */
.sb-pagination { display: flex; justify-content: center; margin-top: 40px; }
.sb-pagination .span6, .sb-pagination .dataTables_paginate { float: none; width: auto; margin: 0; }
body.sb-v2 .sb-pagination ul.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; }
body.sb-v2 .sb-pagination ul.pagination > li > a,
body.sb-v2 .sb-pagination ul.pagination > li > span {
  float: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 26px; padding: 0 6px; margin: 0;
  border: 0; border-radius: 4px !important;
  box-shadow: none;
  background: transparent; color: var(--sb-text-muted);
  font-size: 16px; line-height: 1;
}
body.sb-v2 .sb-pagination ul.pagination > li > a:hover { background: var(--sb-surface); color: var(--sb-text-heading); }
body.sb-v2 .sb-pagination ul.pagination > .active > a,
body.sb-v2 .sb-pagination ul.pagination > .active > span { background: #E4EAED; color: var(--sb-text-muted); box-shadow: none; }
body.sb-v2 .sb-pagination ul.pagination > .disabled > a { opacity: .4; }

/* ===================== Floating harita butonu ===================== */
.sb-btn--floating {
  position: fixed; left: 50%; bottom: 24px; z-index: 1025;
  transform: translateX(-50%);
  height: 44px; padding: 0 20px;
  border-radius: var(--sb-radius-pill);
  background: #fff; color: var(--sb-text-heading);
  box-shadow: var(--sb-shadow-float);
  font-weight: 600;
}
.sb-btn--floating:hover, .sb-btn--floating:focus { background: #fff; color: var(--sb-text-heading); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
body.sb-map-open .sb-btn--floating { background: var(--sb-text-heading); color: #fff; }

/* ===================== Filtre modalı (§6.9) ===================== */
.sb-modal { position: fixed; inset: 0; z-index: 1050; visibility: hidden; }
.sb-modal.is-open { visibility: visible; }
.sb-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(34, 66, 81, .45);
  opacity: 0; transition: opacity var(--sb-ease-out);
}
.sb-modal.is-open .sb-modal__backdrop { opacity: 1; }
.sb-modal__dialog {
  position: absolute; left: 50%; top: 5vh;
  display: flex; flex-direction: column;
  width: min(720px, calc(100% - 32px));
  height: 90vh;
  overflow: hidden;
  background: var(--sb-surface);
  border-radius: var(--sb-radius-lg);
  box-shadow: var(--sb-shadow-pop);
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: transform var(--sb-ease-out), opacity var(--sb-ease-out);
  font-family: var(--sb-font);
}
.sb-modal.is-open .sb-modal__dialog { transform: translate(-50%, 0); opacity: 1; }
.sb-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  flex: none; height: 60px; padding: 0 12px 0 24px;
  background: #fff; border-bottom: 1px solid var(--sb-divider);
}
.sb-modal__title { margin: 0; font-size: 18px; font-weight: 600; }
.sb-modal__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; background: none;
  color: var(--sb-text-heading); cursor: pointer;
}
.sb-modal__body { position: relative; flex: 1 1 auto; overflow-y: auto; padding: 16px 24px 24px; overscroll-behavior: contain; }
.sb-modal__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex: none; padding: 12px 24px;
  background: #fff; border-top: 1px solid var(--sb-divider);
}
.sb-link-btn {
  padding: 0; border: 0; background: none;
  color: var(--sb-text-heading); font-family: var(--sb-font); font-size: 14px;
  text-decoration: underline; cursor: pointer;
}
.sb-link-btn:hover { color: var(--sb-primary); }

.sb-filter-heading { margin: 20px 0 8px; color: var(--sb-text-heading); font-size: 14px; font-weight: 600; }
.sb-filter-card {
  padding: 16px;
  background: #fff;
  border-radius: var(--sb-radius-md);
}
.sb-filter-card + .sb-filter-card { margin-top: 12px; }
.sb-filter-card .sb-check--block { margin-top: 16px; }
.sb-filter-card .sb-check--block:first-child { margin-top: 0; }
.sb-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }

/* Checkbox & switch */
.sb-check {
  position: relative;
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0; font-weight: 400; cursor: pointer;
  color: var(--sb-text-heading); font-size: 14px; line-height: 20px;
}
body.sb-v2 .sb-check input.form-control {
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; margin: 0; padding: 0;
  opacity: 0; box-shadow: none;
}
.sb-check__box {
  flex: none; position: relative;
  width: 20px; height: 20px;
  border: 1.5px solid var(--sb-text-heading);
  border-radius: var(--sb-radius-sm);
  background: #fff;
  transition: background-color var(--sb-ease), border-color var(--sb-ease);
}
.sb-check input:checked + .sb-check__box { background: var(--sb-primary); border-color: var(--sb-primary); }
.sb-check input:checked + .sb-check__box::after {
  content: ""; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sb-check input:focus-visible + .sb-check__box { box-shadow: 0 0 0 3px rgba(0, 173, 239, .35); }
.sb-check__text small { display: block; margin-top: 2px; color: var(--sb-text-muted); font-size: 12px; line-height: 16px; }

.sb-check--switch { align-items: center; justify-content: space-between; flex-direction: row-reverse; }
.sb-check--switch .sb-check__box { width: 40px; height: 24px; border: 0; border-radius: 12px; background: var(--sb-border); }
.sb-check--switch .sb-check__box::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform var(--sb-ease);
}
.sb-check--switch input:checked + .sb-check__box { background: var(--sb-primary); }
.sb-check--switch input:checked + .sb-check__box::after { display: none; }
.sb-check--switch input:checked + .sb-check__box::before { transform: translateX(16px); }
body.sb-v2 .sb-check--switch input.form-control { left: auto; right: 0; top: 50%; margin-top: -12px; width: 40px; height: 24px; }

/* Stepper */
.sb-stepper-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px;
}
.sb-stepper-row + .sb-stepper-row { border-top: 1px solid var(--sb-divider); }
.sb-stepper-row__label { color: var(--sb-text-heading); font-size: 14px; }
.sb-stepper { display: flex; align-items: center; gap: 12px; }
.sb-stepper__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%;
  background: #fff; color: var(--sb-text-heading);
  box-shadow: var(--sb-ring);
  cursor: pointer;
  transition: box-shadow var(--sb-ease), color var(--sb-ease);
}
.sb-stepper__btn:hover { box-shadow: 0 0 0 1px var(--sb-primary); color: var(--sb-primary); }
.sb-stepper__value { min-width: 20px; text-align: center; color: var(--sb-text-heading); font-size: 16px; font-weight: 500; }

/* Fiyat slider'ı (bootstrap-slider) */
.sb-price__slider { padding: 8px 10px 4px; }
body.sb-v2 .sb-price .slider.slider-horizontal { width: 100% !important; height: 24px; }
body.sb-v2 .sb-price .slider-horizontal .slider-track {
  top: 50%; height: 2px; margin-top: -1px;
  background: var(--sb-divider); background-image: none;
  box-shadow: none; border-radius: 1px;
}
body.sb-v2 .sb-price .slider-selection { background: var(--sb-primary); background-image: none; box-shadow: none; }
body.sb-v2 .sb-price .slider-track-high, body.sb-v2 .sb-price .slider-track-low { background: transparent; }
body.sb-v2 .sb-price .slider-handle {
  top: 50%; width: 20px; height: 20px; margin-top: -10px; margin-left: -10px;
  background: #fff; background-image: none;
  border: 2px solid var(--sb-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
  opacity: 1;
}
body.sb-v2 .sb-price .slider .tooltip { display: none; }
.sb-price__values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.sb-price__box {
  padding: 10px 12px;
  border-radius: var(--sb-radius-md);
  box-shadow: var(--sb-ring);
}
.sb-price__box .sb-field__label { margin-bottom: 2px; }
.sb-price__box b { color: var(--sb-text-heading); font-size: 16px; font-weight: 600; }

/* ===================== Responsive ===================== */
@media (max-width: 1199px) {
  .sb-tbtn--wide { display: none; }
}
@media (max-width: 767px) {
  :root { --sb-toolbar-h: 112px; }
  .sb-toolbar__location { flex: 1 1 100%; }
  .sb-toolbar__dates span { max-width: none; }
  .sb-crumbs { display: none; }
  .sb-results-head { flex-direction: column; gap: 12px; }
  .sb-results-head__side { align-items: flex-start; }
  .sb-toolbar__inner { flex-wrap: wrap; padding: 8px 16px 12px; gap: 8px; }
  .sb-toolbar__location { flex-basis: 100%; }
  .sb-toolbar__actions { flex: 1 1 100%; }
  .sb-toolbar__actions .sb-popover { flex: 1 1 auto; min-width: 0; }
  .sb-toolbar__dates { width: 100%; min-width: 0; }
  .sb-search-layout__list { padding: 12px var(--sb-gutter-mobile) 96px; }
  .sb-promo-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .sb-promo-banner__text { font-size: 16px; }
  .sb-modal__dialog { left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; transform: translateY(16px); }
  .sb-modal.is-open .sb-modal__dialog { transform: none; }
  .sb-modal__body { padding: 12px 16px 24px; }
  .sb-modal__foot { padding: 12px 16px; }
  .sb-check-grid { grid-template-columns: 1fr; }
  .sb-popover__panel { position: fixed; left: 16px; right: 16px; top: auto; width: auto; max-width: none; margin-top: 8px; }
}
/* Konum araması yeni sayfaya geçerken: kutunun sağında küçük dönen gösterge */
.sb-toolbar__location.is-loading::after { content: ""; position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid #CFE9F5; border-top-color: var(--sb-primary); border-radius: 50%; animation: sb-spin .7s linear infinite; }
@keyframes sb-spin { to { transform: rotate(360deg); } }

/* ===================== Araç çubuğu: bütçe / kişi panelleri + etkin durum ===================== */
.sb-tbtn.is-active { background: #EAF7FD; color: #0B5F84; box-shadow: 0 0 0 1px #7CCDEE; font-weight: 600; }
.sb-tbtn.is-active .sb-icon { color: #0B8AC0; }
.sb-popover--budget .sb-popover__panel, .sb-popover--people .sb-popover__panel { left: 0; right: auto; }
.sb-tpanel { width: 340px; padding: 18px; }
.sb-tpanel__title { margin: 0; color: var(--sb-text-heading); font-size: 16px; font-weight: 700; }
.sb-tpanel__hint { margin: 2px 0 14px; color: var(--sb-text-muted); font-size: 13px; }
.sb-tpanel__range { display: flex; align-items: flex-end; gap: 8px; }
.sb-tpanel__dash { padding-bottom: 12px; color: var(--sb-text-muted); }
.sb-tpanel__money { position: relative; flex: 1; min-width: 0; margin: 0; font-weight: 400; }
.sb-tpanel__money span { display: block; margin-bottom: 4px; color: var(--sb-text-muted); font-size: 12px; font-weight: 600; }
.sb-tpanel__money b { position: absolute; left: 12px; bottom: 11px; color: var(--sb-text-muted); font-size: 14px; font-weight: 600; pointer-events: none; }
.sb-tpanel__money input { width: 100%; height: 42px; padding: 0 10px 0 28px; border: 1px solid #CFD8DC; border-radius: 10px; background: #fff; color: var(--sb-text-heading); font: 600 15px var(--sb-font); outline: 0; -moz-appearance: textfield; transition: border-color var(--sb-ease), box-shadow var(--sb-ease); }
.sb-tpanel__money input::-webkit-outer-spin-button, .sb-tpanel__money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sb-tpanel__money input:focus { border-color: var(--sb-primary); box-shadow: 0 0 0 3px rgba(0, 173, 239, .15); }
.sb-tpanel__money input::placeholder { color: #A9B6BC; font-weight: 400; }
.sb-tpanel__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.sb-tpanel__chips button { height: 30px; padding: 0 12px; border: 1px solid #DDE3E6; border-radius: 15px; background: #fff; color: var(--sb-text-heading); font: 500 13px var(--sb-font); cursor: pointer; transition: border-color var(--sb-ease), background var(--sb-ease); }
.sb-tpanel__chips button:hover { border-color: var(--sb-primary); background: #F2FBFE; }
.sb-tpanel__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--sb-divider); }
.sb-tpanel__foot .sb-btn { min-width: 96px; }
.sb-tpanel__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sb-tpanel__row .sb-tpanel__hint { margin-bottom: 0; }
.sb-tpanel__stepper { display: flex; flex: none; align-items: center; gap: 12px; }
.sb-tpanel__stepper button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #CFD8DC; border-radius: 50%; background: #fff; color: var(--sb-text-heading); cursor: pointer; transition: border-color var(--sb-ease); }
.sb-tpanel__stepper button:hover:not(:disabled) { border-color: var(--sb-text-heading); }
.sb-tpanel__stepper button:disabled { opacity: .35; cursor: default; }
.sb-tpanel__stepper output { min-width: 20px; color: var(--sb-text-heading); font-size: 16px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
