/* Estilos específicos para la página de detalle del tour */
.tour-detail {
    padding: 3rem 0 5rem;
}

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

.detail-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.tour-price {
    font-size: 1.3rem;
    color: #3498db;
    font-weight: bold;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detail-info h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 1.5rem 0 0.5rem;
}

.detail-info h2:first-child {
    margin-top: 0;
}

.detail-info p {
    line-height: 1.7;
    color: #555;
}

.schedule {
    margin: 1.5rem 0;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.schedule-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.schedule-item.sold-out {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.schedule-day-time {
    display: flex;
    flex-direction: column;
}

.day {
    font-weight: bold;
    font-size: 1.1rem;
}

.time {
    color: #666;
    font-size: 0.9rem;
}

.schedule-availability {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.available {
    color: #27ae60;
    font-weight: 500;
}

.sold-out {
    color: #e74c3c;
    font-weight: bold;
}

.action-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* Modal de reserva */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    padding-right: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.total-amount {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.total-amount h3 {
    margin: 0;
    color: #2c3e50;
}

.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive para tour detail */
@media (max-width: 768px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .schedule-availability {
        width: 100%;
        justify-content: space-between;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .detail-header h1 {
        font-size: 2rem;
    }
}

/* Additional styles for calendar system */
.readonly-input {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    cursor: not-allowed;
}

.calendar-section {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 2rem;
}

.time-slots-section {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}