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

:root {
    /* Color Palette - Premium & Minimal */
    --clr-bg: #F8F9FA;
    --clr-surface: #FFFFFF;
    --clr-primary: #1A2B4C;
    /* Deep Navy */
    --clr-accent: #D4AF37;
    /* Metallic Gold */
    --clr-accent-hover: #B5952F;
    --clr-text-main: #2C3E50;
    --clr-text-light: #7F8C8D;
    --clr-border: #E0E6ED;
    --clr-success: #27AE60;
    --clr-error: #E74C3C;

    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --container-padding: 2rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--clr-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Layout Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--clr-accent);
    color: #fff;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--clr-accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: #fff;
}

/* Header */
.header {
    background-color: var(--clr-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--clr-accent);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--clr-accent);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-phone {
    font-weight: 600;
    color: var(--clr-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone i {
    color: var(--clr-accent);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-primary);
    color: #fff;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2075&q=80') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Quick Search Form */
.quick-search {
    background: var(--clr-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.search-field {
    flex: 1;
    min-width: 150px;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
}

/* Property Cards */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.property-card {
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

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

.card-img {
    position: relative;
    height: 250px;
    overflow: hidden;
    width: 100%;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-img img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--clr-accent);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
}

.card-price {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--clr-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
}

.card-location {
    color: var(--clr-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    position: relative;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-counter {
    color: white;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.5);
    }

    .lightbox-next {
        right: 10px;
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.5);
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 2.5rem;
        z-index: 10000;
        text-shadow: 0 0 10px black;
    }

    .lightbox-img {
        max-height: 70vh;
    }
}

.card-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--clr-border);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--clr-text-light);
    font-size: 0.9rem;
}

/* Features/Services Section */
.features-section {
    background-color: var(--clr-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-box:hover {
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 3rem;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--clr-primary);
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer h3 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer p,
.footer li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--clr-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Fixed WhatsApp */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav {
        display: none;
    }

    /* Mobile menu needed */
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

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

    .quick-search {
        flex-direction: column;
    }

    .search-field {
        width: 100%;
    }
}