/* ============================================
   SHARED COMPONENTS: Top Bar, Header, Nav, Mega Menus, Footer
   Single source of truth for all universal elements
   ============================================ */

html, body { overflow-x: clip; max-width: 100%; }

/* ============ TOP BAR ============ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  height: 44px;
  overflow: hidden;
}
.top-bar__container {
  max-width: none;
  margin: 0;
  padding: 0 60px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.top-bar__left { display: flex; gap: 28px; align-items: center; }
.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}
.top-bar__item:hover { color: var(--white); }
.top-bar__item svg { color: rgba(255,255,255,0.7); }
.top-bar__hours {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.top-bar__right { display: flex; gap: 20px; align-items: center; }
.top-bar__land-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.top-bar__land-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}
.top-bar__land-btn svg:last-child {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.top-bar__land-btn:hover svg:last-child {
  transform: translateX(4px);
}
.top-bar__social {
  display: flex;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.top-bar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.top-bar__social a:hover { color: var(--gold); }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s;
}
.header .container {
  max-width: none;
  margin: 0;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 120px;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.header__logo {
  display: flex;
  align-items: center;
}
.header__logo img {
  height: 100px;
  width: auto;
  display: block;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shrunk state — triggered by .header--solid class on scroll */
.header--solid .container { height: 80px; }
.header--solid .header__logo img { height: 60px; }

.header__nav { display: flex; gap: 36px; align-items: stretch; align-self: stretch; }
.header__nav > a,
.header__nav > .nav-item > a {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  transition: color 0.3s;
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.header__nav > a:hover,
.header__nav > .nav-item > a:hover { color: var(--primary); }
.header__nav > a::after,
.header__nav > .nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 5px;
  background: var(--gold);
  transition: width 0.3s;
}
.header__nav > a:hover::after,
.header__nav > .nav-item:hover > a::after,
.header__nav > .nav-item.open > a::after,
.header__nav > a.active::after,
.header__nav > .nav-item.active > a::after { width: 100%; }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__search-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}
.header__search-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}
.header__search-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* Search Panel */
.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}
.search-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-panel__inner {
  max-width: none;
  margin: 0;
  padding: 40px 60px 48px;
}
.search-panel__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.search-panel__icon {
  color: var(--primary);
  margin-right: 16px;
  flex-shrink: 0;
}
.search-panel__input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: var(--dark);
  outline: none;
  padding: 8px 0;
}
.search-panel__input-wrap input::placeholder { color: #aaa; }
.search-panel__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--off-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.search-panel__close:hover {
  background: var(--primary);
  color: var(--white);
}
.search-panel__empty {
  padding: 40px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  font-style: italic;
}
.search-panel__group { margin-bottom: 32px; }
.search-panel__group:last-child { margin-bottom: 0; }
.search-panel__group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 14px;
  padding-left: 32px;
  position: relative;
}
.search-panel__group-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--primary);
}
.search-panel__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 8px;
}
.search-panel__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.search-panel__item:hover {
  background: var(--off-white);
  transform: translateX(4px);
}
.search-panel__item-img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--off-white);
}
.search-panel__item-img img { width: 100%; height: 100%; object-fit: cover; }
.search-panel__item-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.search-panel__item-info { min-width: 0; flex: 1; }
.search-panel__item-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-panel__item-subtitle {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  padding: 16px 36px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--white);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.header__cta .btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ============ NAV ITEMS + MEGA MENUS ============ */
.nav-item { position: static; display: flex; align-items: stretch; }
.nav-item > a {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav-item__chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.nav-item.open .nav-item__chevron { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  visibility: hidden;
  pointer-events: none;
  z-index: 999;
  clip-path: inset(100% 0 0 0);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.1)) drop-shadow(0 4px 12px rgba(0,0,0,0.04));
  transition: clip-path 0.65s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0.85s;
}
/* Reveal wrapper spans full width of mega menu */
.mega-menu__reveal {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
/* Layer 1: light blue panel sweeps up through */
.mega-menu__reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #04A4CC;
  clip-path: inset(100% 0 0 0);
}
/* Layer 2: primary blue panel sweeps up right behind */
.mega-menu__reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  clip-path: inset(100% 0 0 0);
}
.nav-item.open .mega-menu__reveal::before {
  animation: mega-sweep-up 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.nav-item.open .mega-menu__reveal::after {
  animation: mega-sweep-up 1s cubic-bezier(0.76, 0, 0.24, 1) 0.12s forwards;
}
@keyframes mega-sweep-up {
  0%   { clip-path: inset(100% 0 0 0); }
  45%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0); }
}
/* Layer 3 (front): white content panel reveals up last */
.mega-menu__inner {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 40px;
  background: #fff;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.65s cubic-bezier(0.76, 0, 0.24, 1) 0.2s;
}
.nav-item.open .mega-menu {
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.65s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0s;
}
.nav-item.open .mega-menu__inner {
  clip-path: inset(0 0 0 0);
}
/* Top CTA bar that links to the parent page */
.mega-menu__top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: var(--white);
  padding: 18px 32px;
  border-radius: 6px;
  margin-bottom: 2px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  grid-column: 1 / -1;
}
.mega-menu__top-bar:hover {
  background: var(--primary-dark);
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.mega-menu__top-bar svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.mega-menu__top-bar:hover svg { transform: translateX(6px); }

.mega-menu--small .mega-menu__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}
.mega-menu__main .mega-menu__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary);
  margin-bottom: 12px;
  padding-left: 32px;
  position: relative;
}
.mega-menu__main .mega-menu__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--primary);
}
.mega-menu__heading {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 16px;
}
.mega-menu__heading em { font-style: italic; font-weight: 400; }
.mega-menu__text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 340px;
}
.mega-menu__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: gap 0.3s;
  text-decoration: none;
}
.mega-menu__cta:hover { gap: 12px; color: var(--accent); }

.mega-menu__side {
  display: grid;
  gap: 16px;
  align-self: center;
}
.mega-menu__stat {
  padding: 20px 24px;
  background: var(--off-white);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.mega-menu__stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.mega-menu__stat-label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.mega-menu__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: center;
}
.mega-menu__links--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-self: center;
  border: 2px solid var(--primary);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.mega-menu__links--grid .mega-menu__link-item {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  border-radius: 0;
  border-right: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
  min-height: 140px;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
  background: transparent;
}
.mega-menu__links--grid .mega-menu__link-item:nth-child(2n) { border-right: none; }
.mega-menu__links--grid .mega-menu__link-item:nth-last-child(-n+2) { border-bottom: none; }
.mega-menu__links--grid .mega-menu__link-item > * {
  position: relative;
  z-index: 2;
}
.mega-menu__links--grid .mega-menu__link-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
}

.mega-menu__links--grid .mega-menu__link-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hover-bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.mega-menu__links--grid .mega-menu__link-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21,40,73,0.9), rgba(50,103,173,0.85));
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.mega-menu__links--grid .mega-menu__link-item:hover {
  background: transparent;
  transform: none;
}
.mega-menu__links--grid .mega-menu__link-item:hover::before {
  opacity: 1;
  transform: scale(1);
}
.mega-menu__links--grid .mega-menu__link-item:hover::after {
  opacity: 1;
}
.mega-menu__links--grid .mega-menu__link-item:hover svg {
  color: var(--gold);
}
.mega-menu__links--grid .mega-menu__link-item:hover .mega-menu__link-title {
  color: var(--white);
}
.mega-menu__links--grid .mega-menu__link-item:hover .mega-menu__link-desc {
  color: rgba(255,255,255,0.8);
}
.mega-menu__links--grid .mega-menu__link-title,
.mega-menu__links--grid .mega-menu__link-desc {
  transition: color 0.4s;
}
.mega-menu__link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  transition: all 0.3s;
  color: var(--text);
  text-decoration: none;
}
.mega-menu__link-item svg { color: var(--accent); flex-shrink: 0; }
.mega-menu__link-item:hover {
  background: var(--off-white);
  transform: translateX(4px);
}
.mega-menu__link-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}
.mega-menu__link-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.mega-menu__featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-self: center;
}
.mega-menu__featured-item {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.mega-menu__featured-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: transparent;
}
.mega-menu__featured-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mega-menu__featured-item:hover img { transform: scale(1.06); }
.mega-menu__featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--dark);
  color: var(--white);
  z-index: 2;
}
.mega-menu__featured-info {
  padding: 18px 20px 20px;
}
.mega-menu__featured-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.mega-menu__featured-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mega-menu__featured-meta {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-light);
}
.mega-menu__featured-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mega-menu--large .mega-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 25px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.mega-menu__communities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mega-menu__community {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.mega-menu__community img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mega-menu__community:hover img { transform: scale(1.08); }
.mega-menu__community::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.3) 100%);
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mega-menu__community:hover::after {
  background: linear-gradient(0deg, rgba(50,103,173,0.95) 0%, rgba(50,103,173,0.55) 40%, rgba(50,103,173,0.35) 100%);
}
.mega-menu__community-name {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  z-index: 2;
}

/* ============ MOBILE MENU ============ */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  cursor: pointer;
  z-index: 1001;
  transition: background 0.3s;
}
.mobile-toggle:hover { background: var(--primary-dark); }
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: all 0.3s;
}
.mobile-toggle span::before,
.mobile-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.mobile-toggle span::before { top: -6px; }
.mobile-toggle span::after { top: 6px; }
.mobile-toggle.active { background: transparent; }
.mobile-toggle.active span { background: transparent; }
.mobile-toggle.active span::before,
.mobile-toggle.active span::after { background: var(--white); }
.mobile-toggle.active span::before { top: 0; transform: rotate(45deg); }
.mobile-toggle.active span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #152849;
  z-index: 999;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 130px 0 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  color: var(--white);
  background: transparent;
  padding: 18px 32px;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  text-decoration: none;
  text-align: left;
  display: block;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.mobile-nav a:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a:hover,
