:root {
    --gold: #D4AF37;
    --gold-dark: #B8860B;
    --charcoal: #1A1A1B;
    --dark-grey: #2D2D2E;
    --off-white: #F9F9F9;
    --white: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --error: #FF4D4D;
    --border: #E5E5E5;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.gold-text {
    color: var(--gold);
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--gold);
}

.btn-primary {
    background: var(--gold);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 4px;
}

/* Hero */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), var(--charcoal);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 20px;
    font-weight: 300;
}

/* Apartment Sections */
.apartment-section {
    padding: 100px 0;
}

.alt-bg {
    background-color: var(--off-white);
}

.apartment-header {
    margin-bottom: 40px;
    text-align: center;
}

.apartment-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.location {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Gallery Grid (Airbnb Style) */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 250px);
    gap: 12px;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    filter: brightness(0.9);
}

.gallery-grid :first-child {
    grid-row: span 2;
}

/* Apartment Details & Availability */
.apartment-details {
    margin-bottom: 40px;
}

.availability-section {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.amenities span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.amenities i {
    color: var(--gold);
}

/* Availability Card */
.availability-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.availability-card h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* FullCalendar Luxury Overrides */
.fc {
    --fc-border-color: #333333 !important; /* Darker charcoal for boldness */
    --fc-button-bg-color: transparent;
    --fc-button-border-color: var(--border);
    --fc-button-text-color: var(--gold);
    --fc-button-hover-bg-color: var(--off-white);
    --fc-today-bg-color: rgba(212, 175, 55, 0.1);
    font-family: 'Nunito', sans-serif;
}

.fc-day-sat, .fc-day-sun {
    background-color: rgba(212, 175, 55, 0.05); 
}

/* Feriados 2026 em SP */
.fc-day[data-date="2026-01-01"], .fc-day[data-date="2026-01-25"],
.fc-day[data-date="2026-02-16"], .fc-day[data-date="2026-02-17"],
.fc-day[data-date="2026-04-03"], .fc-day[data-date="2026-04-21"],
.fc-day[data-date="2026-05-01"], .fc-day[data-date="2026-06-04"],
.fc-day[data-date="2026-07-09"], .fc-day[data-date="2026-09-07"],
.fc-day[data-date="2026-10-12"], .fc-day[data-date="2026-11-02"],
.fc-day[data-date="2026-11-15"], .fc-day[data-date="2026-11-20"],
.fc-day[data-date="2026-12-25"] {
    background-color: rgba(59, 130, 246, 0.15); 
}

.fc-theme-standard td, 
.fc-theme-standard th,
.fc-scrollgrid {
    border-width: 1.5px !important; /* Thicker borders */
    border-color: #333333 !important;
}

.fc .fc-toolbar-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: capitalize;
}

.fc .fc-button-primary:not(:disabled):active, 
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: var(--gold);
    border-color: var(--gold);
    color: white;
}

.fc-daygrid-day-number {
    font-size: 0.9rem;
    padding: 8px !important;
    text-decoration: none !important;
    color: var(--text-main);
}

.fc-bg-event {
    opacity: 0.8 !important;
}

.fc-scrollgrid {
    border-radius: 8px;
    overflow: hidden;
}

.availability-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Booking Form */
.booking-section {
    padding: 100px 0;
    background-color: var(--charcoal);
    color: var(--white);
}

.booking-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.booking-form-wrapper h2 {
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

input, select {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--white);
    font-family: inherit;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--gold);
}

select option {
    background-color: var(--charcoal);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--gold-dark);
}

/* Mobile Menu & Responsive Navbar */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
}

#navbar-links {
    display: flex;
    align-items: center;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .apartment-details {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    #navbar-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--border);
    }
    
    #navbar-links.active {
        display: flex;
    }

    #navbar-links a {
        margin: 10px 0;
    }

    .lang-switcher {
        margin: 15px 0 0 0;
    }

    .hero h1 { font-size: 36px; }
    
    .gallery-grid { 
        display: flex; 
        overflow-x: auto; 
        gap: 15px; 
        padding: 5px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    
    .gallery-grid::-webkit-scrollbar { display: none; }
    
    .gallery-item { 
        min-width: 280px; 
        height: 200px; 
        flex-shrink: 0; 
        scroll-snap-align: start;
        border-radius: 8px;
    }

    .gallery-grid :first-child { grid-row: auto; }
    .form-row { grid-template-columns: 1fr; }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: lightboxZoom 0.3s ease-out;
}

@keyframes lightboxZoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--gold);
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    pointer-events: auto;
}

.lightbox-btn:hover {
    background: var(--gold);
    color: var(--white);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.whatsapp-float i {
    width: 30px;
    height: 30px;
}

/* Location Section */
.location-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.location-address {
    color: #000000;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.location-search-wrapper {
    max-width: 500px;
    margin: 0 auto 30px;
}

.map-search-container {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Softer shadow */
    border: 1px solid var(--border);
}

.map-search-box {
    display: flex;
    gap: 10px;
}

.map-search-box input {
    flex: 1;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    color: #000000 !important; /* Fixed: explicitly black */
    background: var(--white);
}

.map-search-box input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.map-search-box button {
    background: var(--gold);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-search-box button:hover {
    background: var(--gold-dark);
}

.search-results {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    display: none;
}

.search-item {
    padding: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    border-bottom: 1px solid var(--off-white);
    color: #000 !important;
}

.search-item:hover {
    background: var(--off-white);
}

.distance-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 8px;
    border-left: 5px solid var(--gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dist-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dist-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--off-white);
    border: 1px solid var(--border);
}

#map {
    height: 400px;
    width: 100%;
}

@media (max-width: 600px) {
    #map { height: 300px; }
    .location-search-wrapper { padding: 0 15px; }
}

/* Calendar Price Tags */
.fc-daygrid-day-top {
    flex-direction: row-reverse !important;
    align-items: center;
    padding-top: 5px;
}

.calendar-price-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}

/* Background Video Hero */
.hero {
    position: relative;
    overflow: hidden;
}
.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.8; /* Updated for better visibility on mobile */
}
.hero-content {
    position: relative;
    z-index: 1;
}

/* Intro Section */
.intro-section {
    padding: 60px 0;
    background: var(--off-white);
    text-align: center;
}
.intro-section .container {
    max-width: 800px;
}
.intro-section h2 {
    color: var(--gold);
    margin-bottom: 20px;
}
.intro-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Expansion Section */
.expansion-section {
    padding: 80px 0;
    background: #111;
    color: #fff;
    text-align: center;
}
.expansion-section h2 {
    color: var(--gold);
    margin-bottom: 15px;
}
.destinations-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.destination-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    min-width: 250px;
}
.destination-card h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
}
.destination-card p {
    color: var(--gold);
    font-size: 0.9rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ical-booking-event {
    background-color: #ef4444 !important;
}

@media (max-width: 600px) {
    .fc-daygrid-day-top {
        flex-direction: column !important;
        align-items: center;
        justify-content: flex-start;
        padding-top: 4px;
    }
    .calendar-price-tag {
        flex-direction: column;
        gap: 0;
        margin-top: 6px;
    }
    .price-sym {
        font-size: 8px;
        order: 2; /* Puts symbol below number */
        opacity: 0.8;
    }
    .price-val {
        font-size: 11px;
        order: 1; /* Puts number above symbol */
        line-height: 1;
    }
}
