*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0a1628; --deep: #0d1f3c; --ocean: #1a4a6e; --mid: #2a6496;
  --sky: #5b9ec9; --foam: #a8d5f0; --sand: #f2ede4; --cream: #faf8f4;
  --gold: #c9963a; --gold-light: #e6b85a; --text: #1a1a2e; --muted: #5a6070;
  --border: rgba(10,22,40,0.12); --white: #fff;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); font-size: 16px; line-height: 1.6; overflow-x: hidden; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: rgba(10,22,40,0.97); backdrop-filter: blur(12px); padding: 0 2.5rem; display: flex; align-items: center; justify-content: space-between; height: 68px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.logo { display: flex; align-items: center; text-decoration: none; cursor: pointer; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.875rem; font-weight: 400; letter-spacing: 0.03em; transition: color 0.2s; cursor: pointer; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--gold) !important; color: var(--navy) !important; padding: 0.5rem 1.25rem; border-radius: 4px; font-weight: 500 !important; }
.nav-cta:hover { background: var(--gold-light) !important; }

.page { display: none; }
.page.active { display: block; }

/* HERO */
.hero { min-height: 100vh; background: linear-gradient(180deg, #1a6494 0%, #2a8fc0 35%, #1a6088 65%, #0e3258 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 2.5rem 5rem; position: relative; overflow: hidden; }
.hero-sky { display: none; }
.hero-sun { position: absolute; right: 18%; top: 14%; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.06) 60%, transparent 100%); box-shadow: 0 0 0 12px rgba(255,255,255,0.06), 0 0 0 28px rgba(255,255,255,0.03); }
.hero-cloud { position: absolute; opacity: 0.13; }
.hero-ocean { position: absolute; bottom: 0; left: 0; right: 0; height: 42%; overflow: hidden; }
.wave { position: absolute; width: 200%; height: 100%; background: rgba(26,74,110,0.45); border-radius: 50% 50% 0 0 / 80px; top: 20px; animation: wave 7s ease-in-out infinite; }
.wave2 { background: rgba(26,74,110,0.25); animation-delay: -3.5s; animation-duration: 9s; top: 40px; }
@keyframes wave { 0%,100%{transform:translateX(-25%) scaleY(1)} 50%{transform:translateX(-5%) scaleY(1.1)} }
.stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 15% 20%,rgba(255,255,255,0.5) 0%,transparent 100%),radial-gradient(1px 1px at 35% 8%,rgba(255,255,255,0.4) 0%,transparent 100%),radial-gradient(1.5px 1.5px at 60% 15%,rgba(255,255,255,0.6) 0%,transparent 100%),radial-gradient(1px 1px at 80% 25%,rgba(255,255,255,0.3) 0%,transparent 100%),radial-gradient(1px 1px at 45% 30%,rgba(255,255,255,0.4) 0%,transparent 100%); }
.hero-sail { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); opacity: 0.55; }
.hero-content { position: relative; z-index: 2; max-width: 720px; animation: fadeUp 1s ease both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }
.hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; font-weight: 500; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem,6vw,5rem); line-height: 1.1; color: var(--white); margin-bottom: 1.5rem; }
.hero-title em { font-style: italic; color: var(--foam); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.65); font-weight: 300; max-width: 480px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-search { display: flex; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; overflow: hidden; max-width: 600px; }
.hero-search input { flex: 1; background: transparent; border: none; padding: 1rem 1.25rem; color: var(--white); font-family: inherit; font-size: 0.95rem; outline: none; }
.hero-search input::placeholder { color: rgba(255,255,255,0.35); }
.hero-search select { background: rgba(255,255,255,0.06); border: none; border-left: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); padding: 1rem; font-family: inherit; font-size: 0.85rem; outline: none; cursor: pointer; }
.hero-search select option { background: var(--deep); }
.btn-search { background: var(--gold); border: none; padding: 1rem 1.5rem; color: var(--navy); font-family: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.btn-search:hover { background: var(--gold-light); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; animation: fadeUp 1s ease 0.2s both; }
.stat { color: rgba(255,255,255,0.5); }
.stat strong { display: block; font-size: 1.5rem; color: var(--white); font-weight: 500; }
.stat span { font-size: 0.78rem; letter-spacing: 0.05em; }

section { padding: 5rem 2.5rem; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2.5rem; }
.section-eyebrow { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 0.5rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; line-height: 1.15; color: var(--navy); }
.see-all { font-size: 0.85rem; color: var(--ocean); text-decoration: none; font-weight: 500; border-bottom: 1px solid transparent; transition: border-color 0.2s; white-space: nowrap; cursor: pointer; }
.see-all:hover { border-color: var(--ocean); }

/* LISTING CARDS */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 1.75rem; }
.listing-card { background: var(--white); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.25s, box-shadow 0.25s; cursor: pointer; }
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(10,22,40,0.12); }
.card-img { height: 220px; position: relative; overflow: hidden; background: #0d1f3c; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img svg { width: 100%; height: 100%; }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--navy); color: var(--white); font-size: 0.7rem; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 3px; font-weight: 500; }
.card-badge.featured { background: var(--gold); color: var(--navy); }
.card-badge.new { background: var(--ocean); }
.card-badge.staff-pick { background: var(--ocean); color: var(--white); top: 40px; }
.card-badge.staff-pick.only { top: 12px; }
.card-fav { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.card-fav:hover { background: var(--white); }
.card-broker-tag { position: absolute; bottom: 10px; left: 10px; background: rgba(10,22,40,0.78); color: rgba(255,255,255,0.9); font-size: 0.68rem; padding: 3px 8px; border-radius: 3px; cursor: pointer; transition: background 0.2s; }
.card-broker-tag:hover { background: rgba(10,22,40,0.96); }
.card-body { padding: 1.25rem; }
.card-type { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.card-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.3; }
.card-specs { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border); }
.card-price { font-size: 1.35rem; font-weight: 500; color: var(--navy); }
.card-location { font-size: 0.78rem; color: var(--muted); }
.btn-view { background: transparent; border: 1px solid var(--ocean); color: var(--ocean); padding: 0.45rem 1rem; border-radius: 4px; font-size: 0.8rem; font-family: inherit; cursor: pointer; font-weight: 500; transition: all 0.2s; }
.btn-view:hover { background: var(--ocean); color: var(--white); }

.filter-bar { display: flex; gap: 0.75rem; margin-bottom: 2rem; flex-wrap: wrap; align-items: center; }
.filter-btn { background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: 0.45rem 1.1rem; font-family: inherit; font-size: 0.83rem; cursor: pointer; color: var(--muted); transition: all 0.18s; }
.filter-btn:hover,.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.filter-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }

