@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --primary: #0f172a;
    --primary-2: #1e293b;
    --gold: #c59d5f;
    --gold-dark: #a77c3d;
    --light: #f8f7f4;
    --white: #ffffff;
    --text: #172033;
    --muted: #64748b;
    --border: #e5e7eb;
    --success: #15803d;
    --danger: #dc2626;
    --shadow: 0 15px 40px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #fff;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

button, input, select, textarea {
    min-width: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.topbar {
    background: var(--primary);
    color: white;
    font-size: 13px;
    padding: 9px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 18px;
}

.logo-text strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 22px;
    line-height: 1;
}

.logo-text span {
    display: block;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 2px;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 14px;
    font-weight: 600;
}

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 11px 18px;
    border-radius: 7px;
}

.mobile-menu {
    display: none;
    border: 0;
    background: none;
    font-size: 25px;
}

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    position: relative;
    background:
        linear-gradient(90deg, rgba(5, 10, 20, .88), rgba(5, 10, 20, .42)),
        url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=85")
        center/cover;
    color: white;
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    color: #e7c98d;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 6vw, 76px);
    line-height: 1.04;
    margin-bottom: 22px;
}

.hero p {
    max-width: 620px;
    color: #e5e7eb;
    font-size: 18px;
    margin-bottom: 35px;
}

.hero-search {
    background: white;
    border-radius: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 10px;
    max-width: 760px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.hero-search input,
.hero-search select {
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 8px;
    outline: none;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 7px;
    padding: 13px 20px;
    font-weight: 700;
    transition: .2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-gold {
    background: var(--gold);
    color: white;
}

.btn-whatsapp {
    background: #16a34a;
    color: white;
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
}

.section {
    padding: 90px 0;
}

.section-light {
    background: var(--light);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 40px;
}

.section-label {
    color: var(--gold-dark);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.1;
}

.section-description {
    color: var(--muted);
    max-width: 620px;
    margin-top: 12px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.property-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.03);
    transition: .25s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.property-image {
    position: relative;
    height: 250px;
    background: #e5e7eb;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: white;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.property-body {
    padding: 20px;
}

.property-type {
    color: var(--gold-dark);
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
}

.property-title {
    font-size: 20px;
    margin: 7px 0;
}

.property-location {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.property-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.property-price {
    font-size: 20px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 35px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.service-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);
}

.cta {
    background: var(--primary);
    color: white;
    padding: 80px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta h2 {
    font-family: "Playfair Display", serif;
    font-size: 42px;
}

.cta p {
    color: #cbd5e1;
    margin-top: 8px;
}

.footer {
    background: #080d17;
    color: white;
    padding: 60px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 50px;
}

.footer h3 {
    margin-bottom: 16px;
}

.footer p,
.footer a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    padding-top: 20px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.page-header {
    background: var(--primary);
    color: white;
    padding: 75px 0;
}

.page-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 52px;
}

.page-header p {
    color: #cbd5e1;
    margin-top: 8px;
}

.filters {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin: -30px auto 45px;
    position: relative;
    box-shadow: var(--shadow);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 13px 14px;
    outline: none;
    background: white;
}

.textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 14px;
}

.form-container {
    max-width: 760px;
    margin: auto;
    background: white;
    border: 1px solid var(--border);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-full {
    grid-column: 1 / -1;
}

.property-detail {
    padding: 70px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 40px;
}

.gallery-main {
    height: 520px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}

.gallery-thumbs img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

.detail-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 110px;
}

.detail-panel h1 {
    font-family: "Playfair Display", serif;
    font-size: 38px;
    line-height: 1.1;
    margin: 10px 0;
}

.detail-price {
    font-size: 28px;
    font-weight: 700;
    margin: 15px 0;
}

.detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 25px 0;
}

.info-box {
    background: var(--light);
    padding: 14px;
    border-radius: 7px;
}

.info-box span {
    color: var(--muted);
    font-size: 12px;
    display: block;
}

.info-box strong {
    display: block;
    margin-top: 3px;
}

.detail-actions {
    display: grid;
    gap: 10px;
}

.empty {
    padding: 60px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
    grid-column: 1 / -1;
}

.loading {
    padding: 60px;
    text-align: center;
    color: var(--muted);
}

.toast {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background: var(--primary);
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 9999;
    display: none;
}

.toast.show {
    display: block;
}

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .property-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-panel {
        position: static;
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {

    .topbar-inner {
        flex-direction: column;
        gap: 3px;
    }

    .nav-inner {
        min-height: 70px;
    }

    .hero {
        min-height: 650px;
    }

    .hero-search {
        grid-template-columns: 1fr;
    }

    .property-grid,
    .services-grid,
    .footer-grid,
    .filter-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: auto;
    }

    .section {
        padding: 65px 0;
    }

    .page-header h1 {
        font-size: 40px;
    }

    .gallery-main {
        height: 330px;
    }

    .detail-panel h1 {
        font-size: 30px;
    }
}

