:root {
    --navy:   #14252d;
    --navy2:  #203942;
    --sand:   #f4f0e8;
    --mist:   #f6f8f7;
    --line:   #dfe5e2;
    --text:   #26353a;
    --muted:  #657276;
    --accent: #b97c57;
    --white:  #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }


.container { width: min(1180px, 92%); margin: auto; }


.topbar {
    background: var(--navy);
    color: #dbe2e3;
    font-size: 12px;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    gap: 20px;
}


.header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.07);
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.logo {
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 15px;
    color: var(--navy);
    flex-shrink: 0;
}
.logo small {
    display: block;
    font-size: 9px;
    letter-spacing: .22em;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
}
.navlinks {
    display: flex;
    gap: 27px;
    font-size: 13px;
    font-weight: 600;
}
.navlinks a { transition: color .18s; }
.navlinks a:hover { color: var(--accent); }
.navlinks a.active { color: var(--accent); }
.navbtn {
    background: var(--navy);
    color: #fff;
    padding: 11px 17px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    flex-shrink: 0;
    transition: background .18s;
}
.navbtn:hover { background: var(--navy2); }



.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}
.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all .25s;
}
.mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 18px 0 22px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }



.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: opacity .18s, background .18s;
    cursor: pointer;
    border: none;
}
.btn:hover { opacity: .88; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-light   { background: #fff; color: var(--navy); }
.btn-outline { border: 1px solid rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); opacity: 1; }
.outline-btn {
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 11px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 2px;
    transition: background .18s, color .18s;
    display: inline-block;
}
.outline-btn:hover { background: var(--navy); color: #fff; }
.text-link {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    transition: color .18s;
}
.text-link:hover { color: var(--accent); }


section { padding: 88px 0; }
.kicker {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .19em;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 12px;
}
h1, h2, h3 { font-family: "Playfair Display", serif; line-height: 1.08; }
h1 { font-size: clamp(50px, 7vw, 84px); font-weight: 500; margin: 0; }
h2 { font-size: clamp(38px, 5vw, 58px); font-weight: 500; margin: 0; }
.lead { max-width: 680px; color: var(--muted); font-size: 16px; margin: 0; }



.hero {
    position: relative;
    min-height: calc(100vh - 109px);
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(90deg, rgba(11,27,34,.58), rgba(11,27,34,.10)),
                url('images/sunset.png') center / cover no-repeat;
}
.hero-copy { max-width: 760px; padding: 90px 0; }
.eyebrow {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 18px;
    color: #f0cbb7;
}
.hero p { font-size: 18px; max-width: 650px; color: #eef2f1; margin: 25px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }



.trust {
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
    margin-top: -35px;
    position: relative;
    z-index: 3;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.trust-item {
    padding: 24px 30px;
    border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: 0; }
.trust-item b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.trust-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }



.listing-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--line);
    margin-bottom: 30px;
}
.tab-btn {
    padding: 12px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .18s, border-color .18s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); }