.categories { background: var(--navy); }
.categories .section-title { color: var(--white); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 1rem; }
.cat-card { border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; padding: 1.75rem 1.25rem; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; gap: 0.75rem; }
.cat-card:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.2); }
.cat-icon { width: 44px; height: 44px; background: rgba(201,150,58,0.15); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cat-name { font-weight: 500; color: var(--white); }
.cat-count { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 2rem; }
.feature { display: flex; flex-direction: column; gap: 1rem; }
.feature-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--foam); line-height: 1; opacity: 0.5; }
.feature-title { font-weight: 500; font-size: 1.05rem; color: var(--navy); }
.feature-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

.testi-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.5rem; }
.testi-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.testi-stars { color: var(--gold); font-size: 0.875rem; margin-bottom: 0.75rem; }
.testi-text { font-size: 0.9rem; color: var(--text); line-height: 1.7; font-style: italic; margin-bottom: 1rem; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 500; color: var(--white); }
.testi-name { font-size: 0.875rem; font-weight: 500; color: var(--navy); }
.testi-role { font-size: 0.75rem; color: var(--muted); }

.cta-banner { background: linear-gradient(135deg, var(--ocean) 0%, var(--navy) 100%); padding: 5rem 2.5rem; text-align: center; }
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.65); max-width: 480px; margin: 0 auto 2rem; }
.btn-primary { background: var(--gold); color: var(--navy); border: none; padding: 0.85rem 2rem; font-family: inherit; font-size: 0.95rem; font-weight: 500; border-radius: 4px; cursor: pointer; transition: background 0.2s; margin: 0 0.5rem; }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); padding: 0.85rem 2rem; font-family: inherit; font-size: 0.95rem; border-radius: 4px; cursor: pointer; transition: all 0.2s; margin: 0 0.5rem; }
.btn-outline:hover { border-color: var(--white); }

footer { background: var(--navy); color: rgba(255,255,255,0.5); padding: 3rem 2.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.875rem; margin-top: 1rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; cursor: pointer; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.78rem; }

/* BROKER DIRECTORY */
.page-header { background: linear-gradient(160deg, var(--navy) 0%, var(--deep) 100%); padding: 8rem 2.5rem 4rem; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--white); margin-bottom: 0.75rem; }
.page-header p { color: rgba(255,255,255,0.6); font-size: 1.05rem; max-width: 500px; }

