/*
=================================================================
HOTEL SEARCH FORM - STYLESHEET
=================================================================
For WordPress Shortcode Integration
=================================================================
*/

/* =================================================================
   CSS VARIABLES
   ================================================================= */
:root {
    /* Primary Colors */
    --primary-btn-color: #3C7427;
    --primary-btn-color-hover: #67B54B;
    --primary-blue-light: #eff6ff;
    --primary-blue-bg: #dbeafe;

    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --text-disabled: #d1d5db;
    --text-white: #ffffff;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --bg-hover: #f3f4f6;
    --bg-group: #f9fafb;

    /* Border Colors */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-focus: #F9AE3C;

    /* Status Colors */
    --error-red: #dc2626;
    --success-green: #10b981;

    /* Shadows */
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 -2px 10px rgba(0, 0, 0, 0.05);
    --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.1);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    --background-image-hero: url('images/bg-iguazu-falls.webp');

    /* Overlays */
    --overlay-light: rgba(0, 0, 0, 0.3);
    --overlay-dark: rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition-fast: 0.15s;
    --transition-normal: 0.2s;
    --transition-slow: 0.3s;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 50px;
    --radius-circle: 50%;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;
}

/* =================================================================
   DEMO STYLES - NOT NEEDED FOR PLUGIN
   These styles are only for standalone demo version
   ================================================================= */

/* Basic reset */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

/* Hero section - demo wrapper */
.hero-section {
    min-height: 100vh;
    background: var(--background-image-hero);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.hotel-search-wrapper {
    width: 100%;
}

/* Demo content section */
.content-page {
    background: var(--bg-white);
    padding: var(--spacing-3xl) var(--spacing-xl);
    min-height: 50vh;
}

.content-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-page h2 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
}

.content-page p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* END DEMO STYLES */

/* =================================================================
   FORM STYLES - REQUIRED FOR PLUGIN
   Include everything from here for WordPress shortcode
   ================================================================= */

.search-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Main form container */
.search-form {
    background: white;
    border-radius: 100px;
    padding: 12px 12px 12px 24px;
    display: flex;
    align-items: center;
    gap: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Form fields */
.form-field {
    flex: 1;
    padding: 12px 20px;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
}

.form-field:last-of-type {
    border-right: none;
}

.form-field:hover {
    background: #f9fafb;
    border-radius: 50px;
}

/* Field icons */
.field-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    flex-shrink: 0;
}

/* Field content */
.field-content {
    flex: 1;
    min-width: 0;
}

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    display: block;
}

.field-value {
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-value.has-value {
    color: #1f2937;
}

.field-input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #1f2937;
    width: 100%;
    background: transparent;
}

.field-input::placeholder {
    color: #9ca3af;
}


/* Search button */
.search-btn {
    background: var(--primary-btn-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--primary-btn-color-hover);
}

/* Close button (mobile only) */
.modal-close-btn {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Dropdown styles (desktop) */
.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    will-change: opacity, transform;
    min-width: 320px;
}

.dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Guests dropdown */
.guests-rooms-dropdown {
    min-width: 380px;
    max-height: 500px;
    overflow-y: auto;
}

/* Location dropdown */
.custom-select-dropdown {
    min-width: 360px;
    max-width: 420px;
    max-height: 450px;
    display: flex;
    flex-direction: column;
}

/* Search wrapper inside custom select */
.select-search-wrapper {
    position: relative;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.select-search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s;
}

.select-search-input:focus {
    border-color: var(--border-focus);
}

.select-search-input::placeholder {
    color: #9ca3af;
}

