/* =============================================================
   Search Panel Redesign
   Scoped styles that re-skin the existing Search Section markup
   to match the "Search Panel Redesign" mockup.
   All rules are namespaced under `.sp-hero` (the search section
   container) or `.hero-section--redesign` (the hero band), so the
   shared components used elsewhere (mobile modal, other pages)
   are left untouched.
   ============================================================= */

.sp-hero {
  --sp-navy: #03356b;
  --sp-navy2: #0a4f9e;
  --sp-orange: #f6931c;
  --sp-orange2: #e07a10;
  --sp-ink: #0f1923;
  --sp-muted: #5a6477;
  --sp-faint: #aab0ba;
  --sp-bg: #f4f6fb;
  --sp-line: #eef1f7;
  --sp-line2: #e3e8f1;
  --sp-green: #0f9d58;
}

/* ===================== HERO BACKDROP ===================== */
.hero-section--redesign {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
/* Clip ONLY the decorative background layers to the hero band, so the
   composer popovers (which extend below the card) are never clipped. */
.hero-section--redesign .sp-hero-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-section--redesign .hero-bg {
  background:
    radial-gradient(circle, rgb(4 32 63) 0%, rgba(3, 53, 107, 0) 70%),
    url('../assets/img/banner-adobestock.png') center/cover no-repeat;
  background-color: #03356b;
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) saturate(0.9);
}

.hero-section--redesign .sp-bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-section--redesign .sp-bokeh.bk1 {
  width: 340px;
  height: 340px;
  background: rgba(246, 147, 28, 0.55);
  top: -90px;
  right: 8%;
  animation: sp-float 14s ease-in-out infinite;
}
.hero-section--redesign .sp-bokeh.bk2 {
  width: 300px;
  height: 300px;
  background: rgba(18, 100, 200, 0.7);
  bottom: -120px;
  left: 4%;
  animation: sp-float 18s ease-in-out infinite reverse;
}
.hero-section--redesign .sp-bokeh.bk3 {
  width: 160px;
  height: 160px;
  background: rgba(246, 147, 28, 0.3);
  top: 40%;
  left: 46%;
  animation: sp-float 12s ease-in-out infinite;
}
@keyframes sp-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(26px, -22px); }
}

.hero-section--redesign .sp-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 80%);
}
.hero-section--redesign .sp-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(2, 18, 40, 0.55) 0%,
    rgba(2, 18, 40, 0.18) 30%,
    rgba(2, 18, 40, 0.3) 100%
  );
}

/* ===================== STAGE / LAYOUT ===================== */
.sp-hero {
  position: relative;
  z-index: 20;
  max-width: 1180px;
  padding-top: 88px;
  padding-bottom: 72px;
}

/* ===================== EYEBROW ===================== */
.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 15px 7px 11px;
  border-radius: 100px;
  backdrop-filter: blur(10px);
  margin: 0 auto 22px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  width: fit-content;
  max-width: 100%;
}
.sp-eyebrow .sp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: sp-livedot 1.8s infinite;
  flex-shrink: 0;
}
.sp-eyebrow b { font-weight: 700; color: #fff; }
@keyframes sp-livedot {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* ===================== HEADLINE ===================== */
.sp-hero #search-section-header {
  margin-bottom: 28px;
}
.sp-hero #search-section-header .title {
  font-size: 54px;
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin-bottom: 0;
}
.sp-hero #search-section-header .title .accent {
  color: var(--sp-orange);
}
.sp-hero #search-section-header .sub-title {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  padding: 0;
}

