/* 
   Can Xumeu Carlos - Rural Boutique Styles 
   Palette: Sand, Olive Green, Terracotta, Charcoal
*/

:root {
    /* Colors */
    --color-primary: #F5F0E8;
    /* Sand / Beige */
    --color-secondary: #5B7A5E;
    /* Olive Green */
    --color-accent: #C4704B;
    /* Terracotta */
    --color-text: #2C2C2C;
    /* Charcoal */
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --color-light-gray: #F9F9F9;
    --color-border: #E0E0E0;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 100px;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
}

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

/* Global Form Focus States */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.2);
    /* Terracotta transparent ring */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--color-primary) !important;
}

.bg-dark {
    background-color: var(--color-secondary) !important;
    color: var(--color-white);
}

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

.mt-4 {
    margin-top: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
    border: 2px solid transparent;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #A65D3D;
    transform: translateY(-2px);
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.4);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: #4A634D;
    transform: translateY(-2px);
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 122, 94, 0.4);
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: var(--color-text);
    color: var(--color-white);
    transform: translateY(-2px);
    outline: none;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white);
}

/* Nav */
.sticky-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.scroll-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 101;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    /* Terracotta accent color */
    transition: width 0.1s ease;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4rem;
    /* Spacing between logo and first menu item */
}

.logo img {
    height: 80px;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--color-text);
}

.nav-links a:not(.btn):hover {
    color: var(--color-accent);
}

