/* ── SHARED STYLES — Ron Matin PREC ── */

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

.breadcrumb, .hero-breadcrumb { display: none; }
.hero-breadcrumb span { font-style: italic; }

:root {
  --navy:    #061B2E;   /* Primary */
  --navy2:   #005F82;   /* Secondary */
  --teal:    #02BAFF;   /* Accent 01 */
  --teal-dk: #005F82;   /* Secondary — darker accent */
  --teal-lt: #B4E7FA;   /* Accent 02 */
  --white:   #ffffff;
  --bg:      #EBEBEB;
  --text:    #4D4D4D;   /* Text Gray */
  --muted:   #888;
  --border:  #e2e4e8;
  --gold:    #c9a84c;
  --max-width: 1350px;
}

body {
  font-family: 'Red Hat Display', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Hero extends behind nav — single unified dark section */
#hero {
  position: relative;
  margin-top: -96px;
  padding: 130px 0 48px;
}
#hero .hero-inner {
  padding-top: 0;
}
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0; /* Safari 14 fallback above */
  background: url('../images/design/oxy-pattern2.png') repeat;
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
#hero > * {
  position: relative;
  z-index: 1;
}

a { text-decoration: none; color: inherit; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 24px;
  z-index: 100;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ffffff;
  max-width: var(--max-width);
  margin: 24px auto 0;
  height: 72px;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { display: block; height: 42px; width: auto; flex-shrink: 0; }

.logo-text .name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy);
  text-transform: uppercase;
}

.logo-text .sub {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: stretch; gap: 4px; list-style: none; align-self: stretch; }

.nav-links li { position: relative; display: flex; align-items: center; }

.nav-links a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 400;
  color: #4C4C4C;
  transition: color 0.2s;
}

.nav-links a:hover { color: #02BAFF; }

.nav-links .active a {
  color: #005F82;
  font-weight: 600;
}

.nav-links .active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 4px;
  background: var(--teal);
  border-radius: 4px 4px 0 0;
}