.rentals { background: var(--mist); }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 35px;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.filter {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    padding: 10px 15px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
}
.filter.active, .filter:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.property-card {
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s;
}
.property-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(20,37,45,.10); }
.photo-wrap { height: 235px; position: relative; background: #ddd; overflow: hidden; }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.badge {
    position: absolute;
    left: 14px; top: 14px;
    background: #fff;
    color: var(--navy);
    padding: 7px 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.property-content { padding: 23px; }
.price { font-size: 25px; font-weight: 700; color: var(--navy); }
.price small { font-size: 11px; font-weight: 500; color: var(--muted); }
.location {
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    margin-top: 5px;
}
.property-content h3 { font-size: 22px; font-weight: 500; margin: 10px 0 14px; }
.facts {
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    font-size: 11px;
    color: var(--muted);
}
.facts b { color: var(--text); }
.property-content p { font-size: 13px; color: var(--muted); min-height: 60px; }
.card-actions { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.no-results {
    display: none;
    text-align: center;
    padding: 45px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
}


.for-sale-placeholder {
    text-align: center;
    padding: 70px 30px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
}
.for-sale-placeholder h3 { font-size: 26px; color: var(--navy); margin: 0 0 12px; }
.for-sale-placeholder p { margin: 0 auto 22px; max-width: 480px; }


.services { background: #fff; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    margin-top: 42px;
}
.service {
    padding: 30px 25px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.service:nth-child(3n+1) { border-left: 1px solid var(--line); }
.service-num { font-size: 10px; color: var(--accent); font-weight: 700; letter-spacing: .12em; }
.service h3 { font-size: 24px; font-weight: 500; margin: 17px 0 8px; }
.service p { font-size: 13px; color: var(--muted); }


.owner { background: var(--sand); }
.owner-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: center;
}
.owner-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.owner-box {
    background: #fff;
    padding: 18px;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
}
.owner-box span { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }


.cta { background: var(--navy); color: #fff; text-align: center; }
.cta p { max-width: 650px; margin: 18px auto 28px; color: #cbd6d8; }


footer { background: #0e1b20; color: #d9e1e2; padding: 40px 0; }
.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.footer-logo { font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.footer-small { font-size: 11px; color: #9ba9ac; margin-top: 6px; }
.footer-contact { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; }
.footer-contact a { transition: color .18s; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #1c2f35;
    margin-top: 28px;
    padding-top: 18px;
    font-size: 11px;
    color: #6a7f83;
}


.listing-hero { padding: 0; }
.listing-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4px;
    max-height: 520px;
}
.gallery-main { overflow: hidden; cursor: pointer; }
.gallery-main img { width: 100%; height: 520px; object-fit: cover; transition: transform .3s; }
.gallery-main img:hover { transform: scale(1.02); }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 4px; }
.gallery-side-img { overflow: hidden; cursor: pointer; }
.gallery-side-img img { width: 100%; height: 258px; object-fit: cover; transition: transform .3s; }
.gallery-side-img img:hover { transform: scale(1.02); }

.listing-body { padding: 50px 0 80px; }
.listing-layout { display: grid; grid-template-columns: 1fr 380px; gap: 50px; align-items: start; }
.listing-main h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.listing-loc { color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 22px; }
.listing-facts {
    display: flex;
    gap: 30px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    margin-bottom: 28px;
}
.listing-fact { text-align: center; }
.listing-fact b { display: block; font-size: 22px; color: var(--navy); font-weight: 700; }
.listing-fact span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.listing-desc { font-size: 15px; color: var(--text); line-height: 1.7; }

.listing-sidebar {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 30px;
}
.sidebar-price { font-size: 36px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.sidebar-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.sidebar-status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #4a9e6c; margin-bottom: 24px; }
.sidebar-actions { display: flex; flex-direction: column; gap: 10px; }
.sidebar-actions .btn { width: 100%; justify-content: center; padding: 15px; font-size: 11px; }
.sidebar-phone { text-align: center; margin-top: 16px; font-size: 12px; color: var(--muted); }
.sidebar-phone a { color: var(--navy); font-weight: 700; }


.apply-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}
.apply-section h2 { font-size: 30px; margin-bottom: 6px; }
.apply-section p { color: var(--muted); margin-bottom: 22px; }
.apply-frame { width: 100%; height: 820px; border: 1px solid var(--line); border-radius: 3px; }


.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 200;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    cursor: pointer;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    background: none;
    border: none;
}
.lightbox-nav {
    display: flex;
    gap: 16px;
    margin-top: 18px;
}
.lightbox-nav button {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    padding: 10px 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background .18s;
}
.lightbox-nav button:hover { background: rgba(255,255,255,.25); }
.lightbox-counter { color: #aaa; font-size: 12px; margin-top: 10px; }


.gallery-strip { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; padding-bottom: 4px; }
.gallery-strip img { height: 72px; width: 110px; object-fit: cover; cursor: pointer; flex-shrink: 0; border: 2px solid transparent; transition: border-color .18s; }
.gallery-strip img:hover, .gallery-strip img.active { border-color: var(--navy); }


.page-404 { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.page-404 h1 { font-size: clamp(72px, 14vw, 140px); color: var(--line); line-height: 1; margin-bottom: 8px; }
.page-404 h2 { font-size: 28px; margin-bottom: 14px; }
.page-404 p { color: var(--muted); max-width: 440px; margin: 0 auto 28px; }


.admin-wrap { max-width: 920px; margin: 0 auto; padding: 50px 20px 80px; }
.admin-wrap h1 { font-size: 28px; margin-bottom: 4px; }
.admin-sub { color: var(--muted); font-size: 13px; margin-bottom: 36px; }
.admin-section { margin-bottom: 40px; background: #fff; border: 1px solid var(--line); }
.admin-section-head {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--mist);
}
.admin-section-head h2 { font-size: 15px; font-weight: 700; font-family: "DM Sans", sans-serif; margin: 0; }
.admin-body { padding: 24px; }
.field-row { margin-bottom: 18px; }
.field-row label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.field-row input, .field-row textarea, .field-row select {
    width: 100%;
    border: 1px solid var(--line);
    padding: 10px 12px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: var(--text);
    border-radius: 2px;
    transition: border-color .18s;
}
.field-row input:focus, .field-row textarea:focus, .field-row select:focus {
    outline: none;
    border-color: var(--navy);
}
.field-row textarea { resize: vertical; min-height: 90px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-listing-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.admin-listing-row:last-child { border-bottom: 0; }
.admin-listing-row img { width: 80px; height: 60px; object-fit: cover; flex-shrink: 0; }
.admin-listing-info { flex: 1; min-width: 0; }
.admin-listing-info b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-listing-info span { font-size: 11px; color: var(--muted); }
.admin-listing-actions { display: flex; gap: 8px; }
.admin-btn {
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    border-radius: 2px;
    transition: background .18s, color .18s;
}
.admin-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-btn.danger:hover { background: #c0392b; border-color: #c0392b; }
.admin-save {
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    border-radius: 2px;
    transition: background .18s;
}
.admin-save:hover { background: var(--navy2); }
.flash { padding: 12px 16px; border-radius: 2px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.flash.success { background: #e8f6ee; color: #2e7d52; border: 1px solid #b8dfc9; }
.flash.error   { background: #fdecea; color: #b93c2c; border: 1px solid #f5bcb7; }
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mist);
}
.login-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 42px 38px;
    width: 100%;
    max-width: 380px;
}
.login-card h1 { font-size: 24px; margin-bottom: 4px; }
.login-card p { color: var(--muted); font-size: 13px; margin-bottom: 28px; }


@media (max-width: 1024px) {
    .listing-layout { grid-template-columns: 1fr; }
    .listing-sidebar { position: static; }
    .listing-gallery { grid-template-columns: 1fr; max-height: none; }
    .gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-side-img img { height: 200px; }
    .gallery-main img { height: 380px; }
}
@media (max-width: 950px) {
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid  { grid-template-columns: repeat(2, 1fr); }
    .owner-grid    { grid-template-columns: 1fr; gap: 35px; }
    .trust-grid    { grid-template-columns: 1fr; }
    .trust-item    { border-right: 0; border-bottom: 1px solid var(--line); }
    .trust-item:last-child { border-bottom: 0; }
}
@media (max-width: 700px) {
    .topbar   { display: none; }
    .navlinks { display: none; }
    .navbtn   { display: none; }
    .hamburger { display: flex; }
    .nav { height: 64px; }
    .hero { min-height: calc(100vh - 64px); }
    section { padding: 60px 0; }
    .section-head { display: block; }
    .property-grid { grid-template-columns: 1fr; }
    .service-grid  { grid-template-columns: 1fr; }
    .owner-list    { grid-template-columns: 1fr; }
    .field-grid    { grid-template-columns: 1fr; }
    .listing-facts { gap: 16px; flex-wrap: wrap; }
    .gallery-side  { display: none; }
}
