/* ============================================================
   OfficeSearch — style.css
   Design: Navy header (#0a1628), white cards, accent #2563eb
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

 @font-face{font-family:"brandon-grotesque";src:url("fonts/Brandon_reg.otf");font-weight:400 700;font-display:swap}
:root {
  --navy: #0a1628;
  --navy-mid: #152040;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --grey: #6b7280;
  --grey-light: #f3f4f6;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --radius: 10px;
  --header-h: 56px;
  --filters-h: 64px;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #1f2937;
  background: #f8fafc;
  overflow: hidden;
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: white;
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.logo svg { flex-shrink: 0; }
.header-tagline {
  color: var(--grey);
  font-size: 13px;
  display: none;
}
@media (min-width: 768px) { .header-tagline { display: block; } }

/* ---- FILTERS BAR ---- */
.filters-bar {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: var(--filters-h);
  background: white;
  border-bottom: 1px solid var(--border);
  z-index: 90;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters-bar::-webkit-scrollbar { display: none; }
.filters-inner {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 16px;
  height: 100%;
  min-width: max-content;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.filter-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.filter-group input,
.filter-group select {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  color: #1f2937;
  background: white;
  outline: none;
  transition: border-color .15s;
}
.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.filter-location input { width: 180px; }
.filter-price .range-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-price input { width: 80px; }
.filter-price span { color: var(--grey); font-size: 13px; }
.filter-desks input { width: 80px; }
.filter-date input { width: 140px; }
.filter-type select { width: 150px; }
.filter-operator select { width: 160px; }

/* ---- FILTER POPUP DROPDOWNS ---- */
.filter-popup-wrap { position: relative; }
.filter-popup-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-size: 13px;
  color: var(--dark);
  cursor: pointer;
  white-space: nowrap;
  min-width: 130px;
  justify-content: space-between;
  transition: border-color .15s;
}
.filter-popup-btn:hover,
.filter-popup-btn:focus { border-color: var(--blue); outline: none; }
.filter-popup-btn .chevron { color: var(--grey); flex-shrink: 0; }
.filter-popup {
  display: none;
  position: fixed;
  z-index: 300;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  padding: 14px;
  min-width: 220px;
}
.popup-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.popup-inputs input {
  flex: 1;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 8px;
  font-size: 13px;
  color: var(--dark);
  min-width: 0;
}
.popup-inputs input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  outline: none;
}
.popup-inputs span { color: var(--grey); font-size: 13px; flex-shrink: 0; }
.popup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.popup-btn-reset {
  font-size: 11px;
  color: var(--grey);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.popup-btn-reset:hover { color: var(--dark); }
.popup-btn-group { display: flex; gap: 6px; }
.popup-btn-cancel,
.popup-btn-apply {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
}
.popup-btn-cancel { background: white; color: var(--dark); }
.popup-btn-cancel:hover { background: var(--light); }
.popup-btn-apply { background: var(--blue); color: white; border-color: var(--blue); }
.popup-btn-apply:hover { background: #1d4ed8; }

.btn-reset {
  height: 34px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--grey);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  margin-bottom: 0;
  align-self: flex-end;
}
.btn-reset:hover { background: var(--grey-light); color: #374151; }

/* ---- MAIN LAYOUT ---- */
.main-layout {
  position: fixed;
  top: calc(var(--header-h) + var(--filters-h));
  left: 0;
  width: 420px;
  bottom: 0;
}

/* ---- LEFT PANEL ---- */
.left-panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
  border-right: 1px solid var(--border);
}

#listView {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.results-summary {
  padding: 12px 16px 8px;
  font-size: 13px;
  color: var(--grey);
  font-weight: 500;
  flex-shrink: 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

/* ---- FEATURED SECTION ---- */
#featuredSection {
  flex-shrink: 0;
  background: #f8fafc;
  overflow-y: visible;
}
.featured-heading {
  padding: 10px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: #f8fafc;
}
.featured-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 10px;
}
.featured-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s, transform .1s;
}
.featured-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.featured-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(37,99,235,.25);
}
.featured-card-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--grey-light);
}
.featured-card-photo-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 36px;
}
.featured-card-body {
  padding: 12px;
}
.featured-card-name {
  font-weight: 700;
  font-size: 15px;
  color: #111827;
  margin-bottom: 3px;
  line-height: 1.3;
}
.featured-card-address {
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 8px;
}
.featured-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.featured-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.featured-card-price .unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--grey);
}
.featured-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  flex-shrink: 0;
}
.featured-divider span {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.featured-divider::before,
.featured-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.cards-grid {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cards-grid::-webkit-scrollbar { width: 4px; }
.cards-grid::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

/* ---- BUILDING CARD ---- */
.building-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s, transform .1s;
  display: flex;
  flex-direction: column;
}
.building-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.building-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(37,99,235,.25);
}
.card-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--grey-light);
}
.card-photo-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 28px;
}
.card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.card-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: #111827;
  flex: 1;
}
.card-operator-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--grey-light);
}
.card-address {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.4;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.card-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.card-price .unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--grey);
}
.card-suites {
  font-size: 12px;
  color: var(--grey);
}
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.avail-badge.available { background: #dcfce7; color: var(--green); }
.avail-badge.soon { background: #fef3c7; color: var(--amber); }
.avail-badge.none { background: var(--grey-light); color: var(--grey); }

/* ---- LOAD MORE ---- */
.load-more-wrap {
  padding: 12px 16px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}
.btn-load-more {
  width: 100%;
  padding: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  transition: all .15s;
}
.btn-load-more:hover { background: var(--blue-pale); border-color: var(--blue); color: var(--blue); }

/* ---- BUILDING MODAL ---- */
.building-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 0;
}
.building-modal.open {
  display: flex;
}
.modal-inner {
  position: relative;
  width: 58%;
  max-width: 900px;
  min-height: 60vh;
  height: 88vh;
  background: white;
  border-radius: 12px;
  overflow-y: auto;
  margin: 4vh auto;
  flex-shrink: 0;
}
.modal-inner::-webkit-scrollbar { width: 6px; }
.modal-inner::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  z-index: 20;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: background .15s;
  box-shadow: var(--shadow);
}
.modal-close:hover { background: #fee2e2; border-color: #fca5a5; color: var(--red); }
#modalContent { clear: both; }

/* ---- AVAILABILITY SUMMARY (detail view) ---- */
.avail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: var(--blue-pale);
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
  margin-bottom: 0;
}
.avail-summary-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.avail-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.avail-summary-badge.available { background: #dcfce7; color: var(--green); }
.avail-summary-badge.soon { background: #fef3c7; color: var(--amber); }
.avail-summary-badge.total { background: var(--grey-light); color: #374151; }
.avail-summary-date {
  font-size: 12px;
  color: var(--grey);
  font-style: italic;
}

/* Photo carousel */
.carousel {
  position: relative;
  background: #0f172a;
  height: 360px;
  overflow: hidden;
}
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.carousel-img.active { display: block; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.carousel-btn:hover { background: rgba(0,0,0,.75); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0,0,0,.55);
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
}
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: background .15s, transform .15s;
  border: none; padding: 0;
}
.carousel-dot.active { background: white; transform: scale(1.25); }
.carousel-dot:hover { background: rgba(255,255,255,.8); }

/* Detail info block */
.detail-info {
  padding: 16px;
}
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.detail-operator-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--grey-light);
  flex-shrink: 0;
}
.detail-name {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 3px;
}
.detail-operator-name {
  font-size: 12px;
  color: var(--grey);
  font-weight: 500;
}
.detail-address {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.detail-address::before { content: '📍'; font-size: 13px; flex-shrink: 0; margin-top: 1px; }

.detail-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.detail-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  font-weight: 500;
  transition: all .15s;
}
.detail-contact a:hover { background: var(--blue); color: white; }

