/* Estilos para el frontend de Transporte Premium */

/* Contenedor principal */
.tp-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Formulario de búsqueda */
.tp-search-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.tp-form-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.tp-form-description {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.tp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tp-form-group {
    display: flex;
    flex-direction: column;
}

.tp-form-group label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 14px;
}

.tp-form-group input,
.tp-form-group select,
.tp-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.tp-form-group input:focus,
.tp-form-group select:focus,
.tp-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.tp-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.tp-search-button,
.tp-reservation-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.tp-search-button:hover,
.tp-reservation-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.tp-search-button:disabled,
.tp-reservation-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Resultados de búsqueda */
.tp-search-results {
    margin-top: 30px;
}

.tp-search-results-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tp-search-results-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.tp-vehicle-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 25px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.tp-vehicle-card:hover {
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.tp-vehicle-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tp-vehicle-info p {
    color: #7f8c8d;
    margin-bottom: 5px;
    font-size: 14px;
}

.tp-vehicle-pricing {
    text-align: right;
}

.tp-vehicle-pricing p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #7f8c8d;
}

.tp-vehicle-pricing .tp-total {
    font-size: 18px;
    font-weight: 600;
    color: #27ae60;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e1e8ed;
}

.tp-vehicle-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tp-select-vehicle {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tp-select-vehicle:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Formulario de reserva */
.tp-reservation-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.tp-reservation-form h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.tp-reservation-form > p {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Notificaciones */
.tp-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.tp-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tp-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tp-notice-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .tp-search-container {
        padding: 15px;
    }
    
    .tp-search-form,
    .tp-reservation-form {
        padding: 20px;
    }
    
    .tp-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tp-vehicle-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .tp-vehicle-pricing {
        text-align: center;
    }
    
    .tp-vehicle-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .tp-form-title {
        font-size: 24px;
    }
    
    .tp-search-button,
    .tp-reservation-button {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .tp-search-container {
        padding: 10px;
    }
    
    .tp-search-form,
    .tp-reservation-form {
        padding: 15px;
    }
    
    .tp-form-title {
        font-size: 20px;
    }
    
    .tp-form-group input,
    .tp-form-group select,
    .tp-form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Estilos para el plugin Transporte Premium */

/* Contenedor principal */
.tp-widget-busqueda-reserva {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Formulario de búsqueda */
.tp-search-form {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.tp-form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.tp-form-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Filas del formulario */
.tp-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.tp-form-group {
    flex: 1;
    min-width: 250px;
}

.tp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

/* Campos de entrada */
.tp-select,
.tp-datepicker,
.tp-number {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.tp-select:focus,
.tp-datepicker:focus,
.tp-number:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

/* Botón de búsqueda */
.tp-search-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tp-search-button:hover {
    background: #005a87;
}

.tp-search-button i {
    font-size: 14px;
}

/* Información de extras */
.tp-extra-info {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Contenedor de resultados */
.tp-resultados {
    margin-top: 30px;
}

/* Loading */
.tp-loading {
    text-align: center;
    padding: 40px;
}

.tp-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error */
.tp-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .tp-form-row {
        flex-direction: column;
    }
    
    .tp-form-group {
        min-width: auto;
    }
    
    .tp-search-form {
        padding: 20px;
    }
}

/* Select2 personalizado */
.select2-container--default .select2-selection--single {
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 43px;
    padding-left: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
}

/* Datepicker personalizado */
.ui-datepicker {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ui-datepicker .ui-datepicker-header {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px 6px 0 0;
}

.ui-datepicker .ui-datepicker-calendar .ui-state-default {
    background: white;
    border: 1px solid #ddd;
    color: #333;
}

.ui-datepicker .ui-datepicker-calendar .ui-state-active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}
