/**
 * Optic Cabo - Tours Page Styles
 * tours-styles.css
 */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== HERO SECTION ==================== */
.tours-hero {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.8) 100%), 
                url('logosO/tours-hero.jpg') center/cover no-repeat;
    padding: 100px 20px 80px;
    text-align: center;
    color: white;
}

.tours-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #D4AF37;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tours-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ==================== CONTAINER & SECTION ==================== */
.tours-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.section-title h2 span {
    color: #D4AF37;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* ==================== TOURS GRID ==================== */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* ==================== TOUR CARD ==================== */
.tour-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.tour-card.featured {
    grid-column: span 2;
}

/* Tour Image */
.tour-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.tour-card.featured .tour-image {
    height: 300px;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-image img {
    transform: scale(1.1);
}

/* Tour Badge */
.tour-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #1a1a2e;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.tour-badge.private {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #D4AF37;
}

/* Tour Content */
.tour-content {
    padding: 25px;
}

.tour-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f2f5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
}

.tour-category i {
    color: #D4AF37;
}

.tour-title {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.3;
}

.tour-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Tour Details */
.tour-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.tour-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
}

.tour-detail i {
    color: #D4AF37;
    width: 18px;
}

/* Tour Pricing */
.tour-pricing {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #D4AF37;
}

.price-currency {
    font-size: 1rem;
    color: #666;
}

.price-per {
    font-size: 0.9rem;
    color: #888;
}

.price-breakdown {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.price-breakdown span {
    display: block;
}

.price-breakdown .free {
    color: #10b981;
    font-weight: 600;
}

/* Tour Includes */
.tour-includes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.tour-includes h4 {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.includes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.include-item {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tour Button */
.btn-tour {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #1a1a2e;
}

.btn-tour:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* ==================== MODAL STYLES ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.reservation-modal {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.modal-header {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    color: #1a1a2e;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #1a1a2e;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* Tour Summary in Modal */
.tour-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.tour-summary-image {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.tour-summary-info h3 {
    color: #1a1a2e;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.tour-summary-info p {
    color: #D4AF37;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ==================== FORM STYLES ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label i {
    color: #D4AF37;
    margin-right: 8px;
    width: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Passenger Counter */
.passenger-counter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #D4AF37;
    background: white;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #D4AF37;
    transition: all 0.3s;
}

.counter-btn:hover {
    background: #D4AF37;
    color: white;
}

.counter-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    min-width: 30px;
    text-align: center;
}

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

/* Price Calculator */
.price-calculator {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    color: white;
}

.price-calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.price-calc-row.total {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.price-calc-row.total span:last-child {
    color: #D4AF37;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    border: none;
    border-radius: 12px;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-submit:hover {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* ==================== SUCCESS MESSAGE ==================== */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 30px;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
}

.success-message h3 {
    color: #1a1a2e;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-message p {
    color: #666;
    margin-bottom: 20px;
}

.reservation-id {
    background: #f0f2f5;
    padding: 15px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 1.2rem;
    color: #D4AF37;
    font-weight: 700;
}

/* ==================== CTA SECTION ==================== */
.tours-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

.tours-cta h2 {
    color: #D4AF37;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.tours-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 16px 35px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #1a1a2e;
}

.cta-btn.primary:hover {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
}

.cta-btn.secondary:hover {
    background: #D4AF37;
    color: #1a1a2e;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .tour-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .tours-hero h1 {
        font-size: 2rem;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tour-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .tours-cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .tours-container {
        padding: 40px 15px;
    }
    
    .tour-content {
        padding: 20px;
    }
    
    .price-amount {
        font-size: 1.6rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .tours-hero {
        padding: 80px 15px 60px;
    }
}
