/* ============================================
   VIGORVAG PROPERTIES - MAIN STYLESHEET
   Global CSS untuk semua halaman
   ============================================ */

/* RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #FFFFFF;
    --navy: #0A192F;
    --navy-light: #112240;
    --gold: #D4AF37;
    --gold-dark: #B8942E;
    --gray-light: #F5F7FA;
    --gray: #64748B;
    --shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    background-color: var(--gray-light);
    color: var(--navy);
    line-height: 1.6;
}

/* ============================================
   LANGUAGE SWITCHER (Global)
   ============================================ */
.lang-switch {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: var(--navy);
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
}

.lang-switch button {
    background: transparent;
    border: none;
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
}

.lang-switch button.active {
    background: var(--gold);
    color: var(--navy);
    border-radius: 30px;
}

/* ============================================
   NAVIGATION (Global)
   ============================================ */
.navbar {
    background: var(--white);
    padding: 1rem 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    width: 135px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.mobile-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ============================================
   FOOTER (Global)
   ============================================ */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 5%;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
}

.social-icons a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   PROPERTY CARD (Global - digunakan di index & listing)
   ============================================ */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.property-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.property-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--navy);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

.property-info {
    padding: 1.5rem;
}

.price {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.details {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.location {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

/* ============================================
   HERO SECTION (Khusus Halaman Beranda)
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5%;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-bar {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.search-group {
    display: flex;
    flex-direction: column;
}

.search-group label {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.search-group select,
.search-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}

.search-btn {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-end;
}

.search-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

/* ============================================
   FEATURED SECTION (Khusus Halaman Beranda)
   ============================================ */
.featured {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 1rem auto;
}

/* ============================================
   VALUE PROPOSITION (Khusus Halaman Beranda)
   ============================================ */
.value-prop {
    background: var(--gray-light);
    padding: 5rem 5%;
}

.value-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    transition: all 0.3s;
}

.value-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.value-card h3 {
    margin-bottom: 1rem;
}

/* ============================================
   LISTING PAGE (Khusus Halaman Listing)
   ============================================ */
.listing-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* Sidebar Filter */
.sidebar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow);
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: var(--navy);
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    background: var(--white);
}

.filter-btn {
    background: var(--gold);
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--navy);
    font-size: 1rem;
}

.filter-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

/* ============================================
   DETAIL & CONTACT PAGE (Khusus Halaman Detail-Contact)
   ============================================ */
.detail-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 5%;
}

.gallery {
    width: 100%;
    height: 500px;
    background: #ddd;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.description,
.features,
.faq,
.reviews {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.features,
.faq,
.reviews {
    margin-top: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
}

.contact-card p {
    margin: 0.8rem 0;
    color: var(--gray);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 50px;
    width: 100%;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 12px;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}

.submit-btn {
    background: var(--gold);
    color: var(--navy);
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--gold-dark);
}

.price-detail {
    color: var(--gold);
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.amenities-list li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amenities-list i {
    color: var(--gold);
}

.review-card {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
}

.floating-wa:hover {
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE DESIGN (Global)
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    /* Hero Responsive */
    .hero-content h1 {
        font-size: 2rem;
    }

    .search-bar {
        grid-template-columns: 1fr;
    }

    /* Property Grid Responsive */
    .property-grid {
        grid-template-columns: 1fr;
    }

    /* Listing Responsive */
    .listing-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    /* Detail Page Responsive */
    .info-section {
        grid-template-columns: 1fr;
    }

    .gallery {
        height: 300px;
    }

    .contact-card {
        position: static;
        margin-top: 1rem;
    }

    .amenities-list {
        grid-template-columns: 1fr;
    }
}