/* ===========================================
   SOLUCIÓN SIMPLE - Botones abajo en todas las pantallas
   =========================================== */

/* Hacer que los botones se pongan abajo en todas las pantallas */
.buttons-to-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 20px !important;
    text-align: left !important;
}

.buttons-to-right .button {
    width: 100% !important;
    padding: 14px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    min-height: 48px !important;
    margin: 0 !important;
}

/* Colores de botones para todas las pantallas */
.buttons-to-right .button.green {
    background: #4CAF50 !important;
    color: #fff !important;
}

.buttons-to-right .button.blue {
    background: #2196F3 !important;
    color: #fff !important;
}

.buttons-to-right .button.gray {
    background: #334c49 !important;
    color: #fff !important;
}

.buttons-to-right .button.delete {
    background: #F44336 !important;
    color: #fff !important;
}

.buttons-to-right .button.reject {
    background: #FF9800 !important;
    color: #fff !important;
}

.buttons-to-right .button.modify-booking {
    background: #FFC107 !important;
    color: #333 !important;
}

/* Iconos en botones */
.buttons-to-right .button i {
    font-size: 16px !important;
}

/* Efectos hover */
.buttons-to-right .button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* ===========================================
   VISTA MÓVIL - Que ya funcionaba
   =========================================== */

