/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --primary: #253f4e;
    --secondary: #e3c08d;
    --secondary-dark: #c5a059;
    --bg-dark: #253f4e;
    --bg-light: #2c4a5c;
    --text-white: #f8f9fa;
    --text-gray: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--secondary);
    color: var(--primary);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(37, 63, 78, 0.95);
    padding: 1rem 5%;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.logo-container img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.3));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary);
}

.admin-link {
    color: var(--secondary) !important;
    font-size: 0.8rem;
    opacity: 0.7;
}

.admin-link:hover {
    opacity: 1;
}

/* Economic Indicators */
.economic-indicators {
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem 5%;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 110px;
    /* Space for fixed navbar */
    position: relative;
    z-index: 900;
}

.indicator span {
    color: var(--secondary);
    font-weight: 700;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .economic-indicators {
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 90px;
    }
}

.cta-btn {
    background: var(--secondary);
    color: var(--primary);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(37, 63, 78, 0.7), rgba(37, 63, 78, 0.7)), url('hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeInUp 1.2s ease-out;
}

/* Search Box */
.search-box {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 1.5rem;
    animation: scaleIn 1.5s ease-out;
    max-width: 900px;
    width: 100%;
}

.filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.filter-group select,
.filter-group input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    color: white;
    padding: 0.5rem 0;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.filter-group select option {
    background: #1c313d;
    color: white;
}

/* Featured Section */
.featured {
    padding: 100px 5%;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-light));
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 0 auto;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.property-card {
    background: var(--glass);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.property-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-img img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    font-weight: 700;
    border-radius: 50px;
}

.property-info {
    padding: 1.5rem;
}

.property-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.property-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-price {
    font-size: 1.4rem;
    color: var(--secondary);
    font-weight: 700;
}

.property-features {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* Footer */
footer {
    padding: 80px 5% 40px;
    background: #1c313d;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* WhatsApp Button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.wa-tooltip {
    position: absolute;
    right: 80px;
    background: white;
    color: #333;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 10px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.whatsapp-btn:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .property-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-box {
        flex-direction: column;
        padding: 1.5rem;
        width: 95%;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .cta-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .logo-container img {
        height: 60px;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 63, 78, 0.98);
    backdrop-filter: blur(15px);
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-light);
    margin: 2% auto;
    padding: 0;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 1100px;
    border-radius: 24px;
    position: relative;
    animation: scaleIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    color: var(--text-white);
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--secondary);
    transform: rotate(90deg);
}

.modal-header-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.modal-gallery-container {
    position: relative;
    background: #000;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px 50px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow-x: auto;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.thumb-item {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.thumb-item:hover {
    opacity: 1;
}

.thumb-item.active {
    border-color: var(--secondary);
    opacity: 1;
}

.modal-body {
    padding: 50px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.modal-text h2 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.modal-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--glass);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.stat-item i {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.modal-sidebar-card {
    background: var(--glass);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--secondary);
    height: fit-content;
}

.modal-sidebar-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.price-tag {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
}

@media (max-width: 992px) {
    .modal-info-grid {
        grid-template-columns: 1fr;
    }

    .modal-header-img {
        height: 300px;
    }

    .modal-body {
        padding: 30px;
    }
}