@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
    --primary: #0f172a; /* Slate 900 - Deep cool dark */
    --secondary: #334155; /* Slate 700 */
    --accent: #5e6c84; /* Cool muted accent */
    --gold: #bda678; /* Subtle premium gold/bronze */
    --bg-light: #f8fafc; /* Cool tinted white */
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif-font {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    background: var(--surface);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}
.navbar-brand span {
    color: var(--gold);
}
.nav-links a {
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--secondary);
}
.nav-links a:hover {
    color: var(--gold);
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--surface) !important;
}
.btn-primary:hover {
    background-color: var(--gold);
    color: var(--surface) !important;
}
.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--surface) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.4)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&q=80&w=2000') center/cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 6rem 5% 4rem;
    color: var(--surface);
}
.hero-content {
    max-width: 680px;
}
.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 1.2rem;
}
.hero h1 {
    color: var(--surface);
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.hero-sub {
    font-size: 1.1rem;
    color: #cbd5e1;
    font-weight: 300;
    line-height: 1.8;
    max-width: 560px;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 1rem 2rem;
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    .nav-links.open { display: flex; }
    .nav-links a { margin: 0.5rem 0; }
    .hero h1 { font-size: 2.5rem; }
}
.text-muted { color: var(--text-muted); }

/* Property Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.section-title p {
    color: var(--text-muted);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.property-card {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-img-placeholder {
    height: 220px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    opacity: 0.9;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-location {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.card-details {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}
.card-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Property Detail View */
.prop-header {
    background: var(--surface);
    padding: 3rem 5%;
    border-bottom: 1px solid var(--border);
}
.prop-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.prop-location {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.prop-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}
@media (max-width: 900px) {
    .prop-content-grid {
        grid-template-columns: 1fr;
    }
}

.prop-details-section {
    margin-bottom: 3rem;
}
.prop-details-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* Tables */
.config-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.config-table th, .config-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.config-table th {
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-light);
}

/* Tags */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Form Contact specific */
.lead-form-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}
.lead-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.lead-form-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary);
}
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
}

/* Footer */
footer {
    background: var(--primary);
    color: #fff;
    padding: 4rem 5%;
    text-align: center;
}
footer h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-ready { background: #dcfce7; color: #166534; }
.badge-uc { background: #dbebfa; color: #1e40af; }
.badge-nl { background: #fef9c3; color: #854d0e; }

/* New Sections: USPs */
.features-section {
    background: #ffffff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}
.feature-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.feature-card h3 {
    margin-bottom: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
}

/* Stats Banner */
.stats-banner {
    background: var(--primary);
    color: #fff;
    padding: 4rem 5%;
}
.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    text-align: center;
}
.stat-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.testimonial-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--gold);
    opacity: 0.2;
    line-height: 1;
}
.stars {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

/* Auth / Contact Layouts */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}
.contact-info-block {
    padding-right: 2rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--border);
}

/* Anti-Spam Hidden Field */
.secure-catch {
    display: none !important;
    visibility: hidden;
}

/* ── Slider System ─────────────────────────────────────────
   3-layer structure:
   .slider-outer  → max-width box + positions arrows (overflow: visible)
   .slider-clip   → overflow: hidden, the visible viewport
   .slider-track  → flex row, transforms here for animation
   ──────────────────────────────────────────────────────── */

.slider-outer {
    position: relative;
    max-width: 1140px;
    margin: 2rem auto 0;
    padding: 0 52px; /* space for left/right arrow buttons */
}

.slider-clip {
    overflow: hidden;
    border-radius: 4px;
}

.slider-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* 3 cards visible on desktop, 2 on tablet, 1 on mobile */
.slider-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: 0;
}
@media (max-width: 1023px) {
    .slider-card { flex: 0 0 calc((100% - 2rem) / 2); }
    .slider-outer { padding: 0 46px; }
}
@media (max-width: 767px) {
    .slider-card { flex: 0 0 100%; }
    .slider-outer { padding: 0 40px; }
}

/* Arrow Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-70%); /* vertically centred on the cards */
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.slider-btn:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}
.slider-prev { left: 0; }
.slider-next { right: 0; }

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}
.slider-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* Nav toggle always hidden on desktop */
.nav-toggle {
    display: none !important;
}
@media (max-width: 768px) {
    .nav-toggle { display: block !important; }
    .nav-links { display: none; }
    .nav-links.open { display: flex; }
}