/* ---- MODAL 3-BUTTON ROW ---- */
.detail-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0 14px;
}
.detail-action-btn {
  flex: 1;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, border-color .12s;
}
.detail-action-btn:hover { background: var(--light); border-color: #94a3b8; }
.detail-action-btn.primary { background: var(--blue); color: white; border-color: var(--blue); }
.detail-action-btn.primary:hover { background: #1d4ed8; }
.detail-action-btn.primary.in-shortlist { background: #16a34a; border-color: #16a34a; }
.detail-action-btn.primary.in-shortlist:hover { background: #15803d; }
.detail-action-btn.disabled { opacity: .4; cursor: default; }

/* ---- SUITE ADD BUTTON ---- */
.suite-add-btn {
  height: 26px;
  padding: 0 10px;
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.suite-add-btn:hover { background: #1d4ed8; }
.suite-add-btn.in-shortlist {
  background: white;
  color: #dc2626;
  border-color: #fca5a5;
}
.suite-add-btn.in-shortlist:hover { background: #fef2f2; }

/* Card shortlist button toggled state */
.card-add-btn.in-shortlist {
  color: #dc2626;
  border-color: #fca5a5;
  background: white;
}

/* Badge pop animation */
@keyframes pr-badge-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(2.2); }
  100% { transform: scale(1); }
}
.shortlist-badge.pop { animation: pr-badge-pop .38s cubic-bezier(.36,1.5,.4,1); }

/* ---- SHORTLIST BADGE ---- */
.shortlist-link {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
  padding: 4px;
  border-radius: 6px;
  transition: background .15s;
  margin-left: auto;
}
.shortlist-link:hover { background: var(--grey-light); }
.shortlist-link svg { width: 22px; height: 22px; }
.shortlist-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  background: #ef4444;
  color: white;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.detail-description {
  font-size: 13px;
  line-height: 1.7;
  color: #374151;
  white-space: pre-wrap;
  margin-bottom: 0;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Section headers */
.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  padding: 12px 16px 8px;
  border-top: 1px solid var(--border);
  background: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Amenities */
.amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
}
.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
}

/* Amenity groups */
.amenity-groups { padding: 0 0 8px; }
.amenity-group { border-bottom: 1px solid var(--border); }
.amenity-group:last-child { border-bottom: none; }
.amenity-group-label {
  font-size: 10px; font-weight: 700; color: var(--grey);
  text-transform: uppercase; letter-spacing: .5px;
  padding: 8px 16px 0;
}
.amenity-group .amenities-grid { padding: 6px 16px 10px; }

/* About building (expandable) */
.about-section { padding: 0 16px 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.about-text {
  font-size: 13px; line-height: 1.7; color: #374151; white-space: pre-wrap;
}
.about-text.collapsed {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; white-space: normal;
}
.about-expand-btn {
  background: none; border: none; color: var(--blue); font-size: 13px;
  cursor: pointer; padding: 4px 0; font-weight: 500;
}
.about-expand-btn:hover { text-decoration: underline; }

/* Modal sticky bottom bar */
.modal-sticky-bar {
  position: sticky; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px;
  background: white; border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
  z-index: 10;
}
.modal-sticky-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.modal-sticky-logo {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border); object-position: center 20%;
}
.modal-sticky-logo-ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: white; font-size: 18px; font-weight: 700;
}
.modal-sticky-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-sticky-addr { font-size: 11px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-sticky-tour-btn {
  height: 40px; padding: 0 20px; background: #0f172a; color: white;
  border: none; border-radius: var(--radius); font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.modal-sticky-tour-btn:hover { background: #1e293b; }

/* Hover popup mini-carousel */
.hover-popup-photo-wrap { position: relative; }
.hover-popup-photo-wrap .hover-popup-photo { width: 100%; height: 100px; object-fit: cover; display: block; }
.hover-photo-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: white; border: none;
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 2; line-height: 1;
}
.hover-photo-btn.prev { left: 4px; }
.hover-photo-btn.next { right: 4px; }
.hover-photo-counter {
  position: absolute; bottom: 4px; right: 6px;
  font-size: 10px; color: white; background: rgba(0,0,0,.55);
  padding: 1px 5px; border-radius: 8px;
}

/* Suites table */
.suites-wrap {
  padding: 0;
  overflow-x: auto;
}
.suites-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.suites-table th {
  background: var(--grey-light);
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.suites-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: #374151;
}
.suites-table tr:last-child td { border-bottom: none; }
.suites-table tr:hover td { background: var(--blue-pale); }
.status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-AVAILABLE { background: #dcfce7; color: var(--green); }
.status-UNDER_OFFER { background: #fef3c7; color: var(--amber); }
.status-OCCUPIED { background: #fee2e2; color: var(--red); }

/* Floorplans */
.floorplans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  padding: 12px 16px;
}
.floorplan-thumb {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .15s;
  background: var(--grey-light);
  width: 100%;
}
.floorplan-thumb:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  transform: scale(1.03);
}
.floorplan-label {
  font-size: 10px;
  color: var(--grey);
  text-align: center;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  z-index: 2001;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ---- MAP ---- */
.right-panel {
  position: fixed;
  top: calc(var(--header-h) + var(--filters-h));
  left: 420px;
  right: 0;
  bottom: 0;
}
#mapContainer {
  overflow: hidden;
}

/* Zoom controls above markers */
.mapboxgl-ctrl-top-right { z-index: 50 !important; }
.mapboxgl-ctrl-group { z-index: 50 !important; }

/* Map popup (Mapbox default — not used for main popups anymore) */
.mapboxgl-popup-content {
  padding: 0 !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: var(--shadow-lg) !important;
  max-width: 220px;
  cursor: pointer;
}
.map-popup {
  font-size: 13px;
  cursor: pointer;
}
.map-popup-photo {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.map-popup-body {
  padding: 10px 12px;
}
.map-popup-name {
  font-weight: 700;
  font-size: 13px;
  color: #111827;
  margin-bottom: 3px;
  line-height: 1.2;
}
.map-popup-addr {
  font-size: 11px;
  color: var(--grey);
  margin-bottom: 6px;
}
.map-popup-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

/* ---- HOVER POPUP ---- */
.hover-popup {
  position: fixed;
  z-index: 500;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  max-width: 240px;
  overflow: hidden;
  pointer-events: auto;
  transition: opacity 0.15s;
}
.hover-popup-photo {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.hover-popup-body {
  padding: 10px 12px;
}
.hover-popup-name {
  font-weight: 700;
  font-size: 13px;
  color: #111827;
  margin-bottom: 2px;
  line-height: 1.2;
}
.hover-popup-addr {
  font-size: 11px;
  color: var(--grey);
  margin-bottom: 6px;
}
.hover-popup-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}
.hover-popup-avail {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: none;
  flex-direction: column;
  gap: 4px;
}
.hover-popup-avail.expanded {
  display: flex;
}
.hover-popup-avail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #374151;
}
.hover-popup-avail-row strong {
  font-weight: 700;
}

/* Map pin (custom image marker) */
.map-pin-wrap {
  position: relative;
  display: inline-block;
}
.map-pin-wrap.in-shortlist .map-pin-img {
  outline: 2.5px solid #dc2626;
  outline-offset: 1px;
}
.map-pin-wrap.in-shortlist .map-dot {
  outline: 2.5px solid #dc2626;
  outline-offset: 1px;
}
.map-pin-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #dc2626;
  color: white;
  border: 1.5px solid white;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 0;
  line-height: 1;
}
.map-pin-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  cursor: pointer;
  display: block;
}
/* Clean dot markers — no halo, no shadow, no border */
.map-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .1s;
}
.map-dot:hover { transform: scale(1.4); }
.map-dot.available { background: var(--green); }
.map-dot.soon { background: var(--amber); }
.map-dot.none { background: var(--grey); }

/* ---- EMPTY STATE ---- */
.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--grey);
}
.empty-state svg { margin-bottom: 12px; opacity: .4; }
.empty-state p { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: #374151; }
.empty-state small { font-size: 13px; }

/* ---- MOBILE ---- */
@media (max-width: 767px) {
  html, body { overflow: auto; }
  .main-layout {
    position: static;
    flex-direction: column-reverse;
    height: auto;
    margin-top: calc(var(--header-h) + var(--filters-h));
  }
  .left-panel {
    width: 100%;
    height: auto;
    overflow: visible;
    border-right: none;
    border-top: 1px solid var(--border);
  }
  #listView { height: auto; }
  .cards-grid { overflow-y: visible; max-height: none; }
  .right-panel {
    width: 100%;
    height: 55vw;
    min-height: 280px;
    max-height: 420px;
  }
  .carousel { height: 180px; }
  .filters-bar { height: auto; min-height: var(--filters-h); }
  .filters-inner { flex-wrap: wrap; padding: 8px 12px; min-width: 0; gap: 8px; align-items: flex-start; }
  .filter-group { width: calc(50% - 4px); }
  .filter-group input, .filter-group select { width: 100%; }
  .filter-price .range-inputs { width: 100%; }
  .filter-price input { flex: 1; }
  .filter-location { width: 100%; }
  .filter-location input { width: 100%; }
  .btn-reset { align-self: center; }
  .modal-inner { width: 95%; margin: 2vh auto; height: 94vh; }
}

/* ---- SCROLLBAR STYLING ---- */
* { scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }

/* ============================================================
   CHANGES (diff vs last refresh) — banner + card badges
   ============================================================ */
.building-card { position: relative; }
.featured-card { position: relative; }

.card-change-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  pointer-events: none;
}

.change-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  white-space: nowrap;
}
.change-new {
  background: var(--green);
  color: white;
}
.change-updated {
  background: white;
  color: var(--blue);
  border: 1px solid var(--blue);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

/* Top banner */
.changes-banner {
  margin: 0 0 14px 0;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  overflow: hidden;
}
.changes-banner.no-changes {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--grey);
  background: var(--grey-light);
  border-color: var(--border);
}
.changes-banner-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  user-select: none;
}
.changes-banner-summary:hover { background: rgba(255,255,255,.4); }
.changes-banner-icon { font-size: 18px; }
.changes-banner-text {
  flex: 1;
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.4;
}
.changes-banner-text strong { color: var(--navy); font-weight: 700; }
.changes-banner-date {
  display: block;
  font-size: 11px;
  color: var(--grey);
  margin-top: 2px;
  font-weight: 400;
}
.changes-banner-toggle {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}
.changes-banner-details {
  padding: 6px 14px 14px;
  border-top: 1px solid #bfdbfe;
  background: white;
  max-height: 360px;
  overflow-y: auto;
}
.changes-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 10px 0 6px;
}
.changes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.changes-list li {
  padding: 5px 0;
  border-bottom: 1px solid var(--grey-light);
  font-size: 12px;
  line-height: 1.4;
}
.changes-list li:last-child { border-bottom: none; }
.changes-list a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.changes-list a:hover { text-decoration: underline; }
.changes-list-addr,
.changes-list-detail {
  display: block;
  color: var(--grey);
  font-size: 11px;
  margin-top: 1px;
}
.changes-removed {
  color: var(--grey);
  text-decoration: line-through;
}
.changes-more {
  color: var(--grey);
  font-style: italic;
  text-align: center;
  padding: 6px 0 !important;
}