/* ===================== MODE TOGGLE (SearchTabs) ===================== */
.sp-hero .hero-buttons.web {
  position: relative;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  border-radius: 100px;
  padding: 5px;
  gap: 4px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
  margin-bottom: 0 !important;
}
.sp-hero .hero-buttons.web .btn-hero {
  position: relative;
  border: none !important;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 26px;
  min-width: unset;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s, background 0.3s;
  white-space: nowrap;
}
.sp-hero .hero-buttons.web .btn-hero br { display: none; }
.sp-hero .hero-buttons.web .btn-hero::after,
.sp-hero .hero-buttons.web .btn-hero::before { display: none !important; }
.sp-hero .hero-buttons.web .btn-hero .space-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin: 0 !important;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.sp-hero .hero-buttons.web .btn-hero:hover { color: #fff; }
.sp-hero .hero-buttons.web .btn-hero.active {
  color: #fff;
  background: linear-gradient(135deg, var(--sp-orange), var(--sp-orange2));
  box-shadow: 0 8px 20px -4px rgba(246, 147, 28, 0.6);
}
.sp-hero .hero-buttons.web .btn-hero.active .space-icon { opacity: 1; }

.sp-hero .sp-modebar {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 6;
}

/* ===================== COMPOSER CARD ===================== */
.sp-hero .search-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  max-width: 1140px;
  margin-top: 0;
  padding: 18px;
  box-shadow: 0 40px 90px -30px rgba(2, 18, 40, 0.7), 0 0 0 1px rgba(3, 53, 107, 0.04);
  position: relative;
  z-index: 5;
  text-align: left;
  color: var(--sp-ink);
}

/* ---- Space type chips (SearchSecCatTabs) ---- */
.sp-hero .search-card .search-options {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.sp-hero .search-card .search-options .btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--sp-line2) !important;
  padding: 10px 18px;
  border-radius: 100px !important;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sp-muted);
  min-width: unset;
  transition: all 0.18s;
}
.sp-hero .search-card .search-options .btn-outline-light:hover {
  border-color: var(--sp-navy) !important;
  color: var(--sp-navy);
  background: #fff;
}
.sp-hero .search-card .search-options .btn-outline-light.active {
  background: linear-gradient(135deg, var(--sp-orange), var(--sp-orange2));
  border-color: transparent !important;
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(246, 147, 28, 0.6);
  font-weight: 600;
}

/* verified hint line under chips */
.sp-hero .sp-type-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  width: 100%;
  font-size: 12px;
  color: var(--sp-muted);
  font-weight: 500;
  margin: 0 0 14px;
}
.sp-hero .sp-type-hint i { color: var(--sp-orange); }

/* ---- Segmented search row (SearchForm) ---- */
.sp-hero .search-card .select-city-div {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  margin: 0;
  background: var(--sp-bg);
  border: 1px solid var(--sp-line2);
  border-radius: 20px;
  padding: 8px;
}
.sp-hero .search-card .select-city-div > [class*="col-"] {
  padding: 0;
  margin: 0;
  min-width: 0;
  width: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}
/* city segment */
.sp-hero .search-card .select-city-div > .col-md-2:first-child {
  flex: 0 0 auto;
  min-width: 150px;
}
/* location/search segment (grow) */
.sp-hero .search-card .select-city-div > .col-md-7 {
  flex: 1 1 auto;
  position: relative;
}
/* cta segment */
.sp-hero .search-card .select-city-div > .col-md-2:last-child {
  flex: 0 0 auto;
  align-items: center;
}

/* dividers between segments */
.sp-hero .search-card .select-city-div > .col-md-7::before,
.sp-hero .search-card .select-city-div > .col-md-2:last-child::before {
  content: "";
  width: 1px;
  align-self: center;
  height: 38px;
  margin: 0 2px;
  background: var(--sp-line2);
  flex: 0 0 auto;
}

/* city / location trigger => segment look */
.sp-hero .search-card .custom-dropdown,
.sp-hero .search-card .custom-search-dropdown {
  border: none;
  width: 100%;
  margin: 0 !important;
}
.sp-hero .search-card .custom-dropdown .selected,
.sp-hero .search-card .custom-search-dropdown .selected-location {
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--sp-ink);
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
}
.sp-hero .search-card .custom-dropdown .selected:hover,
.sp-hero .search-card .custom-search-dropdown .selected-location:hover {
  background: #fff;
}
.sp-hero .search-card .custom-dropdown.active .selected,
.sp-hero .search-card .custom-search-dropdown.active .selected-location {
  background: #fff;
  box-shadow: 0 8px 24px -10px rgba(3, 53, 107, 0.28);
}
.sp-hero .search-card .selected img,
.sp-hero .search-card .selected-location img {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}
.sp-hero .search-card .custom-search-dropdown .selected-location .form-control,
.sp-hero .search-card .custom-search-dropdown .selected-location input {
  border: none !important;
  outline: none;
  background: transparent;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--sp-ink);
  padding: 0;
  box-shadow: none !important;
}
.sp-hero .search-card .custom-search-dropdown .selected-location input::placeholder {
  color: var(--sp-faint);
  font-weight: 500;
}