/* Differentiated Internal Links */
.nav-links a.nav-special {
    border: 1.5px solid var(--color-accent);
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    color: var(--color-accent) !important;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.nav-links a.nav-special:hover,
.nav-links a.nav-special.active {
    background: var(--color-accent);
    color: white !important;
}

/* Island Silhouette Group - Background Mode */
.nav-island-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.nav-island-links {
    display: flex;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
}

.nav-island-silhouette {
    position: absolute;
    width: 160px;
    /* Slightly larger for the new SVG detail */
    height: auto;
    color: var(--color-accent);
    /* Use accent color for subtle depth */
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav-island-group:hover .nav-island-silhouette {
    opacity: 0.25;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Island parent link (Formentera label above sub-links) */
.nav-island-parent {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent) !important;
    padding: 0.25rem 0;
    display: block;
    text-align: center;
    margin-bottom: 0.3rem;
}

.nav-island-parent:hover,
.nav-island-parent.active {
    color: var(--color-secondary) !important;
}

/* Formentera map silhouette (img version) */
.nav-island-map {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.3rem;
}

.island-silhouette {
    width: 80px;
    height: auto;
    opacity: 0.18;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-island-group:hover .island-silhouette {
    opacity: 0.35;
}

/* Formentera SVG map used as background in headerformentera.php */
.nav-formentera-map {
    position: absolute;
    width: 180px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
    filter: invert(48%) sepia(30%) saturate(600%) hue-rotate(330deg) brightness(90%);
    /* Tints the SVG towards terracota */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-island-group:hover .nav-formentera-map {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(1.08);
}

/* Ensure island links sit ON TOP of the map image */
.nav-island-group .nav-island-links {
    position: relative;
    z-index: 2;
}

/* Reservar CTA button in nav */
.nav-links a.btn-reservar,
.nav-links .btn-reservar {
    background-color: var(--color-accent);
    color: var(--color-white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--color-accent);
}

.nav-links a.btn-reservar:hover,
.nav-links .btn-reservar:hover {
    background-color: #A65D3D;
    border-color: #A65D3D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 112, 75, 0.35);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 90vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.15) saturate(1.35);
    /* Brillo y azules vivos */
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Slightly lighter for better vividness */
}

.hero-content {
    max-width: 1000px;
    z-index: 1;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero h1 {
    color: var(--color-white);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.hero .subheadline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.micro-copy {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Trust Bar */
.trust-bar {
    position: relative;
    z-index: 10;
    margin-top: 80vh;
    background-color: var(--color-primary);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.trust-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.trust-item div {
    display: flex;
    flex-direction: column;
}

.trust-quote {
    font-style: italic;
    color: var(--color-text-light);
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    max-width: 400px;
    font-size: 0.9rem;
}

/* Sections General */
.section {
    position: relative;
    z-index: 10;
    background-color: var(--color-white);
    padding: var(--spacing-xl) 0;
    scroll-margin-top: var(--header-height);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Problem/Solution */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
    /* Hack for visual reverse */
}

.split-layout.reverse>* {
    direction: ltr;
    /* Reset text direction */
}

.image-content img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-top: 1rem;
}

/* Benefits */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.2rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.benefit-card h4 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text);
    font-size: 1.1rem;
}

/* Apartments Preview */
.apartment-card {
    display: flex;
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.apt-image {
    width: 50%;
    position: relative;
}

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

.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-white);
    color: var(--color-text);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.apt-content {
    width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.specs {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.specs i {
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

.apt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.price {
    font-size: 1.1rem;
}

/* Reviews */
.reviews-section {
    background-color: var(--color-text);
    /* Charcoal bg */
}

.reviews-header h2 {
    color: var(--color-white);
}

.airbnb-badge {
    color: #FF5A5F;
    /* Airbnb Red */
    font-weight: 600;
    font-size: 1.2rem;
}

.reviews-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
}

.review-card {
    display: none;
    /* JS toggles active */
    animation: fadeIn 0.5s;
}

.review-card.active {
    display: block;
}

.review-text {
    font-size: 1.3rem;
    font-style: italic;
    margin: 1.5rem 0;
    line-height: 1.8;
}

.review-author {
    font-weight: 600;
    color: #CCC;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.prev {
    left: -60px;
}

.next {
    right: -60px;
}

/* Calculator */
.calculator-box {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto;
}

.calc-inputs {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group select,
.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.calc-results {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.strike {
    text-decoration: line-through;
    color: var(--color-text-light);
}

.discount-row {
    color: var(--color-secondary);
    font-weight: 600;
}

.total-row {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 1rem;
}

.note {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Map */
.map-section {
    padding: 0;
}

.map-wrapper {
    height: 100%;
    min-height: 400px;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    color: var(--color-text);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--color-text-light);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Approximate max height */
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* Footnote */
.tiny-text {
    font-size: 0.75rem;
    opacity: 0.8;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* User Area Specifics */
.user-area-section h2 {
    color: var(--color-white);
}

.login-placeholder {
    max-width: 400px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.disabled-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 0.8rem;
    border-radius: 4px;
    cursor: not-allowed;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Flatpickr Custom Styles for Booking Calendar --- */
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #e53935 !important;
    background: rgba(229, 57, 53, 0.05) !important;
    font-weight: 600 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
    border-color: transparent !important;
}

/* Hide year arrows in Flatpickr */
.flatpickr-current-month .numInputWrapper .arrowUp,
.flatpickr-current-month .numInputWrapper .arrowDown {
    display: none !important;
}

/* Red Occupied Days in Visual Grid */
.occupied-n1b .day-number,
.occupied-n2 .day-number {
    color: #e53935 !important;
    font-weight: bold;
}

/* Enhanced Reservation Form Design */
.reservation-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.reservation-form .form-group label {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.reservation-form input:not([type="checkbox"]),
.reservation-form select,
.reservation-form textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.reservation-form input:not([type="checkbox"]):focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(189, 154, 95, 0.15);
    outline: none;
    background: #ffffff;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    text-align: left;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem !important;
    line-height: 1.4;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
    cursor: pointer;
}

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

.reservation-form .btn {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-arrow {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
    pointer-events: auto;
}

.lightbox-arrow:hover {
    background: var(--color-accent);
}

.lightbox-caption {
    color: white;
    margin-top: 20px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    background: #000000;
    color: #CCC;
    padding: 4rem 0 2rem;
}

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

.footer-col {
    text-align: left;
}

.footer-logo {
    display: block;
    margin: 0 0 2rem 0;
    width: 65%;
    height: auto;
    background: #FFFFFF;
    border-radius: 50%;
    padding: 1.5rem;
    opacity: 1;
}

.footer h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
}

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

.footer ul li a:hover {
    text-decoration: underline;
    color: var(--color-white);
}

.footer ul li i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--color-white);
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.popup-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.popup-content {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--color-accent);
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.price-comparison {
    margin: 2rem 0;
    font-size: 1.5rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--color-text-light);
    font-size: 1rem;
    margin-right: 1rem;
}

.new-price {
    color: var(--color-accent);
    font-weight: 700;
}

.btn-link {
    background: none;
    border: none;
    text-decoration: underline;
    color: var(--color-text-light);
    cursor: pointer;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Scroll Slide-in */
.scroll-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--color-white);
    border-radius: 20px;
    /* Moer box-like than pill-like */
    box-shadow: var(--shadow-md);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
    max-width: 320px;
    transform: translateY(150%);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--color-primary);
}

.scroll-popup.active {
    transform: translateY(0);
}

.scroll-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.owners-face img {
    height: 80px;
    /* Same as header */
    width: auto;
    margin-bottom: 1rem;
    border-radius: 0;
    /* Remove circle */
    border: none;
}

.popup-highlight {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-text {
    margin: 0 0 1rem 0;
}

.scroll-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--color-secondary);
}

.scroll-text p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.close-scroll {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-light-gray);
    color: var(--color-text);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-scroll:hover {
    background: var(--color-border);
}

/* WhatsApp Floating Button (FAB) */
.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background-color: rgba(37, 211, 102, 0.4);
    /* WhatsApp color but more transparent */
    backdrop-filter: blur(5px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

.whatsapp-fab.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
}

.back-to-top i {
    transform: rotate(-90deg);
    /* Turn ">" into up arrow */
    display: inline-block;
}

/* Apartment Specific Page Styles */
.page-header {
    background-color: var(--color-primary);
    padding: 4rem 0;
    text-align: center;
}

.apt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.image-gallery {
    margin-bottom: 2rem;
}

.main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-thumbs img {
    height: 80px;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.gallery-thumbs img:hover {
    opacity: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feature i {
    color: var(--color-secondary);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

/* Sticky Price Card */
.sticky-price-card {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    background: var(--color-light-gray);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    z-index: 90;
    /* ensure it stays above scrolling content but below header */
}

.price-info {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent);
    font-weight: 700;
    line-height: 1;
}

.price-unit {
    font-size: 1rem;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-weight: normal;
}

@media (max-width: 768px) {
    .sticky-price-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        position: static;
        /* Disable sticky on mobile for better UX if needed */
    }

    .sticky-price-card .btn {
        width: 100%;
    }
}

/* Reservation & Legal */
.reservation-section {
    background: var(--color-primary);
}

.form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    /* initial state hidden by class or inline */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    /* Pointer-events isolation: the flex container itself is click-transparent.
       Only explicitly listed children (.lightbox-backdrop, buttons, img) receive pointer events.
       This means nav arrows CANNOT accidentally trigger the backdrop or container close logic. */
    pointer-events: none;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10001;
    /* Above the nav buttons to show image, but nav buttons get pointer click before content */
    pointer-events: auto;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 300;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: white;
    font-size: 3rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: color 0.2s;
    pointer-events: auto;
    /* Explicitly receives clicks */
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10000;
    pointer-events: auto;
    /* Explicitly receives clicks */
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
    z-index: 10002;
}

.lightbox-next {
    right: 20px;
    z-index: 10002;
}

/* User Area section (Simulation) */
.user-area-section h2 {
    color: #fff;
    margin-bottom: 5px;
}

.user-area-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.login-placeholder {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.login-placeholder input {
    padding: 0.8rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 100%;
}

.login-placeholder input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.disabled-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.hidden {
    display: none !important;
}

/* Legal Tabs */
.legal-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: var(--font-heading);
    color: var(--color-text-light);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.legal-section {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.legal-section.active {
    display: block;
}

.legal-section h2,
.legal-section h3 {
    margin-top: 2rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--color-accent);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: 0.7rem 1rem;
    text-align: left;
    border: 1px solid var(--color-border);
    vertical-align: top;
}

.legal-table thead th {
    background-color: var(--color-primary);
    font-weight: 700;
    color: var(--color-text);
}

.legal-table tbody th {
    background-color: var(--color-light-gray);
    font-weight: 600;
    white-space: nowrap;
}

.legal-table tbody tr:nth-child(even) td {
    background-color: #fafafa;
}

.legal-table code {
    background: #f0f0f0;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.85rem;
}

.legal-footer-note {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
}

@media (max-width: 768px) {
    .legal-table {
        font-size: 0.8rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 0.5rem 0.6rem;
    }
}


/* Responsive Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide for now, would need JS toggle */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo img {
        height: 60px;
    }

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

    .split-layout,
    .calculator-box .calc-inputs {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .trust-bar {
        padding: 1.5rem 0;
    }

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

    .trust-item {
        justify-content: center;
    }

    .trust-quote {
        font-size: 0.95rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .apartment-card {
        flex-direction: column;
    }

    .apt-image,
    .apt-content {
        width: 100%;
    }

    .apt-image img {
        height: 250px;
    }

    .carousel-btn {
        display: none;
    }

    /* On mobile simpler to just scroll or stack */

    /* Stack reviews on mobile so all are visible */
    .review-card {
        display: block !important;
        margin-bottom: 2rem;
    }

    .scroll-popup {
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        justify-content: center;
        padding: 1rem;
    }

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

    /* Optional: Simplify mobile view */
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Image Gallery */
.full-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* Equipment Toggle */
.equipment-toggle-wrapper {
    margin-top: 1rem;
}

.equipment-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-accent);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-family: inherit;
    font-size: 1rem;
}

.equipment-toggle-btn i {
    transition: transform 0.3s ease;
}

.equipment-toggle-btn.active i {
    transform: rotate(180deg);
}

.equipment-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipment-content.expanded {
    max-height: 1000px;
    /* High enough to fit content */
}

.equipment-content ul {
    margin: 1rem 0;
}

/* Planning Section */
.planning-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.planning-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.calendars-flex-container {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.calendar-wrapper {
    flex: 1;
    min-width: 0;
    /* Prevents overflow */
}

.calendar-sub-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    justify-content: center;
}

.calendar-sub-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-n1b {
    background-color: var(--color-accent);
}

.dot-n2 {
    background-color: var(--color-secondary);
}

.dot-free {
    background-color: #EEE;
    border: 1px solid #DDD;
}

.planning-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.planning-controls h3 {
    margin: 0;
    font-size: 1.4rem;
    min-width: 180px;
    text-align: center;
    text-transform: capitalize;
    color: var(--color-accent);
}

.btn-icon {
    background: var(--color-light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--color-accent);
    color: white;
}

.planning-grid-container {
    min-height: 300px;
    position: relative;
}

.loading-calendar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-light);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-head {
    background: var(--color-light-gray);
    padding: 10px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.calendar-day {
    background: white;
    min-height: 70px;
    padding: 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    z-index: 2;
}

.calendar-day.today {
    background: transparent;
}

.calendar-day.today .day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #000;
    border-radius: 50%;
    color: #000;
}

.calendar-day.occupied-n1b.today .day-number,
.calendar-day.occupied-n2.today .day-number {
    border-color: white;
    color: white;
}

.calendar-day.other-month {
    background: #FAFAFA;
}

.calendar-day.other-month .day-number {
    opacity: 0.2;
}

/* Occupied State - Full Background */
.calendar-day.occupied-n1b {
    background-color: var(--color-accent) !important;
}

.calendar-day.occupied-n1b .day-number {
    color: white !important;
    font-weight: 600;
}

.calendar-day.occupied-n2 {
    background-color: var(--color-secondary) !important;
}

.calendar-day.occupied-n2 .day-number {
    color: white !important;
    font-weight: 600;
}

.planning-footer {
    color: var(--color-text-light);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    text-align: center;
}

@media (max-width: 992px) {
    .calendars-flex-container {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .planning-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .planning-card {
        padding: 1.5rem;
    }

    .calendar-day {
        min-height: 50px;
    }
}

.gallery-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
}


/* Rating Pills */
.rating-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

/* Gallery Toggles */
.gallery-trigger {
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.3s, text-decoration 0.3s;
    margin-right: 8px;
    font-weight: 600;
    display: inline-block;
}

.gallery-trigger:hover {
    text-decoration: none;
    opacity: 0.8;
}

.full-gallery {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-in-out;
    display: grid !important;
    margin-top: 0;
}

.full-gallery.active {
    max-height: 2500px;
    /* High enough for all images */
    opacity: 1;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* ===== Sticky Price Card (apartamentos.php) ===== */
.apartment-detail .split-layout {
    align-items: stretch;
}

.sticky-price-card {
    position: sticky;
    top: calc(var(--header-height) + 10px);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 50;
    margin-bottom: 1.5rem;
}

.sticky-price-card .price-info {
    display: flex;
    flex-direction: column;
}

.sticky-price-card .price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    font-weight: 600;
}

.sticky-price-card .price-amount {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.1;
}

.sticky-price-card .price-unit {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-light);
}

/* ===== Lightbox Backdrop ===== */
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    cursor: pointer;
    pointer-events: auto;
    /* Explicitly captures background clicks to close */
}


/* ===== Form Feedback (reservation form JSON responses) ===== */
.form-feedback {
    padding: 1rem 1.2rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 1rem;
    line-height: 1.5;
}

.form-feedback.feedback-success {
    background: #d8f3dc;
    color: #1b4332;
    border: 1px solid #52b788;
}

.form-feedback.feedback-error {
    background: #fde8e2;
    color: #7f1d1d;
    border: 1px solid #e76f51;
}

/* ===== Flatpickr DatePicker Custom Theme ===== */

.flatpickr-calendar {
    z-index: 9999 !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--color-border) !important;
    font-family: var(--font-body) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: white !important;
}

.flatpickr-day:hover {
    background: rgba(196, 112, 75, 0.15) !important;
}

.flatpickr-day.today {
    border-color: var(--color-accent) !important;
    color: var(--color-accent) !important;
}

.flatpickr-day.today:hover {
    background: var(--color-accent) !important;
    color: white !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    background: #f5f5f5 !important;
    color: #ccc !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    color: var(--color-secondary) !important;
    fill: var(--color-secondary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--color-accent) !important;
}

.flatpickr-current-month input.cur-year {
    color: var(--color-secondary) !important;
}

/* ===== Mobile Sticky CTA ===== */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9000;
        background: #25D366;
        padding: 14px 20px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
    }

    .mobile-sticky-cta.hidden {
        transform: translateY(100%);
    }

    .mobile-sticky-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #fff;
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: 0.02em;
        text-decoration: none;
        width: 100%;
    }

    .mobile-sticky-cta svg {
        width: 22px;
        height: 22px;
        fill: #fff;
        flex-shrink: 0;
    }

    /* Prevent mobile CTA from covering content at the bottom */
    body {
        padding-bottom: 60px;
    }
}

