/**
 * Tour Components CSS - Nordic Blue Design System
 * Reusable component styles for tour pages
 * Color Palette: Primary #2563EB, Secondary #93C5FD, Dark #1E40AF, Sky #E0F2FE
 */

/* ============================================================================
   TOUR CARDS
   ============================================================================ */

.tour-card-premium {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.tour-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #E0F2FE;
    flex-shrink: 0;
}

.tour-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-card-premium:hover .tour-card-image {
    transform: scale(1.06);
}

.tour-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #F59E0B;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    z-index: 10;
}

.tour-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563EB;
    margin-bottom: 0.75rem;
}

.tour-card-title {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-card-description {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    /* Fixed 3-line height for consistent card alignment */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.6em * 3); /* 3 lines at 1.6 line-height */
}

.tour-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    margin-top: auto;
}

.tour-card-price {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2563EB;
    line-height: 1;
}

.tour-card-price-label {
    font-size: 0.75rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* ============================================================================
   INSTRUCTOR CARDS
   ============================================================================ */

.instructor-card-premium {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.instructor-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.instructor-card-image {
    position: relative;
    height: 16rem;
    overflow: hidden;
    background: #E0F2FE;
    flex-shrink: 0;
}

.instructor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.instructor-badge-featured {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #2563EB;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.instructor-badge-experience {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.instructor-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.instructor-name {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.instructor-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563EB;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    min-height: 1.25rem;
}

.instructor-awards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-height: 2rem;
}

.award-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.award-badge-blue {
    background: #E0F2FE;
    color: #1E40AF;
}

.award-badge-amber {
    background: #FEF3C7;
    color: #92400E;
}

.award-badge-purple {
    background: #F3E8FF;
    color: #6B21A8;
}

.award-badge-red {
    background: #FEE2E2;
    color: #991B1B;
}

.instructor-tagline {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
    flex-grow: 1;
}

.instructor-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    margin-top: auto;
}

.instructor-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.instructor-tours {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 500;
}

/* ============================================================================
   FILTER SIDEBAR
   ============================================================================ */

.filter-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.filter-group {
    padding: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #374151;
    margin-bottom: 1rem;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-option:hover {
    background: #F9FAFB;
}

.filter-option input[type="checkbox"] {
    margin-right: 0.5rem;
    border-radius: 0.25rem;
    border-color: #D1D5DB;
    color: #2563EB;
}

.filter-option input[type="checkbox"]:focus {
    ring-color: #2563EB;
}

.price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.price-slider {
    position: relative;
    height: 0.25rem;
    background: #E5E7EB;
    border-radius: 9999px;
}

.price-slider-fill {
    position: absolute;
    height: 0.25rem;
    background: #2563EB;
    border-radius: 9999px;
}

.price-handle-visual {
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border: 2px solid #2563EB;
    border-radius: 9999px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* ============================================================================
   STAT CARDS
   ============================================================================ */

.stat-card {
    background: white;
    border: 1px solid #E5E7EB;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    border-color: #2563EB;
}

.stat-value {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2563EB;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================================
   CREDENTIAL CARDS
   ============================================================================ */

.credential-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.credential-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    border-color: #2563EB;
}

.credential-icon {
    width: 3rem;
    height: 3rem;
    background: #E0F2FE;
    color: #2563EB;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.credential-title {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.credential-description {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
}

/* ============================================================================
   EQUIPMENT BADGES
   ============================================================================ */

.equipment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #F3F4F6;
    color: #374151;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.equipment-badge:hover {
    background: #E0F2FE;
    color: #1E40AF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.equipment-badge-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ============================================================================
   TIMELINES
   ============================================================================ */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2563EB;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #2563EB;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563EB;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.timeline-description {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
}

/* ============================================================================
   BOOKING CARDS
   ============================================================================ */

.booking-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.booking-price {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2563EB;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.booking-price-label {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
}

.booking-details {
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.booking-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.booking-detail-item:last-child {
    margin-bottom: 0;
}

.booking-detail-label {
    font-size: 0.875rem;
    color: #6B7280;
}

.booking-detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

/* ============================================================================
   PORTFOLIO GALLERY
   ============================================================================ */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #1F2937;
    aspect-ratio: 16/9;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-caption {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================================================
   TAB NAVIGATION
   ============================================================================ */

.tab-nav {
    display: flex;
    gap: 0.5rem;
    background: #F9FAFB;
    padding: 0.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tab-button {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: #6B7280;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', 'DM Sans', 'Inter', sans-serif;
}

.tab-button:hover {
    color: #2563EB;
}

.tab-button.active {
    background: white;
    color: #2563EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* ============================================================================
   BUTTONS (Tour-specific overrides)
   ============================================================================ */

.btn-aerial-primary {
    background: #2563EB;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-aerial-primary:hover {
    background: #1E40AF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-aerial-primary:focus {
    background: #1E40AF;
    color: white;
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.btn-aerial-primary:active {
    background: #1e3a8a;
    color: white;
    transform: translateY(0);
}

.btn-aerial-secondary {
    background: white;
    color: #2563EB;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #2563EB;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-aerial-secondary:hover {
    background: #E0F2FE;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.section-title {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.text-aerial-blue {
    color: #2563EB;
}

.bg-aerial-blue {
    background-color: #2563EB;
}

.border-aerial-blue {
    border-color: #2563EB;
}

.text-aerial-sky {
    color: #93C5FD;
}

.bg-aerial-sky {
    background-color: #E0F2FE;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .tour-card-title {
        font-size: 1.25rem;
    }

    .instructor-name {
        font-size: 1.125rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .booking-price {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