/* CTA button */
.sp-hero .search-card .workspaces-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--sp-navy), var(--sp-navy2)) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer;
  padding: 0 28px;
  min-width: 190px;
  height: 100%;
  min-height: 56px;
  border-radius: 16px;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(3, 53, 107, 0.6);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.sp-hero .search-card .workspaces-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -10px rgba(3, 53, 107, 0.7);
  color: #fff !important;
}
.sp-hero .search-card .workspaces-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* pulse dot (left) + arrow (right) to match mockup */
.sp-hero .search-card .workspaces-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sp-orange);
  box-shadow: 0 0 0 0 rgba(246, 147, 28, 0.7);
  animation: sp-livedot 1.8s infinite;
  flex-shrink: 0;
}
.sp-hero .search-card .workspaces-btn::after {
  content: "\2192";
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.sp-hero .search-card .workspaces-btn:hover:not(:disabled)::after {
  transform: translateX(4px);
}

/* ---- Popovers (dropdown lists) ---- */
.sp-hero .search-card .dropdown-list,
.sp-hero .search-card .dropdown-list-2 {
  top: calc(100% + 12px);
  left: 0;
  right: auto;
  width: 380px;
  max-width: min(92vw, 520px);
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 30px 70px -24px rgba(2, 18, 40, 0.5), 0 0 0 1px rgba(3, 53, 107, 0.04);
  z-index: 30;
}
.sp-hero .search-card .custom-search-dropdown .dropdown-list-2 {
  width: 520px;
}
.sp-hero .search-card .dropdown-list li,
.sp-hero .search-card .dropdown-list-2 li {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--sp-ink);
}
.sp-hero .search-card .dropdown-list li:hover {
  background: var(--sp-bg);
}
.sp-hero .search-card .dropdown-title,
.sp-hero .search-card .home-location-popular-heading {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sp-faint);
  background: transparent !important;
}

/* footer row wrapper */
.sp-hero .sp-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 15px;
  padding: 0 6px;
}
.sp-hero .sp-foot .sp-try {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--sp-muted);
  font-weight: 500;
}
.sp-hero .sp-foot .sp-try i { color: var(--sp-orange); font-size: 14px; }
.sp-hero .sp-foot .sp-nlchip {
  background: #fff;
  border: 1px dashed var(--sp-line2);
  padding: 7px 13px;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sp-navy);
  white-space: nowrap;
  transition: all 0.16s;
}
.sp-hero .sp-foot .sp-nlchip:hover {
  border-style: solid;
  border-color: var(--sp-navy);
  background: var(--sp-navy);
  color: #fff;
  transform: translateY(-1px);
}
.sp-hero .sp-foot .sp-foot-spacer { flex: 1; min-width: 20px; }
.sp-hero .sp-foot .sp-matches {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--sp-muted);
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--sp-line2);
  padding: 8px 14px;
  border-radius: 100px;
}
.sp-hero .sp-foot .sp-matches .sp-mdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sp-green);
  animation: sp-livedot 1.7s infinite;
}
.sp-hero .sp-foot .sp-matches b {
  color: var(--sp-navy);
  font-weight: 800;
}

