/* MLS public pages — extends style.css */
.container-fluid { max-width: 1600px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-8 { margin-bottom: 8px; }
.muted { color: var(--text-light); } .small { font-size: 0.85rem; }
.nav-cta { background: var(--accent); color: var(--primary) !important; padding: 8px 16px !important; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--accent-light); }
.site-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; color: #fff; }

/* Search form */
.mls-search .search-inputs { flex-wrap: wrap; }
.mls-search .search-field.grow { flex: 2 1 260px; }
.mls-search .search-field { flex: 1 1 160px; }
.mls-search.compact { box-shadow: var(--shadow); margin: 0; }
.filters-more { margin: 12px 0 0; }
.filters-more summary { cursor: pointer; font-weight: 600; color: var(--primary); padding: 8px 0; }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: end; padding: 12px 0 8px; }
.filters-grid label { display: flex; flex-direction: column; font-size: 0.8rem; font-weight: 600; color: var(--text-light); gap: 4px; }
.filters-grid input, .filters-grid select { padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 0.9rem; }

/* Cards */
.mls-card .card-type { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.72rem; padding: 3px 8px; border-radius: 6px; }
.mls-card.is-featured { outline: 2px solid var(--accent); }
.property-price .price-2 { font-size: 0.85rem; color: var(--text-light); margin-left: 8px; }
.property-grid.grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Search layout */
.search-page { padding: 96px 0 40px; }
.search-top { padding-top: 12px; }
.search-layout { display: grid; grid-template-columns: minmax(0, 1fr) 42%; gap: 24px; margin-top: 20px; align-items: start; }
.search-map { position: sticky; top: 90px; height: calc(100vh - 110px); border-radius: var(--radius); overflow: hidden; background: #e9e7e2; box-shadow: var(--shadow); }
.results-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.results-head h1 { font-size: 1.5rem; font-family: 'Playfair Display', serif; }
.results-count { color: var(--text-light); }
.map-toggle { display: none; margin-left: auto; }
.leaflet-popup-content { margin: 8px; font-family: Inter, sans-serif; }
.map-pop img { width: 200px; height: 120px; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 6px; }
.map-pop b { display: block; font-size: 0.95rem; }
.price-marker { background: #fff; border: 2px solid var(--primary); border-radius: 999px; padding: 2px 8px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,0.25); color: var(--primary); }
.price-marker.featured { background: var(--accent); border-color: var(--accent-dark); }
.pagination { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 32px 0; }
.page-btn { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font-weight: 500; }
.page-btn:hover { border-color: var(--primary); }
@media (max-width: 1000px) {
  .search-layout { grid-template-columns: 1fr; }
  .search-map { display: none; position: fixed; inset: 70px 0 0; height: auto; z-index: 500; border-radius: 0; }
  .search-map.open { display: block; }
  .map-toggle { display: inline-flex; }
}

/* Listing page */
.listing-page { padding: 100px 24px 40px; }
.crumbs { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }
.crumbs a { color: var(--text-light); }
.gallery { display: grid; gap: 8px; border-radius: var(--radius); overflow: hidden; height: 460px; }
.gallery.multi { grid-template-columns: 2fr 1fr; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-main { height: 100%; background: #e9e7e2; }
.gallery-side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; }
.gallery-side img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gallery-more { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,0.7); color: #fff; border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.gallery-strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; }
.gallery-strip img { height: 80px; border-radius: 6px; cursor: pointer; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 95vw; max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 20px; }
.lightbox .lb-prev { left: 8px; right: auto; } .lightbox .lb-next { right: 8px; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; margin-top: 24px; align-items: start; }
.listing-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.listing-head h1 { font-family: 'Playfair Display', serif; font-size: 1.9rem; margin: 6px 0; }
.badge-type-inline { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-dark); font-weight: 600; }
.price-big { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.listing-prices { text-align: right; }
.spec-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 0 0 28px; }
.spec-grid li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.spec-grid b { display: block; font-size: 1.2rem; } .spec-grid span { font-size: 0.78rem; color: var(--text-light); }
.listing-main h2 { font-size: 1.2rem; margin: 24px 0 10px; }
.prose { white-space: pre-line; line-height: 1.7; }
.feature-list { list-style: none; columns: 2; gap: 24px; }
.feature-list li { padding: 4px 0; break-inside: avoid; }
.media-links { display: flex; gap: 12px; margin: 16px 0; }
.listing-map { height: 320px; border-radius: var(--radius); overflow: hidden; }
.listing-meta { margin-top: 24px; color: var(--text-muted); font-size: 0.8rem; }
.listing-side { position: sticky; top: 90px; }
.agent-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.agent-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.agent-avatar.initials { display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--accent); font-weight: 700; font-size: 1.2rem; }
.agent-avatar.big { width: 90px; height: 90px; font-size: 1.6rem; margin: 0 auto 8px; }
.agent-avatar.xl { width: 140px; height: 140px; font-size: 2.4rem; }
.agent-avatar.logo { border-radius: 12px; object-fit: contain; background: #fff; }
.verified-badge { color: #2d7a4a; font-size: 0.8rem; font-weight: 600; }
.lead-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.lead-form .wa-btn { margin-top: 10px; }
.share-row { display: flex; gap: 8px; margin-top: 12px; }
.banner-slot { margin: 16px auto; text-align: center; } .banner-slot img { max-width: 100%; border-radius: var(--radius-sm); }
.banner-slot.side { margin-top: 16px; }
.similar { margin-top: 48px; } .similar h2 { font-family: 'Playfair Display', serif; margin-bottom: 16px; }
@media (max-width: 900px) { .listing-layout { grid-template-columns: 1fr; } .listing-side { position: static; } .gallery { height: 300px; } .gallery.multi { grid-template-columns: 1fr; } .gallery-side { display: none; } }

/* Directory / profiles */
.page { padding: 110px 24px 60px; }
.page h1 { font-family: 'Playfair Display', serif; }
.inline-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 32px; }
.inline-search input { flex: 1; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.people-grid.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.person-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 4px; color: var(--text); transition: var(--transition); }
.person-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.person-card img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; }
.person-card img.logo { border-radius: 12px; object-fit: contain; }
.profile-head { display: flex; gap: 28px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.profile-bio { max-width: 800px; margin-bottom: 32px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* Home extras */
.cities-section { padding: 60px 0; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.city-chip { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; color: var(--text); }
.city-chip span { font-size: 0.8rem; color: var(--text-light); }
.city-chip:hover { border-color: var(--accent); }
.agent-cta { background: var(--primary); color: #fff; padding: 80px 0; }
.agent-cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.agent-cta h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin: 8px 0 20px; }
.section-tag.light { color: var(--accent); }
.check-list { list-style: none; margin: 0 0 24px; }
.check-list li { padding: 6px 0 6px 28px; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.check-list.dark li::before { color: #2d7a4a; }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.5); color: #fff; background: transparent; padding: 14px 28px; border-radius: 999px; font-weight: 600; display: inline-flex; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.mock-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 20px; }
.mock-bar { height: 12px; width: 50%; background: var(--accent); border-radius: 6px; margin-bottom: 16px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .mock-grid span { height: 70px; background: rgba(255,255,255,0.12); border-radius: 8px; }
@media (max-width: 800px) { .agent-cta-inner { grid-template-columns: 1fr; } .agent-cta-art { display: none; } }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.price-card h2 { font-size: 1.1rem; } .price-card .price-big { margin: 8px 0 12px; } .price-card.free { border-color: var(--accent); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.docs pre { background: #0a0a0a; color: #e4cc7a; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 0.8rem; line-height: 1.5; margin: 12px 0; }
.docs h2 { font-size: 1.15rem; margin-bottom: 8px; }

/* White-label site tweaks */
.site-hero { background-size: cover; background-position: center; }
.site-contact { padding: 70px 0; background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.footer-contact.big li { font-size: 1.05rem; padding: 4px 0; }
.about-section { padding: 70px 0; }
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.about-photo { width: 100%; border-radius: var(--radius); }
.site-footer { padding: 24px 0; text-align: center; }
.person-card.static { cursor: default; }
@media (max-width: 800px) { .contact-grid, .about-grid { grid-template-columns: 1fr; } }

.muted-light { color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.legal h2 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal { white-space: normal; }

/* Phase 2 */
.fav-btn { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.92); border: 0; border-radius: 50%; width: 34px; height: 34px; font-size: 1.1rem; color: #999; cursor: pointer; z-index: 2; }
.fav-btn.on { color: #d6336c; } .fav-btn-text.on { color: #d6336c; border-color: #d6336c; }
.nav-fav { color: #e4cc7a !important; }
.alert-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-form input[type=email] { flex: 1; min-width: 180px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.report-box { margin-top: 14px; font-size: 0.85rem; } .report-box summary { cursor: pointer; color: var(--text-light); }
.report-form { display: flex; gap: 6px; flex-wrap: wrap; } .report-form select, .report-form input { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: 0.85rem; } .report-form input { flex: 1; min-width: 120px; }
.risk-banner { border-radius: var(--radius-sm); padding: 14px 18px; margin: 12px 0 20px; line-height: 1.5; }
.risk-banner.alto { background: #fdecec; border: 1px solid #f3b4b4; color: #7a1f1f; } .risk-banner.medio { background: #fff7e0; border: 1px solid #f0d78c; color: #6b4e00; } .risk-banner.bajo { background: #e9f7ee; border: 1px solid #b9e2c6; color: #1f5c33; }
.risk-banner a { font-weight: 600; color: inherit; text-decoration: underline; } .risk-banner.small { font-size: 0.9rem; padding: 10px 14px; }
.sold-banner b { font-size: 1.1rem; letter-spacing: 0.05em; }
.risk-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 12px 0; }
.rl { border-radius: var(--radius-sm); padding: 14px; } .rl b { display: block; margin-bottom: 4px; } .rl span { font-size: 0.9rem; }
.rl.alto { background: #fdecec; } .rl.medio { background: #fff7e0; } .rl.bajo { background: #e9f7ee; }
.risk-list li { margin-bottom: 8px; } .risk-checklist li { margin: 10px 0; line-height: 1.5; }
.risks h2 { margin-top: 32px; }
.cases td { vertical-align: top; font-size: 0.85rem; }
.risk-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.risk-card h2 { margin: 0 0 10px !important; display: flex; align-items: center; gap: 10px; }
.risk-score { font-size: 0.85rem; padding: 3px 10px; border-radius: 999px; } .risk-score.alto { background: #fdecec; color: #7a1f1f; } .risk-score.medio { background: #fff7e0; color: #6b4e00; } .risk-score.bajo { background: #e9f7ee; color: #1f5c33; }
.risk-checks { list-style: none; columns: 2; gap: 20px; font-size: 0.9rem; } .risk-checks li { break-inside: avoid; padding: 3px 0; } .risk-checks .no { color: #b3261e; } .risk-checks .ok { color: #1f5c33; }
.risk-chip { background: #b3261e !important; } .risk-chip.medio { background: #a56f00 !important; } .risk-chip.bajo { background: #1f5c33 !important; }
.risk-ack { font-size: 0.82rem; align-items: flex-start; }
@media (max-width: 700px) { .risk-checks { columns: 1; } }

/* ===== Light / dark theme ===== */
.logo-light { display: none; } .logo-dark { display: block; }
.theme-toggle { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #fff; border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; line-height: 1; }
.theme-toggle .tt-sun { display: none; } .theme-toggle .tt-moon { display: inline; }
.nav-account { color: var(--accent) !important; font-weight: 600; }
:root[data-theme="light"] { --primary: #0b1f33; --primary-mid: #14304d; --primary-light: #1e4368; --bg: #fbfaf7; }
:root[data-theme="light"] .logo-light { display: block; } :root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .theme-toggle { border-color: rgba(0,0,0,0.25); color: #0b1f33; } :root[data-theme="light"] .theme-toggle .tt-sun { display: inline; } :root[data-theme="light"] .theme-toggle .tt-moon { display: none; }
:root[data-theme="light"] .navbar { background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
:root[data-theme="light"] .navbar.scrolled { background: rgba(255,255,255,0.97); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
:root[data-theme="light"] .nav-links a { color: #1a1a1a; } :root[data-theme="light"] .nav-links a:hover { color: var(--accent-dark); }
:root[data-theme="light"] .nav-links a::after { background: var(--accent-dark); }
:root[data-theme="light"] .lang-switch, :root[data-theme="light"] .lang-switch-mobile { color: #1a1a1a; border-color: rgba(0,0,0,0.2); }
:root[data-theme="light"] .nav-toggle span { background: #1a1a1a; }
:root[data-theme="light"] .nav-links.active { background: #fff; }
:root[data-theme="light"] .site-name { color: #0b1f33; }
:root[data-theme="light"] .hero { background: linear-gradient(160deg, #fbfaf7 0%, #f1ede4 45%, #e9e2d3 100%); }
:root[data-theme="light"] .hero::before { background: radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.16) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.12) 0%, transparent 50%); }
:root[data-theme="light"] .hero-overlay { opacity: 0.25; filter: invert(1); }
:root[data-theme="light"] .hero-content, :root[data-theme="light"] .hero h1, :root[data-theme="light"] .hero-content > p { color: #0b1f33; }
:root[data-theme="light"] .hero h1 em { color: var(--accent-dark); }
:root[data-theme="light"] .hero-badge { background: rgba(201,168,76,0.18); border-color: rgba(201,168,76,0.5); color: #7a5a00; }
:root[data-theme="light"] .hero-stats .stat-number { color: #0b1f33; } :root[data-theme="light"] .hero-stats .stat-label { color: #555; } :root[data-theme="light"] .stat-divider { background: rgba(0,0,0,0.15); }
:root[data-theme="light"] .search-bar { background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
:root[data-theme="light"] .footer { background: #f1ede4; color: #444; border-top: 1px solid var(--border); }
:root[data-theme="light"] .footer h4, :root[data-theme="light"] .footer a { color: #0b1f33; } :root[data-theme="light"] .footer-bottom { border-color: rgba(0,0,0,0.1); color: #666; }
:root[data-theme="light"] .agent-cta { background: #0b1f33; }
:root[data-theme="light"] .site-hero .hero-overlay { filter: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .logo-light { display: block; } }

/* Price history / comps / mortgage / account */
.price-hist td { padding: 6px 10px; } .down { color: #1f5c33; font-weight: 600; } .up { color: #b3261e; font-weight: 600; }
.comps p { font-size: 1.05rem; }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.calc label { display: flex; flex-direction: column; font-size: 0.8rem; font-weight: 600; color: var(--text-light); gap: 6px; } .calc input, .calc select { padding: 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.calc-out { grid-column: 1 / -1; font-size: 1.1rem; } .calc-out b { font-size: 1.6rem; color: var(--primary); } .calc-note { display: block; }
.lead-kind { display: flex; gap: 14px; margin-bottom: 10px; font-size: 0.9rem; } .lead-kind label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.acct-tabs { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 28px; font-weight: 600; } .acct-tabs a { color: var(--text); }
.account h2 { font-family: 'Playfair Display', serif; margin: 40px 0 14px; }
.fav-wrap { position: relative; } .fav-note { display: flex; gap: 6px; margin-top: 6px; } .fav-note input { flex: 1; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: 0.85rem; }
.drop-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: #1f5c33; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; } .drop-badge.gray { background: #666; }
.row { display: flex; gap: 10px; align-items: center; padding: 6px 0; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.account .card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.account .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .account .form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; } .account .form-group label { font-size: 0.8rem; font-weight: 600; } .account .form-group input, .account .form-group select { padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.account .check { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 0.9rem; }

/* Brand lockup (emblem + wordmark) */
.nav-logo { gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: 'Inter', sans-serif; }
.brand-text b { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.06em; color: #fff; }
.brand-text small { font-size: 0.68rem; letter-spacing: 0.42em; color: var(--accent); margin-top: 4px; font-weight: 600; }
.footer-logo-img { height: 120px; width: auto; }
:root[data-theme="light"] .brand-text b { color: #0b1f33; } :root[data-theme="light"] .brand-text small { color: #9a7424; }
:root[data-theme="light"] .lang-switch { color: #0b1f33 !important; background: transparent !important; border: 1px solid rgba(11,31,51,0.25) !important; }
:root[data-theme="light"] .nav-account { color: #9a7424 !important; } :root[data-theme="light"] .nav-fav { color: #c9a84c !important; }
@media (max-width: 900px) { .brand-mark { height: 38px; } .brand-text b { font-size: 0.92rem; } }
.navbar .nav-container { max-width: 1360px; } .nav-links { gap: 22px; align-items: center; } .nav-logo { margin-right: 28px; flex: none; }

.share-row { flex-wrap: wrap; } .share-row .btn { white-space: nowrap; flex: 1 1 auto; justify-content: center; padding-left: 12px; padding-right: 12px; }
.leaflet-container { background: #e9e7e2; }

/* Dark theme: solid nav on every page (inner pages have light bodies) */
:root:not([data-theme="light"]) .navbar { background: rgba(10,10,10,0.97); backdrop-filter: blur(12px); }
/* Favorite heart: bottom-right of the photo so it never covers badges */
.fav-btn { top: auto; bottom: 10px; right: 10px; }
.mls-card .card-type { bottom: 10px; }

/* Registry + claim */
.verified-badge.big { font-size: 0.95rem; margin: 6px 0 10px; }
.two-col-public { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 16px; align-items: start; }
@media (max-width: 800px) { .two-col-public { grid-template-columns: 1fr; } }
.registry .card h2 { font-size: 1.1rem; margin-bottom: 10px; } .registry .admin-table th { text-align: left; width: 40%; color: var(--text-light); font-weight: 500; } .registry .admin-table td, .registry .admin-table th { padding: 8px 6px; border-bottom: 1px solid var(--border); }
.claim-card { border: 2px solid var(--accent) !important; }
.claim .card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 16px 0; }
.claim-steps { display: flex; gap: 8px; list-style: none; margin: 18px 0; counter-reset: s; padding: 0; flex-wrap: wrap; }
.claim-steps li { flex: 1; min-width: 120px; padding: 8px 10px; border-radius: 8px; background: #eee; font-size: 0.85rem; color: #666; }
.claim-steps li.on { background: var(--accent); color: #111; font-weight: 600; }
.claim .consent { align-items: flex-start; font-size: 0.82rem; line-height: 1.45; margin: 14px 0; }
.claim .status.success { color: #1f5c33; } .claim .status.error { color: #b3261e; }
.selfie-wrap { position: relative; width: 100%; max-width: 420px; aspect-ratio: 3/4; background: #111; border-radius: 16px; overflow: hidden; margin: 10px auto; }
.selfie-wrap video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.selfie-oval { position: absolute; inset: 12% 18%; border: 3px dashed rgba(255,255,255,0.7); border-radius: 50%; pointer-events: none; }
.selfie-prompt { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-weight: 700; font-size: 1.15rem; text-shadow: 0 2px 8px #000; }

.cobroke-box { background: #fdfaf0; border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; } .cobroke-box p { margin: 6px 0 10px; font-size: 0.92rem; }
.badge-red { background: #fdecec; color: #b3261e; }

/* Mission + complaints */
.mission-hero { background: var(--primary); color: #fff; padding: 140px 0 60px; }
.mission-hero h1 { font-family: 'Playfair Display', serif; font-size: 2.6rem; max-width: 900px; margin: 14px 0; line-height: 1.15; }
.mission-hero .lead { font-size: 1.15rem; max-width: 820px; color: rgba(255,255,255,0.85); }
:root[data-theme="light"] .mission-hero { background: linear-gradient(160deg, #fbfaf7, #efe7d6); color: #0b1f33; } :root[data-theme="light"] .mission-hero .lead { color: #333; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; } .mission h2 { font-family: 'Playfair Display', serif; margin-bottom: 12px; }
.bc-first { margin: 32px 0; border-left: 4px solid var(--accent) !important; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.mission-ctas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .mission-ctas .card { display: flex; flex-direction: column; gap: 8px; } .mission-ctas .card .btn { margin-top: auto; }
@media (max-width: 800px) { .mission-grid, .mission-ctas { grid-template-columns: 1fr; } .mission-hero h1 { font-size: 1.9rem; } }
.board-opt { align-items: flex-start; } .stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; } .stars input { display: none; } .stars label { font-size: 1.8rem; color: #ccc; cursor: pointer; } .stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--accent); }
.kudos-list { display: grid; gap: 12px; } .kudo { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; } .kudo .stars-s { color: var(--accent); }
.mission-strip { background: #fdfaf0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; } .mission-strip .container { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; } .mission-strip p { max-width: 820px; margin: 0; }

.rep-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; } .rep-chip { background: #fdfaf0; border: 1px solid var(--accent); border-radius: 999px; padding: 5px 12px; font-size: 0.85rem; }

.privacy-short { font-size: 0.75rem; color: var(--text-light); line-height: 1.4; margin: 8px 0; }
.cookie-note { position: fixed; left: 16px; bottom: 16px; z-index: 3000; max-width: 420px; background: #111; color: #eee; border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: 0.85rem; box-shadow: 0 8px 30px rgba(0,0,0,.3); } .cookie-note a { color: var(--accent); } .cookie-note button { background: var(--accent); border: 0; border-radius: 8px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.legal-doc h2 { font-size: 1.15rem; margin: 26px 0 8px; } .legal-doc p, .legal-doc li { line-height: 1.6; } .toc { margin: 10px 0 20px; }

/* ===== White-label site templates (sites.theme.template) ===== */
.mls-source { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-light); margin: 2px 0 6px; }
.site-body .theme-switch { font-size: 1rem; opacity: 0.8; }
.preview-bar { position: sticky; top: 0; z-index: 2000; background: var(--accent); color: #111; text-align: center; font-size: 0.8rem; font-weight: 600; padding: 4px; }
.is-preview a, .is-preview form, .is-preview button { pointer-events: none; }
.is-preview .navbar { top: 22px; }
.site-map-section { padding: 60px 0; } .site-map-section .home-map { display: block; position: relative; height: 380px; width: 100%; border-radius: var(--radius); overflow: hidden; top: auto; }
.team-section { padding: 60px 0; }
.reviews-section { padding: 60px 0; background: var(--card-bg); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.review-card { margin: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.review-card .stars { color: var(--accent); letter-spacing: 2px; }

/* ===== Buyer ID verification ===== */
.id-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
.id-type { border: 2px solid var(--border); border-radius: 10px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.id-type input { position: absolute; opacity: 0; } .id-type:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.id-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.id-shot { display: flex; flex-wrap: wrap; gap: 8px; } .id-shot label.btn { cursor: pointer; }
.id-preview { width: 100%; aspect-ratio: 1.58; border: 2px dashed var(--border); border-radius: 10px; background: center/contain no-repeat; display: flex; align-items: center; justify-content: center; color: var(--text-light); }
.id-preview.has { border-style: solid; } .id-preview.has span { display: none; }
.id-extracted dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 14px; } .id-extracted dt { font-weight: 600; color: var(--text-light); }
.id-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #e7f5ec; color: #1f5c33; } .id-badge.warn { background: #fdf1e6; color: #8a4b00; }
.lead-id-note { font-size: 0.8rem; margin: 4px 0 8px; }
@media (max-width: 600px) { .id-types, .id-shots { grid-template-columns: 1fr; } }

/* Agent safety page */
.safety-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 24px 0; }
.safety-stats .stat-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; } .safety-stats b { font-size: 2rem; color: var(--accent-dark); } .safety-stats small a { color: var(--text-light); }
.safety-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 36px; }
.safety-case { padding: 18px; } .safety-case h3 { font-size: 1.08rem; margin: 4px 0 8px; } .safety-case .lesson { font-weight: 600; color: var(--accent-dark); } .safety-case small a { word-break: break-word; }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 30px; } .safety-grid .card { padding: 20px; }
.safety-steps { padding-left: 22px; } .safety-steps li { margin: 8px 0; line-height: 1.55; }
.safety details.card { padding: 14px 18px; margin: 8px 0; } .safety details summary { cursor: pointer; }

/* Agent FAQ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 28px 0; }
.why-grid > div { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.why-grid b { font-size: 1.6rem; } .why-grid h3 { margin: 6px 0 4px; font-size: 1.08rem; } .why-grid p { margin: 0; color: var(--text-light); font-size: .95rem; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; position: sticky; top: 70px; z-index: 5; background: var(--bg); padding: 8px 0; }
.faq-nav a { font-size: .85rem; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; background: var(--card-bg); }
.faq-nav a:hover { border-color: var(--accent); }
.faq-page h2 { margin-top: 34px; scroll-margin-top: 130px; }
.faq-item { padding: 14px 18px; margin: 8px 0; } .faq-item summary { cursor: pointer; list-style-position: outside; } .faq-item p { margin: 10px 0 0; line-height: 1.6; }
.faq-cta { margin-top: 36px; padding: 22px; } .faq-cta ol { padding-left: 20px; line-height: 1.7; }
/* Design gallery (/disenos) */
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; margin: 28px 0 36px; }
.design-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.design-shot { position: relative; display: block; background: #e5e7eb; border-bottom: 1px solid var(--border); }
.design-shot > img:not(.design-phone) { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; transition: transform .3s; }
.design-shot:hover > img:not(.design-phone) { transform: scale(1.02); }
.design-shot { overflow: hidden; }
.browser-dots { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: #d1d5db; }
.browser-dots i { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; } .browser-dots em { margin-left: 10px; font: 11px/1 system-ui, sans-serif; color: #4b5563; font-style: normal; background: #f3f4f6; padding: 3px 10px; border-radius: 4px; }
.design-phone { position: absolute; right: 12px; bottom: -8px; width: 22%; aspect-ratio: 1/2; object-fit: cover; object-position: top; border: 4px solid #111; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); background: #fff; }
.design-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.design-body h2 { margin: 0; font-size: 1.3rem; } .design-body p { margin: 0; }
.design-body .cta-row { margin-top: auto; padding-top: 8px; }
.design-meta { display: flex; align-items: center; gap: 6px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.designs-how { margin-bottom: 20px; }
@media (max-width: 420px) { .design-grid { grid-template-columns: 1fr; } }
/* Demo bar on /disenos/:tpl */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 6px 12px; font-size: .85rem; }
.demo-bar a { color: #111; } .demo-bar select { font: inherit; padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(0,0,0,.3); background: #fff; color: #111; }
.demo-bar .demo-go { background: #111; color: #fff; padding: 4px 12px; border-radius: 999px; text-decoration: none; }
/* Home: design preview stack (replaces the grey mock) */
.design-stack { position: relative; display: block; aspect-ratio: 16/12; }
.design-stack img { position: absolute; width: 78%; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); aspect-ratio: 16/10; object-fit: cover; object-position: top; transition: transform .3s; }
.design-stack img:nth-child(1) { left: 0; top: 0; } .design-stack img:nth-child(2) { left: 11%; top: 16%; } .design-stack img:nth-child(3) { left: 22%; top: 32%; }
.design-stack:hover img:nth-child(3) { transform: translateY(-6px); }
.design-stack-cap { display: block; text-align: center; margin-top: 14px; color: var(--accent); font-weight: 600; }

.asesor-badge { display: inline-block; font-size: .85rem; color: var(--text-muted, #666); line-height: 1.35; }

/* Mercado Libre selection */
.meli-list { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin-top: 8px; }
.meli-list .check { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.meli-list .badge { margin-left: 6px; }
/* Portal: video & 360 manager */
.video-card h2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.video-preview { width: 100%; max-width: 720px; border-radius: 10px; background: #000; display: block; margin: 8px 0; }
.clip-list { list-style: none; padding: 0; margin: 8px 0; }
.clip-list .clip { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.clip-list .clip small, .clip-list .clip label { grid-column: 2; }
.clip-handle { grid-row: span 3; display: flex; flex-direction: column; gap: 2px; }
.btn-icon { border: 1px solid var(--border); background: var(--card-bg); border-radius: 6px; cursor: pointer; padding: 2px 8px; font-size: 11px; color: var(--text); }
.uploader { margin-top: 10px; }
.up-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 10px; align-items: center; font-size: .85rem; margin-top: 6px; }
.up-row .up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-row .error { color: #b91c1c; }
.tour-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.tour-thumbs figure { margin: 0; } .tour-thumbs img { width: 100%; border-radius: 6px; display: block; } .tour-thumbs figcaption { font-size: .8rem; text-align: center; }
@media (max-width: 600px) { .up-row { grid-template-columns: 1fr; } }
/* Public listing: walkthrough + 360 */
.listing-video video { width: 100%; border-radius: 12px; background: #000; display: block; }
.media-360 { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
/* Portal: tour editor */
.tour-editor { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
.te-rooms { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.te-rooms li { display: flex; gap: 8px; align-items: center; cursor: pointer; padding: 4px; border-radius: 8px; border: 1px solid transparent; }
.te-rooms li.on { border-color: var(--accent); background: rgba(201,162,39,.08); }
.te-rooms img { width: 64px; height: 32px; object-fit: cover; border-radius: 4px; }
.te-viewer { width: 100%; height: 56vh; min-height: 320px; border-radius: 10px; overflow: hidden; background: #111; }
.te-arrow { background: rgba(0,0,0,.65); color: #fff; padding: 6px 10px; border-radius: 999px; font: 600 13px system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.te-plan { position: relative; display: inline-block; max-width: 100%; cursor: crosshair; }
.te-plan img { max-width: 100%; max-height: 360px; display: block; border: 1px solid var(--border); border-radius: 6px; }
.te-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #0b3c5d; border: 2px solid #fff; box-shadow: 0 0 0 1px #0b3c5d; }
.te-dot.on { background: #c9a227; }
@media (max-width: 800px) { .tour-editor { grid-template-columns: 1fr; } }

.tour-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #111; margin-top: 10px; }
.tour-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-opts input[type=datetime-local] { display: block; width: 100%; margin-bottom: 6px; }
/* Claim step 1: what you need + low-friction code step */
.claim-need { background: #f6f3ea; color: #1a1a1a; border-left: 4px solid var(--accent, #c9a84c); padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: .95rem; }
.claim .linklike { background: none; border: 0; padding: 0; color: var(--accent-dark, #8a6d1f); text-decoration: underline; cursor: pointer; font: inherit; }
.claim .btn-lg { padding: 14px 22px; font-size: 1.05rem; }
/* Phones: the search bar stacks vertically, where the fields' flex-basis would become their HEIGHT (160–260px each). */
@media (max-width: 768px) {
  .mls-search .search-field, .mls-search .search-field.grow { flex: 0 0 auto; }
  .mls-search .search-field input, .mls-search .search-field select { padding: 14px 0; }
}
