/* ===== Line Index Page Styles ===== */

/* Overall Background - Light Brown/Beige */
main {
    background-color: #f5f3ef;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title-left {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.view-all-link {
    font-size: 0.95rem;
    color: #999;
    font-weight: 400;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #27ae60;
}

/* Photo Gallery Section */
.photo-gallery-section {
    padding: 60px 0 40px;
    margin-top: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.gallery-main-video {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-main-video video,
.gallery-main-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-main-video:hover video,
.gallery-main-video:hover img {
    transform: scale(1.05);
}

.gallery-secondary-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.gallery-secondary-videos .gallery-item:nth-child(1) {
    grid-column: span 2;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item video,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover video,
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
}

.gallery-label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Flexible Route Section */
.flexible-route-section .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.flexible-route-section .section-header {
    width: 100%;
}

.route-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 220px;
    display: block;
    flex: 1 1 calc(25% - 15px);
    min-width: 0;
}

.route-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.route-card:hover img {
    transform: scale(1.05);
}

.route-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
}

.route-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.route-desc {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Recommended Routes Section */
.recommended-routes-section {
    padding: 60px 0;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.route-tour-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.route-tour-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.route-tour-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.route-tour-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.route-tour-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 8px;
    line-height: 1.4;
    text-transform: uppercase;
}

.route-tour-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.route-tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-tour-price {
    font-size: 0.8rem;
    color: #999;
}

.route-tour-price strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #27ae60;
    margin-left: 4px;
}

.btn-view-more-sm {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: transparent;
    color: #666;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-view-more-sm:hover {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

/* Starting Points Section */
.starting-points-section {
    padding: 60px 0;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.city-card-home {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    display: block;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.city-card-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.city-card-home:hover img {
    transform: scale(1.08);
}

.city-overlay-home {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: #fff;
}

.city-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.city-desc {
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* More Destinations Links */
.more-destinations {
    margin-top: 24px;
}

.more-destinations-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 16px;
}

.dest-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dest-link {
    font-size: 0.95rem;
    color: #666;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.dest-link:hover {
    color: #27ae60;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .gallery-secondary-videos {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 16px;
    }

    .gallery-secondary-videos .gallery-item:nth-child(1) {
        grid-column: span 2;
    }

    .routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dest-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-title-left {
        font-size: 1.5rem;
    }

    .photo-gallery-section,
    .flexible-route-section,
    .recommended-routes-section,
    .starting-points-section {
        padding: 40px 0;
    }

    .flexible-route-section .container {
        flex-direction: column;
    }

    .route-card {
        flex: 1 1 100%;
        max-width: 100%;
        height: 200px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-main-video {
        height: 280px;
    }

    .gallery-secondary-videos {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 16px;
    }

    .gallery-secondary-videos .gallery-item:nth-child(1) {
        grid-column: span 2;
    }

    .gallery-item {
        height: 200px;
    }

    .route-card {
        max-width: 100%;
    }

    .routes-grid {
        grid-template-columns: 1fr;
    }

    .city-grid {
        grid-template-columns: 1fr;
    }

    .city-card-home {
        height: 180px;
    }

    .dest-links-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-main-video,
.gallery-item {
    position: relative;
}

.gallery-main-video video,
.gallery-item video {
    cursor: pointer;
}

.video-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.gallery-main-video.showing-controls .video-controls,
.gallery-item.showing-controls .video-controls {
    opacity: 1;
    pointer-events: auto;
}

.btn-play-pause {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    width: 64px;
    height: 64px;
    position: relative;
    z-index: 11;
}

.btn-fullscreen {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 12;
}

.btn-play-pause:hover,
.btn-fullscreen:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #fff;
    transform: scale(1.1);
}

.btn-play-pause svg,
.btn-fullscreen svg {
    display: block;
}

/* Ensure gallery-overlay is above video but below controls */
.gallery-overlay {
    z-index: 5;
    pointer-events: none;
}

.video-controls {
    z-index: 15;
}