/* ===================== DESIGN TOKENS ===================== */
:root{
  --navy: #0B3D91;
  --navy-dark: #082a66;
  --blue: #1768AC;
  --blue-light: #EAF2FC;
  --accent: #FFA630;
  --accent-dark: #E88F14;
  --bg: #F6F8FB;
  --ink: #16233A;
  --ink-soft: #56637A;
  --white: #FFFFFF;
  --border: #E1E7F0;
  --radius: 10px;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --shadow-card: 0 12px 32px rgba(11,61,145,0.14);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a{ text-decoration:none; color:inherit; }
button{ font-family: inherit; cursor:pointer; border:none; background:none; }
input{ font-family: inherit; }
.container{ max-width:1200px; margin:0 auto; padding:0 24px; }

/* ===================== HEADER ===================== */
.site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: var(--navy);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}

    .logo em {
        color: var(--accent);
        font-style: normal;
    }
.main-nav{ display:flex; gap:28px; flex:1; }
.main-nav a{ color: rgba(255,255,255,0.82); font-size:14.5px; font-weight:500; padding:22px 0; position:relative; }
.main-nav a.active{ color:var(--white); }
.main-nav a.active::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--accent); }
.main-nav a:hover{ color: var(--white); }
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.lang-switch {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.70);
    font-size: 12px;
    white-space: nowrap;
}

.lang-btn {
    color: rgba(255,255,255,0.65);
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 500;
}

    .lang-btn:hover,
    .lang-btn.active {
        color: var(--white);
        font-weight: 700;
    }

.lang-divider {
    opacity: 0.35;
    margin: 0 1px;
}
.account-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 9px;
    background: var(--accent);
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

    .account-btn:hover {
        background: var(--accent-dark);
        transform: translateY(-1px);
    }
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 9px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.13);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

    .nav-toggle span {
        display: block;
        width: 19px;
        height: 2px;
        background: var(--white);
        border-radius: 10px;
        transition: transform .2s ease, opacity .2s ease;
    }


/* ===================== ACCOUNT DROPDOWN + LOGIN/SIGNUP MODAL (CSS-only) ===================== */
.account-dropdown-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-wrap {
    position: relative;
}

.account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(11,61,145,0.16);
    padding: 8px;
    z-index: 120;
}

.account-dropdown-toggle:checked ~ .account-dropdown {
    display: block;
}

.account-dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
}

    .account-dropdown-item:hover {
        background: var(--blue-light);
        color: var(--navy);
    }

/* --- modal --- */
.modal-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11,34,74,0.55);
    z-index: 200;
    cursor: default;
}

#loginModalToggle:checked ~ .modal-backdrop {
    display: block;
}

.modal-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: min(420px, calc(100vw - 32px));
    max-height: 85vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 14px;
    padding: 32px 28px 28px;
    z-index: 210;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

#loginModalToggle:checked ~ .modal-box {
    display: block;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 14px;
}

    .modal-close:hover {
        background: var(--blue-light);
        color: var(--navy);
    }

.modal-title {
    font-family: var(--font-display);
    font-size: 20px;
    margin: 0 0 20px;
    text-align: center;
}

.modal-error {
    background: #FDECEC;
    color: #B3261E;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

    .form-field label {
        font-size: 12.5px;
        font-weight: 600;
        color: var(--ink-soft);
    }

.modal-input {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--ink);
    width: 100%;
}

    .modal-input:focus {
        outline: none;
        border-color: var(--blue);
    }

.modal-submit {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.modal-switch-line {
    text-align: center;
    font-size: 13px;
    color: var(--ink-soft);
    margin: 18px 0 0;
}

.modal-switch-link {
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
}

    .modal-switch-link:hover {
        text-decoration: underline;
    }

/* default view: login shown, signup hidden */
.modal-view-signup {
    display: none;
}

#authViewToggle:checked ~ .modal-box .modal-view-login {
    display: none;
}

#authViewToggle:checked ~ .modal-box .modal-view-signup {
    display: block;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

    .nav-toggle span {
        width: 22px;
        height: 2px;
        background: var(--white);
        border-radius: 2px;
    }