.desk-chip{padding:5px 11px;border:1px solid #d1d5db;border-radius:999px;background:#fff;font-size:12px;cursor:pointer;}
.desk-chip:hover{background:#f3f4f6;border-color:#9ca3af;}

/* ---- TOUR WIZARD (shared) ---- */
    /* ---- TOUR WIZARD ---- */
    .tw-overlay { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:9999; display:flex; align-items:center; justify-content:center; }
    .tw-modal { background:white; border-radius:20px; width:680px; max-width:95vw; max-height:90vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.25); }
    .tw-header { padding:24px 28px 0; }
    .tw-title { font-size:18px; font-weight:700; margin-bottom:20px; }
    .tw-step-bar { display:flex; align-items:center; justify-content:center; gap:0; margin-bottom:20px; }
    .tw-step-dot { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:600; background:#e5e7eb; color:#6b7280; flex-shrink:0; }
    .tw-step-dot.active, .tw-step-dot.done { background:var(--blue); color:white; }
    .tw-step-line { height:2px; width:80px; background:#e5e7eb; }
    .tw-step-line.done { background:var(--blue); }
    .tw-body { flex:1; overflow-y:auto; padding:16px 28px 8px; }
    .tw-footer { display:flex; justify-content:space-between; align-items:center; padding:16px 28px 24px; border-top:1px solid var(--border); margin-top:8px; }
    .tw-cancel-btn, .tw-back-btn { height:40px; padding:0 20px; border:1px solid var(--border); border-radius:10px; background:white; font-size:14px; font-weight:500; cursor:pointer; }
    .tw-cancel-btn:hover, .tw-back-btn:hover { background:var(--light); }
    .tw-next-btn { height:40px; padding:0 24px; background:var(--blue); color:white; border:none; border-radius:10px; font-size:14px; font-weight:600; cursor:pointer; }
    .tw-next-btn:hover { background:#1d4ed8; }
    .tw-next-btn:disabled { opacity:.5; cursor:not-allowed; }
    .tw-section-title { font-size:15px; font-weight:600; margin-bottom:12px; }
    .tw-optional { font-size:13px; font-weight:400; color:var(--grey); }
    .tw-suite-list { display:flex; flex-direction:column; gap:8px; }
    .tw-suite-item { display:flex; align-items:center; gap:12px; padding:14px 16px; border:1.5px solid var(--border); border-radius:12px; cursor:pointer; transition:border-color .12s, background .12s; user-select:none; }
    .tw-suite-item.checked { border-color:var(--blue); background:#eff6ff; }
    .tw-suite-check { width:20px; height:20px; border-radius:5px; border:2px solid #cbd5e1; flex-shrink:0; display:flex; align-items:center; justify-content:center; transition:background .12s, border-color .12s; }
    .tw-suite-check.checked { background:var(--blue); border-color:var(--blue); }
    .tw-suite-name { font-size:14px; font-weight:600; }
    .tw-suite-meta { font-size:12px; color:var(--grey); margin-top:2px; }
    .tw-step2-grid { display:flex; gap:28px; align-items:flex-start; }
    .tw-cal-wrap { flex-shrink:0; }
    .tw-step2-right { flex:1; display:flex; flex-direction:column; gap:18px; }
    .tw-cal { border:1.5px solid var(--border); border-radius:14px; padding:16px; min-width:280px; }
    .tw-cal-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; font-weight:600; font-size:14px; }
    .tw-cal-nav button { width:28px; height:28px; border:none; background:none; cursor:pointer; font-size:18px; color:var(--grey); border-radius:6px; display:flex; align-items:center; justify-content:center; }
    .tw-cal-nav button:hover { background:var(--light); }
    .tw-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
    .tw-cal-hdr { text-align:center; font-size:12px; color:var(--grey); font-weight:500; padding:4px 0 8px; }
    .tw-cal-day { text-align:center; padding:8px 4px; border-radius:8px; font-size:14px; cursor:pointer; transition:background .1s; }
    .tw-cal-day:hover:not(.past):not(.other) { background:var(--light); }
    .tw-cal-day.other { color:#d1d5db; cursor:default; }
    .tw-cal-day.past { color:#d1d5db; cursor:not-allowed; }
    .tw-cal-day.today { background:#eff6ff; color:var(--blue); font-weight:600; }
    .tw-cal-day.selected { background:var(--blue); color:white; font-weight:700; border-radius:8px; }
    .tw-field { display:flex; flex-direction:column; gap:6px; }
    .tw-select, .tw-input { width:100%; height:42px; border:1.5px solid var(--border); border-radius:10px; padding:0 12px; font-size:14px; font-family:inherit; outline:none; transition:border-color .12s; }
    .tw-select:focus, .tw-input:focus { border-color:var(--blue); }
    .tw-textarea { height:80px; padding:10px 12px; resize:vertical; }
    .tw-fields { display:flex; flex-direction:column; gap:10px; }
    .tw-summary { margin-top:16px; padding:12px 16px; background:#f8fafc; border-radius:10px; font-size:13px; color:var(--grey); }
    .tw-validation-error { background:#fef2f2; color:#dc2626; border:1px solid #fca5a5; border-radius:8px; padding:10px 14px; font-size:13px; margin-bottom:10px; }

    .tw-read-more { font-size:13px; color:var(--blue); cursor:pointer; user-select:none; margin-top:2px; }
.shortlist-link{background:var(--blue)!important;color:#fff!important;padding:7px 14px!important;border-radius:999px!important;gap:7px;display:flex;align-items:center}
.shortlist-link:hover{background:#1d4ed8!important}
.shortlist-label{font-size:13px;font-weight:700;white-space:nowrap}
.shortlist-link svg{width:18px!important;height:18px!important}
.modal-sticky-enq-btn{margin-left:8px;padding:10px 18px;border-radius:8px;border:2px solid var(--blue);background:#fff;color:var(--blue);font-weight:700;font-size:14px;cursor:pointer}
.modal-sticky-enq-btn:hover{background:var(--blue-pale)}

.br-list{max-height:320px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}
.br-suite{display:flex;align-items:center;gap:14px;padding:12px 14px;border:2px solid var(--border);border-radius:10px;cursor:pointer;font-size:14px}
.br-suite:hover{border-color:var(--blue);background:var(--blue-pale)}
.br-suite input{width:26px;height:26px;flex-shrink:0;accent-color:var(--blue);cursor:pointer}
.br-suite small{color:var(--grey)}
.br-suite-big{padding:16px}

.vp-photos{display:flex;gap:6px;flex-shrink:0}
.vp-photos img{width:112px;height:76px;object-fit:cover;border-radius:6px;display:block}
.vp-unit{font-size:12px;color:#334155;line-height:1.5}
@media(max-width:600px){.vp-photos{display:none}}

/* ---- CSC brand match ---- */
html,body,button,input,select,textarea{font-family:"brandon-grotesque",-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif !important}
b,strong,h1,h2,h3,h4,h5{font-weight:700}
.site-header{background:rgba(10,10,10,.96)!important;border-bottom:none!important}
.site-header .logo{color:#fff!important;gap:14px}
.csc-logo{height:42px;width:auto;display:block}
.logo-sub{font-size:17px;font-weight:400;letter-spacing:.5px;padding-left:14px;border-left:1px solid rgba(255,255,255,.35);line-height:1}
.site-header .header-tagline{color:#d1d5db!important}
.site-header .logo:hover .logo-sub{color:#fe6f61}
.csc-footer{background:#171717;color:#fff;padding:20px 0;text-align:center;font-size:16px;margin-top:40px}
.csc-footer a{color:#fff;text-decoration:underline}
.csc-footer a:hover{color:#fe6f61}

.logo-sub{color:#fff;text-decoration:none;font-size:18px;font-weight:400;letter-spacing:.5px;padding-left:14px;border-left:1px solid rgba(255,255,255,.35);line-height:1;white-space:nowrap}
.logo-sub:hover{color:#fe6f61}
.csc-nav{display:flex;gap:22px;margin-left:auto;margin-right:18px}
.csc-nav a{color:#fff;text-decoration:none;font-size:16px;white-space:nowrap}
.csc-nav a:hover,.csc-nav a.active{color:#fe6f61}
.shortlist-link{margin-left:0!important}
@media(max-width:1100px){.csc-nav{display:none}.shortlist-link{margin-left:auto!important}}

/* Compact featured cards: 4-6 visible in the left bar */
.featured-cards { gap: 6px; padding: 0 12px 8px; }
.featured-card { display: flex; align-items: stretch; }
.featured-card-photo, .featured-card-photo-placeholder { width: 96px; height: 78px; flex: 0 0 96px; }
.featured-card-photo-placeholder { font-size: 24px; }
.featured-card-body { padding: 6px 10px; min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.featured-card-name { font-size: 13px; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-card-address { font-size: 11px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-card-price { font-size: 12px; }
.featured-card .avail-badge { font-size: 10px; }
.featured-card .card-change-overlay { transform: scale(.8); transform-origin: top left; }

/* Active filter bubbles */
.filter-popup-wrap, .filter-date { position: relative; }
.filter-popup-btn.filter-on, .filter-date input.filter-on { background: #e5e7eb; border-color: #9ca3af; color: #374151; }
.filter-x { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; background: #6b7280; color: #fff; font-size: 10px; line-height: 18px; text-align: center; cursor: pointer; z-index: 5; }
.filter-x:hover { background: #374151; }
.filter-date .filter-x { right: calc(100% - 140px - 7px); top: 12px; }
/* No white bar above the photo: close button overlays it */
.modal-close { float: none; display: flex; margin: 12px 12px -48px auto; }
#modalContent { clear: none; }

.modal-top-actions { position: sticky; top: 12px; height: 0; z-index: 19; text-align: right; padding-right: 60px; }
.modal-top-book { margin-top: 12px; height: 36px; padding: 0 16px; border: none; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: var(--shadow); }
.modal-top-book:hover { background: #1e293b; }
.modal-sticky-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.modal-sticky-btns .detail-action-btn { white-space: nowrap; }
.modal-sticky-btns .modal-sticky-tour-btn { margin: 0; }

.wa-ico { vertical-align: -3px; margin-right: 2px; }
.modal-sticky-left { flex: 0 0 180px; }
.modal-sticky-btns { flex: 1; flex-wrap: nowrap; gap: 10px; }
.modal-sticky-btns .detail-action-btn, .modal-sticky-btns .modal-sticky-tour-btn { flex: 1 1 0; min-width: 0; padding: 12px 14px; font-size: 14px; white-space: nowrap; text-align: center; }

/* Footer buttons: identical height, tighter */
.modal-sticky-bar { gap: 8px; padding: 10px 12px; }
.modal-sticky-left { flex: 0 0 130px; }
.modal-sticky-btns { gap: 6px; }
.modal-sticky-btns .detail-action-btn, .modal-sticky-btns .modal-sticky-tour-btn {
  height: 40px; box-sizing: border-box; padding: 0 8px; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius);
}

.tw-footer { position: relative; }
.tw-date-err { position: absolute; right: 28px; top: -2px; font-size: 12px; color: #dc2626; font-weight: 600; }
.tw-link-btn { display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none; margin: 4px; line-height: 1; }
.os-review-banner { background: #111; padding: 8px 12px; text-align: center; font-size: 12px; letter-spacing: .02em; border-radius: 12px 12px 0 0; }
.os-review-banner a { color: #d8d8d8; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.os-review-banner a:hover { color: #fff; }
.osb-stars { color: #fbbc04; font-size: 13px; letter-spacing: 2px; }
.osb-g { font-weight: 700; font-family: Arial, sans-serif; background: linear-gradient(90deg,#4285f4 0 25%,#ea4335 25% 50%,#fbbc04 50% 75%,#34a853 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.osb-tp { font-weight: 700; font-family: Arial, sans-serif; color: #00b67a; }

/* ===== THEME BUTTON ===== */
#themeToggle{background:none;border:0;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;margin-right:2px;flex:0 0 auto}
#themeToggle:hover{background:rgba(255,255,255,.12)}

/* ===== DARK MODE ===== */
[data-theme="dark"]{color-scheme:dark;--grey:#9ca3af;--border:#2b3a52;--blue-pale:#1c2a47;--navy:#e5e7eb}
[data-theme="dark"] html,[data-theme="dark"] body,html[data-theme="dark"],html[data-theme="dark"] body,
[data-theme="dark"] .left-panel,[data-theme="dark"] .results-summary,[data-theme="dark"] #featuredSection,
[data-theme="dark"] .featured-heading,[data-theme="dark"] .load-more-wrap,[data-theme="dark"] .tw-summary{background:#0b1424;color:#e5e7eb}
[data-theme="dark"] .filters-bar,[data-theme="dark"] .filter-group input,[data-theme="dark"] .filter-group select,
[data-theme="dark"] .filter-popup-btn,[data-theme="dark"] .filter-popup,[data-theme="dark"] .building-card,
[data-theme="dark"] .featured-card,[data-theme="dark"] .btn-load-more,[data-theme="dark"] .modal-inner,
[data-theme="dark"] .detail-action-btn,[data-theme="dark"] .modal-sticky-bar,[data-theme="dark"] .hover-popup,
[data-theme="dark"] .changes-banner-details,[data-theme="dark"] .desk-chip,[data-theme="dark"] .tw-modal,
[data-theme="dark"] .tw-cancel-btn,[data-theme="dark"] .tw-back-btn,[data-theme="dark"] .popup-btn-cancel,
[data-theme="dark"] .popup-inputs input,[data-theme="dark"] .tw-select,[data-theme="dark"] .tw-input,
[data-theme="dark"] .change-updated{background:#14223a;color:#e5e7eb;border-color:var(--border)}
[data-theme="dark"] .desk-chip:hover{background:#1c2c4a}
[data-theme="dark"] .card-name,[data-theme="dark"] .featured-card-name,[data-theme="dark"] .detail-name,
[data-theme="dark"] .map-popup-name,[data-theme="dark"] .hover-popup-name,[data-theme="dark"] .card-price,
[data-theme="dark"] .featured-card-price,[data-theme="dark"] .hover-popup-price,[data-theme="dark"] .map-popup-price,
[data-theme="dark"] .section-title,[data-theme="dark"] .btn-load-more,[data-theme="dark"] .changes-banner-text strong{color:#f3f4f6}
[data-theme="dark"] .detail-description,[data-theme="dark"] .about-text,[data-theme="dark"] .suites-table td,
[data-theme="dark"] .avail-summary-badge.total,[data-theme="dark"] .hover-popup-avail-row,[data-theme="dark"] .empty-state p,
[data-theme="dark"] .modal-close,[data-theme="dark"] .changes-banner-text,[data-theme="dark"] .vp-unit{color:#d1d5db}
[data-theme="dark"] .modal-close{background:#14223a}
[data-theme="dark"] .tw-suite-item.checked,[data-theme="dark"] .tw-cal-day.today{background:#1c2a47}
[data-theme="dark"] .filter-popup-btn.filter-on,[data-theme="dark"] .filter-date input.filter-on{background:#2b3a52;color:#f3f4f6}
[data-theme="dark"] .btn-reset:hover{color:#f3f4f6}
[data-theme="dark"] .mapboxgl-ctrl-group{background:#14223a}
[data-theme="dark"] .mapboxgl-ctrl-group button .mapboxgl-ctrl-icon{filter:invert(1)}
[data-theme="dark"] .mapboxgl-ctrl-attrib{background:rgba(11,20,36,.7)}
[data-theme="dark"] .mapboxgl-ctrl-attrib a{color:#9ca3af}
[data-theme="dark"] .site-header{background:var(--header-bg,#0a1628)}
[data-theme="dark"] .shortlist-link{color:#fff}

/* ===== MOBILE: map first, no featured ===== */
@media (max-width:767px){
  html,body{height:auto;overflow:auto}
  body{padding-top:var(--header-h);display:flex;flex-direction:column;min-height:100vh}
  .header-inner{gap:8px;padding:0 10px}
  .csc-logo{height:32px}
  .logo-sub{font-size:14px;padding-left:8px}
  .shortlist-label{display:none}
  .filters-bar{position:static;order:0;height:auto;overflow:visible}
  .filters-inner{min-width:0;flex-wrap:wrap;height:auto;padding:8px 12px;gap:8px;align-items:flex-end}
  .filter-group{width:calc(33.333% - 6px)}
  .filter-location{width:100%}
  .filter-group input,.filter-group select,.filter-popup-btn{width:100%}
  .btn-reset{width:100%;height:30px}
  .right-panel{position:relative;order:1;top:auto;left:auto;right:auto;bottom:auto;width:100%;height:55vh;min-height:300px;max-height:none}
  .main-layout{position:static;order:2;width:100%;height:auto;margin-top:0}
  .left-panel{width:100%;height:auto;overflow:visible}
  #listView,.cards-grid{height:auto;max-height:none;overflow:visible}
  #featuredSection{display:none!important}
}