/* Dropdown nav */
.nav-links .has-dropdown { cursor: pointer; }
.nav-links .has-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 400;
  color: #4C4C4C;
  cursor: pointer;
  user-select: none;
}
.nav-links .has-dropdown:hover .dropdown-toggle { color: #02BAFF; }
.nav-links .has-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 200px;
  z-index: 200;
  padding: 6px 0;
}
.nav-links .has-dropdown:hover .dropdown-menu { display: block; }
.nav-links .has-dropdown .dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #444;
  white-space: nowrap;
}
.nav-links .has-dropdown .dropdown-menu a:hover { color: #02BAFF; background: #f5f7fa; }
.nav-links .has-dropdown .dropdown-menu a.active { color: #02BAFF; font-weight: 600; }

/* Nested submenu (flyout) */
.nav-links .has-dropdown .dropdown-menu .dropdown-item-has-sub {
  position: relative;
}
.nav-links .has-dropdown .dropdown-menu .dropdown-item-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #444;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
.nav-links .has-dropdown .dropdown-menu .dropdown-item-has-sub:hover .dropdown-item-toggle {
  color: #02BAFF;
  background: #f5f7fa;
}
.nav-links .has-dropdown .dropdown-menu .subdropdown-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0 8px 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 220px;
  z-index: 201;
  padding: 6px 0;
}
.nav-links .has-dropdown .dropdown-menu .dropdown-item-has-sub:hover .subdropdown-menu { display: block; }
.nav-links .has-dropdown .dropdown-menu .subdropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #444;
  white-space: nowrap;
}
.nav-links .has-dropdown .dropdown-menu .subdropdown-menu a:hover { color: #02BAFF; background: #f5f7fa; }
.nav-links .has-dropdown .dropdown-menu .subdropdown-menu a.active { color: #02BAFF; font-weight: 600; }

/* Mobile dropdown subheader */
.mobile-nav ul li.mobile-dropdown-header {
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav ul li.mobile-dropdown-item a {
  padding-left: 40px;
  font-size: 0.95rem;
  color: #555;
  background: #fafbfc;
}
.mobile-nav ul li.mobile-dropdown-subheader {
  padding: 12px 24px 12px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #005f82;
  background: #f0f8ff;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mobile-nav ul li.mobile-subdropdown-item a {
  padding-left: 52px;
  font-size: 0.9rem;
  color: #555;
  background: #f7fbff;
}

.nav-right { display: flex; align-items: center; gap: 14px; }

/* Agent card */
.nav-agent-card {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  background: linear-gradient(90deg, #061B2E 0%, #005F82 100%);
  border-radius: 4px;
  padding: 0 10px;
  flex-shrink: 0;
}

.nav-agent-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.nav-agent-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.nav-agent-status {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--navy);
}

.nav-agent-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-agent-name {
  font-family: 'Red Hat Display';
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  color: #ffffff;
  white-space: nowrap;
}

.nav-agent-title {
  font-family: 'Red Hat Display';
  font-size: 12px;
  font-weight: 300;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  color: #ffffff;
  opacity: 0.7;
  white-space: nowrap;
}

.btn-book {
  background: #02BAFF;
  color: #061B2E;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  border: 1.5px solid #02BAFF;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  display: inline-block;
  font-family: inherit;
}

.btn-book:hover {
  background: #ffffff;
  border-color: #02BAFF;
  color: #061B2E;
}

/* Auth nav links (shown when logged out / logged in) */
.nav-auth a {
  font-size: 14px;
  color: #4C4C4C;
  padding: 8px 12px;
}

.nav-logout-btn {
  font-size: 14px;
  color: #4C4C4C;
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
}
.nav-logout-btn:hover { color: var(--navy); }

/* ── BUTTONS ── */
.btn-cta {
  background: #005F82;
  color: #fff;
  padding: 12px 28px;
  border: 1.5px solid #005F82;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-cta:hover {
  background: #02BAFF;
  border-color: #02BAFF;
  color: #061B2E;
}

.btn-secondary {
  background: #EBEBEB;
  color: #005F82;
  padding: 12px 28px;
  border: 1.5px solid #005F82;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-secondary:hover {
  background: #B4E7FA;
  border-color: #B4E7FA;
  color: #005F82;
}

.btn-white {
  background: #ffffff;
  color: #061B2E;
  padding: 12px 28px;
  border: 1.5px solid #ffffff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-white:hover {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-primary {
  background: #02BAFF;
  color: #061B2E;
  padding: 12px 28px;
  border: 1.5px solid #02BAFF;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: transparent;
  border-color: #02BAFF;
  color: #02BAFF;
}

.btn-navy {
  background: #005F82;
  color: #fff;
  padding: 12px 28px;
  border: 1.5px solid #005F82;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-block;
}

.btn-navy:hover {
  background: #02BAFF;
  border-color: #02BAFF;
  color: #061B2E;
}

/* ── PROPERTY CARD ── */
.prop-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer !important;
}
.prop-card * { cursor: pointer !important; }

.prop-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}

.prop-img-wrap { position: relative; overflow: hidden; }

/* ── Card image slider ── */
.prop-img-slides {
  display: flex;
  width: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}
.prop-img-slides img {
  flex: 0 0 100%;
  width: 100%;
  min-height: 160px; /* aspect-ratio fallback for iOS 14 */
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.img-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.42);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.18s, background 0.18s;
  padding: 0;
}
.prop-img-wrap:hover .img-arrow { opacity: 1; }
.img-arrow:hover { background: rgba(0,0,0,0.7); }
.img-arrow.img-prev { left: 7px; }
.img-arrow.img-next { right: 7px; }
/* Always show on touch devices, larger tap target */
@media (hover: none) {
  .img-arrow { opacity: 0.75; width: 44px; height: 44px; font-size: 1.5rem; }
}
.img-counter {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(0,0,0,0.48);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 5;
  pointer-events: none;
}
.price-badge {
  position: absolute;
  bottom: 10px;
  right: 0;
  background: #c0392b;
  color: #fff;
  font-size: 1.09rem;
  font-weight: 700;
  padding: 6.3px 14.7px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.8;
}
.new-listing-badge,
.open-house-badge,
.price-reduced-badge,
.sold-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3.57px 8.93px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
}
.new-listing-badge  { background: #22a84a; }
.open-house-badge   { background: #d97706; }
.price-reduced-badge { background: #0891b2; }
.sold-badge         { background: #c0392b; font-size: 0.715rem; padding: 3.93px 9.82px; }

.prop-img { width: 100%; height: auto; min-height: 160px; aspect-ratio: 4/3; object-fit: cover; display: block; } /* legacy — slides use .prop-img-slides img */

/* ── FAVOURITE BUTTON ── */
.fav-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 31px; height: 31px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #ccc;
  transition: color 0.2s, background 0.2s, transform 0.15s;
  z-index: 2;
}
.fav-btn:hover { background: #fff; color: #e74c3c; transform: scale(1.1); }
.fav-btn.fav-active { color: #e74c3c; background: #fff; }

.move-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(10,22,40,0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.prop-body { padding: 14px 16px 16px; }

/* "Listed: $X,XXX,XXX  ·  8 days ago" */
.prop-listed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.prop-listed { font-size: 0.8rem; color: var(--muted); }
.prop-price-val { font-size: 0.95rem; font-weight: 700; color: var(--teal); }
.prop-days-ago { font-size: 0.76rem; color: var(--muted); }

/* Address */
.prop-address {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

/* "Single Family Residence" */
.prop-type-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Bed / Bath / Garage icons */
.prop-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 8px;
}

.prop-spec {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.prop-spec strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.prop-spec svg { color: var(--teal); flex-shrink: 0; stroke: var(--teal); }

/* Agent / MLS line */
.prop-agent-info {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prop-office-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  gap: 6px;
}
.prop-office {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.prop-mls {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.prop-status { font-size: 0.75rem; color: var(--muted); margin-bottom: 10px; }

/* Legacy — kept for property-detail page compatibility */
.prop-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.prop-location { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.prop-price { font-size: 0.82rem; color: var(--muted); }
.prop-price .price-val { font-size: 1rem; font-weight: 700; color: var(--teal); }
.prop-price .price-to  { font-size: 1rem; font-weight: 700; color: var(--navy); }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--teal); }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }

.pagination button {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pagination button.active,
.pagination button:hover {
  background: #02BAFF;
  color: #fff;
  border-color: #02BAFF;
}

/* ── FOOTER ── */
footer {
  background-color: #ffffff;
  background-image: url('../images/design/oxy-pattern1.png');
  background-repeat: repeat;
  background-size: auto;
  color: var(--text);
  padding: 60px 48px 28px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.1fr;
  gap: 0;
  margin-bottom: 40px;
  align-items: stretch;
}

.footer-col {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Logo column */
.footer-col:first-child {
  padding-right: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  height: 100%;
}

.footer-logo-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px -32px 18px 0;
  width: calc(100% + 32px);
  align-self: stretch;
}

.footer-logo-wrap {
  width: 150px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.footer-logo-wrap img {
  max-width: 150px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Columns with left divider */
.footer-col:not(:first-child) {
  padding-left: 36px;
  border-left: 1px solid var(--border);
  padding-right: 20px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: #4C4C4C;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { font-size: 14px; font-weight: 600; color: #005F82; transition: color 0.2s; }
.footer-col ul a:hover { color: #02BAFF; }

/* Contact column */
.footer-contact-list { list-style: none; }
.footer-contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #005F82;
  line-height: 1.4;
}
.footer-contact-list li svg { flex-shrink: 0; margin-top: 2px; }
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--teal-dk);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: #02BAFF; border-color: #02BAFF; color: #fff; }

.footer-bottom {
  padding-top: 20px;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: var(--muted);
}
.footer-disclaimer {
  margin-top: 12px;
  font-size: 0.864rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.footer-mls {
  margin-top: 14px;
  text-align: center;
}
.footer-mls img {
  background: var(--navy2);
  padding: 6px 10px;
  border-radius: 4px;
}

/* Loading spinner */
.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
  line-height: 1;
}
.nav-hamburger-label { display: none; }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 88px;
  left: 16px;
  right: 16px;
  background: #fff;
  z-index: 99;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 8px;
  border: 1px solid rgba(77, 77, 77, 0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav ul li a {
  display: block;
  padding: 16px 24px;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav ul li.active a { color: var(--teal); font-weight: 700; }
.mobile-nav-cta {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav-cta a:not(.btn-book) {
  display: block;
  padding: 14px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8f9fb;
}
.mobile-agent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, #061B2E 0%, #005F82 100%);
  border-radius: 6px;
  padding: 12px 14px;
}
.mobile-agent-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-agent-card .btn-book {
  flex-shrink: 0;
  padding: 9px 14px;
  font-size: 0.82rem;
}

/* ── FILTER BAR ── */
.filter-bar { background: #fff; border-bottom: 1px solid var(--border); }
.filter-bar select { border: 1px solid #ddd; border-radius: 6px; padding: 10px 12px; font-size: 0.88rem; color: var(--text); background: #fff; outline: none; cursor: pointer; font-weight: 500; -webkit-appearance: auto; appearance: auto; }
.filter-bar select:focus { border-color: var(--teal); }

.filter-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#more-filters-wrap { padding-top: 4px; }

/* Multi-checkbox dropdown */
.multicheck-item { display: flex; align-items: center; gap: 10px; padding: 10px 18px; font-size: 0.92rem; color: #333; cursor: pointer; transition: background 0.15s; font-weight: 500; }
.multicheck-item:hover { background: #f5f7fa; }
.multicheck-item input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #4A90D9; }

/* Custom price/range dropdown */
.price-dropdown-wrap { position: relative; display: inline-block; }
.price-dropdown-btn { border: 1px solid #ddd; border-radius: 6px; padding: 10px 36px 10px 14px; font-size: 0.88rem; color: var(--text); background: #fff; cursor: pointer; min-width: 130px; text-align: left; position: relative; font-weight: 500; }
.filter-bar .filter-active { background: #e6f4ff !important; border-color: #02BAFF !important; color: #005f8a !important; }
.price-dropdown-btn::after { content: ''; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #999; transition: transform 0.2s; }
.price-dropdown-btn.open::after { transform: translateY(-50%) rotate(180deg); }
.price-dropdown-menu { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.15); z-index: 1000; display: none; min-width: 182px; margin-top: 6px; }
.price-dropdown-menu.open { display: block; }
.price-dropdown-menu input { width: 100%; border: none; border-bottom: 1px solid #e8e8e8; padding: 16px 18px; font-size: 0.92rem; outline: none; box-sizing: border-box; background: #fafafa; }
.price-dropdown-menu input:focus { border-bottom-color: #4A90D9; background: #fff; }
.price-dropdown-menu input::placeholder { color: #999; }
.price-dropdown-list { max-height: 280px; overflow-y: auto; }
.price-dropdown-item { padding: 14px 18px; cursor: pointer; font-size: 1rem; color: #333; font-weight: 500; transition: background 0.15s; }
.price-dropdown-item:hover { background: #f5f7fa; }
.price-dropdown-item.selected { background: #4A90D9; color: #fff; }
.price-dropdown-clear { color: #999; border-bottom: 1px solid #f0f0f0; font-size: 0.88rem; }

/* Search selection tags (city / subarea) */
.search-tags { display: none; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.search-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; padding: 4px 8px 4px 10px; font-size: 0.8rem; font-weight: 600; }
.search-tag.city-tag { background: #e6f4ea; color: #1e6e3a; }
.search-tag.majorarea-tag { background: #fff3e0; color: #b45309; }
.search-tag.area-tag { background: #e8f0fe; color: #1a5fa8; }
.search-tag .tag-x { background: none; border: none; cursor: pointer; color: inherit; padding: 0 0 0 2px; font-size: 1rem; line-height: 1; opacity: 0.7; }
.search-tag .tag-x:hover { opacity: 1; }

/* Results bar */
.results-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 40px; }
.results-bar-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.results-count { font-size: 0.85rem; color: var(--muted); }
.results-count strong { color: var(--text); }
.sort-wrap select { border: 1px solid #ddd; border-radius: 6px; padding: 7px 12px; font-size: 0.84rem; outline: none; background: #fff; color: var(--text); font-weight: 500; -webkit-appearance: auto; appearance: auto; }

/* Pagination */
.pagination { max-width: var(--max-width); margin: 0 auto 60px; padding: 0 40px; display: flex; gap: 6px; align-items: center; }
.pagination .pag-dots { padding: 0 6px; color: var(--muted); font-size: 0.9rem; line-height: 36px; }

/* ── LISTINGS GRID CONTAINER ── */
.listings-grid {
  max-width: var(--max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-height: 70vh;
  align-items: start;
}

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
  .nav-links a { padding: 8px 8px; font-size: 0.8rem; }
  .agent-info { display: none; }
}

/* ── BADGES: keep consistent on mobile ── */
@media (max-width: 768px) {
  .new-listing-badge,
  .open-house-badge,
  .price-reduced-badge,
  .sold-badge {
    font-size: 0.65rem;
    padding: 3.57px 8.93px;
  }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {
  nav {
    width: calc(100% - 32px);
    max-width: 100%;
    margin: 16px auto 0;
    border-radius: 8px;
    border: 1px solid rgba(77, 77, 77, 0.1);
    top: 16px;
    height: 56px;
    box-sizing: border-box;
  }
  .nav-inner { padding: 0 12px; }
  .nav-logo img { height: 32px; }
  /* Hero extends behind the floating nav */
  #hero { margin-top: -88px; padding: 115px 0 40px; }
  .nav-links { display: none; }
  .nav-agent-card { display: none; }
  .nav-auth { display: none; }
  .nav-right .btn-book { display: none; }
  .nav-hamburger {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #005F82;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    padding: 0;
  }
  .nav-hamburger svg { width: 20px; height: 20px; color: #005F82; stroke: #005F82; }
  .nav-hamburger-label { display: inline; }

  .hero-inner { padding-left: 16px !important; padding-right: 16px !important; }
  .listings-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; margin-top: 20px !important; margin-bottom: 0 !important; padding-left: 16px !important; padding-right: 16px !important; }

  .filter-bar { padding: 0; }
  .filter-bar-inner { padding: 10px 16px; gap: 8px; flex-wrap: wrap; }
  .filter-bar select { width: calc(50% - 4px); box-sizing: border-box; padding: 10px 8px; flex-shrink: 0; }
  #proptype-wrap { width: 100%; }
  #proptype-wrap .price-dropdown-btn { width: 100%; box-sizing: border-box; }
  .price-dropdown-wrap { width: calc(50% - 4px); flex-shrink: 0; }
  .price-dropdown-btn { width: 100%; box-sizing: border-box; min-width: 0; padding: 10px 28px 10px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .price-dropdown-menu { width: 260px; min-width: 0; }
  #land-size-wrap { display: none; }

  .results-bar { padding: 10px 16px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .footer-col:first-child { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; padding-right: 0; padding-bottom: 24px; border-bottom: 1px solid var(--border); border-left: none; grid-column: 1 / -1; }
  .footer-logo-wrap { width: auto; height: auto; justify-content: flex-start; }
  .footer-logo-wrap img { height: 44px; width: auto; max-width: none; max-height: none; }
  .footer-logo-divider { display: none; }
  .footer-col:not(:first-child) { padding: 24px 16px; }
  .footer-col:nth-child(odd):not(:first-child) { border-left: none; }
  footer { padding: 40px 20px 24px; margin-top: 0; }
  .footer-bottom { text-align: center; }

  .pagination { flex-wrap: wrap; justify-content: center; margin: 20px 16px 40px; }
}

/* ── SMALL MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  .listings-grid { grid-template-columns: 1fr !important; padding-left: 12px !important; padding-right: 12px !important; }
  .filter-bar-inner { padding: 10px 12px; }
  .filter-bar select, .price-dropdown-btn { font-size: 0.82rem; }

  .prop-img { height: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-col:not(:first-child) { padding: 20px 0; border-left: none; border-top: 1px solid var(--border); }
}

/* ── AUTH — nav buttons ── */
.btn-logout, .btn-nav-login {
  padding: 7px 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn-logout:hover, .btn-nav-login:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* Nav user info (name + badge) */
.nav-user-wrap { display: flex; align-items: center; gap: 8px; }
.nav-user-name { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.nav-unverified-badge {
  font-size: 0.68rem;
  background: rgba(251,191,36,0.2);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.5);
  border-radius: 20px;
  padding: 2px 8px;
  font-weight: 600;
}

/* Email verification banner */
.verify-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #0d1f3c;
  border-bottom: 1px solid #1a3460;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.91rem;
  font-family: 'Red Hat Display', 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  z-index: 9999;
}
.verify-banner-resend {
  background: #02BAFF;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.verify-banner-resend:hover { background: #00a8e8; }
.verify-banner-resend:disabled { opacity: 0.6; cursor: not-allowed; }
.verify-banner-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  padding: 0 4px;
  line-height: 1;
}
.verify-banner-close:hover { color: #fff; }
.verify-banner-text {
  overflow: hidden;
  white-space: nowrap;
  flex: 0 0 auto;
  width: 33ch;
  position: relative;
}
.verify-banner-scroll {
  display: inline-block;
  padding-left: 100%;
  will-change: transform;
  animation: verify-marquee 14s linear infinite;
  -webkit-animation: verify-marquee 14s linear infinite;
}
@keyframes verify-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@-webkit-keyframes verify-marquee {
  0%   { -webkit-transform: translateX(0); }
  100% { -webkit-transform: translateX(-100%); }
}
@media (max-width: 768px) {
  .verify-banner {
    top: auto;
    bottom: 0;
    border-bottom: none;
    border-top: 1px solid #1a3460;
    padding: 10px 16px;
  }
  .verify-banner-text {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
  .verify-banner-close {
    margin-left: 8px;
  }
}