/* Options container */
.select-options {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Option groups (cities) */
.select-option-group {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    padding: 8px 16px 6px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Individual options */
.select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 14px;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.select-option.indent {
    padding-left: 32px;
    font-size: 14px;
}

.select-option:hover {
    background: #f3f4f6;
}

.select-option.focused {
    background: #eff6ff;
    color: var(--primary-btn-color);
}

.select-option.selected {
    background: var(--primary-btn-color);
    color: white;
    font-weight: 500;
}

.select-option.selected::after {
    content: '✓';
    margin-left: auto;
    font-size: 16px;
}

/* No results message */
.select-no-results {
    padding: 32px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 767px) {
    .guests-rooms-dropdown {
        max-height: none !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .custom-select-dropdown {
        max-height: none !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .calendar-dropdown {
        min-width: 100% !important;
        max-width: 100% !important;
    }

    /* Search input más grande en mobile */
    .select-search-input {
        padding: 12px 14px 12px 44px;
        font-size: 16px;
    }

    .search-icon {
        left: 14px;
        width: 22px;
        height: 22px;
    }

    /* Opciones más grandes para touch */
    .select-option {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 44px;
    }

    .select-option.indent {
        padding-left: 32px;
    }

    .select-option-group {
        padding: 10px 16px 8px 16px;
        font-size: 13px;
    }
}

/* Nationality Selector in Guests Modal */
.nationality-section {
    padding: 0 0 24px 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.nationality-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.nationality-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.nationality-select:hover {
    border-color: #9ca3af;
}

.nationality-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.nationality-select option {
    padding: 10px;
}

.nationality-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
    font-weight: 500;
}

.room-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.room-item:last-of-type {
    border-bottom: none;
}

.room-header {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.room-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.room-row:last-child {
    margin-bottom: 0;
}

.room-label {
    display: flex;
    flex-direction: column;
}

.room-label-main {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
}

.room-label-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.remove-room-btn {
    background: transparent;
    border: none;
    color: var(--primary-btn-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
    text-align: left;
    margin-top: 8px;
}

.remove-room-btn:hover {
    color: var(--primary-btn-color-hover);
    text-decoration: underline;
}

/* Children ages container */
.children-ages-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.child-age-wrapper {
    margin-bottom: 12px;
}

.child-age-wrapper:last-child {
    margin-bottom: 0;
}

.child-age-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 6px;
}

.child-age-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.child-age-select:hover {
    border-color: #9ca3af;
}

.child-age-select:focus {
    outline: none;
    border-color: var(--primary-btn-color)
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.child-age-select option {
    padding: 8px;
}

.child-age-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    font-weight: 500;
}

.add-room-wrapper {
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.add-room-btn {
    background: transparent;
    border: none;
    color: var(--primary-btn-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.2s;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.add-room-btn:hover {
    background: #e1f0db;
    color: var(--primary-btn-color-hover);
}

.add-room-btn svg {
    flex-shrink: 0;
}

.done-btn-wrapper {
    padding: 12px 0 0 0;
    text-align: center;
}

.done-btn {
    background: var(--primary-btn-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.done-btn:hover {
    background: var(--primary-btn-color-hover);
}

/* Guest row (mantener para compatibilidad) */
.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.guest-row:last-child {
    border-bottom: none;
}

.guest-label {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.counter-btn:hover:not(:disabled) {
    border-color: var(--border-focus);
    color: var(--border-focus);
    background: #feefd8;
}

.counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.counter-value {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    min-width: 20px;
    text-align: center;
}

/* Calendar dropdown */
.calendar-dropdown {
    min-width: 650px;
    max-width: 100%;
    padding: 32px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #1f2937;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: #e5e7eb;
}

.calendar-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.calendar-month {
    flex: 1;
}

.month-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-header {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    border: none;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background: #f3f4f6;
}

.calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: var(--primary-btn-color);
    color: white;
}

.calendar-day.in-range {
    background: #e1f0db;
    color: #1f2937;
}

.calendar-day.today {
    border: 1px solid var(--primary-btn-color);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* =================================================================
   MOBILE STYLES
   ================================================================= */
@media (max-width: 968px) {
    .search-form {
        flex-direction: column;
        border-radius: 24px;
        padding: 16px;
        gap: 8px;
    }

    .form-field {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        width: 100%;
        border-radius: 12px !important;
    }

    .form-field:last-child {
        border-bottom: none;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 8px;
    }

    .calendar-months {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    /* Prevenir scroll horizontal en mobile */
    html, body {
        max-width: 100vw;
        overflow-x: hidden !important;
    }

    /* Hero section con padding reducido */
    .hero-section {
        padding: 16px;
    }

    .search-container {
        max-width: 100%;
        overflow: hidden;
    }

    /* 90vh Modal para Dropdowns en Mobile - Sistema unificado */
    .dropdown.active {
        position: fixed !important;
        top: 10vh !important;  /* 10% superior visible */
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;  /* Cambiar a 100% en lugar de 100vw */
        height: 90vh !important;  /* 90% altura */
        min-width: 100% !important;
        max-width: 100% !important;
        max-height: 90vh !important;
        transform: none !important;
        border-radius: 20px 20px 0 0 !important;  /* Redondeo superior */
        padding: 70px 20px 20px 20px;
        overflow-y: auto;
        overflow-x: hidden;  /* Evitar scroll horizontal */
        animation: slideUpFrom90 0.3s ease-out;
        z-index: 1001;
        box-sizing: border-box;
    }

    @keyframes slideUpFrom90 {
        from {
            transform: translateY(100%);  /* Entra desde abajo */
        }
        to {
            transform: translateY(0);  /* Posición final: top 10vh */
        }
    }

    /* Animación de salida (slide down) */
    .dropdown.closing {
        animation: slideDownTo90 0.25s ease-in;
    }

    @keyframes slideDownTo90 {
        from {
            transform: translateY(0);
        }
        to {
            transform: translateY(100%);  /* Sale hacia abajo */
        }
    }

    /* Mostrar botón de cerrar en mobile */
    .modal-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    /* Guests modal en mobile - Flexbox con header/content/footer */
    .guests-rooms-dropdown.active {
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        overflow: hidden;  /* Modal NO scrollea */
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Close button fixed top - siempre visible */
    .guests-rooms-dropdown .modal-close-btn {
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 11;
        background: white;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Contenedor scrolleable - solo el contenido */
    .guests-rooms-dropdown .guests-content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 60px 20px 20px 20px;  /* Top para close button */
        box-sizing: border-box;
    }

    /* Ajustar elementos dentro de guests-content */
    .guests-rooms-dropdown .nationality-section,
    .guests-rooms-dropdown .room-item,
    .guests-rooms-dropdown .add-room-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .guests-rooms-dropdown .nationality-section {
        padding-bottom: 24px;
        margin-bottom: 20px;
    }

    .guests-rooms-dropdown .add-room-wrapper {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    /* Calendar en mobile - Layout flexible con header sticky */
    .calendar-dropdown.active {
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        overflow: hidden;  /* Evitar scroll en contenedor principal */
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Close button posicionado absolute sobre header */
    .calendar-dropdown .modal-close-btn {
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 11;
    }

    /* Calendar header sticky con navegación */
    .calendar-dropdown .calendar-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        padding: 60px 20px 16px 20px;  /* Top padding para close button */
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 0;
        flex-shrink: 0;  /* No se comprime */
    }

    /* Contenedor de meses scrolleable */
    .calendar-dropdown .calendar-months {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px;
        grid-template-columns: 1fr !important;  /* 1 columna en mobile */
        box-sizing: border-box;
        max-width: 100%;
    }

    /* Location modal en mobile - Layout flexible con search sticky */
    .custom-select-dropdown.active {
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        overflow: hidden;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Close button sobre search */
    .custom-select-dropdown .modal-close-btn {
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 11;
    }

    /* Search wrapper sticky */
    .custom-select-dropdown .select-search-wrapper {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        padding: 60px 20px 16px 20px;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    /* Asegurar ícono dentro del input en mobile */
    .custom-select-dropdown .search-icon {
        position: absolute;
        left: 34px;  /* 20px padding wrapper + 14px dentro del input */
        top: 84px;   /* 60px padding top + 12px input padding top + 12px (mitad altura input aprox) */
        width: 22px;
        height: 22px;
        pointer-events: none;
        z-index: 2;
        color: #9ca3af;
    }

    .custom-select-dropdown .select-search-input {
        position: relative;
        padding: 12px 14px 12px 44px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
        height: 48px;  /* Altura fija para cálculo preciso */
    }

    /* Options container scrolleable */
    .custom-select-dropdown .select-options {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 20px 20px 20px;
        box-sizing: border-box;
        max-width: 100%;
    }

    /* Bottom actions sticky (botón Done) - Funciona con flexbox */
    .guests-rooms-dropdown .done-btn-wrapper {
        position: sticky;  /* Sticky en lugar de fixed */
        bottom: 0;
        padding: 16px 20px;
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 10;
        flex-shrink: 0;  /* No se comprime */
        width: 100%;
        box-sizing: border-box;
    }

    .guests-rooms-dropdown .done-btn {
        min-height: 48px;
        width: 100%;
    }

    /* Counter buttons más grandes para touch */
    .counter-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    /* Room labels más espaciados */
    .room-row {
        margin-bottom: 16px;
    }

    /* Child age selects touch-friendly */
    .child-age-select {
        padding: 12px 40px 12px 14px;
        font-size: 16px;
        min-height: 44px;
        background-position: right 14px center;
    }

    .child-age-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .child-age-wrapper {
        margin-bottom: 16px;
    }

    .children-ages-container {
        margin-top: 20px;
        padding-top: 20px;
    }

    /* Nationality select touch-friendly */
    .nationality-select {
        padding: 14px 40px 14px 16px;
        font-size: 16px;
        min-height: 48px;
        background-position: right 16px center;
    }

    .nationality-label {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .nationality-section {
        padding: 0 0 28px 0;
        margin-bottom: 24px;
    }

    /* Overlay más oscuro en mobile - Solo cubre desde 10vh */
    .overlay.active {
        top: 10vh !important;  /* 10% superior visible */
        background: rgba(0, 0, 0, 0.5);
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Prevent calendar from going off-screen on desktop */
@media (min-width: 768px) {
    .calendar-dropdown {
        max-width: calc(100vw - 40px);
    }
}

/* Inputs ocultos */
input[type="hidden"] {
    display: none;
}
    