/* ===================== HERO ===================== */
.hero{
  position:relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 100%);
  padding-bottom: 96px;
}
.skyline{ position:absolute; inset:0; opacity:0.9; overflow:hidden; pointer-events:none; }
.skyline svg{ width:100%; height:100%; }
.buildings rect{ fill: rgba(255,255,255,0.06); }
.windows rect{ fill: var(--accent); opacity:0.25; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle{ 0%,100%{ opacity:0.15; } 50%{ opacity:0.65; } }

.hero-inner{ position:relative; max-width:1200px; margin:0 auto; padding: 44px 24px 0; }

.promo-banner{ display:flex; justify-content:center; text-align:center; padding: 20px 0 56px; }
.promo-copy{ max-width:620px; }
.eyebrow{ display:inline-block; font-family:var(--font-mono); font-size:12px; letter-spacing:0.06em; text-transform:uppercase; color: var(--accent); margin-bottom:10px; }
.promo-copy h1{ font-family:var(--font-display); font-size:38px; font-weight:700; color:var(--white); margin:0 0 14px; line-height:1.15; }
.promo-date{ color: rgba(255,255,255,0.85); font-size:15px; margin:0 0 22px; }
.promo-venue{ color:var(--white); font-weight:600; }

.btn{ display:inline-flex; align-items:center; gap:8px; padding:12px 22px; border-radius:8px; font-weight:600; font-size:14.5px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:active{ transform: translateY(1px); }
.btn-accent{ background: var(--accent); color: var(--navy-dark); }
.btn-accent:hover{ background: var(--accent-dark); }
.btn-primary{ background: var(--blue); color:var(--white); }
.btn-primary:hover{ background: var(--navy); }
.btn-white{ background: var(--white); color: var(--navy); }
.btn-sm{ padding:8px 16px; font-size:13px; }

/* ===================== SEARCH CARD ===================== */
.search-card{
  background: var(--white);
  max-width: 620px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 24px 24px;
  position:relative;
}
.tabs{ display:flex; gap:26px; border-bottom:1px solid var(--border); margin-bottom:16px; }
.tab{ padding:6px 2px 12px; font-weight:600; font-size:15px; color:var(--ink-soft); position:relative; }
.tab.active{ color: var(--navy); }
.tab.active::after{ content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--blue); }

.search-row{ display:flex; gap:10px; margin-bottom:14px; }
.search-input-wrap{ position:relative; flex:1; display:flex; align-items:center; border:1.5px solid var(--border); border-radius:8px; padding:0 12px; gap:8px; }
.search-input-wrap svg{ color: var(--ink-soft); flex-shrink:0; }
.search-input-wrap input{ border:none; outline:none; flex:1; padding:12px 0; font-size:14.5px; color:var(--ink); }
.search-btn{ white-space:nowrap; }
.suggestions{
  display:none; position:absolute; left:0; right:0; top:calc(100% + 6px);
  background:var(--white); border:1px solid var(--border); border-radius:8px;
  box-shadow: 0 10px 24px rgba(11,61,145,0.14); overflow:hidden; z-index:20;
}
.suggestions.open{ display:block; }
.suggestions button{ display:block; width:100%; text-align:left; padding:10px 14px; font-size:14px; color:var(--ink); }
.suggestions button:hover{ background: var(--blue-light); }

.filter-row{ display:flex; gap:10px; flex-wrap:wrap; }
.filter{ position:relative; }
.filter-btn{
  display:flex; align-items:center; gap:8px; padding:9px 14px;
  border:1.5px solid var(--border); border-radius:8px; font-size:13.5px; color:var(--ink); font-weight:500;
}
.filter-btn:hover{ border-color: var(--blue); }
.filter-btn .chev{ margin-left:2px; opacity:0.6; }
.filter.open .filter-btn{ border-color: var(--blue); color: var(--navy); }

.dropdown{
  display:none; position:absolute; top:calc(100% + 8px); left:0; min-width:260px;
  background:var(--white); border:1px solid var(--border); border-radius:10px;
  box-shadow: 0 14px 30px rgba(11,61,145,0.16); padding:16px; z-index:30;
}
.filter.open .dropdown{ display:block; }

@media (max-width: 600px){
  .dropdown.mobile-fixed{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 16px !important;
    min-width: 0 !important;
    width: auto !important;
    max-height: 65vh;
    overflow-y: auto;
    z-index: 60;
  }
  .filter-backdrop{
    position: fixed; inset: 0; background: rgba(11,34,74,0.45);
    z-index: 50; display: none;
  }
  .filter-backdrop.open{ display: block; }
}
.dropdown label{ display:flex; align-items:center; gap:9px; font-size:14px; padding:6px 0; color:var(--ink); }
.range-row{ display:flex; gap:12px; }
.range-row label{ display:flex; flex-direction:column; gap:6px; font-size:12.5px; color: var(--ink-soft); flex:1; }
.range-row input{ border:1.5px solid var(--border); border-radius:6px; padding:8px 10px; font-size:14px; font-family: var(--font-mono); }
.chip-row{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ padding:8px 14px; border:1.5px solid var(--border); border-radius:20px; font-size:13.5px; }
.chip.active{ background: var(--blue); border-color:var(--blue); color:var(--white); }
.dropdown-actions{ display:flex; justify-content:space-between; align-items:center; margin-top:14px; padding-top:12px; border-top:1px solid var(--border); }
.link-btn{ color: var(--ink-soft); font-size:13.5px; font-weight:600; }
.link-btn:hover{ color: var(--navy); }

/* ===================== PROMO STRIP ===================== */
.promo-strip{ display:grid; grid-template-columns:1fr 1fr; gap:28px; margin: 56px auto; }
.promo-strip h2{ font-family:var(--font-display); font-size:20px; margin:0 0 16px; }
.promo-strip-card{
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 12px; padding:26px; min-height:200px; display:flex; align-items:flex-end;
}
.promo-strip-copy h3{ color:var(--white); font-family:var(--font-display); font-size:22px; margin:8px 0; }
.promo-strip-copy p{ color:rgba(255,255,255,0.85); font-size:14px; margin:0; }
.eyebrow-light{ color: var(--accent); }

.update-card{ background: var(--navy-dark); border-radius:12px; overflow:hidden; display:flex; min-height:200px; }
.update-copy{ padding:26px; display:flex; flex-direction:column; justify-content:center; gap:10px; flex:1.3; }
.update-copy h3{ color:var(--white); font-family:var(--font-display); font-size:19px; margin:0 0 8px; line-height:1.3; }
.update-copy .btn{ align-self:flex-start; }
.update-media{ flex:1; background: linear-gradient(135deg,#1768AC,#0B3D91); }

/* ===================== LISTINGS ===================== */
.listings{ margin: 20px auto 64px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:20px; }
.section-head h2{ font-family:var(--font-display); font-size:22px; margin:0; }
.result-count{ font-family: var(--font-mono); font-size:13px; color:var(--ink-soft); }
.listing-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(270px,1fr)); gap:22px; }

.property-card{
  background:var(--white); border:1px solid var(--border); border-radius:12px; overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.property-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-card); }
