/*
 * Provisional house style — navy/gold pulled from the logo. Replace these custom properties
 * once the real design system lands (see CLAUDE.md "Design"); the rest of this file shouldn't
 * need to change much beyond that.
 */
:root {
    --color-ink: #0B1E33;
    --color-ink-light: #16304f;
    --color-gold: #B08D57;
    --color-gold-light: #cca66f;
    --color-bg: #ffffff;
    --color-bg-muted: #f5f6f8;
    --color-border: #e2e5ea;
    --color-text: #1c2b3a;
    --color-text-muted: #5b6b7c;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1180px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.55;
}

a { color: var(--color-ink); }
a:hover { color: var(--color-gold); }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---- Header / nav ---- */

.site-header {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-header .logo img { height: 48px; }

.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.site-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--color-ink);
}

.site-nav a:hover { color: var(--color-gold); }

/* ---- Footer ---- */

.site-footer {
    background: var(--color-ink);
    color: #dfe6ee;
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
    font-size: 0.9rem;
}

.site-footer a { color: #dfe6ee; }
.site-footer a:hover { color: var(--color-gold-light); }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-grid h3 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 .75rem;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .4rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    color: #9fb0c2;
    font-size: 0.8rem;
}

/* ---- Hero / filters ---- */

.hero {
    background: var(--color-bg-muted);
    padding: 2.5rem 0;
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: 1.9rem;
    margin: 0 0 1.5rem;
    color: var(--color-ink);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-muted);
    margin-bottom: .35rem;
}

.filter-form select,
.filter-form input {
    width: 100%;
    padding: .55rem .6rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: .95rem;
    background: #fff;
}

.filter-form .surface-range { display: flex; gap: .5rem; }

.btn {
    display: inline-block;
    background: var(--color-gold);
    color: #fff;
    border: none;
    padding: .65rem 1.4rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-size: .95rem;
}

.btn:hover { background: var(--color-gold-light); color: #fff; }

/* ---- Property cards ---- */

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
    margin: 2rem 0;
}

.property-card {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease;
}

.property-card:hover { box-shadow: 0 6px 20px rgba(11,30,51,.12); }

.property-card .thumb {
    aspect-ratio: 4 / 3;
    background: var(--color-bg-muted) center/cover no-repeat;
    position: relative;
}

.property-card .badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: var(--color-ink);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .55rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.property-card .body { padding: 1rem 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.property-card h3 { font-size: 1.05rem; margin: 0 0 .35rem; color: var(--color-ink); }
.property-card .meta { font-size: .85rem; color: var(--color-text-muted); margin: 0 0 .6rem; }
.property-card .price { margin-top: auto; font-weight: 700; color: var(--color-ink); }

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--color-text-muted);
}

/* ---- Property detail ---- */

.carousel {
    position: relative;
    margin-bottom: 2rem;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-radius: 6px;
    background: var(--color-bg-muted);
}

.carousel-track img {
    scroll-snap-align: start;
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11,30,51,.7);
    color: #fff;
    border: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
}

.carousel-nav.prev { left: .75rem; }
.carousel-nav.next { right: .75rem; }

.property-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 800px) {
    .property-detail-grid { grid-template-columns: 1fr; }
}

.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.spec-table th, .spec-table td {
    text-align: left;
    padding: .5rem .25rem;
    border-bottom: 1px solid var(--color-border);
    font-size: .92rem;
}
.spec-table th { color: var(--color-text-muted); font-weight: 600; width: 45%; }

.share-links { display: flex; gap: .75rem; margin: 1rem 0 2rem; }
.share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--color-bg-muted);
    text-decoration: none;
    font-size: .85rem;
}

.contact-card {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.5rem;
    background: var(--color-bg-muted);
}

.contact-card h3 { margin-top: 0; }
.contact-card a.btn { width: 100%; text-align: center; margin-top: .75rem; }

/* ---- Static pages ---- */

.page-content { max-width: 760px; margin: 0 auto; padding: 2rem 0 4rem; }
.page-content h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.page-content :is(h2, h3) { color: var(--color-ink); }

/* ---- Cookie banner ---- */

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 480px;
    margin: 0 auto;
    background: var(--color-ink);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 100;
}

.cookie-banner p { margin: 0 0 1rem; font-size: .88rem; color: #dfe6ee; }
.cookie-banner .actions { display: flex; gap: .75rem; }
.cookie-banner .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
}
