/* Casa da Fonte de Cima - Main Stylesheet */

:root {
    --primary: #8B7355;
    --primary-dark: #6B5A47;
    --primary-light: #C4B5A5;
    --accent: #D4A574;
    --text-dark: #2C2C2C;
    --text-medium: #666666;
    --text-light: #999999;
    --bg-cream: #FAF8F5;
    --bg-white: #FFFFFF;
    --border: #E8E4DF;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-cream);
}

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

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.btn-reservar {
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-reservar:hover {
    background: var(--primary-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
        url('../images/casa/DJI_0395.jpg') center/cover;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-location svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.hero-features svg {
    width: 20px;
    height: 20px;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-hero:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-label {
    display: block;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* About Preview */
.about-preview {
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-cream);
    border-radius: 6px;
    font-size: 0.9rem;
}

.highlight svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

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

.btn-outline.center {
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
}

.about-images .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
}

.about-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.about-images .img-1 {
    grid-row: span 2;
}

/* Amenities */
.amenities-section {
    background: var(--bg-cream);
    text-align: center;
}

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

.amenity-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    text-align: left;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.amenity-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.amenity-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.amenity-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.amenity-card ul {
    list-style: none;
}

.amenity-card li {
    font-size: 0.9rem;
    color: var(--text-medium);
    padding: 0.35rem 0;
}

/* Booking Section */
.booking-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-cream) 100%);
    position: relative;
    overflow: hidden;
}

.booking-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.booking-info h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
}

.booking-info>p {
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.price-display {
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 10px 40px rgba(139, 115, 85, 0.3);
}

.price-display .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -2px;
}

.price-display .period {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

.price-display .price-label {
    display: block;
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.booking-feature:hover {
    padding-left: 0.5rem;
    color: var(--primary);
}

.booking-feature svg {
    width: 24px;
    height: 24px;
    color: #22C55E;
    flex-shrink: 0;
}

/* Booking Form Card */
.booking-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.booking-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Enhanced Date Picker */
.booking-form .date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.booking-form .date-group {
    margin-bottom: 1rem;
}

.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F3F0 100%);
    border: 2px solid #E8E4DF;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-input-wrapper:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.15);
    transform: translateY(-2px);
}

.date-input-wrapper:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 115, 85, 0.15);
}

.date-icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.date-input-wrapper:hover .date-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.date-input-wrapper input[type="date"] {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0;
    cursor: pointer;
    min-width: 0;
}

.date-input-wrapper input[type="date"]:focus {
    outline: none;
    box-shadow: none;
}

/* Hide default date picker icon in webkit browsers */
.date-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.booking-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.booking-form .form-group {
    margin-bottom: 1.25rem;
}

.booking-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #E8E4DF;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #FAFAFA;
    transition: all 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 115, 85, 0.1);
}

.booking-form input::placeholder {
    color: var(--text-light);
}

.price-breakdown {
    background: linear-gradient(135deg, #F8F6F3 0%, #F0EDE8 100%);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.breakdown-row.total {
    border-top: 2px solid rgba(139, 115, 85, 0.2);
    margin-top: 0.75rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.btn-book {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(139, 115, 85, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-book:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 115, 85, 0.45);
}

.btn-book:active {
    transform: translateY(-1px);
}

.booking-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-style: italic;
}

/* Location Preview */
.location-preview {
    background: var(--bg-cream);
    text-align: center;
}

.location-preview>.container>p {
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.location-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.loc-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.loc-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.loc-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.loc-item span {
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* Footer - Modern Design */
.footer {
    background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.footer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

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

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.3);
}

.social-links a svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--accent);
    position: absolute;
    bottom: 6px;
    left: 0;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-links a:hover::before {
    width: 20px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    padding: 0.35rem 0;
    transition: all 0.3s ease;
}

.footer-contact p:hover {
    color: white;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .made-with {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .made-with svg {
    width: 14px;
    height: 14px;
    color: #EF4444;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 4rem 0 2rem;
    }

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

    .footer-brand {
        grid-column: span 1;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
}

.modal-header .success-icon {
    width: 60px;
    height: 60px;
    color: #22C55E;
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body p {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.modal-actions {
    margin-top: 1.5rem;
}

.btn-primary {
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {

    .amenities-grid,
    .location-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-toggle {
        display: block;
    }

    .btn-reservar {
        display: none;
    }

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

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

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

    .amenities-grid,
    .location-highlights {
        grid-template-columns: 1fr;
    }

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

    h2 {
        font-size: 2rem;
    }

    /* Force Language Icon Visibility */
    .nav-right {
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin-right: 10px;
        /* Space for hamburger */
        z-index: 1002;
    }

    /* Ensure GTranslate wrapper is visible */
    #gt_custom_wrapper {
        display: block !important;
    }
}