.property-media{ position:relative; aspect-ratio: 4/3; overflow:hidden; }
.property-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.property-tag{ position:absolute; top:10px; left:10px; background:var(--accent); color:var(--navy-dark); font-size:11px; font-weight:700; padding:4px 9px; border-radius:5px; text-transform:uppercase; letter-spacing:.03em; }
.property-body{ padding:16px; }
.property-price{ font-family: var(--font-mono); font-weight:600; font-size:17px; color:var(--navy); margin-bottom:6px; }
.property-title{ font-size:14.5px; font-weight:600; margin:0 0 4px; }
.property-loc{ font-size:13px; color:var(--ink-soft); margin:0 0 12px; }
.property-meta{ display:flex; gap:14px; font-size:12.5px; color:var(--ink-soft); border-top:1px solid var(--border); padding-top:10px; }
.property-meta span{ display:flex; align-items:center; gap:5px; }

/* ===================== FOOTER ===================== */
.site-footer{ background: var(--navy-dark); color: rgba(255,255,255,0.75); padding-top:44px; }
.footer-inner{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:32px; }
.logo-footer{ font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--white); }
.logo-footer em{ color:var(--accent); font-style:normal; }
.footer-brand p{ max-width:280px; font-size:13.5px; margin-top:10px; }
.footer-cols{ display:flex; gap:56px; }
.footer-cols h4{ color:var(--white); font-size:13.5px; margin:0 0 12px; }
.footer-cols a{ display:block; font-size:13.5px; padding:5px 0; color: rgba(255,255,255,0.7); }
.footer-cols a:hover{ color:var(--white); }
.footer-bottom{ text-align:center; font-size:12.5px; padding:16px; border-top:1px solid rgba(255,255,255,0.08); }

@media (max-width: 860px){
  .detail-layout{ grid-template-columns:1fr; }
  .detail-sidebar{ position:static; }
  .detail-checklist{ grid-template-columns:1fr; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px){
  .main-nav{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    background: var(--navy-dark);
    flex-direction:column; gap:0;
    padding: 8px 24px 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  .main-nav.open{ display:flex; }
  .main-nav a{ padding: 12px 0; border-bottom:1px solid rgba(255,255,255,0.08); }
  .main-nav a.active::after{ display:none; }
  .site-header{ position:sticky; }
  .header-inner{ position:relative; }
  .nav-toggle{ display:flex; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle span{ transition: transform .18s ease, opacity .18s ease; }
  .promo-strip{ grid-template-columns:1fr; }
  .promo-copy h1{ font-size:28px; }
}
@media (max-width: 560px){
  .search-row{ flex-direction:column; }
  .search-btn{ justify-content:center; }
  .filter-row{ gap:8px; }
    .header-inner {
        height: 60px;
        padding: 0 12px;
        gap: 8px;
    }

    .logo {
        font-size: 17px;
        gap: 6px;
    }

    .lang-switch {
        padding: 4px 5px;
        font-size: 11px;
    }

    .lang-btn {
        font-size: 11px;
        padding: 2px 3px;
    }

    .account-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .nav-toggle {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

        .nav-toggle span {
            width: 18px;
        }

    .header-actions {
        gap: 6px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .property-card{ transition:none; }
}