/* ===== Google Reviews Section ===== */
.google-reviews-section {
    position: relative;
    z-index: 10;
    background-color: var(--color-white);
    padding: var(--spacing-xl) 0;
}

.google-reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.google-reviews-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.google-badge svg {
    width: 22px;
    height: 22px;
}

.google-avg-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

.google-avg-stars .avg-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
}

.google-stars {
    display: inline-flex;
    gap: 2px;
}

.google-stars svg {
    width: 20px !important;
    height: 20px !important;
    fill: #FBBC04;
    flex-shrink: 0;
    display: block;
}

/* Firefox fix: aplicar fill al path directamente */
.google-stars svg path,
.google-review-stars svg path {
    fill: #FBBC04;
}

/* Reviews Grid */
.google-reviews-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 1024px) {
    .google-review-card {
        width: calc((100% - 1.5rem) / 2) !important;
    }
}

.google-review-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: calc((100% - 3rem) / 3);
    min-width: 0;
    box-sizing: border-box;
}

.google-review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.google-review-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.google-reviewer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.google-reviewer-info {
    flex: 1;
    min-width: 0;
}

.google-reviewer-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-review-date {
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.google-review-stars {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.google-review-stars svg {
    width: 16px !important;
    height: 16px !important;
    fill: #FBBC04;
    display: block;
    flex-shrink: 0;
    /* Firefox fix: evita espacio debajo del inline SVG */
}

.google-review-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-text);
    flex: 1;
}