/* ===================== MOBILE SEARCH BOX (inline) ===================== */
.sp-hero .search-box.mobile-view .select-city-div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 30px 70px -30px rgba(2, 18, 40, 0.7);
  color: var(--sp-ink);
}
.sp-hero .search-box.mobile-view .select-city-div > [class*="col-"] {
  width: 100%;
  padding: 0;
}
.sp-hero .search-box.mobile-view .custom-dropdown .selected,
.sp-hero .search-box.mobile-view .custom-search-dropdown .selected-location {
  background: var(--sp-bg);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--sp-ink);
  font-weight: 600;
  display: flex;
  align-items: center;
}
.sp-hero .search-box.mobile-view .workspaces-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--sp-navy), var(--sp-navy2)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px;
  padding: 14px;
  font-weight: 600;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .sp-hero { padding-top: 64px; padding-bottom: 48px; }
  .sp-hero #search-section-header .title { font-size: 40px; letter-spacing: -1px; }
  .sp-hero .search-card .select-city-div {
    flex-wrap: wrap;
  }
  .sp-hero .search-card .select-city-div > .col-md-2:first-child,
  .sp-hero .search-card .select-city-div > .col-md-7,
  .sp-hero .search-card .select-city-div > .col-md-2:last-child {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .sp-hero .search-card .select-city-div > .col-md-7::before { display: none; }
  .sp-hero .search-card .workspaces-btn { width: 100%; }
}

@media (max-width: 576px) {
  .sp-hero { padding-top: 40px; }
  .sp-hero #search-section-header .title { font-size: 30px; }
  .sp-hero #search-section-header .sub-title { font-size: 13.5px; }
  .sp-hero .hero-buttons.web .btn-hero { padding: 10px 16px; font-size: 12.5px; }
  .sp-hero .search-card .search-options { justify-content: center; }
  .sp-hero .sp-type-hint { margin: 0 auto 12px; }
  .hero-section--redesign { min-height: auto; }
}

/* =============================================================
   MOBILE SEARCH MODAL (full-screen) — matches redesign tokens
   Scoped under `.sp-modal`.
   ============================================================= */
.sp-modal {
  --sp-navy: #03356b;
  --sp-navy2: #0a4f9e;
  --sp-orange: #f6931c;
  --sp-orange2: #e07a10;
  --sp-ink: #0f1923;
  --sp-muted: #5a6477;
  --sp-faint: #aab0ba;
  --sp-bg: #f4f6fb;
  --sp-line: #eef1f7;
  --sp-line2: #e3e8f1;
  --sp-green: #0f9d58;

  background: #faf9f5 !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom)) !important;
  overflow-y: auto;
  color: var(--sp-ink);
}

/* header */
.sp-modal .sp-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: none;
  padding: 0;
  margin: 0;
}
.sp-modal .sp-modal-heading { display: flex; flex-direction: column; gap: 8px; }
.sp-modal .sp-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--sp-muted);
}
.sp-modal .sp-modal-eyebrow .sp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-green);
  animation: sp-livedot 1.8s infinite;
}
.sp-modal .sp-modal-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.6px;
  color: var(--sp-ink);
  margin: 0;
}
.sp-modal .sp-modal-title .accent { color: var(--sp-orange); }
.sp-modal .close-mobile-modal { flex-shrink: 0; }

/* labelled field wrapper */
.sp-modal .sp-modal-field { display: flex; flex-direction: column; gap: 6px; }
.sp-modal .sp-modal-field-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--sp-faint);
  padding-left: 2px;
}

/* neutralise bootstrap column widths inside the modal */
.sp-modal .col-md-2,
.sp-modal .col-md-7 {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  padding: 0;
}

/* city + location segments */
.sp-modal .custom-dropdown,
.sp-modal .custom-search-dropdown {
  border: none;
  width: 100%;
  margin: 0 !important;
}
.sp-modal .custom-dropdown .selected,
.sp-modal .custom-search-dropdown .selected-location {
  background: #fff;
  border: 1.5px solid var(--sp-line2);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-ink);
  display: flex;
  align-items: center;
}
.sp-modal .custom-dropdown.active .selected,
.sp-modal .custom-search-dropdown.active .selected-location {
  border-color: var(--sp-navy);
  box-shadow: 0 8px 24px -12px rgba(3, 53, 107, 0.35);
}
.sp-modal .selected img,
.sp-modal .selected-location img {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}
.sp-modal .custom-search-dropdown .selected-location input,
.sp-modal .custom-search-dropdown .selected-location .form-control {
  border: none !important;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-ink);
  padding: 0;
  box-shadow: none !important;
}
.sp-modal .custom-search-dropdown .selected-location input::placeholder {
  color: var(--sp-faint);
  font-weight: 500;
}
.sp-modal .search-wrapper { background: transparent; border-radius: 0; }