/* LISTING DETAIL PAGE */
.listing-detail-inner { max-width: 1100px; margin: 0 auto; padding: 6rem 2.5rem 4rem; }
.listing-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.listing-gallery { width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--sand); }
.listing-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.listing-thumbs img { width: 76px; height: 58px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 1px solid var(--border); transition: opacity 0.15s; }
.listing-thumbs img:hover { opacity: 0.8; }
.listing-page-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy); margin: 1.5rem 0 0.25rem; line-height: 1.2; }
.listing-page-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.listing-page-h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--navy); margin: 1.75rem 0 0.6rem; }
.listing-page-desc { color: var(--text); line-height: 1.8; font-size: 0.95rem; white-space: pre-wrap; }
.listing-detail-aside { position: sticky; top: 88px; }
@media (max-width: 860px) {
  .listing-detail-grid { grid-template-columns: 1fr; }
  .listing-detail-aside { position: static; }
  .listing-detail-inner { padding: 5rem 1.25rem 3rem; }
}

.card-fav.active { color: #e24b4a; }
.brokers-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 1.75rem; padding: 3rem 2.5rem; }
.broker-card { background: var(--white); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; cursor: pointer; }
.broker-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(10,22,40,0.12); }
.broker-card-banner { height: 80px; position: relative; }
.broker-card-body { padding: 0 1.5rem 1.5rem; }
.broker-logo { width: 64px; height: 64px; border-radius: 10px; border: 3px solid var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 600; margin-top: -32px; margin-bottom: 1rem; position: relative; box-shadow: 0 4px 12px rgba(10,22,40,0.12); }
.broker-verified { position: absolute; bottom: -4px; right: -4px; background: var(--gold); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 10px; border: 2px solid var(--white); }
.broker-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: 0.25rem; }
.broker-location { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; }
.broker-bio { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.broker-stats { display: flex; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.broker-stat strong { display: block; font-size: 1.1rem; font-weight: 500; color: var(--navy); }
.broker-stat span { font-size: 0.72rem; color: var(--muted); }
.broker-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.broker-tag { font-size: 0.72rem; background: var(--sand); color: var(--ocean); padding: 3px 10px; border-radius: 100px; font-weight: 500; }
.broker-tier { position: absolute; top: 12px; right: 12px; font-size: 0.65rem; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 3px; font-weight: 500; }
.tier-pro { background: var(--gold); color: var(--navy); }
.tier-basic { background: rgba(255,255,255,0.2); color: var(--white); }
.btn-broker { width: 100%; background: var(--navy); color: var(--white); border: none; padding: 0.7rem; border-radius: 5px; font-family: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.btn-broker:hover { background: var(--ocean); }

/* STOREFRONT */
.storefront-header { background: var(--navy); padding: 8rem 2.5rem 0; }
.storefront-banner { height: 200px; border-radius: 10px 10px 0 0; overflow: hidden; }
.storefront-info { background: var(--white); padding: 0 2.5rem 2rem; border-bottom: 1px solid var(--border); }
.storefront-profile { display: flex; align-items: flex-end; gap: 1.5rem; margin-top: -50px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.storefront-logo { width: 100px; height: 100px; border-radius: 12px; border: 4px solid var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 600; box-shadow: 0 4px 20px rgba(10,22,40,0.15); flex-shrink: 0; position: relative; }
.storefront-logo .broker-verified { width: 26px; height: 26px; font-size: 13px; bottom: -6px; right: -6px; }
.storefront-meta { padding-bottom: 0.5rem; }
.storefront-meta h1 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy); margin-bottom: 0.2rem; }
.storefront-meta p { color: var(--muted); font-size: 0.9rem; }
.storefront-actions { margin-left: auto; padding-bottom: 0.5rem; display: flex; gap: 0.75rem; align-items: flex-end; }
.storefront-tabs { display: flex; border-bottom: 2px solid var(--border); }
.storefront-tab { padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.storefront-tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.storefront-body { padding: 2.5rem; }
.storefront-overview { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; }
.storefront-about h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--navy); margin-bottom: 1rem; }
.storefront-about p { color: var(--muted); line-height: 1.8; font-size: 0.925rem; margin-bottom: 1rem; }
.storefront-specialties h4 { font-weight: 500; font-size: 0.875rem; color: var(--navy); margin-bottom: 0.75rem; margin-top: 1.5rem; }
.spec-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.spec-chip { background: var(--sand); color: var(--ocean); font-size: 0.8rem; padding: 5px 12px; border-radius: 100px; }
.storefront-contact-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; align-self: start; }
.storefront-contact-card h4 { font-weight: 500; font-size: 0.875rem; color: var(--navy); margin-bottom: 1rem; }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); }
.contact-row:last-of-type { border-bottom: none; }
.contact-row strong { color: var(--navy); }
.contact-btn { width: 100%; margin-top: 1rem; background: var(--gold); color: var(--navy); border: none; padding: 0.8rem; border-radius: 5px; font-family: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.contact-btn:hover { background: var(--gold-light); }
.storefront-stats-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.sf-stat { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; flex: 1; min-width: 120px; }
.sf-stat strong { display: block; font-size: 1.5rem; font-weight: 500; color: var(--navy); }
.sf-stat span { font-size: 0.75rem; color: var(--muted); }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,22,40,0.7); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: 12px; width: 100%; max-width: 860px; max-height: 90vh; overflow-y: auto; position: relative; transform: translateY(20px); transition: transform 0.25s; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; background: rgba(10,22,40,0.08); border: none; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; z-index: 10; transition: background 0.2s; }
.modal-close:hover { background: rgba(10,22,40,0.15); }
.modal-hero { height: 320px; position: relative; overflow: hidden; border-radius: 12px 12px 0 0; background: #0d1f3c; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-hero svg { width: 100%; height: 100%; }
.modal-body { padding: 2rem; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy); margin-bottom: 0.25rem; }
.modal-subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal-specs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 2rem; }
.modal-spec { background: var(--sand); border-radius: 6px; padding: 0.75rem 1rem; }
.modal-spec-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.modal-spec-value { font-weight: 500; color: var(--navy); font-size: 0.95rem; }
.modal-cols { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }
.modal-desc h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: 0.75rem; }
.modal-desc p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }
.modal-price-card { background: var(--navy); border-radius: 8px; padding: 1.5rem; align-self: start; }
.modal-price { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--white); margin-bottom: 0.25rem; }
.modal-price-note { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }
.modal-cta { width: 100%; background: var(--gold); color: var(--navy); border: none; padding: 0.85rem; border-radius: 5px; font-family: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer; margin-bottom: 0.75rem; transition: background 0.2s; }
.modal-cta:hover { background: var(--gold-light); }
.modal-cta-sec { width: 100%; background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); padding: 0.85rem; border-radius: 5px; font-family: inherit; font-size: 0.875rem; cursor: pointer; transition: all 0.2s; }
.modal-cta-sec:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.modal-broker-row { display: flex; align-items: center; gap: 10px; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.modal-broker-name { font-size: 0.85rem; color: var(--white); font-weight: 500; }
.modal-broker-label { font-size: 0.72rem; color: rgba(255,255,255,0.45); }

/* LIST FORM */
.list-form-page { padding: 8rem 2.5rem 4rem; max-width: 820px; margin: 0 auto; }
.list-form-page h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--navy); margin-bottom: 0.5rem; }
.list-form-page > p { color: var(--muted); margin-bottom: 2.5rem; }
.form-section { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 2rem; margin-bottom: 1.5rem; }
.form-section h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: 0.8rem; font-weight: 500; color: var(--navy); }
.form-group input,.form-group select,.form-group textarea { padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: 5px; font-family: inherit; font-size: 0.9rem; color: var(--text); background: var(--cream); outline: none; transition: border-color 0.2s; }
.form-group input:focus,.form-group select:focus,.form-group textarea:focus { border-color: var(--ocean); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.upload-zone { border: 2px dashed var(--border); border-radius: 8px; padding: 2.5rem; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--cream); }
.upload-zone:hover { border-color: var(--ocean); }
.upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-text { font-size: 0.9rem; color: var(--muted); }
.upload-text strong { color: var(--ocean); }
.pricing-tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.pricing-tier { border: 2px solid var(--border); border-radius: 8px; padding: 1.25rem; cursor: pointer; transition: all 0.2s; position: relative; }
.pricing-tier:hover { border-color: var(--ocean); }
.pricing-tier.selected { border-color: var(--gold); background: rgba(201,150,58,0.04); }
.pricing-tier-name { font-weight: 500; color: var(--navy); font-size: 0.95rem; margin-bottom: 0.25rem; }
.pricing-tier-price { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 0.25rem; }
.pricing-tier-price span { font-size: 0.8rem; font-family: 'DM Sans',sans-serif; color: var(--muted); }
.pricing-tier-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.pricing-tier-badge { position: absolute; top: -10px; right: 12px; background: var(--gold); color: var(--navy); font-size: 0.65rem; padding: 2px 8px; border-radius: 100px; font-weight: 500; }
.form-submit { width: 100%; background: var(--gold); color: var(--navy); border: none; padding: 1rem; border-radius: 6px; font-family: inherit; font-size: 1rem; font-weight: 500; cursor: pointer; transition: background 0.2s; margin-top: 0.5rem; }
.form-submit:hover { background: var(--gold-light); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.875rem; cursor: pointer; margin-bottom: 2rem; border: none; background: none; font-family: inherit; padding: 0; transition: color 0.2s; }
.back-btn:hover { color: var(--navy); }
.success-screen { text-align: center; padding: 5rem 2.5rem; }
.success-icon { width: 72px; height: 72px; background: rgba(29,158,117,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.5rem; }
.success-screen h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy); margin-bottom: 0.75rem; }
.success-screen p { color: var(--muted); max-width: 400px; margin: 0 auto 2rem; }

