/* ==============================================
   ICNEA Booking Calendar - Estilos Principales
   ============================================== */

/* Contenedor principal */
.icnea-search-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -40px;
    padding: 20px 25px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100;
}

/* Formulario */
.icnea-search-bar {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 180px;
    gap: 20px;
    align-items: end;
}

/* Wrappers de campos */
.icnea-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Labels */
.icnea-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0 4px;
}

/* Inputs y selects base */
.icnea-select,
.icnea-daterange-input {
    width: 100%;
    height: 62px;
    padding: 0 18px;
    border-radius: 14px;
    border: 2px solid #e0e0e0;
    background: #fff;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.icnea-select:hover,
.icnea-daterange-input:hover {
    border-color: #eca946;
}

.icnea-select:focus,
.icnea-daterange-input:focus {
    border-color: #eca946;
    box-shadow: 0 0 0 3px rgba(236, 169, 70, 0.1);
}

/* Select personalizado */
.icnea-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23666' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    padding-right: 45px;
}

/* Input de fechas */
.icnea-daterange-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23eca946' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 20px;
    padding-right: 50px;
}

/* Botón de búsqueda */
.icnea-btn-buscar {
    height: 62px;
    background: linear-gradient(135deg, #eca946 0%, #d89838 100%);
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(236, 169, 70, 0.3);
}

.icnea-btn-buscar:hover {
    background: linear-gradient(135deg, #d89838 0%, #c78830 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 169, 70, 0.4);
}

.icnea-btn-buscar:active {
    transform: translateY(0);
}

/* ==============================================
   Personalización del Date Range Picker
   ============================================== */

/* Contenedor principal del calendario */
.daterangepicker {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
}

/* Calendarios */
.daterangepicker .drp-calendar {
    padding: 15px !important;
    max-width: none !important;
}

/* Header del calendario */
.daterangepicker .calendar-table {
    background: #fff;
    border: none;
}

.daterangepicker th.month {
    color: #333;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 0;
}

/* Botones de navegación */
.daterangepicker th.prev,
.daterangepicker th.next {
    color: #666;
    background: #f5f5f5;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    transition: all 0.2s ease;
}

.daterangepicker th.prev:hover,
.daterangepicker th.next:hover {
    background: #eca946;
    color: #fff;
}

/* Días de la semana */
.daterangepicker th.week {
    color: #999;
    font-size: 12px;
    font-weight: 600;
}

/* Días del calendario */
.daterangepicker td {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.daterangepicker td.available:hover {
    background: #f8f8f8;
    color: #333;
}

/* Día actual */
.daterangepicker td.today {
    background: #fff;
    color: #333;
    font-weight: 700;
}

.daterangepicker td.today:before {
    border-bottom: 7px solid #eca946;
}

/* Días seleccionados */
.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: #eca946 !important;
    border-color: transparent;
    color: #fff;
}

/* Rango de fechas seleccionado */
.daterangepicker td.in-range {
    background-color: #fef3e6 !important;
    color: #333;
}

/* Días deshabilitados */
.daterangepicker td.disabled,
.daterangepicker td.off {
    color: #ccc !important;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Botones de acción */
.daterangepicker .drp-buttons {
    border-top: 1px solid #f0f0f0;
    padding: 15px;
    text-align: right;
}

.daterangepicker .drp-buttons .btn {
    margin-left: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.daterangepicker .cancelBtn {
    background: #f5f5f5;
    color: #666;
    border: none;
}

.daterangepicker .cancelBtn:hover {
    background: #e0e0e0;
}

.daterangepicker .applyBtn {
    background: #eca946;
    color: #fff;
    border: none;
}

.daterangepicker .applyBtn:hover {
    background: #d89838;
}

/* ==============================================
   Responsive Design
   ============================================== */

/* Tablets */
@media (max-width: 1024px) {
    .icnea-search-bar {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .icnea-btn-buscar {
        grid-column: 1 / -1;
    }
}

/* Móviles */
@media (max-width: 640px) {
    .icnea-search-wrapper {
        margin-top: -20px;
        padding: 15px;
        border-radius: 16px;
    }
    
    .icnea-search-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .icnea-select,
    .icnea-daterange-input,
    .icnea-btn-buscar {
        height: 56px;
        font-size: 15px;
    }
    
    .icnea-field-label {
        font-size: 12px;
    }
    
    /* Calendario más compacto en móvil */
    .daterangepicker {
        max-width: 95vw !important;
    }
    
    .daterangepicker .drp-calendar {
        padding: 10px !important;
    }
}

/* Muy pequeño (móviles antiguos) */
@media (max-width: 380px) {
    .icnea-select,
    .icnea-daterange-input,
    .icnea-btn-buscar {
        height: 50px;
        font-size: 14px;
        padding: 0 14px;
    }
}