/* popovers */
.sp-modal .dropdown-list,
.sp-modal .dropdown-list-2 {
  width: 100%;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -22px rgba(2, 18, 40, 0.45);
  padding: 10px;
}
.sp-modal .dropdown-list li,
.sp-modal .dropdown-list-2 li {
  border-radius: 12px;
  color: var(--sp-ink);
}
.sp-modal .dropdown-title,
.sp-modal .home-location-popular-heading {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sp-faint);
  background: transparent !important;
}

/* mode toggle (SearchTabs isPopUp) */
.sp-modal .sp-modal-modebar { width: 100%; }
.sp-modal .hero-buttons {
  display: flex;
  width: 100%;
  gap: 4px;
  padding: 5px;
  background: var(--sp-bg);
  border: 1px solid var(--sp-line2);
  border-radius: 100px;
  margin: 0 !important;
}
.sp-modal .hero-buttons .btn-hero {
  flex: 1 1 0;
  min-width: 0;
  border: none !important;
  border-radius: 100px;
  padding: 11px 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sp-muted);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sp-modal .hero-buttons .btn-hero br { display: none; }
.sp-modal .hero-buttons .btn-hero::after,
.sp-modal .hero-buttons .btn-hero::before { display: none !important; }
.sp-modal .hero-buttons .btn-hero .space-icon {
  width: 16px;
  height: 16px;
  margin: 0 !important;
  object-fit: contain;
}
.sp-modal .hero-buttons .btn-hero.active {
  color: #fff;
  background: linear-gradient(135deg, var(--sp-orange), var(--sp-orange2));
  box-shadow: 0 8px 20px -6px rgba(246, 147, 28, 0.6);
}
.sp-modal .hero-buttons .btn-hero.active .space-icon {
  filter: brightness(0) invert(1);
}

/* space-type chips (SearchSecCatTabs isPopUp -> spaces-opt) */
.sp-modal .spaces-opt {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0;
  padding-bottom: 2px;
}
.sp-modal .spaces-opt::-webkit-scrollbar { display: none; }
.sp-modal .spaces-opt .btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  white-space: nowrap;
  background: #fff;
  border: 1.5px solid var(--sp-line2) !important;
  padding: 9px 14px;
  border-radius: 100px !important;
  min-width: unset;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sp-muted);
}
.sp-modal .spaces-opt .btn-outline-light.active {
  background: linear-gradient(135deg, var(--sp-orange), var(--sp-orange2));
  border-color: transparent !important;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(246, 147, 28, 0.6);
}

/* CTA */
.sp-modal .sp-modal-cta {
  width: 100%;
  margin-top: auto;
  background: linear-gradient(135deg, var(--sp-navy), var(--sp-navy2)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 15px !important;
  min-width: unset;
  font-size: 15.5px;
  font-weight: 600;
  box-shadow: 0 14px 30px -10px rgba(3, 53, 107, 0.6);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.sp-modal .sp-modal-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -10px rgba(3, 53, 107, 0.7);
  color: #fff !important;
}
.sp-modal .sp-modal-cta:disabled { opacity: 0.55; cursor: not-allowed; }

/* =============================================================
   CITY POPOVER (HomeCitySelector) — recent chips + city grid
   Scoped by the popover's own class `.sp-city-pop`, which only
   renders inside the redesigned hero / modal.
   ============================================================= */
.sp-city-pop {
  max-height: min(72vh, 460px);
  overflow-y: auto;
  overflow-x: hidden;
}
.sp-city-pop > li,
.sp-city-pop > li:hover {
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: default;
}

/* search field */
.sp-city-pop .sp-pop-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sp-bg, #f4f6fb);
  border: 1px solid var(--sp-line2, #e3e8f1);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.sp-city-pop .sp-pop-search-ico {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  flex-shrink: 0;
  margin: 0;
}
.sp-city-pop .sp-pop-search .form-control {
  border: none !important;
  background: transparent;
  box-shadow: none !important;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--sp-ink, #0f1923);
}

/* section title */
.sp-city-pop .sp-pop-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sp-faint, #aab0ba);
  margin: 4px 2px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-city-pop .sp-pop-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sp-line, #eef1f7);
}