/* BROKER SEARCH BAR */
.broker-search-bar { padding: 1.5rem 2.5rem 0; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.broker-search-input { flex: 1; min-width: 220px; padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 0.9rem; background: var(--white); outline: none; transition: border-color 0.2s; color: var(--text); }
.broker-search-input:focus { border-color: var(--ocean); }
.broker-filter-select { padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 0.875rem; background: var(--white); outline: none; cursor: pointer; color: var(--text); }
.broker-filter-select:focus, .broker-filter-select:hover { border-color: var(--ocean); color: var(--navy); }
.broker-results-count { font-size: 0.82rem; color: var(--muted); padding: 0.5rem 2.5rem 0; }

/* ADVANCED LISTING FILTERS */
.adv-filter-bar { display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; padding: 0.75rem 1rem; background: var(--white); border: 1px solid var(--border); border-radius: 8px; }
.adv-filter-select { background: var(--cream); border: 1px solid var(--border); border-radius: 6px; padding: 0.42rem 0.8rem; font-family: inherit; font-size: 0.82rem; color: var(--muted); outline: none; cursor: pointer; transition: border-color 0.18s; }
.adv-filter-select:focus, .adv-filter-select:hover { border-color: var(--ocean); color: var(--navy); }

/* CONTACT MODAL */
.contact-modal-overlay { position: fixed; inset: 0; background: rgba(10,22,40,0.65); z-index: 600; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.contact-modal-overlay.open { opacity: 1; pointer-events: all; }
.contact-modal { background: var(--white); border-radius: 12px; width: 100%; max-width: 520px; position: relative; transform: translateY(16px); transition: transform 0.2s; overflow: hidden; }
.contact-modal-overlay.open .contact-modal { transform: translateY(0); }
.contact-modal-header { background: var(--navy); padding: 1.5rem 2rem; }
.contact-modal-header h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 0.2rem; }
.contact-modal-header p { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.contact-modal-close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: var(--white); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.contact-modal-close:hover { background: rgba(255,255,255,0.2); }
.contact-modal-body { padding: 1.75rem 2rem; }
.contact-form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.contact-form-group label { font-size: 0.78rem; font-weight: 500; color: var(--navy); }
.contact-form-group input, .contact-form-group textarea, .contact-form-group select { padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: 5px; font-family: inherit; font-size: 0.875rem; color: var(--text); background: var(--cream); outline: none; transition: border-color 0.2s; }
.contact-form-group input:focus, .contact-form-group textarea:focus, .contact-form-group select:focus { border-color: var(--ocean); background: var(--white); }
.contact-form-group textarea { resize: vertical; min-height: 90px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.contact-type-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.contact-type-tab { flex: 1; padding: 0.5rem; border: 1px solid var(--border); border-radius: 5px; font-family: inherit; font-size: 0.8rem; cursor: pointer; background: var(--cream); color: var(--muted); transition: all 0.18s; text-align: center; }
.contact-type-tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.contact-submit { width: 100%; background: var(--gold); color: var(--navy); border: none; padding: 0.85rem; border-radius: 5px; font-family: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: background 0.2s; margin-top: 0.25rem; }
.contact-submit:hover { background: var(--gold-light); }
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-success { text-align: center; padding: 2rem; }
.contact-success-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.contact-success h4 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 0.5rem; }
.contact-success p { font-size: 0.875rem; color: var(--muted); }

/* PHOTO UPLOAD */
.upload-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap: 0.75rem; margin-top: 1rem; }
.upload-preview-item { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-remove { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; background: rgba(10,22,40,0.7); border: none; border-radius: 50%; color: white; font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.upload-count { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }

/* BROKER SIGNUP MODAL */
.signup-modal-overlay { position: fixed; inset: 0; background: rgba(10,22,40,0.65); z-index: 600; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.signup-modal-overlay.open { opacity: 1; pointer-events: all; }
.signup-modal { background: var(--white); border-radius: 12px; width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto; position: relative; transform: translateY(16px); transition: transform 0.2s; }
.signup-modal-overlay.open .signup-modal { transform: translateY(0); }
.signup-modal-header { background: linear-gradient(135deg, var(--navy), var(--ocean)); padding: 2rem; text-align: center; }
.signup-modal-header h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--white); margin-bottom: 0.5rem; }
.signup-modal-header p { font-size: 0.875rem; color: rgba(255,255,255,0.65); }
.signup-modal-close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: var(--white); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.signup-modal-close:hover { background: rgba(255,255,255,0.2); }
.signup-plan-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.75rem; padding: 1.5rem 1.5rem 0; }
.signup-plan { border: 2px solid var(--border); border-radius: 8px; padding: 1rem; cursor: pointer; transition: all 0.18s; text-align: center; position: relative; }
.signup-plan:hover { border-color: var(--ocean); }
.signup-plan.selected { border-color: var(--gold); background: rgba(201,150,58,0.04); }
.signup-plan-name { font-weight: 500; font-size: 0.875rem; color: var(--navy); margin-bottom: 0.25rem; }
.signup-plan-price { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); }
.signup-plan-price span { font-size: 0.75rem; font-family: 'DM Sans',sans-serif; color: var(--muted); }
.signup-plan-badge { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy); font-size: 0.6rem; padding: 2px 8px; border-radius: 100px; white-space: nowrap; font-weight: 500; }
.signup-modal-form { padding: 1.5rem; }
.signup-submit { width: 100%; background: var(--gold); color: var(--navy); border: none; padding: 0.9rem; border-radius: 5px; font-family: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer; margin-top: 1rem; transition: background 0.2s; }
.signup-submit:hover { background: var(--gold-light); }
.signup-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* LOADING STATES */
.skeleton { background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.loading-card { background: var(--white); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.loading-img { height: 220px; }
.loading-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.loading-line { height: 14px; }
.loading-line.w60 { width: 60%; }
.loading-line.w80 { width: 80%; }
.loading-line.w40 { width: 40%; }

.error-state { text-align: center; padding: 3rem; grid-column: 1/-1; color: var(--muted); }
.error-state .error-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.error-state p { font-size: 0.9rem; }
.error-state button { margin-top: 1rem; }

/* LOCATION / DISTANCE FILTER */
.location-filter-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; padding: 0.75rem 1rem; background: linear-gradient(135deg, rgba(10,22,40,0.04), rgba(26,74,110,0.06)); border: 1px solid rgba(26,74,110,0.18); border-radius: 8px; }
.nearme-btn { display: flex; align-items: center; gap: 6px; background: var(--navy); color: var(--white); border: none; border-radius: 6px; padding: 0.45rem 1rem; font-family: inherit; font-size: 0.83rem; font-weight: 500; cursor: pointer; transition: background 0.18s, transform 0.15s; white-space: nowrap; }
.nearme-btn:hover { background: var(--ocean); transform: translateY(-1px); }
.nearme-btn.locating { background: var(--ocean); opacity: 0.8; cursor: wait; }
.nearme-btn.located { background: #1a7a4a; }
.nearme-btn.located:hover { background: #1d9e60; }
.distance-select { background: var(--white); border: 1px solid rgba(26,74,110,0.25); border-radius: 6px; padding: 0.45rem 0.8rem; font-family: inherit; font-size: 0.83rem; color: var(--navy); outline: none; cursor: pointer; font-weight: 500; transition: border-color 0.18s; }
.distance-select:disabled { opacity: 0.4; cursor: not-allowed; }
.distance-select:focus { border-color: var(--ocean); }
.location-status { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.location-status.success { color: #1a7a4a; }
.location-status.error { color: #c0392b; }
.location-divider { width: 1px; height: 18px; background: rgba(10,22,40,0.15); }
.card-distance { font-size: 0.72rem; color: var(--sky); font-weight: 500; margin-top: 2px; }

/* GEOCODE STATUS in form */
.geocode-status { font-size: 0.75rem; margin-top: 0.3rem; min-height: 1rem; transition: color 0.2s; }
.geocode-status.loading { color: var(--ocean); }
.geocode-status.success { color: #1a7a4a; }
.geocode-status.error { color: #c0392b; }
.geocode-status.idle { color: var(--muted); }

/* ENQUIRY CARDS */
.enquiry-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 0.75rem; display: flex; align-items: flex-start; gap: 1.25rem; cursor: pointer; transition: box-shadow 0.2s, border-color 0.2s; }
.enquiry-card:hover { box-shadow: 0 4px 16px rgba(10,22,40,0.09); border-color: rgba(26,74,110,0.2); }
.enquiry-card.unread { border-left: 3px solid var(--gold); }
.enquiry-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ocean); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 600; flex-shrink: 0; }
.enquiry-body { flex: 1; min-width: 0; }
.enquiry-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.25rem; flex-wrap: wrap; }
.enquiry-sender { font-weight: 500; color: var(--navy); font-size: 0.9rem; }
.enquiry-time { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.enquiry-listing-ref { font-size: 0.75rem; color: var(--ocean); margin-bottom: 0.4rem; }
.enquiry-preview { font-size: 0.85rem; color: var(--muted); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enquiry-meta { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.5rem; flex-wrap: wrap; }
.enquiry-tag { font-size: 0.68rem; background: var(--sand); color: var(--ocean); padding: 2px 8px; border-radius: 100px; font-weight: 500; }
.enquiry-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 6px; }

/* BROWSE PAGE — featured strip cards */
.listing-card.is-featured { border-color: rgba(201,150,58,0.35); box-shadow: 0 0 0 1px rgba(201,150,58,0.2); }
.listing-card.is-featured:hover { box-shadow: 0 16px 48px rgba(10,22,40,0.12), 0 0 0 1px rgba(201,150,58,0.35); }

/* MY LISTINGS — management cards */
.my-listing-card { background: var(--white); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; transition: box-shadow 0.2s; }
.my-listing-card:hover { box-shadow: 0 8px 24px rgba(10,22,40,0.1); }
.my-listing-card-img { height: 160px; position: relative; background: #0d1f3c; overflow: hidden; }
.my-listing-card-img img { width: 100%; height: 100%; object-fit: cover; }
.my-listing-card-img svg { width: 100%; height: 100%; }
.my-listing-status { position: absolute; top: 10px; left: 10px; font-size: 0.68rem; font-weight: 500; padding: 3px 8px; border-radius: 3px; letter-spacing: 0.06em; }
.status-active   { background: #1a7a4a; color: #fff; }
.status-pending  { background: var(--gold); color: var(--navy); }
.status-sold     { background: var(--navy); color: #fff; }
.status-inactive { background: var(--muted); color: #fff; }
.my-listing-card-body { padding: 1rem 1.25rem; }
.my-listing-card-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--navy); margin-bottom: 0.25rem; }
.my-listing-card-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; }
.my-listing-card-actions { display: flex; gap: 0.5rem; }
.btn-edit { flex: 1; background: var(--navy); color: var(--white); border: none; padding: 0.55rem; border-radius: 4px; font-family: inherit; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: background 0.18s; }
.btn-edit:hover { background: var(--ocean); }
.btn-preview { flex: 1; background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 0.55rem; border-radius: 4px; font-family: inherit; font-size: 0.8rem; cursor: pointer; transition: all 0.18s; }
.btn-preview:hover { border-color: var(--ocean); color: var(--ocean); }
.auth-modal-overlay { position: fixed; inset: 0; background: rgba(10,22,40,0.72); z-index: 700; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.22s; }
.auth-modal-overlay.open { opacity: 1; pointer-events: all; }
.auth-modal { background: var(--white); border-radius: 14px; width: 100%; max-width: 440px; overflow: hidden; position: relative; transform: translateY(18px); transition: transform 0.22s; }
.auth-modal-overlay.open .auth-modal { transform: translateY(0); }
.auth-modal-header { background: linear-gradient(135deg, var(--navy), var(--ocean)); padding: 2rem 2rem 1.5rem; text-align: center; }
.auth-modal-header h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--white); margin-bottom: 0.3rem; }
.auth-modal-header p { font-size: 0.82rem; color: rgba(255,255,255,0.58); }
.auth-modal-close { position: absolute; top: 1rem; right: 1rem; width: 30px; height: 30px; background: rgba(255,255,255,0.12); border: none; border-radius: 50%; color: var(--white); font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.auth-modal-close:hover { background: rgba(255,255,255,0.22); }
.auth-modal-body { padding: 1.75rem 2rem 2rem; }
.auth-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.auth-tab { flex: 1; text-align: center; padding: 0.6rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.18s; }
.auth-tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.auth-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.auth-field label { font-size: 0.78rem; font-weight: 500; color: var(--navy); }
.auth-field input { padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: 5px; font-family: inherit; font-size: 0.9rem; color: var(--text); background: var(--cream); outline: none; transition: border-color 0.2s; }
.auth-field input:focus { border-color: var(--ocean); background: var(--white); }
.auth-submit { width: 100%; background: var(--gold); color: var(--navy); border: none; padding: 0.85rem; border-radius: 5px; font-family: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: background 0.2s; margin-top: 0.25rem; }
.auth-submit:hover { background: var(--gold-light); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-error { font-size: 0.78rem; color: #c0392b; min-height: 1rem; margin-bottom: 0.5rem; }
.auth-footer-note { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 1rem; }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; }
.auth-divider hr { flex: 1; border: none; border-top: 1px solid var(--border); }
.auth-divider span { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

/* NAV AUTH STATE */
.nav-signin { background: transparent !important; border: 1px solid rgba(255,255,255,0.3) !important; color: rgba(255,255,255,0.85) !important; padding: 0.42rem 1rem !important; border-radius: 4px !important; font-size: 0.83rem !important; transition: all 0.18s !important; }
.nav-signin:hover { border-color: rgba(255,255,255,0.7) !important; color: var(--white) !important; }
.nav-user { display: flex; align-items: center; gap: 8px; cursor: pointer; position: relative; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 600; flex-shrink: 0; }
.nav-user-name { font-size: 0.83rem; color: rgba(255,255,255,0.8); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background: var(--white); border-radius: 8px; box-shadow: 0 8px 32px rgba(10,22,40,0.18); min-width: 160px; overflow: hidden; display: none; z-index: 300; border: 1px solid var(--border); }
.nav-user:hover .nav-dropdown, .nav-user.open .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 0.65rem 1rem; font-size: 0.85rem; color: var(--text); cursor: pointer; transition: background 0.15s; text-decoration: none; }
.nav-dropdown a:hover { background: var(--sand); }
.nav-dropdown .signout { color: #c0392b; border-top: 1px solid var(--border); }

/* CHAR COUNTER */
.char-counter { font-size: 0.72rem; text-align: right; margin-top: 0.25rem; transition: color 0.2s; }
.char-counter.warn { color: var(--gold); }
.char-counter.over { color: #c0392b; font-weight: 500; }
.char-counter.ok { color: var(--muted); }

/* CONTACT MODAL — simplified Autotrader style */
.contact-modal { background: var(--white); border-radius: 12px; width: 100%; max-width: 480px; position: relative; transform: translateY(16px); transition: transform 0.2s; overflow: hidden; }

/* HAMBURGER + MOBILE MENU */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.85); border-radius: 2px; transition: all 0.25s ease; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; z-index: 190; display: flex; flex-direction: column; background: var(--navy); transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-inner { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.mobile-nav-link { display: flex; align-items: center; padding: 1rem 0; color: rgba(255,255,255,0.8); font-size: 1.1rem; font-weight: 400; border-bottom: 1px solid rgba(255,255,255,0.07); cursor: pointer; background: none; border-left: none; border-right: none; border-top: none; font-family: inherit; text-align: left; width: 100%; transition: color 0.18s; letter-spacing: 0.01em; }
.mobile-nav-link:hover { color: var(--white); }
.mobile-nav-cta { background: var(--gold); color: var(--navy) !important; padding: 1rem 1.5rem; border-radius: 6px; text-align: center; font-weight: 600; font-size: 1rem; margin-top: 1.25rem; border: none; font-family: inherit; cursor: pointer; width: 100%; transition: background 0.2s; }
.mobile-nav-cta:hover { background: var(--gold-light); }
.mobile-nav-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 0.5rem 0; }
.mobile-nav-section { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); padding: 1rem 0 0.5rem; font-weight: 500; }
.mobile-user-row { display: flex; align-items: center; gap: 12px; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-user-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 600; flex-shrink: 0; }
.mobile-user-name { font-size: 0.95rem; color: var(--white); font-weight: 500; }
.mobile-user-email { font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.mobile-signout { color: #e87070 !important; }

@media(max-width:768px){
  nav{padding:0 1.25rem;}
  .hamburger{display:flex;}
  .nav-links{display:none;}
  .broker-search-bar{padding:1.25rem 1.25rem 0;}
  .broker-results-count{padding:0.5rem 1.25rem 0;}
  section{padding:3.5rem 1.25rem;}
  .hero{padding:0 1.25rem 4rem;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .modal-cols{grid-template-columns:1fr;}
  .modal-specs-grid{grid-template-columns:1fr 1fr;}
  .storefront-overview{grid-template-columns:1fr;}
  .form-grid{grid-template-columns:1fr;}
  .pricing-tiers{grid-template-columns:1fr;}
  .brokers-grid{padding:2rem 1.25rem;}
  .storefront-body{padding:1.5rem;}
  .storefront-actions{margin-left:0;}
  .list-form-page{padding:5rem 1.25rem 3rem;}
}
