/* ============================================================================
   TOURS & EXCURSIONS STYLES - ESCAPADE TOURS
   Mobile-first responsive design
   ============================================================================ */

/* ---- Parallax Section (Home) ---- */
.tours-parallax-section {
    position: relative;
    background-image: url('/assets/img/circuit/lompoul/desert de lompoul visite u senegl.avif');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}
.tours-parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.tours-parallax-section > .container {
    position: relative;
    z-index: 2;
}
@media (max-width: 991.98px) {
    .tours-parallax-section {
        background-attachment: scroll;
    }
}

/* ---- Tour Card ---- */
.tour-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.tour-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}
.tour-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.tour-card:hover .tour-card-img img {
    transform: scale(1.08);
}
.tour-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}
.tour-card-badges .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.tour-card-price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 6px 14px;
    z-index: 2;
}
.tour-card-price-tag .price {
    font-size: 16px;
    font-weight: 700;
    color: #1a3a5c;
    line-height: 1.2;
}
.tour-card-price-tag .price-label {
    font-size: 11px;
    color: #6c757d;
}

/* Card Body */
.tour-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tour-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tour-card-location {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
}
.tour-card-location i {
    color: #f5a623;
    margin-right: 4px;
}
.tour-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.tour-card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #495057;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 20px;
}
.tour-card-meta .meta-item i {
    font-size: 14px;
    color: #1a73e8;
}
.tour-card-desc {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    flex: 1;
}

/* Card Footer */
.tour-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tour-card-footer .btn {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 10px;
}
.tour-card-difficulty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.tour-card-difficulty.easy {
    background: #d4edda;
    color: #155724;
}
.tour-card-difficulty.moderate {
    background: #fff3cd;
    color: #856404;
}
.tour-card-difficulty.hard {
    background: #f8d7da;
    color: #721c24;
}

/* ---- Tour Detail Modal ---- */
.tour-modal .modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: none;
}
.tour-modal .modal-header {
    border-bottom: none;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
    color: #fff;
}
.tour-modal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}
.tour-modal .modal-header .btn-close:hover {
    opacity: 1;
}
.tour-modal-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
}
.tour-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tour-modal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}
.tour-modal-hero-overlay h3 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Modal Gallery */
.tour-modal-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 20px;
    scrollbar-width: thin;
}
.tour-modal-gallery img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
    border: 2px solid transparent;
}
.tour-modal-gallery img:hover,
.tour-modal-gallery img.active {
    transform: scale(1.05);
    border-color: #1a73e8;
}

/* Modal Info Grid */
.tour-modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 20px;
}
.tour-modal-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 12px;
}
.tour-modal-info-item .info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.tour-modal-info-item .info-text {
    flex: 1;
}
.tour-modal-info-item .info-text small {
    display: block;
    font-size: 11px;
    color: #6c757d;
}
.tour-modal-info-item .info-text strong {
    font-size: 14px;
    color: #1a3a5c;
}

/* Modal Tabs */
.tour-modal-tabs {
    padding: 0 20px;
}
.tour-modal-tabs .nav-pills .nav-link {
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    color: #495057;
    transition: all 0.3s;
}
.tour-modal-tabs .nav-pills .nav-link.active {
    background: #1a3a5c;
    color: #fff;
}
.tour-modal-tab-content {
    padding: 16px 20px;
}
.tour-modal-tab-content .description-content {
    font-size: 14px;
    line-height: 1.7;
    color: #495057;
}
.tour-modal-tab-content .description-content h2 {
    font-size: 18px;
    color: #1a3a5c;
    margin-top: 16px;
    margin-bottom: 8px;
}
.tour-modal-tab-content .description-content h3 {
    font-size: 16px;
    color: #1a3a5c;
    margin-top: 12px;
    margin-bottom: 6px;
}

/* Modal Footer */
.tour-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.tour-modal-price {
    display: flex;
    flex-direction: column;
}
.tour-modal-price .price-label {
    font-size: 12px;
    color: #6c757d;
}
.tour-modal-price .price-value {
    font-size: 24px;
    font-weight: 800;
    color: #1a3a5c;
    line-height: 1.2;
}
.tour-modal-price .price-unit {
    font-size: 13px;
    font-weight: 400;
    color: #6c757d;
}

/* Highlights list */
.tour-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tour-highlights-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #495057;
}
.tour-highlights-list li:last-child {
    border-bottom: none;
}
.tour-highlights-list li i {
    color: #28a745;
    font-size: 16px;
    flex-shrink: 0;
}

/* ---- Circuits Page ---- */
.circuits-hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
    position: relative;
    overflow: hidden;
}
.circuits-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.circuits-filter-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.circuits-filter-bar .filter-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 25px;
    border: 2px solid #dee2e6;
    background: #fff;
    color: #495057;
    transition: all 0.3s;
    white-space: nowrap;
}
.circuits-filter-bar .filter-btn:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}
.circuits-filter-bar .filter-btn.active {
    background: #1a3a5c;
    border-color: #1a3a5c;
    color: #fff;
}

/* Tour card grid animations */
.tour-card-col {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.tour-card-col.hiding {
    opacity: 0;
    transform: scale(0.95);
}

/* ---- Skeleton loader ---- */
.tour-skeleton {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.tour-skeleton .skeleton-img {
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.tour-skeleton .skeleton-line {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 10px;
}
.tour-skeleton .skeleton-line.short {
    width: 60%;
}
.tour-skeleton .skeleton-line.medium {
    width: 80%;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---- Responsive ---- */
/* Mobile small */
@media (max-width: 575.98px) {
    .tour-card-img {
        height: 180px;
    }
    .tour-card-body {
        padding: 12px;
    }
    .tour-card-title {
        font-size: 15px;
    }
    .tour-card-footer {
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
    }
    .tour-card-footer .btn {
        width: 100%;
        text-align: center;
    }
    .tour-modal-hero {
        height: 200px;
    }
    .tour-modal-info-grid {
        grid-template-columns: 1fr;
        padding: 12px 16px;
    }
    .tour-modal-footer {
        flex-direction: column;
        text-align: center;
    }
    .tour-modal-footer .btn {
        width: 100%;
    }
    .tour-modal-gallery img {
        width: 80px;
        height: 56px;
    }
    .tours-parallax-section .section-header h2 {
        font-size: 22px;
    }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991.98px) {
    .tour-modal-hero {
        height: 240px;
    }
    .tour-modal-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 992px) {
    .tour-modal .modal-dialog {
        max-width: 800px;
    }
}