/* recent / popular chips */
.sp-city-pop .sp-recent-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sp-city-pop .sp-recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sp-bg, #f4f6fb);
  border: 1px solid var(--sp-line2, #e3e8f1);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-navy, #03356b);
}
.sp-city-pop .sp-recent-chip img { width: 14px; height: 14px; margin: 0; }
.sp-city-pop .sp-recent-chip:hover {
  background: var(--sp-navy, #03356b);
  color: #fff;
  border-color: var(--sp-navy, #03356b);
}
.sp-city-pop .sp-recent-chip:hover img { filter: brightness(0) invert(1); }
.sp-city-pop .sp-recent-chip.sel {
  background: linear-gradient(135deg, rgba(246, 147, 28, 0.12), transparent);
  border-color: var(--sp-orange, #f6931c);
  color: var(--sp-orange2, #e07a10);
}

/* all-cities grid */
.sp-city-pop .sp-city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}
.sp-city-pop .sp-city-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  text-align: left;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1.5px solid transparent;
  background: var(--sp-bg, #f4f6fb);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.sp-city-pop .sp-city-opt:hover {
  background: #fff;
  border-color: var(--sp-navy, #03356b);
}
.sp-city-pop .sp-city-opt.sel {
  background: linear-gradient(135deg, rgba(246, 147, 28, 0.1), transparent);
  border-color: var(--sp-orange, #f6931c);
}
.sp-city-pop .sp-city-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef1f7, #dde3ed);
}
.sp-city-pop .sp-city-ico img { width: 15px; height: auto; margin: 0; }
.sp-city-pop .sp-city-meta { display: flex; flex-direction: column; min-width: 0; }
.sp-city-pop .sp-city-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-navy, #03356b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================================
   AREA / WORKSPACE POPOVER (HomeLocationSelector)
   Scoped by `.sp-sug-pop`.
   ============================================================= */
.sp-sug-pop .home-location-popular-heading,
.sp-sug-pop .listing-locality-heading {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sp-faint, #aab0ba) !important;
  background: transparent !important;
  padding: 4px 12px !important;
  margin: 0 !important;
}
.sp-sug-pop .home-location-divider { margin: 6px 0 !important; }
.sp-sug-pop .sp-sug-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-radius: 12px !important;
  padding: 10px 12px;
}
.sp-sug-pop .sp-sug-item:hover { background: var(--sp-bg, #f4f6fb); }
.sp-sug-pop .sp-sug-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-sug-pop .sp-sug-ico.ws {
  background: linear-gradient(135deg, var(--sp-navy, #03356b), var(--sp-navy2, #0a4f9e));
}
.sp-sug-pop .sp-sug-ico.area {
  background: linear-gradient(135deg, var(--sp-orange, #f6931c), var(--sp-orange2, #e07a10));
}
.sp-sug-pop .sp-sug-ico img {
  width: 18px;
  height: 18px;
  margin: 0;
  filter: brightness(0) invert(1);
}
.sp-sug-pop .sp-sug-tx {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.sp-sug-pop .sp-sug-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--sp-navy, #03356b);
}
.sp-sug-pop .sp-sug-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--sp-muted, #5a6477);
}
.sp-sug-pop .sp-sug-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--sp-navy, #03356b);
  background: var(--sp-line, #eef1f7);
  padding: 3px 9px;
  border-radius: 100px;
  flex-shrink: 0;
}
/* selected-locality chips */
.sp-sug-pop .locality-chip {
  background: var(--sp-navy, #03356b) !important;
  color: #fff !important;
  font-weight: 600;
}
.sp-sug-pop .locality-chip .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
