/**
 * TuriTop Integration Styles
 * Vista Arenal Adventure Park
 *
 * Styles for the TuriTop booking widget integration
 * Maintains brand consistency and responsive design
 */

/* ==========================================================================
   Booking Section - TuriTop Widget Container
   ========================================================================== */

.booking-section {
    background: linear-gradient(135deg, #f5f9f7 0%, #ffffff 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern overlay for brand consistency */
.booking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 168, 89, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(124, 179, 66, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.booking-section .container {
    position: relative;
    z-index: 1;
}

/* Section Header - Consistent with other sections */
.booking-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.booking-section .costa-rica-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.booking-section .section-title {
    color: var(--primary-green);
    margin-bottom: 0.75rem;
}

.booking-section .section-subtitle {
    color: var(--volcano-gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Widget Container */
.booking-widget-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow:
        0 4px 20px rgba(0, 168, 89, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.booking-widget-container:hover {
    box-shadow:
        0 8px 30px rgba(0, 168, 89, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

/* TuriTop widget wrapper - ensures proper rendering */
.booking-widget-container .load-turitop {
    min-height: 400px;
    width: 100%;
    /* TuriTop will inject its own styles here */
}

/* Booking Notice - WhatsApp Alternative */
.booking-notice {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.25rem;
    background: rgba(0, 168, 89, 0.05);
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.booking-notice p {
    margin: 0;
    color: var(--volcano-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.booking-notice strong {
    color: var(--earth-brown);
    font-weight: 600;
}

.booking-notice a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.booking-notice a:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

.booking-notice a::before {
    content: '💬';
    font-size: 1.1em;
}

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

/* Tablet Styles */
@media (max-width: 1023px) {
    .booking-section {
        padding: 3rem 0;
    }

    .booking-widget-container {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .booking-section .section-subtitle {
        font-size: 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .booking-section {
        padding: 2.5rem 0;
    }

    .booking-section .costa-rica-icon {
        font-size: 2.5rem;
    }

    .booking-widget-container {
        padding: 1rem;
        margin: 1rem auto;
        border-radius: 8px;
    }

    .booking-section .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .booking-notice {
        margin-top: 2rem;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .booking-notice p {
        font-size: 0.9rem;
    }

    /* Ensure widget is touch-friendly on mobile */
    .booking-widget-container .load-turitop {
        min-height: 350px;
    }
}

/* Small Mobile Optimization */
@media (max-width: 480px) {
    .booking-widget-container {
        padding: 0.75rem;
        margin: 1rem 0.5rem;
    }

    .booking-notice {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

/* ==========================================================================
   Loading State - Optional Enhancement
   ========================================================================== */

/* Shows while TuriTop widget is loading */
.booking-widget-container .load-turitop:empty::before {
    content: 'Loading booking calendar...';
    display: block;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--volcano-gray);
    opacity: 0.6;
    font-style: italic;
}

.booking-widget-container .load-turitop:empty::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 1rem auto;
    border: 3px solid rgba(0, 168, 89, 0.2);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ==========================================================================
   Accessibility Enhancements
   ========================================================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .booking-widget-container {
        border: 2px solid var(--primary-green);
    }

    .booking-notice {
        border: 1px solid var(--volcano-gray);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .booking-section .costa-rica-icon,
    .booking-widget-container,
    .booking-notice a {
        animation: none;
        transition: none;
    }
}

/* Focus visible for keyboard navigation */
.booking-notice a:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .booking-section {
        background: white;
        padding: 1rem 0;
    }

    .booking-widget-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .booking-section::before {
        display: none;
    }
}
