@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 {
    --primary: #800020; /* Bordeaux */
    --primary-light: #a31c3b;
    --primary-dark: #5c0015;
    --secondary: #d4af37; /* Gold accent */
    
    --bg-color: #fcfcfc;
    --surface-color: #ffffff;
    
    --text-main: #2d2d2d;
    --text-muted: #757575;
    
    --border-color: rgba(128, 0, 32, 0.1);
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(128, 0, 32, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--primary);
    font-weight: 600;
    line-height: 1.2;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.section-padding { padding: 6rem 0; }

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

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(128, 0, 32, 0.2);
}

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: var(--primary);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 0.6rem 0;
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

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

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

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

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.hero-bg-picture {
    display: block;
    width: 100%;
    line-height: 0;
}

.hero-bg-picture img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-overlay .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-content {
    max-width: 480px;
    padding-top: 50px;
    padding-right: 1rem;
    animation: fadeUp 1s ease forwards;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(128, 0, 32, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
    .hero-overlay {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        display: block;
        margin-top: -38vw;
        padding-bottom: 1rem;
        z-index: 2;
    }

    .hero-overlay .container {
        display: block;
        height: auto;
    }

    .hero-content {
        max-width: 100%;
        padding-top: 0;
        padding-bottom: 1.5rem;
        padding-right: 0;
        text-align: center;
    }

    .hero-tag {
        background: rgba(128, 0, 32, 0.08);
        color: var(--primary);
        margin-bottom: 0.8rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        color: var(--text-main);
        margin-bottom: 0.8rem;
    }

    .hero-title span {
        color: var(--primary);
    }

    .hero-desc {
        color: var(--text-muted);
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 0.8rem;
    }

    .hero-btn-outline {
        border-color: var(--primary);
        color: var(--primary);
    }

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

    .quick-filter {
        margin-top: 1.5rem !important;
    }
}

/* Quick Filter */
.quick-filter {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: -120px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.filter-group select, .filter-group input {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    background: #fafafa;
    transition: var(--transition);
    outline: none;
}

.filter-group select:focus, .filter-group input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

/* Section Titles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 3rem;
    color: var(--text-main);
}

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

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

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

.property-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.property-content {
    padding: 2rem;
}

.property-price {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.property-features {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Featured Property */
.featured-property {
    background: var(--primary-dark);
    color: white;
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 6rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow-lg);
}

.featured-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content .section-title {
    color: white;
}

.featured-content .section-subtitle {
    color: var(--secondary);
}

.featured-image {
    height: 100%;
    min-height: 500px;
}

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

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.team-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.team-image {
    width: 140px;
    height: 140px;
    margin: 2rem auto 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #eee;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

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

.team-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.team-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.team-creci {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.team-qualifications {
    list-style: none;
    padding: 0;
}

.team-qualifications li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.team-qualifications li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 1.2rem;
    line-height: 1;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 5rem 0 2rem;
}

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

.footer-col h4 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: #a0a0a0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #a0a0a0;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.6);
}

/* Single Property Page */
.property-header {
    margin-top: 100px;
    margin-bottom: 2rem;
}

.property-title-large {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Icon Bar */
.property-icons-bar {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fdfdfd;
    border-radius: var(--radius-md);
    border: 1px solid #f0f0f0;
}

.icon-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 500;
}

.icon-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.property-gallery {
    margin-bottom: 3rem;
}

.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.gallery-main {
    width: 100%;
    height: 500px;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumbs-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.gallery-thumbs-wrapper::-webkit-scrollbar {
    height: 8px;
}
.gallery-thumbs-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.gallery-thumbs-wrapper::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}

.gallery-thumb {
    flex: 0 0 calc(25% - 0.75rem);
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.gallery-main img, .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-thumb img {
    cursor: pointer;
}

.gallery-thumb img:hover {
    opacity: 0.8;
}

.property-details-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.property-sidebar {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 120px;
}

.price-tag {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.sidebar-btn {
    width: 100%;
    margin-bottom: 1rem;
    padding: 1.2rem;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .about-section {
        grid-template-columns: 1fr;
    }
    
    .quick-filter {
        grid-template-columns: 1fr 1fr;
    }
    
    .featured-property {
        grid-template-columns: 1fr;
    }
    
    .property-details-layout {
        grid-template-columns: 1fr;
    }
    
    .gallery-main {
        height: 400px;
    }
    .gallery-thumb {
        flex: 0 0 calc(33.333% - 0.67rem);
    }
}

@media (max-width: 768px) {
    .quick-filter, .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* Add hamburger menu later if needed */
    }
    .gallery-main {
        height: 300px;
    }
    .gallery-thumb {
        flex: 0 0 calc(45% - 0.5rem);
        height: 100px;
    }
}