.google-reviews-footer {
    text-align: center;
    margin-top: 2.5rem;
}

.google-reviews-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4285F4;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== Formentera Island Teaser ===== */
.formentera-teaser {
    position: relative;
    z-index: 10;
    background-color: var(--color-primary) !important;
    padding: var(--spacing-xl) 0;
}

.formentera-teaser .section-title {
    color: var(--color-secondary);
}

.island-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.island-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

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

.island-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.island-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-secondary);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.island-card h3 {
    font-size: 1.15rem;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.island-card p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

.formentera-teaser-cta {
    text-align: center;
}

.formentera-teaser-cta .btn-outline {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    font-weight: 600;
    padding: 0.9rem 2rem;
}

.formentera-teaser-cta .btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-white) !important;
    transform: translateY(-2px);
}

/* Plano Modal */
.plano-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.plano-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.plano-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.plano-modal.show .plano-modal-content {
    transform: translateY(0);
}

.plano-modal img {
    max-width: 100%;
    max-height: 75vh;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.plano-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.plano-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10000;
}

.plano-close:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .google-review-card {
        width: 100% !important;
    }

    .island-cards-grid {
        grid-template-columns: 1fr;
    }

    .plano-modal-content {
        padding: 1rem;
    }

    .plano-title {
        font-size: 1.2rem;
    }

    .plano-close {
        top: 10px;
        right: 15px;
    }
}