.mobile-nav a:focus,
.mobile-nav a:active,
.mobile-nav a.is-active,
.mobile-nav a.is-pressed {
  background: #1a3a6b !important;
  color: var(--gold) !important;
  padding-left: 40px;
}

/* ============ NEWSLETTER CTA ============ */
.newsletter-cta {
  background: var(--primary);
  color: var(--white);
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
}
.newsletter-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #04A4CC, var(--primary-dark), #04A4CC, transparent);
}
.newsletter-cta__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.newsletter-cta__text { flex: 1; min-width: 0; }
.newsletter-cta__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 10px;
}
.newsletter-cta__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin: 0;
}
.newsletter-cta__title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}
.newsletter-cta__form {
  display: flex;
  gap: 0;
  flex-shrink: 0;
  min-width: 420px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 6px;
  transition: border-color 0.3s;
}
.newsletter-cta__form:focus-within {
  border-color: var(--gold);
}
.newsletter-cta__form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  min-width: 0;
}
.newsletter-cta__form input::placeholder {
  color: rgba(255,255,255,0.55);
}
.newsletter-cta__form button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}
.newsletter-cta__form button:hover {
  transform: translateX(2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.newsletter-cta__form button svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.newsletter-cta__form button:hover svg {
  transform: translateX(4px);
}
@media (max-width: 900px) {
  .newsletter-cta { padding: 40px 24px; }
  .newsletter-cta__container { flex-direction: column; align-items: stretch; gap: 28px; }
  .newsletter-cta__form { min-width: 0; width: 100%; }
}

/* ============ FOOTER ============ */
.footer {
  background: #152849;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}
.footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.footer__brand { max-width: 300px; }
.footer__logo {
  height: 120px;
  margin-bottom: 20px;
  display: block;
}
.footer__desc { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.footer__heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  text-decoration: none;
}
.footer__links a:hover { color: var(--gold); }
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.footer__contact-item svg { flex-shrink: 0; color: var(--accent); }
.footer__contact-item a { color: rgba(255,255,255,0.7); transition: color 0.2s; text-decoration: none; }
.footer__contact-item a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 12px; margin-top: 24px; }
.footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer__social a:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(249,160,34,0.15);
}
.footer__bottom {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
}
.footer__bottom a { color: rgba(255,255,255,0.4); transition: color 0.2s; text-decoration: none; }
.footer__bottom a:hover { color: var(--gold); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .header__nav { display: none; }
  .mobile-toggle { display: flex; }
  .nav-item .mega-menu { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .header .container { padding: 0 32px; }
  .top-bar__container { padding: 0 32px; }
  /* Hide bulkier top bar items on tablet */
  .top-bar__hours,
  .top-bar__land-btn { display: none; }
}
@media (max-width: 900px) {
  /* Top bar stays visible but slimmer */
  .top-bar { font-size: 12px; height: 38px; }
  .top-bar__container { padding: 0 20px; gap: 16px; }
  .top-bar__left { gap: 18px; }
  .top-bar__left .top-bar__item:first-child { display: none; } /* hide address on mobile */
  .top-bar__right { gap: 14px; }
  .top-bar__social { padding-left: 16px; }
  /* Header shifts down to sit below the shorter top bar */
  .header { top: 38px; }
  .header .container {
    height: 72px;
    padding: 0 20px;
    justify-content: flex-start;
    gap: 10px;
  }
  .header__logo { margin-right: auto; }
  .header--solid .container { height: 62px; }
  .header__logo img { height: 78px; }
  .header--solid .header__logo img { height: 54px; }
  /* Icon-only circular Contact button on mobile */
  .header__cta .btn {
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    gap: 0;
    font-size: 0;
    line-height: 0;
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
  }
  .header__cta .btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: none;
  }
  .header__cta .btn svg {
    width: 18px;
    height: 18px;
  }
  .header__cta { gap: 10px; }
  /* Smaller search button to match */
  .header__search-btn { width: 42px; height: 42px; }
  .mobile-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }
  /* Larger mobile nav typography */
  .mobile-nav a { font-size: 28px; padding: 20px 32px; }
  .mobile-nav a:hover,
  .mobile-nav a:active,
  .mobile-nav a.is-active { padding-left: 40px; }
  /* Adjust sticky offsets for shorter top bar */
  .mega-menu { top: 100%; }
  .breadcrumb { margin-top: 110px; padding: 14px 0; }
  .breadcrumb .container {
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    line-height: 1.4;
  }
  .breadcrumb__current {
    word-break: break-word;
    flex-basis: 100%;
  }
  .hero { padding-top: 110px; }
  .page-hero { padding-top: 110px; min-height: calc(400px + 110px); }
  .community-hero { padding-top: 110px; min-height: calc(500px + 110px); }
  /* Search panel — fit narrow viewports */
  .search-panel__inner { padding: 24px 20px 32px; }
  .search-panel__input-wrap { padding-bottom: 16px; margin-bottom: 20px; }
  .search-panel__input-wrap input { font-size: 18px; }
  .search-panel__icon { margin-right: 10px; }
  .search-panel__close { width: 36px; height: 36px; }
  .search-panel__items { grid-template-columns: 1fr; gap: 4px; }
  .search-panel__item { padding: 10px 12px; gap: 12px; }
  .search-panel__item-img { width: 48px; height: 48px; }
  .search-panel__group { margin-bottom: 24px; }
  .search-panel__group-label { padding-left: 24px; font-size: 10px; }
  .search-panel__group-label::before { width: 16px; }
}
@media (max-width: 640px) {
  /* Very small screens — further compress top bar */
  .top-bar__left .top-bar__hours { display: none; }
  .top-bar__left .top-bar__item:nth-child(3) { display: none; } /* hide email */
  .top-bar__social { display: none; }
  .top-bar__right { gap: 0; }
  .header .container { padding: 0 16px; }
  .header__logo img { height: 68px; }
  .header--solid .header__logo img { height: 48px; }
  /* Tighten icon spacing */
  .header__cta { gap: 6px; }
  .header__search-btn,
  .header__cta .btn,
  .mobile-toggle {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer .container { padding: 0 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============ CTA BANNER (with blue duotone image bg) ============ */
.cta-banner {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background: #152849;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/uploads/2020/03/DSC0380-copy-2048x1360.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.1) brightness(0.5);
  z-index: -2;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50,103,173,0.75), rgba(21,40,73,0.95));
  mix-blend-mode: multiply;
  z-index: -1;
}
.cta-banner .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.cta-banner__title em {
  font-style: italic;
  font-weight: 400;
}
.cta-banner__text {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* ============ SCROLL ANIMATIONS (re-triggering) ============ */
/* All reveal classes use IntersectionObserver in components.js that toggles
   the .is-visible class on/off so animations replay when scrolling back up. */

/* Base reveal — fade + rise */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Fade only */
.reveal-fade {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity;
}
.reveal-fade.is-visible { opacity: 1; }

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* Scale up */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* Blur to clear */
.reveal-blur {
  opacity: 0;
  filter: blur(20px);
  transform: translateY(30px);
  transition: opacity 3s cubic-bezier(0.2, 0.8, 0.2, 1), filter 3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 3s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, filter, transform;
}
.reveal-blur.is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }

/* Clip-path mask reveal — from bottom */
.reveal-mask {
  clip-path: inset(0 0 100% 0);
  transform: translateY(40px);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: clip-path, transform;
}
.reveal-mask.is-visible { clip-path: inset(0 0 0 0); transform: translateY(0); }

/* Clip-path mask — from left (image/container slides in) */
.reveal-mask-left {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: clip-path;
}
.reveal-mask-left.is-visible { clip-path: inset(0 0 0 0); }

/* Clip-path mask — from right */
.reveal-mask-right {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: clip-path;
}
.reveal-mask-right.is-visible { clip-path: inset(0 0 0 0); }

/* Zoom reveal — starts large and scales down */
.reveal-zoom {
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-zoom.is-visible { opacity: 1; transform: scale(1); }

/* Stagger — each child animates in with delay based on index */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.56s; }

/* Image mask — overlay wipes away from the image */
.reveal-image {
  position: relative;
  overflow: hidden;
}
.reveal-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: translateX(0);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 2;
  pointer-events: none;
}
.reveal-image.is-visible::after { transform: translateX(101%); }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade, .reveal-left, .reveal-right, .reveal-scale,
  .reveal-blur, .reveal-mask, .reveal-mask-left, .reveal-mask-right,
  .reveal-zoom, .reveal-stagger > *, .reveal-image::after {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ============================================
   MDLands-style PROFILE MENU
   ============================================ */
.profile-menu { position: relative; }
.profile-menu__trigger {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border, #e3e2df);
  background: transparent; color: var(--text, #1f2b4a);
  cursor: pointer; transition: all .3s cubic-bezier(.16,1,.3,1); padding: 0;
}
.profile-menu__trigger:hover { border-color: var(--primary, #152849); color: var(--primary, #152849); }
.profile-menu__trigger.has-user { border-color: var(--primary, #152849); background: var(--primary, #152849); color: #fff; }
.profile-menu__dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 280px;
  background: #fff; border: 1px solid var(--border, #e3e2df); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  padding: 8px 0; z-index: 1000;
}
.profile-menu__dropdown::before {
  content:''; position:absolute; top:-6px; right:14px; width:12px; height:12px;
  background:#fff; border:1px solid var(--border, #e3e2df); border-bottom:none; border-right:none;
  transform:rotate(45deg);
}
.profile-menu__user { padding:16px 18px; border-bottom:1px solid var(--border, #e3e2df); margin-bottom:4px; }
.profile-menu__user-name { font-family:var(--font-display); font-size:15px; font-weight:700; color:var(--dark, #0b1224); }
.profile-menu__user-email { font-size:12px; color:var(--text-light, #6b7280); margin-top:2px; }
.profile-menu__item {
  display:flex; align-items:center; gap:10px; padding:10px 18px;
  font-family:var(--font-body); font-size:13px; font-weight:500;
  color:var(--text, #1f2b4a); cursor:pointer;
  transition:background .15s; text-decoration:none;
  border:none; background:none; width:100%; text-align:left;
}
.profile-menu__item:hover { background:rgba(21,40,73,.05); color:var(--primary, #152849); }
.profile-menu__item svg { color:var(--text-light, #6b7280); flex-shrink:0; }
.profile-menu__item:hover svg { color:var(--primary, #152849); }
.profile-menu__badge {
  margin-left:auto; background:var(--primary, #152849); color:#fff;
  font-size:10px; font-weight:700; padding:2px 7px; border-radius:10px;
  min-width:18px; text-align:center;
}
.profile-menu__divider { height:1px; background:var(--border, #e3e2df); margin:4px 0; }

/* ============================================
   PROFILE MODAL (auth / edit)
   ============================================ */
.profile-modal {
  position:fixed; inset:0; z-index:10000;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.5); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  opacity:0; pointer-events:none; transition:opacity .3s;
}
.profile-modal.is-open { opacity:1; pointer-events:auto; }
.profile-modal__card {
  background:#fff; border-radius:16px; padding:40px;
  max-width:440px; width:90%;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
  transform:translateY(20px); transition:transform .3s;
}
.profile-modal.is-open .profile-modal__card { transform:translateY(0); }
.profile-modal__title { font-family:var(--font-display); font-size:26px; font-weight:700; color:var(--dark, #0b1224); margin-bottom:6px; }
.profile-modal__subtitle { font-size:14px; color:var(--text-light, #6b7280); margin-bottom:24px; line-height:1.5; }
.profile-modal__field { margin-bottom:16px; }
.profile-modal__label { display:block; font-family:var(--font-display); font-size:11px; font-weight:700; font-style:italic; text-transform:uppercase; letter-spacing:1px; color:var(--text-light, #6b7280); margin-bottom:6px; }
.profile-modal__input {
  width:100%; padding:12px 16px; font-family:var(--font-body); font-size:14px;
  border:1.5px solid var(--border, #e3e2df); border-radius:10px;
  background:#fff; color:var(--text, #1f2b4a); transition:border-color .2s;
}
.profile-modal__input:focus { outline:none; border-color:var(--primary, #152849); box-shadow:0 0 0 3px rgba(21,40,73,.1); }
.profile-modal__actions { display:flex; gap:12px; margin-top:24px; }
.profile-modal__actions .btn { flex:1; justify-content:center; }
.profile-modal__switch { text-align:center; font-size:13px; color:var(--text-light, #6b7280); margin-top:16px; }
.profile-modal__switch button { background:none; border:none; color:var(--primary, #152849); font-weight:600; cursor:pointer; font-size:13px; font-family:var(--font-body); text-decoration:underline; }

/* ============================================
   PROPERTY MATCH WIZARD
   ============================================ */
.wizard {
  position:fixed; inset:0; z-index:10000;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.55); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  opacity:0; pointer-events:none; transition:opacity .35s;
  padding:24px;
}
.wizard.is-open { opacity:1; pointer-events:auto; }
.wizard__card {
  background:#fff; border-radius:20px; padding:40px;
  max-width:640px; width:100%; max-height:92vh; overflow-y:auto;
  box-shadow:0 30px 80px rgba(0,0,0,.25);
  transform:translateY(20px); transition:transform .35s;
}
.wizard.is-open .wizard__card { transform:translateY(0); }
.wizard__header { margin-bottom:20px; }
.wizard__step-label { font-family:var(--font-display); font-size:11px; font-weight:700; font-style:italic; text-transform:uppercase; letter-spacing:1.6px; color:var(--accent, #b8895a); margin-bottom:8px; }
.wizard__title { font-family:var(--font-display); font-size:28px; font-weight:800; font-style:italic; color:var(--dark, #0b1224); line-height:1.15; margin-bottom:6px; }
.wizard__subtitle { font-size:14px; color:var(--text-light, #6b7280); }
.wizard__progress { display:flex; gap:6px; margin-bottom:24px; }
.wizard__progress-dot { flex:1; height:4px; background:var(--border, #e3e2df); border-radius:2px; transition:background .3s; }
.wizard__progress-dot.is-done { background:var(--primary, #152849); }
.wizard__progress-dot.is-current { background:var(--accent, #b8895a); }
.wizard__body { margin-bottom:24px; }
.wizard__options { display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
.wizard__option {
  display:flex; align-items:center; gap:12px;
  padding:14px 16px; border:1.5px solid var(--border, #e3e2df); border-radius:10px;
  background:#fff; cursor:pointer;
  font-family:var(--font-body); font-size:13.5px; font-weight:500; color:var(--text, #1f2b4a);
  transition:all .2s;
}
.wizard__option:hover { border-color:var(--primary, #152849); background:rgba(21,40,73,.04); }
.wizard__option.is-selected { border-color:var(--primary, #152849); background:rgba(21,40,73,.08); color:var(--primary, #152849); font-weight:600; }
.wizard__option-check {
  width:22px; height:22px; border-radius:50%; border:1.5px solid var(--border, #e3e2df);
  display:flex; align-items:center; justify-content:center; color:#fff; background:#fff; flex-shrink:0;
  transition:all .2s;
}
.wizard__option.is-selected .wizard__option-check { background:var(--primary, #152849); border-color:var(--primary, #152849); }
.wizard__option-check svg { opacity:0; transition:opacity .2s; }
.wizard__option.is-selected .wizard__option-check svg { opacity:1; }
.wizard__footer { display:flex; justify-content:space-between; gap:12px; padding-top:16px; border-top:1px solid var(--border, #e3e2df); }
.wizard__footer .btn { min-width:120px; justify-content:center; }
@media(max-width:640px){ .wizard__card{ padding:28px 24px; } .wizard__title{ font-size:22px; } .wizard__options{ grid-template-columns:1fr; } }

/* ============================================
   PROP CARD SAVE BUTTON (heart icon)
   ============================================ */
.prop-card__image { position:relative; }
.prop-card__save {
  position:absolute; top:14px; right:14px;
  width:38px; height:38px; border-radius:50%;
  background:rgba(0,0,0,.4); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  border:none; color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  z-index:4; transition:all .2s; padding:0;
}
.prop-card__save:hover { background:rgba(0,0,0,.6); transform:scale(1.1); }
.prop-card__save.is-saved { background:var(--accent, #b8895a); color:#fff; }
.prop-card__save.is-saved svg { fill:currentColor; }
/* When both __type (top-right) and __save are in the same card, nudge type left */
.prop-card__image:has(.prop-card__save) .prop-card__type { right:62px; }

/* ============================================
   FILTER BAR (MDLands style adapted)
   ============================================ */
.filter-bar{ padding:18px 0; background:#fff; border-bottom:1px solid var(--border, #e3e2df); position:sticky; top:0; z-index:50; }
.filter-bar__row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.filter-bar .container{ display:flex; flex-direction:column; gap:10px; }
.filter-bar__search-group{ flex:1 1 260px; min-width:200px; position:relative; }
.filter-bar__search-wrap{ display:flex; align-items:center; position:relative; }
input.filter-bar__search{
  font-family:var(--font-body)!important; font-size:14px!important; font-weight:400!important;
  padding:0 44px 0 16px!important; border:1px solid var(--border, #e3e2df)!important; border-radius:10px!important;
  background:#fff!important; color:var(--text, #1f2b4a)!important;
  height:46px!important; width:100%!important; transition:border-color .2s!important; box-shadow:none!important;
}
input.filter-bar__search:focus{ outline:none!important; border-color:var(--primary, #152849)!important; }
.filter-bar__search-btn{ position:absolute; right:6px; display:flex; align-items:center; justify-content:center; width:32px; height:32px; background:none; border:none; cursor:pointer; color:var(--text-light, #6b7280); transition:color .2s; padding:0; }
.filter-bar__search-btn:hover{ color:var(--primary, #152849); }
.filter-bar__pill{
  display:inline-flex; align-items:center; gap:6px; height:46px; padding:0 16px;
  border:1px solid var(--border, #e3e2df); border-radius:10px; background:#fff;
  font-family:var(--font-body); font-size:13px; font-weight:500; color:var(--text, #1f2b4a);
  cursor:pointer; -webkit-appearance:none; appearance:none;
  transition:border-color .2s, box-shadow .2s; white-space:nowrap; flex-shrink:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:10px; padding-right:34px;
}
.filter-bar__pill:hover{ border-color:var(--primary, #152849); }
.filter-bar__pill:focus{ outline:none; border-color:var(--primary, #152849); box-shadow:0 0 0 2px rgba(21,40,73,.1); }
.filter-bar__more{
  display:inline-flex; align-items:center; gap:8px; height:46px; padding:0 20px;
  border:1px solid var(--border, #e3e2df); border-radius:10px; background:#fff;
  font-family:var(--font-body); font-size:13px; font-weight:600; color:var(--text, #1f2b4a);
  cursor:pointer; transition:all .2s; white-space:nowrap; flex-shrink:0;
}
.filter-bar__more:hover{ border-color:var(--primary, #152849); color:var(--primary, #152849); }
.filter-bar__more.is-open{ background:var(--primary, #152849); color:#fff; border-color:var(--primary, #152849); }
.filter-bar__toggle-chevron{ transition:transform .3s; }
.filter-bar__more.is-open .filter-bar__toggle-chevron{ transform:rotate(180deg); }
.filter-bar__reset{
  height:46px; padding:0 16px; border-radius:10px;
  border:1px dashed var(--border, #e3e2df); background:transparent; color:var(--text-light, #6b7280);
  font-family:var(--font-body); font-size:12.5px; font-weight:600; cursor:pointer; transition:all .2s;
}
.filter-bar__reset:hover{ border-color:#c0392b; color:#c0392b; }
.filter-bar__count{ margin-left:auto; font-family:var(--font-display); font-size:12px; font-weight:700; font-style:italic; text-transform:uppercase; letter-spacing:1.5px; color:var(--primary, #152849); }
.filter-bar__count strong{ font-size:18px; font-weight:800; letter-spacing:0; color:var(--accent, #b8895a); }

.filter-bar__advanced{ overflow:hidden; max-height:0; opacity:0; transition:max-height .55s cubic-bezier(.16,1,.3,1), opacity .35s, padding .3s; }
.filter-bar__advanced.is-open{ max-height:1200px; opacity:1; padding:14px 0 4px; }
.filter-bar__adv-inner{ display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:14px 20px; padding-top:16px; border-top:1px dashed var(--border, #e3e2df); }
.filter-bar__adv-group{ display:flex; flex-direction:column; gap:6px; }
.filter-bar__adv-label{ font-family:var(--font-display); font-size:10px; font-weight:700; font-style:italic; text-transform:uppercase; letter-spacing:1.4px; color:var(--text-light, #6b7280); }
.filter-bar__advanced input[type="text"],
.filter-bar__advanced select{
  height:42px; padding:0 12px; font-family:var(--font-body); font-size:13px;
  border:1px solid var(--border, #e3e2df); border-radius:8px; background:#fff;
  color:var(--text, #1f2b4a); transition:border-color .2s;
}
.filter-bar__advanced input[type="text"]:focus,
.filter-bar__advanced select:focus{ outline:none; border-color:var(--primary, #152849); box-shadow:0 0 0 2px rgba(21,40,73,.1); }
.filter-bar__adv-checks{ grid-column:1/-1; display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:6px 12px; margin-top:4px; }
.filter-bar__adv-check{ display:flex; align-items:center; gap:8px; padding:6px 10px; border-radius:8px; border:1.5px solid transparent; font-size:13px; cursor:pointer; transition:all .2s; }
.filter-bar__adv-check:hover{ background:rgba(21,40,73,.04); border-color:var(--border, #e3e2df); }
.filter-bar__adv-check:has(input:checked){ background:rgba(21,40,73,.06); border-color:var(--primary, #152849); color:var(--primary, #152849); font-weight:600; }
.filter-bar__adv-check input[type="checkbox"]{ width:16px; height:16px; accent-color:var(--primary, #152849); margin:0; }
@media(max-width:720px){ .filter-bar__row{ gap:8px; } .filter-bar__count{ width:100%; margin-left:0; } }

/* Autocomplete dropdown */
.ac-panel{ position:absolute; top:calc(100% + 6px); left:0; right:0; max-height:320px; overflow-y:auto; background:#fff; border:1px solid var(--border, #e3e2df); border-radius:10px; box-shadow:0 12px 40px rgba(0,0,0,.12); z-index:60; display:none; }
.ac-panel.is-open{ display:block; }
.ac-group-label{ padding:10px 14px 4px; font-family:var(--font-display); font-size:10px; font-weight:700; font-style:italic; text-transform:uppercase; letter-spacing:1.4px; color:var(--text-light, #6b7280); }
.ac-item{ display:flex; align-items:center; gap:10px; padding:8px 14px; cursor:pointer; transition:background .15s; font-size:13px; color:var(--text, #1f2b4a); }
.ac-item:hover, .ac-item.is-active{ background:rgba(21,40,73,.06); color:var(--primary, #152849); }
.ac-item svg{ color:var(--text-light, #6b7280); flex-shrink:0; }

/* ============================================
   LISTINGS SPLIT LAYOUT (list + map)
   ============================================ */
.listings-split{ display:grid; grid-template-columns:1.15fr .85fr; gap:0; min-height:calc(100vh - 120px); }
.listings-split__list{ padding:28px 40px; overflow-y:auto; }
.listings-split__map-wrap{ position:sticky; top:82px; align-self:start; height:calc(100vh - 82px); }
#listing-map{ width:100%; height:100%; }
#listing-map .maplibregl-popup-content{ padding:0; border-radius:10px; overflow:hidden; box-shadow:0 8px 30px rgba(0,0,0,.2); min-width:200px; }
#listing-map .maplibregl-popup-close-button{ font-size:18px; padding:4px 8px; color:#666; z-index:1; }
.map-popup{ font-family:var(--font-body); }
.map-popup img{ width:100%; height:120px; object-fit:cover; display:block; }
.map-popup__body{ padding:10px 12px 12px; }
.map-popup__price{ font-family:var(--font-display); font-size:15px; font-weight:800; color:var(--primary, #152849); }
.map-popup__addr{ font-size:12px; color:var(--text, #1f2b4a); margin-top:2px; }
.map-popup__meta{ font-size:11px; color:var(--text-light, #6b7280); margin-top:2px; }
.map-marker{ width:38px; height:38px; border-radius:50% 50% 50% 0; background:var(--primary, #152849); transform:rotate(-45deg); border:2px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.3); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:transform .2s; }
.map-marker span{ transform:rotate(45deg); color:#fff; font-family:var(--font-display); font-size:10px; font-weight:800; }
.map-marker:hover{ transform:rotate(-45deg) scale(1.1); }
.map-marker.is-active{ background:var(--accent, #b8895a); }
@media(max-width:1024px){
  .listings-split{ grid-template-columns:1fr; }
  .listings-split__map-wrap{ position:relative; height:50vh; top:auto; }
  .listings-split__list{ padding:24px; }
}

/* ============================================
   RECENTLY VIEWED STRIP
   ============================================ */
.recent{ padding:36px 0 8px; }
.recent .container{ max-width:1360px; margin:0 auto; padding:0 40px; }
.recent__head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:18px; gap:16px; flex-wrap:wrap; }
.recent__label{ font-family:var(--font-display); font-size:11px; font-weight:700; font-style:italic; text-transform:uppercase; letter-spacing:2px; color:var(--accent, #b8895a); margin-bottom:4px; }
.recent__title{ font-family:var(--font-display); font-size:26px; font-weight:800; font-style:italic; color:var(--dark, #0b1224); line-height:1.1; }
.recent__title em{ font-style:italic; font-weight:400; }
.recent__grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.recent__card{ display:flex; background:#fff; border:1px solid var(--border, #e3e2df); border-radius:10px; overflow:hidden; transition:all .3s; text-decoration:none; color:inherit; }
.recent__card:hover{ transform:translateY(-4px); box-shadow:0 16px 40px rgba(0,0,0,.1); border-color:var(--primary, #152849); }
.recent__img{ width:110px; height:92px; flex-shrink:0; }
.recent__img img{ width:100%; height:100%; object-fit:cover; }
.recent__info{ padding:10px 14px; display:flex; flex-direction:column; justify-content:center; min-width:0; }
.recent__price{ font-family:var(--font-display); font-size:16px; font-weight:800; color:var(--primary, #152849); }
.recent__addr{ font-size:12.5px; color:var(--text, #1f2b4a); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.recent__city{ font-size:11px; color:var(--text-light, #6b7280); margin-top:2px; }
@media(max-width:1024px){ .recent__grid{ grid-template-columns:repeat(2, 1fr); } }
@media(max-width:600px){ .recent__grid{ grid-template-columns:1fr; } .recent .container{ padding:0 24px; } }

/* ============================================
   PROPERTY DETAIL MAP + ENVIRONMENTAL WIDGET
   ============================================ */
.detail-map{ width:100%; height:360px; border-radius:12px; overflow:hidden; border:1px solid var(--border, #e3e2df); margin-top:14px; }
.detail-map .maplibregl-popup-content{ padding:8px 12px; font-family:var(--font-body); font-size:13px; }

.env-widget{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:14px; }
.env-card{
  display:block; padding:18px 18px 16px; border:1px solid var(--border, #e3e2df); border-radius:12px;
  background:#fff; text-decoration:none; color:inherit; transition:all .25s;
}
.env-card:hover{ transform:translateY(-3px); box-shadow:0 10px 30px rgba(0,0,0,.08); border-color:var(--primary, #152849); }
.env-card__icon{ width:40px; height:40px; border-radius:8px; background:rgba(21,40,73,.08); color:var(--primary, #152849); display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.env-card__title{ font-family:var(--font-display); font-size:14px; font-weight:800; font-style:italic; color:var(--dark, #0b1224); margin-bottom:4px; }
.env-card__desc{ font-size:12.5px; color:var(--text-light, #6b7280); line-height:1.5; }
.env-card__link{ margin-top:10px; display:inline-flex; align-items:center; gap:6px; font-family:var(--font-display); font-size:11px; font-weight:700; font-style:italic; text-transform:uppercase; letter-spacing:1.5px; color:var(--accent, #b8895a); }

/* ============================================
   GALLERY THUMB STRIP + NAV BUTTONS (enhanced)
   ============================================ */
.gallery__nav{ position:absolute; inset:0; display:flex; justify-content:space-between; align-items:center; padding:0 16px; pointer-events:none; }
.gallery__nav button{
  pointer-events:auto; width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.9); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:transform .2s, background .2s; box-shadow:0 4px 12px rgba(0,0,0,.2);
}
.gallery__nav button:hover{ background:#fff; transform:scale(1.08); }
.gallery__thumbs{ display:flex; gap:8px; margin-top:12px; overflow-x:auto; padding:2px 0 6px; }
.gallery__thumb{ width:110px; height:74px; border-radius:6px; overflow:hidden; border:2px solid transparent; cursor:pointer; flex-shrink:0; transition:all .2s; opacity:.75; background:#f5f4f1; }
.gallery__thumb:hover{ opacity:1; }
.gallery__thumb--active{ border-color:var(--accent, #b8895a); opacity:1; }
.gallery__thumb img{ width:100%; height:100%; object-fit:cover; }
@media(max-width:720px){ .gallery__thumb{ width:84px; height:60px; } }

/* ============================================
   SEARCH PANEL ADDITIONS — group counts, loading, mark
   ============================================ */
.search-panel__group-count {
  display:inline-block; margin-left:8px; padding:1px 8px;
  font-family:var(--font-body); font-size:11px; font-weight:600;
  background:var(--off-white); color:var(--text-light);
  border-radius:999px; vertical-align:middle;
}
.search-panel__loading {
  margin-top:18px; padding:14px 20px; background:var(--off-white);
  border-radius:8px; font-family:var(--font-display); font-size:13px;
  font-style:italic; color:var(--primary); text-align:center;
}
.search-panel__loading span::after{
  content:''; display:inline-block; width:1em; text-align:left;
  animation: pcgDots 1.4s steps(4, end) infinite;
}
@keyframes pcgDots { 0%{content:''} 25%{content:'.'} 50%{content:'..'} 75%{content:'...'} }
.search-panel__item-title mark,
.search-panel__item-subtitle mark {
  background: rgba(249,160,34,.30); color: var(--dark);
  padding:0 2px; border-radius:2px;
}

/* ============================================
   LISTING CARD — grid view (used on listings/index.html + similar)
   ============================================ */
.listing-card {
  display:flex; flex-direction:column;
  background:var(--white); border:1px solid var(--border);
  border-radius:14px; overflow:hidden;
  text-decoration:none; color:inherit;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s, border-color .3s;
  position:relative;
}
.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(11, 18, 36, 0.12);
  border-color: var(--primary);
}
.listing-card__media {
  position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--primary-dark);
}
.listing-card__media img {
  width:100%; height:100%; object-fit:cover;
  transition: transform 1s cubic-bezier(.16,1,.3,1);
}
.listing-card:hover .listing-card__media img { transform: scale(1.06); }
.listing-card__media::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,18,36,.10) 0%, transparent 35%, rgba(11,18,36,.55) 100%);
  pointer-events:none;
}
.listing-card__price {
  position:absolute; left:18px; bottom:18px; z-index:2;
  font-family:var(--font-display); font-size:24px; font-weight:800;
  font-style:italic; color:var(--white); line-height:1;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.listing-card__types {
  position:absolute; top:14px; left:14px; z-index:2;
  display:flex; flex-wrap:wrap; gap:6px;
}
.listing-card__type {
  display:inline-flex; align-items:center;
  padding:5px 10px; border-radius:999px;
  font-family:var(--font-display); font-size:10px; font-weight:800;
  font-style:italic; text-transform:uppercase; letter-spacing:1px;
  color:var(--white); background:var(--primary);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.listing-card__type--single-family { background:#3267AD; }
.listing-card__type--condo { background:#04A4CC; }
.listing-card__type--townhouse { background:#7E57C2; }
.listing-card__type--waterfront { background:#0288d1; }
.listing-card__type--new-construction { background:#43a047; }
.listing-card__type--luxury { background:linear-gradient(135deg,#bfa047,#8a6d2c); }
.listing-card__type--golf { background:#388e3c; }
.listing-card__type--multi-family { background:#5d4037; }
.listing-card__type--mobile { background:#6a737d; }
.listing-card__body {
  padding:20px 22px; display:flex; flex-direction:column; gap:8px; flex:1;
}
.listing-card__title {
  font-family:var(--font-display); font-size:18px; font-weight:800;
  font-style:italic; color:var(--dark); line-height:1.2;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.listing-card__location {
  display:flex; align-items:center; gap:6px;
  font-size:13px; color:var(--text-light);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.listing-card__location svg { color:var(--primary); flex-shrink:0; }
.listing-card__meta {
  display:flex; gap:14px; flex-wrap:wrap;
  margin-top:6px; padding-top:12px;
  border-top:1px dashed var(--border);
}
.listing-card__meta-item {
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:600; color:var(--primary);
}
.listing-card__meta-item svg { color:var(--accent); flex-shrink:0; }
.listing-card__meta-item--number { color:var(--text-light); margin-left:auto; font-weight:500; }
.listing-card__desc {
  font-size:13px; color:var(--text-light); line-height:1.65;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.listing-card__snippet {
  margin-top:6px; padding:10px 14px;
  background:var(--off-white); border-radius:8px;
  font-size:12px; line-height:1.55; color:var(--text-light);
  border-left:3px solid var(--gold);
}
.listing-card__snippet mark {
  background:rgba(249,160,34,.25); color:var(--dark); padding:0 2px;
  border-radius:2px; font-weight:600;
}
/* Save heart on listing card */
.listing-card__save {
  position:absolute; top:14px; right:14px; z-index:3;
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.9); border:none; cursor:pointer;
  color:var(--text); transition:all .2s;
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  box-shadow:0 4px 10px rgba(0,0,0,.15);
}
.listing-card__save:hover { background:#fff; transform:scale(1.08); color:var(--primary); }
.listing-card__save.is-saved {
  background:var(--primary); color:#fff;
}
.listing-card__save.is-saved svg { fill:currentColor; }

/* ============================================
   LISTINGS INDEX (Browse) PAGE
   ============================================ */
body.page-listings { background: var(--white); }
.browse-hero {
  margin-top:0; padding:184px 0 40px;
  background: linear-gradient(180deg, #0b1224 0%, #1c3461 60%, #264d82 100%);
  color:var(--white); position:relative; overflow:hidden;
}
@media (max-width:900px) { .browse-hero { padding:128px 0 32px; } }
.browse-hero::before {
  content:''; position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1.4px, transparent 1.4px);
  background-size: 22px 22px; opacity:.5;
}
.browse-hero__inner {
  position:relative; display:flex; flex-direction:column; gap:18px; align-items:flex-start;
}
.browse-hero__label {
  font-family:var(--font-display); font-size:11px; font-weight:700; font-style:italic;
  letter-spacing:3px; text-transform:uppercase; color:var(--gold);
}
.browse-hero__title {
  font-family:var(--font-display); font-size:clamp(36px,5vw,64px);
  font-weight:600; line-height:1.05;
}
.browse-hero__title em { font-style:italic; font-weight:400; color:var(--gold); }
.browse-hero__text {
  max-width:680px; font-size:16px; color:rgba(255,255,255,.82); line-height:1.7;
}
.browse-hero__count {
  margin-top:6px; font-family:var(--font-display); font-size:13px; font-weight:700;
  font-style:italic; color:var(--accent); text-transform:uppercase; letter-spacing:1.5px;
}
.browse-hero__row {
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px; width:100%;
}
.view-toggle {
  display:flex; background:rgba(11,18,36,.5);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.2); border-radius:10px; overflow:hidden; flex-shrink:0;
}
.view-toggle__btn {
  display:flex; align-items:center; gap:7px; padding:10px 18px;
  font-family:var(--font-display); font-size:11px; font-weight:700; font-style:italic;
  text-transform:uppercase; letter-spacing:1.5px;
  color:rgba(255,255,255,.6); background:none; border:none; cursor:pointer;
  transition:all .25s;
}
.view-toggle__btn:hover { color:rgba(255,255,255,.95); }
.view-toggle__btn.is-active { color:var(--white); background:var(--primary); }
.view-toggle__btn svg { width:16px; height:16px; flex-shrink:0; }

/* Filter bar */
.filter-bar { padding:12px 0; background:var(--white); border-bottom:1px solid var(--border); }
.filter-bar__row { display:flex; gap:8px; align-items:center; }
.filter-bar__search-group { flex:1 1 0%; min-width:200px; position:relative; }
.filter-bar__search-wrap { display:flex; align-items:center; position:relative; }
input.filter-bar__search {
  font-family:var(--font-body) !important; font-size:14px !important; font-weight:400 !important;
  padding:0 44px 0 16px !important; border:1px solid #ddd !important; border-radius:8px !important;
  background:var(--white) !important; color:var(--text) !important; height:44px !important;
  width:100% !important; transition:border-color .2s !important; box-shadow:none !important;
}
input.filter-bar__search:focus { outline:none !important; border-color:var(--primary) !important; }
input.filter-bar__search::placeholder { color:#999 !important; font-style:normal !important; font-weight:400 !important; }
.filter-bar__search-btn {
  position:absolute; right:8px; display:flex; align-items:center; justify-content:center;
  width:28px; height:28px; background:none; border:none; cursor:pointer;
  color:var(--text-light); transition:color .2s; padding:0;
}
.filter-bar__search-btn:hover { color:var(--primary); }
.search-autocomplete {
  position:absolute; top:100%; left:0; right:0; z-index:100;
  background:var(--white); border:1px solid var(--border); border-top:none;
  border-radius:0 0 8px 8px; box-shadow:0 8px 24px rgba(0,0,0,.1);
  max-height:300px; overflow-y:auto;
}
.search-autocomplete__item {
  display:flex; align-items:center; gap:10px; padding:10px 16px; cursor:pointer;
  transition:background .1s; font-family:var(--font-body); font-size:13px; color:var(--text);
}
.search-autocomplete__item:hover, .search-autocomplete__item.is-active { background: rgba(50,103,173,.06); }
.search-autocomplete__icon { color:var(--primary); flex-shrink:0; }
.search-autocomplete__city { font-weight:600; color:var(--dark); }
.search-autocomplete__state { color:var(--text-light); font-size:12px; margin-left:4px; }
.search-autocomplete__item--keyword {
  border-top:1px solid var(--border); color:var(--primary); font-size:12px;
}
.search-autocomplete__item--keyword strong { font-weight:700; color:var(--dark); }

/* Selections bar (active filters) */
.selections-bar { padding:10px 0; background:var(--off-white); border-bottom:1px solid var(--border); }
.selections-bar__inner { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.selections-bar__label {
  font-family:var(--font-display); font-size:10px; font-weight:700; font-style:italic;
  text-transform:uppercase; letter-spacing:1.5px; color:var(--text-light); flex-shrink:0;
}
.selections-bar__tags { display:flex; flex-wrap:wrap; gap:8px; }
.search-tag {
  display:inline-flex; align-items:center; gap:6px;
  height:32px; padding:0 10px 0 14px;
  background:var(--primary); color:var(--white); border-radius:8px;
  font-family:var(--font-body); font-size:12px; font-weight:600; white-space:nowrap;
}
.search-tag__x {
  display:flex; align-items:center; justify-content:center;
  width:20px; height:20px; border-radius:50%;
  background:rgba(255,255,255,.2); border:none; color:var(--white);
  font-size:14px; line-height:1; cursor:pointer; padding:0; transition:background .15s;
}
.search-tag__x:hover { background:rgba(255,255,255,.4); }
.search-tag--keyword { background:var(--gold); }

/* Filter pills */
.filter-bar__pill {
  display:inline-flex; align-items:center; gap:6px;
  height:44px; padding:0 16px;
  border:1px solid #ddd; border-radius:8px;
  background:var(--white); font-family:var(--font-body); font-size:13px; font-weight:500;
  color:var(--text); cursor:pointer;
  -webkit-appearance:none; appearance:none;
  transition:border-color .2s, box-shadow .2s;
  white-space:nowrap; flex-shrink:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:10px;
  padding-right:34px;
}
.filter-bar__pill:hover { border-color:var(--primary); }
.filter-bar__pill:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 2px rgba(50,103,173,.12); }

.filter-bar__more {
  display:inline-flex; align-items:center; gap:6px;
  height:44px; padding:0 18px;
  border:1px solid #ddd; border-radius:8px;
  background:var(--white); font-family:var(--font-body); font-size:13px; font-weight:500;
  color:var(--text); cursor:pointer; transition:all .2s; white-space:nowrap; flex-shrink:0;
}
.filter-bar__more:hover { border-color:var(--primary); color:var(--primary); }
.filter-bar__more.is-open { background:var(--primary); color:var(--white); border-color:var(--primary); }
.filter-bar__more svg { flex-shrink:0; }
.filter-bar__toggle-chevron { transition: transform .3s; }
.filter-bar__more.is-open .filter-bar__toggle-chevron { transform: rotate(180deg); }

@media(max-width:1024px){.filter-bar__row{flex-wrap:wrap}}
@media(max-width:720px){.filter-bar__row{flex-direction:column;align-items:stretch;gap:8px}.filter-bar__pill,.filter-bar__more{width:100%}}

/* Advanced panel */
.filter-bar__advanced {
  overflow:hidden; max-height:0; opacity:0;
  transition: max-height .6s cubic-bezier(.16,1,.3,1), opacity .4s, padding .3s;
}
.filter-bar__advanced.is-open { max-height:2000px; opacity:1; padding:8px 0; }
.filter-bar__adv-section { padding:24px 0; border-top:1px solid var(--border); }
.filter-bar__adv-section:first-child { border-top:none; }
.filter-bar__adv-section-title {
  font-family:var(--font-display); font-size:13px; font-weight:700; font-style:italic;
  color:var(--primary); text-transform:uppercase; letter-spacing:2px; margin-bottom:18px;
  display:flex; align-items:center; gap:10px;
}
.filter-bar__adv-section-title::after {
  content:''; flex:1; height:1px; background:linear-gradient(90deg, var(--border), transparent);
}
.filter-bar__adv-checks {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
  gap:8px 16px;
}
.filter-bar__adv-check {
  display:flex; align-items:center; gap:10px; cursor:pointer;
  font-family:var(--font-body); font-size:13px; font-weight:500;
  color:var(--text); padding:8px 12px; border-radius:8px;
  border:1.5px solid transparent; transition:all .2s;
}
.filter-bar__adv-check:hover { background: rgba(50,103,173,.05); border-color:var(--border); }
.filter-bar__adv-check:has(input:checked) { background: rgba(50,103,173,.08); border-color: var(--primary); color: var(--primary-dark); }
.filter-bar__adv-check input[type="checkbox"] {
  -webkit-appearance:none; appearance:none;
  width:18px; height:18px; border:2px solid var(--border);
  border-radius:5px; cursor:pointer; position:relative; flex-shrink:0;
  transition:all .2s; background:var(--white);
}
.filter-bar__adv-check input[type="checkbox"]:hover { border-color: var(--primary); }
.filter-bar__adv-check input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.filter-bar__adv-check input[type="checkbox"]:checked::after {
  content:''; position:absolute; left:5px; top:2px;
  width:5px; height:9px;
  border:solid var(--white); border-width:0 2px 2px 0; transform:rotate(45deg);
}
.filter-bar__adv-inner {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:18px 24px; align-items:start;
}
.filter-bar__adv-group { display:flex; flex-direction:column; gap:7px; }
.filter-bar__adv-label {
  font-family:var(--font-display); font-size:10px; font-weight:700; font-style:italic;
  text-transform:uppercase; letter-spacing:1.5px; color:var(--text-light);
}
.filter-bar__advanced select,
.filter-bar__advanced input[type="text"] {
  font-family:var(--font-body); font-size:13px; line-height:1.4;
  padding:12px 14px; border:1px solid #ddd; border-radius:8px;
  background:var(--white); color:var(--text); width:100%; height:44px;
  transition:border-color .2s, box-shadow .2s;
}
.filter-bar__advanced select {
  padding-right:38px; cursor:pointer;
  -webkit-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233267AD' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:12px;
}
.filter-bar__advanced select:hover,
.filter-bar__advanced input[type="text"]:hover { border-color:var(--primary); }
.filter-bar__advanced select:focus,
.filter-bar__advanced input[type="text"]:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 2px rgba(50,103,173,.12); }

/* Browse results section */
.browse-results { padding:48px 0 100px; min-height:60vh; }
.browse-grid {
  display:grid; grid-template-columns:repeat(3, 1fr); gap:32px;
}
@media(max-width:1024px){ .browse-grid { grid-template-columns:repeat(2, 1fr); } }
@media(max-width:720px){ .browse-grid { grid-template-columns:1fr; } }

.browse-state { padding:80px 0; text-align:center; }
.browse-state__spinner {
  width:48px; height:48px; border-radius:50%;
  border:3px solid var(--border); border-top-color:var(--primary);
  margin:0 auto 24px; animation:pcg-spin 1s linear infinite;
}
@keyframes pcg-spin { to { transform: rotate(360deg); } }
.browse-state__title {
  font-family:var(--font-display); font-size:24px; font-weight:600; font-style:italic;
  color:var(--dark); margin-bottom:8px;
}
.browse-state__text { color:var(--text-light); font-size:14px; max-width:480px; margin:0 auto; }
.browse-state__cta { margin-top:24px; display:inline-flex; }
.load-more-wrap { display:flex; justify-content:center; margin-top:60px; flex-direction:column; align-items:center; gap:14px; }
.browse-disclaimer { padding:30px 0 60px; background:var(--off-white); border-top:1px solid var(--border); }
.browse-disclaimer__text { font-size:11px; color:var(--text-light); line-height:1.7; max-width:900px; }

/* Map view */
.browse-results--map { padding:0; min-height:calc(100vh - 164px - 200px); }
.browse-results--map .container {
  max-width:100%; padding:0; display:flex; height:calc(100vh - 164px - 70px);
}
.map-split { display:flex; width:100%; height:100%; }
.map-split__map { flex:1 1 55%; position:relative; min-height:400px; }
.map-split__map #listing-map { width:100%; height:100%; }
.map-split__sidebar {
  flex:0 0 45%; max-width:580px; overflow-y:auto;
  padding:24px 28px; background:var(--white); border-left:1px solid var(--border);
}
.map-split__sidebar .browse-grid { grid-template-columns:1fr 1fr; gap:20px; }
.map-split__sidebar .listing-card__price { font-size:22px; }
.map-split__sidebar .listing-card__title { font-size:15px; }
.map-split__sidebar .listing-card__body { padding:16px; }
.map-split__count {
  font-family:var(--font-display); font-size:18px; font-weight:600;
  color:var(--dark); margin-bottom:4px;
}
.map-split__count em { font-style:italic; font-weight:400; color:var(--text-light); font-size:14px; }
.map-split__subtitle { font-size:12px; color:var(--text-light); margin-bottom:20px; }
.map-split__sort { margin-bottom:20px; }
.map-split__sort select {
  font-family:var(--font-body); font-size:12px;
  padding:6px 28px 6px 10px; border:1px solid var(--border); border-radius:6px;
  background:var(--white); color:var(--text); cursor:pointer;
  -webkit-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center; background-size:10px;
}
#listing-map .maplibregl-popup-content { padding:0; border-radius:10px; overflow:hidden; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
#listing-map .maplibregl-popup-close-button { font-size:18px; padding:4px 8px; color:#666; z-index:1; }
.map-popup { width:280px; }
.map-popup__img { width:100%; height:160px; object-fit:cover; border-radius:8px 8px 0 0; display:block; }
.map-popup__body { padding:12px 14px; }
.map-popup__price { font-family:var(--font-display); font-size:20px; font-weight:800; font-style:italic; color:var(--dark); margin-bottom:4px; }
.map-popup__title { font-family:var(--font-display); font-size:14px; font-weight:600; font-style:italic; color:var(--dark); margin-bottom:2px; }
.map-popup__location { font-size:12px; color:var(--text-light); margin-bottom:8px; }
.map-popup__meta { display:flex; gap:12px; font-size:11px; color:var(--primary); font-weight:600; }
.map-popup__link, a.map-popup__link {
  display:block; margin-top:10px; text-align:center;
  padding:8px; background:var(--primary); color:#fff !important;
  border-radius:6px; font-family:var(--font-display);
  font-size:12px; font-weight:700; font-style:italic;
  text-transform:uppercase; letter-spacing:1px; text-decoration:none !important;
  transition:background .2s;
}
.map-popup__link:hover, a.map-popup__link:hover { background:var(--primary-dark); color:#fff !important; }
body.map-view .browse-disclaimer { display:none; }
body.map-view .browse-results { display:none; }
body.map-view .browse-results--map { display:block; }
@media(max-width:1024px){ .map-split__sidebar { flex:0 0 50%; max-width:none; } .map-split__map { flex:1 1 50%; } }
@media(max-width:720px){
  .map-split { flex-direction:column; }
  .map-split__map { flex:0 0 50vh; }
  .map-split__sidebar { flex:1; max-width:none; border-left:none; border-top:1px solid var(--border); }
  .map-split__sidebar .browse-grid { grid-template-columns:1fr; }
  .browse-hero__row { flex-direction:column; align-items:flex-start; }
}

/* ============================================
   LISTING DETAIL (view.html) PAGE
   ============================================ */
.listing-breadcrumb {
  margin-top:0; padding:174px 0 10px;
  background:var(--off-white); border-bottom:1px solid var(--border);
}
@media (max-width:900px){ .listing-breadcrumb { padding:120px 0 10px; } }
.listing-breadcrumb .container {
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:var(--text-light); flex-wrap:wrap;
}
.listing-breadcrumb a { color:var(--text-light); transition:color .2s; }
.listing-breadcrumb a:hover { color:var(--primary); }
.listing-breadcrumb__sep { color:#ccc; }
.listing-breadcrumb__current { color:var(--dark); font-weight:500; }

.listing-hero { padding:28px 0 0; }
.listing-hero__main {
  position:relative; aspect-ratio:16/9;
  border-radius:14px; overflow:hidden;
  background:var(--primary-dark);
  box-shadow: 0 30px 80px rgba(11,18,36,.18);
}
.listing-hero__main img { width:100%; height:100%; object-fit:cover; transition:opacity .4s; }
.listing-hero__info {
  position:absolute; bottom:24px; right:24px; max-width:440px;
  background: rgba(11,18,36,.85);
  -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  color:var(--white); padding:28px 32px 30px;
  border-radius:10px; border:1px solid rgba(255,255,255,.15); z-index:3;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.listing-hero__info-type {
  font-family:var(--font-display); font-size:10px; font-weight:700; font-style:italic;
  text-transform:uppercase; letter-spacing:2px; color:var(--gold); margin-bottom:10px;
}
.listing-hero__info-title {
  font-family:var(--font-display); font-size:26px; font-weight:800; font-style:italic;
  line-height:1.1; color:var(--white); margin-bottom:10px;
}
.listing-hero__info-location {
  font-size:13px; color:rgba(255,255,255,.85);
  display:flex; align-items:center; gap:6px; margin-bottom:18px;
}
.listing-hero__info-location svg { width:13px; height:13px; color:var(--gold); flex-shrink:0; }
.listing-hero__info-price {
  font-family:var(--font-display); font-size:28px; font-weight:800; font-style:italic;
  color:var(--gold); line-height:1; padding-top:16px; border-top:1px solid rgba(255,255,255,.2);
}
.listing-hero__info-price::before { content:'$'; color:var(--white); font-size:.75em; margin-right:1px; }
.listing-hero__nav {
  position:absolute; top:50%; right:20px; transform:translateY(-50%);
  display:flex; flex-direction:column; gap:10px; z-index:2;
}
.listing-hero__nav button {
  width:48px; height:48px; border-radius:50%;
  background:rgba(255,255,255,.92); border:none; cursor:pointer;
  transition:all .2s; -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
}
.listing-hero__nav button:hover { background:#fff; transform:scale(1.08); }
.listing-hero__thumbs {
  display:flex; gap:10px; margin-top:14px;
  overflow-x:auto; padding-bottom:6px; scrollbar-width:thin;
}
.listing-hero__thumb {
  flex-shrink:0; width:110px; height:76px; border-radius:8px; overflow:hidden;
  cursor:pointer; border:2px solid transparent; opacity:.6; transition:all .3s;
}
.listing-hero__thumb:hover { opacity:.9; }
.listing-hero__thumb.is-active { border-color:var(--gold); opacity:1; }
.listing-hero__thumb img { width:100%; height:100%; object-fit:cover; }

.listing-body { padding:60px 0 100px; }
.listing-body .container {
  display:grid; grid-template-columns:1fr 380px; gap:60px; align-items:start;
}
.listing-body__main { min-width:0; }
.listing-header { margin-bottom:40px; padding-bottom:32px; border-bottom:1px solid var(--border); }
.listing-header__type {
  font-family:var(--font-display); font-size:11px; font-weight:700; font-style:italic;
  text-transform:uppercase; letter-spacing:2px; color:var(--primary);
  margin-bottom:12px; display:flex; align-items:center; gap:10px;
}
.listing-header__type::before { content:''; width:30px; height:1px; background:var(--gold); }
.listing-header__title {
  font-family:var(--font-display); font-size:clamp(30px, 4vw, 44px);
  font-weight:800; font-style:italic; line-height:1.1; color:var(--dark);
  margin-bottom:10px; padding-bottom:.08em;
}
.listing-header__location {
  font-size:15px; color:var(--text-light);
  display:flex; align-items:center; gap:8px; margin-bottom:20px;
}
.listing-header__location svg { color:var(--primary); }
.listing-header__quickstats { display:flex; gap:32px; flex-wrap:wrap; }
.listing-header__stat { display:flex; flex-direction:column; gap:2px; }
.listing-header__stat-label {
  font-family:var(--font-display); font-size:10px; font-weight:700; font-style:italic;
  text-transform:uppercase; letter-spacing:1.2px; color:var(--text-light);
}
.listing-header__stat-value {
  font-family:var(--font-display); font-size:22px; font-weight:800; font-style:italic;
  color:var(--primary-dark); line-height:1;
}
.listing-header__stat-value em { color:var(--gold); }

.listing-section { margin-bottom:40px; }
.listing-section__label {
  font-family:var(--font-display); font-size:11px; font-weight:700; font-style:italic;
  text-transform:uppercase; letter-spacing:2px; color:var(--primary);
  margin-bottom:10px; display:flex; align-items:center; gap:10px;
}
.listing-section__label::before { content:''; width:22px; height:1px; background:var(--gold); }
.listing-section__title {
  font-family:var(--font-display); font-size:28px; font-weight:800; font-style:italic;
  line-height:1.15; color:var(--dark); margin-bottom:18px;
}
.listing-section__text { font-size:16px; line-height:1.85; color:var(--text-light); }
.listing-section__text p { margin-bottom:16px; }

.feature-group {
  background:var(--off-white); border:1px solid var(--border);
  border-radius:10px; padding:24px 28px; margin-bottom:16px;
}
.feature-group__title {
  font-family:var(--font-display); font-size:14px; font-weight:800; font-style:italic;
  text-transform:uppercase; letter-spacing:1.5px; color:var(--primary);
  margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:10px;
}
.feature-group__title::before { content:''; width:22px; height:1px; background:var(--gold); }
.feature-group__list { display:grid; grid-template-columns:1fr 1fr; gap:10px 24px; }
.feature-group__item {
  font-size:13px; line-height:1.6; color:var(--text);
  display:flex; justify-content:space-between; gap:12px; padding:4px 0;
}
.feature-group__item-label { color:var(--text-light); flex-shrink:0; }
.feature-group__item-value { color:var(--dark); font-weight:500; text-align:right; }
@media(max-width:680px){ .feature-group__list { grid-template-columns:1fr; } }

.listing-sidebar { position:sticky; top:140px; }
.sidebar-card {
  background:var(--white); border:1px solid var(--border);
  border-radius:12px; padding:28px 30px; margin-bottom:20px;
  box-shadow: 0 10px 30px rgba(11,18,36,.06);
}
.sidebar-card__label {
  font-family:var(--font-display); font-size:10px; font-weight:700; font-style:italic;
  text-transform:uppercase; letter-spacing:1.5px; color:var(--primary); margin-bottom:10px;
}
.sidebar-card__title {
  font-family:var(--font-display); font-size:22px; font-weight:800; font-style:italic;
  color:var(--dark); line-height:1.2; margin-bottom:12px;
}
.sidebar-card__text { font-size:13px; color:var(--text-light); line-height:1.7; margin-bottom:18px; }
.sidebar-card__stat {
  display:flex; justify-content:space-between;
  padding:10px 0; border-bottom:1px solid var(--border); font-size:13px;
}
.sidebar-card__stat:last-child { border-bottom:none; }
.sidebar-card__stat-label {
  color:var(--text-light); text-transform:uppercase; letter-spacing:.5px;
  font-size:11px; font-weight:600;
}
.sidebar-card__stat-value { color:var(--dark); font-weight:600; }

.mls-disclaimer {
  font-size:11px; color:var(--text-light); line-height:1.6;
  padding:20px 0; border-top:1px solid var(--border); margin-top:40px;
}
.mls-disclaimer img { max-height:28px; margin-bottom:10px; }

.listing-loading {
  padding:200px 0 120px; text-align:center;
  font-family:var(--font-display); font-size:18px; font-style:italic; color:var(--primary);
}
.listing-loading__spinner {
  display:inline-block; width:48px; height:48px;
  border:3px solid var(--off-white); border-top-color:var(--primary);
  border-radius:50%; animation:pcg-spin 1s linear infinite; margin-bottom:24px;
}
.listing-error { padding:200px 0 120px; text-align:center; }
.listing-error__icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:72px; height:72px; border-radius:50%;
  background:var(--off-white); color:var(--primary); margin-bottom:24px;
}
.listing-error h1 {
  font-family:var(--font-display); font-size:32px; font-weight:800; font-style:italic;
  color:var(--dark); margin-bottom:14px;
}
.listing-error p {
  color:var(--text-light); max-width:520px; margin:0 auto 28px; font-size:15px;
}

@media(max-width:1024px){
  .listing-body .container { grid-template-columns:1fr; gap:40px; }
  .listing-sidebar { position:static; }
  .listing-hero__info {
    position:static; max-width:none; margin-top:20px; border-radius:10px;
  }
}

/* Listing actions bar (save/share) */
.listing-actions { display:flex; gap:10px; margin-top:20px; flex-wrap:wrap; }
.listing-action-btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 20px; border-radius:10px;
  border:1.5px solid var(--border); background:var(--white);
  font-family:var(--font-display); font-size:12px; font-weight:700; font-style:italic;
  text-transform:uppercase; letter-spacing:1px; color:var(--text);
  cursor:pointer; transition:all .2s;
}
.listing-action-btn:hover { border-color:var(--primary); color:var(--primary); }
.listing-action-btn svg { width:18px; height:18px; flex-shrink:0; }
.listing-action-btn--saved { background:var(--primary); color:var(--white); border-color:var(--primary); }
.listing-action-btn--saved:hover { background:var(--primary-dark); border-color:var(--primary-dark); color:var(--white); }
.listing-action-btn--saved svg { fill:currentColor; }
.share-dropdown { position:relative; display:inline-flex; }
.share-dropdown__menu {
  position:absolute; top:calc(100% + 8px); right:0;
  background:var(--white); border:1px solid var(--border);
  border-radius:12px; box-shadow: 0 8px 30px rgba(0,0,0,.12);
  padding:8px 0; min-width:220px; z-index:100; display:none;
}
.share-dropdown__menu.is-open { display:block; }
.share-dropdown__item {
  display:flex; align-items:center; gap:10px;
  padding:10px 18px; font-family:var(--font-body);
  font-size:13px; font-weight:500; color:var(--text);
  cursor:pointer; transition:background .15s;
  border:none; background:none; width:100%; text-align:left; text-decoration:none;
}
.share-dropdown__item:hover { background: rgba(50,103,173,.05); color:var(--primary); }
.share-dropdown__item svg { width:16px; height:16px; color:var(--text-light); flex-shrink:0; }
.share-dropdown__item:hover svg { color:var(--primary); }
.share-dropdown__divider { height:1px; background:var(--border); margin:4px 0; }
.share-toast {
  position:fixed; bottom:24px; left:50%;
  transform:translateX(-50%) translateY(20px);
  background:var(--primary); color:var(--white);
  padding:12px 24px; border-radius:10px;
  font-family:var(--font-display); font-size:13px; font-weight:600; font-style:italic;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index:10000;
  opacity:0; transition:all .3s; pointer-events:none;
}
.share-toast.is-visible { opacity:1; transform:translateX(-50%) translateY(0); }

/* Detail page extras */
.listing-fullwidth { grid-column:1/-1; }
.listing-map { margin-top:60px; padding-top:60px; border-top:1px solid var(--border); }
.listing-map__container {
  height:500px; border-radius:16px; overflow:hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  margin-top:24px; position:relative;
}
.listing-map__container::after {
  content:''; position:absolute; inset:0;
  border-radius:16px; border:1px solid rgba(0,0,0,.06); pointer-events:none;
}
.listing-map__address {
  margin-top:14px; font-size:13px; color:var(--text-light);
  display:flex; align-items:center; gap:8px;
  padding:12px 18px; background:var(--off-white);
  border-radius:10px; border:1px solid var(--border);
}
.listing-map__address svg { color:var(--primary); flex-shrink:0; }

.walk-scores, .schools-section { margin-top:60px; padding-top:60px; border-top:1px solid var(--border); }
.walk-scores__grid { margin-top:28px; }
.walk-score-card {
  background:var(--white); border:1px solid var(--border);
  border-radius:16px; overflow:hidden;
}
.walk-score-link {
  display:flex; align-items:center; gap:8px;
  margin-top:14px; font-size:13px; color:var(--primary); font-weight:600;
  padding:12px 18px; background:var(--off-white);
  border:1px solid var(--border); border-radius:10px; transition:background .2s;
}
.walk-score-link:hover { background: rgba(50,103,173,.05); }
.schools__grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:28px; }
.school-card {
  padding:20px 22px; background:var(--white); border:1px solid var(--border);
  border-radius:14px; display:flex; align-items:center; gap:18px;
  transition:transform .3s, box-shadow .3s;
}
.school-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,.06); }
.school-card__icon {
  width:52px; height:52px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  color:var(--white); font-family:var(--font-display);
  font-size:13px; font-weight:800; font-style:italic; letter-spacing:.5px;
}
.school-card__icon--elem { background:linear-gradient(135deg, #3498db, #2980b9); }
.school-card__icon--middle { background:linear-gradient(135deg, #2ecc71, #27ae60); }
.school-card__icon--high { background:linear-gradient(135deg, #e67e22, #d35400); }
.school-card__icon--other { background:linear-gradient(135deg, #9b59b6, #8e44ad); }
.school-card__info { flex:1; min-width:0; }
.school-card__name {
  font-family:var(--font-display); font-size:15px; font-weight:700; font-style:italic;
  color:var(--dark); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.school-card__detail { font-size:12px; color:var(--text-light); margin-top:4px; text-transform:capitalize; }
@media(max-width:720px){ .schools__grid { grid-template-columns:1fr; } }

/* Similar listings carousel */
.similar-section {
  margin-top:60px; padding:60px 0 20px;
  border-top:1px solid var(--border); position:relative;
}
.similar-section::before {
  content:''; position:absolute; top:0; left:-40px; right:-40px; bottom:0;
  background:var(--off-white); z-index:-1; border-radius:20px;
}
.similar__header {
  display:flex; align-items:flex-end; justify-content:space-between;
  margin-bottom:28px; gap:16px;
}
.similar__nav { display:flex; gap:8px; flex-shrink:0; }
.similar__nav-btn {
  width:40px; height:40px; border-radius:50%;
  border:1.5px solid var(--border); background:var(--white);
  color:var(--text); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all .2s; padding:0; box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.similar__nav-btn:hover { border-color:var(--primary); color:var(--primary); box-shadow:0 4px 12px rgba(0,0,0,.1); }
.similar__nav-btn:disabled { opacity:.3; cursor:default; box-shadow:none; }
.similar__track-wrap { overflow:visible; clip-path:inset(-10px -10px -60px -10px); }
.similar__track {
  display:flex; gap:22px;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.similar__track .listing-card {
  flex: 0 0 calc(33.333% - 15px); min-width:0;
  border-radius:14px; border:1px solid var(--border);
  overflow:hidden; background:var(--white);
}
@media(max-width:900px){ .similar__track .listing-card { flex: 0 0 calc(50% - 11px); } }
@media(max-width:600px){ .similar__track .listing-card { flex: 0 0 85%; } }