/* =========================
   MOBILE RESPONSIVE SYSTEM
   ========================= */
.nav-inner {
    position: relative;
}

.mobile-menu {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--primary);
    background: white;
    font-size: 24px;
    line-height: 1;
}

.mobile-menu[aria-expanded="true"] {
    background: var(--primary);
    color: white;
}

@media (max-width: 900px) {
    .container { width: min(94%, 1180px); }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        z-index: 1001;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: white;
        border: 1px solid var(--border);
        border-top: 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 15px 35px rgba(15,23,42,.12);
    }

    .nav-links.mobile-open { display: flex; }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 13px 14px;
        border-radius: 7px;
    }

    .nav-links a:hover { background: var(--light); }

    .nav-links .nav-cta {
        margin-top: 4px;
        text-align: center;
    }

    .mobile-menu { display: inline-flex; }

    .hero { min-height: 620px; padding: 70px 0; }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: clamp(40px, 8vw, 62px); }
    .hero p { font-size: 17px; }

    .section-head { align-items: flex-start; }
    .property-grid, .services-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-panel { position: static; }
    .filter-grid { grid-template-columns: 1fr 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .topbar { padding: 8px 0; }
    .topbar-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
    .topbar-inner span { min-width: 0; }
    .topbar-inner span:last-child { white-space: nowrap; }

    .nav-inner { min-height: 68px; gap: 10px; }
    .logo { gap: 9px; min-width: 0; }
    .logo-mark { width: 40px; height: 40px; flex: 0 0 40px; }
    .logo-text { min-width: 0; }
    .logo-text strong { font-size: 18px; white-space: nowrap; }
    .logo-text span { font-size: 8px; letter-spacing: 1.4px; white-space: nowrap; }

    .hero { min-height: 590px; padding: 55px 0; }
    .hero h1 { font-size: clamp(36px, 11vw, 48px); line-height: 1.06; }
    .hero p { font-size: 16px; margin-bottom: 25px; }
    .eyebrow { font-size: 10px; letter-spacing: 2px; }
    .hero-search { padding: 8px; gap: 8px; border-radius: 10px; }
    .hero-search input, .hero-search select { padding: 13px; }
    .hero-search .btn { width: 100%; }

    .section { padding: 55px 0; }
    .section-head { display: block; margin-bottom: 28px; }
    .section-head > .btn { width: 100%; margin-top: 20px; }
    .section-title { font-size: clamp(30px, 9vw, 38px); }
    .section-description { font-size: 14px; }

    .property-grid, .services-grid, .footer-grid, .filter-grid, .form-grid { grid-template-columns: 1fr; }
    .property-image { height: 220px; }
    .property-body { padding: 17px; }
    .property-title { font-size: 18px; }
    .property-footer { gap: 12px; align-items: flex-start; }
    .property-price { font-size: 18px; }

    .service-card { padding: 25px; }
    .cta { padding: 55px 0; }
    .cta h2 { font-size: clamp(30px, 9vw, 38px); }
    .cta .btn { width: 100%; }

    .page-header { padding: 55px 0; }
    .page-header h1 { font-size: clamp(34px, 10vw, 44px); }

    .filters { margin: -20px auto 30px; padding: 14px; }
    .results-bar { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }

    .form-container { padding: 20px; }
    .form-full { grid-column: auto; }
    .input, .select, .textarea { font-size: 16px; }

    .property-detail { padding: 45px 0; }
    .gallery-main { height: 280px; border-radius: 10px; }
    .gallery-thumbs img { width: 75px; height: 58px; }
    .detail-panel { padding: 20px; }
    .detail-panel h1 { font-size: 29px; }
    .detail-price { font-size: 24px; }
    .detail-info { grid-template-columns: 1fr 1fr; gap: 9px; }
    .info-box { padding: 11px; }
    .property-description { margin-top: 28px; }
    .property-description h2 { font-size: 27px; }
    .feature-list { grid-template-columns: 1fr; }

    .footer { padding: 45px 0 20px; }
    .footer-grid { gap: 30px; }
    .footer-bottom { margin-top: 30px; }

    .toast { left: 15px; right: 15px; bottom: 15px; text-align: center; }
}

@media (max-width: 380px) {
    .topbar-inner { flex-direction: column; align-items: flex-start; }
    .logo-text strong { font-size: 17px; }
    .hero { min-height: 610px; }
    .detail-info { grid-template-columns: 1fr; }
}