@media (max-width: 768px) {
    /* Contenedor principal de la reserva */
    .user-booking {
        background: #fff !important;
        border-radius: 16px !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
        margin: 20px auto !important;
        max-width: 400px !important;
        width: calc(100% - 40px) !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }
    
    /* Layout de la tarjeta */
    .list-box-listing {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    /* Imagen del avatar */
    .list-box-listing-img {
        flex-shrink: 0 !important;
    }
    
    .list-box-listing-img img {
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    /* Contenido principal */
    .list-box-listing-content {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    /* Título y estado */
    .list-box-listing-content h3 {
        font-size: 18px !important;
        font-weight: 700 !important;
        margin: 0 0 12px 0 !important;
        line-height: 1.3 !important;
        color: #333 !important;
    }
    
    .list-box-listing-content h3 a {
        color: #333 !important;
        text-decoration: none !important;
    }
    
    /* Estados de reserva */
    .booking-status {
        display: inline-block !important;
        padding: 6px 16px !important;
        border-radius: 20px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-left: 8px !important;
    }
    
    .booking-status.pending {
        background: #E3F2FD !important;
        color: #1976D2 !important;
    }
    
    .booking-status.unpaid {
        background: #FFEBEE !important;
        color: #D32F2F !important;
    }
    
    .booking-status.paid {
        background: #E8F5E8 !important;
        color: #2E7D32 !important;
    }
    
    .booking-status.canceled {
        background: #F5F5F5 !important;
        color: #757575 !important;
    }
    
    /* Secciones de información */
    .inner-booking-list {
        margin: 16px 0 !important;
        padding: 0 !important;
    }
    
    .inner-booking-list h5 {
        font-size: 14px !important;
        color: #666 !important;
        margin: 0 0 6px 0 !important;
        font-weight: 500 !important;
    }
    
    /* Lista de detalles */
    .booking-list {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    
    .booking-list li {
        font-size: 14px !important;
        color: #333 !important;
        margin: 4px 0 !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .booking-list li.highlighted {
        font-weight: 600 !important;
        color: #007bff !important;
        background: #f8f9fa !important;
        padding: 6px 12px !important;
        border-radius: 8px !important;
        display: inline-block !important;
    }
    
    /* Sección de detalles de reserva (fondo verde) */
    .inner-booking-list-guests {
        background: #E8F5E8 !important;
        padding: 12px !important;
        border-radius: 8px !important;
        margin: 16px 0 !important;
    }
    
    .inner-booking-list-guests h5 {
        color: #2E7D32 !important;
        font-weight: 600 !important;
    }
    
    .inner-booking-list-guests .booking-list li {
        color: #2E7D32 !important;
    }
    
    /* Botones de acción para móvil */
    .booking-buttons-actions,
    .buttons-to-right {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 20px !important;
        text-align: left !important;
    }
    
    .booking-buttons-actions .button,
    .buttons-to-right .button {
        width: 100% !important;
        padding: 14px 16px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: center !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        border: none !important;
        transition: all 0.3s ease !important;
        box-sizing: border-box !important;
        min-height: 48px !important;
    }
    
    /* Colores de botones */
    .booking-buttons-actions .button.green,
    .buttons-to-right .button.green {
        background: #4CAF50 !important;
        color: #fff !important;
    }
    
    .booking-buttons-actions .button.blue,
    .buttons-to-right .button.blue {
        background: #2196F3 !important;
        color: #fff !important;
    }
    
    .booking-buttons-actions .button.gray,
    .buttons-to-right .button.gray {
        background: #334c49 !important;
        color: #fff !important;
    }
    
    .booking-buttons-actions .button.delete,
    .buttons-to-right .button.delete {
        background: #F44336 !important;
        color: #fff !important;
    }
    
    .booking-buttons-actions .button.reject,
    .buttons-to-right .button.reject {
        background: #FF9800 !important;
        color: #fff !important;
    }
    
    .booking-buttons-actions .button.modify-booking,
    .buttons-to-right .button.modify-booking {
        background: #FFC107 !important;
        color: #333 !important;
    }
    
    /* Iconos en botones */
    .booking-buttons-actions .button i,
    .buttons-to-right .button i {
        font-size: 16px !important;
    }
    
    /* Botón de enviar mensaje */
    .booking-message {
        width: 100% !important;
        padding: 14px 16px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: center !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        background: #f8f9fa !important;
        color: #333 !important;
        border: 1px solid #dee2e6 !important;
        margin-top: 16px !important;
        box-sizing: border-box !important;
        min-height: 48px !important;
    }
    
    /* Efectos hover */
    .booking-buttons-actions .button:hover,
    .booking-message:hover,
    .buttons-to-right .button:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
} 


/* ===========================================
   FIX PARA IMAGEN DE LISTING EN MÓVIL
   =========================================== */

@media (max-width: 768px) {
    /* Hacer que la imagen del listing ocupe todo el contenedor */
    /* ===========================================
   FIX PARA IMAGEN DE AVATAR EN MY-BOOKINGS
   =========================================== */

/* Arreglar el avatar de WordPress en my-bookings */
.list-box-listing-img img {
    width: 150px !important;
    height: 150px !important;
    border-radius: 5% !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    flex-shrink: 0 !important;
}

.user-booking .list-box-listing-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* Sobrescribir estilos del tema principal */
.user-booking .bookings .list-box-listing-img {
    max-width: 280px !important;
    max-height: 280px !important;
    width: 280px !important;
    height: 280px !important;
} 
} 



/* ===========================================
   SOLUCIÓN PARA DATERANGEPICKER EN MÓVIL
   =========================================== */

/* ===========================================
   SOLUCIÓN SIMPLE PARA DATERANGEPICKER EN MÓVIL
   =========================================== */

/* Solo ajustes mínimos para que no se corte en móvil */
/* Solo ajustes mínimos para que no se corte en móvil */
@media (max-width: 768px) {
    .daterangepicker {
        position: absolute !important;
        top: 100% !important;
        left: 20px !important;
        right: 0 !important;
        transform: none !important;
        width: 90% !important;
        max-width: none !important;
        max-height: 70vh !important;
        overflow: auto !important;
        z-index: 9999 !important;
        margin-top: 5px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        border-radius: 8px !important;
    }
    
    /* Asegurar que los botones se vean */
    .daterangepicker .drp-buttons {
        position: relative !important;
        bottom: auto !important;
    }
    
    /* Hacer que el input tenga posición relativa para el dropdown */
    .daterangepicker-container {
        position: relative !important;
    }
} 