/* =========================
   TOURS LAYOUT
========================= */

.tours-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

.tours-page-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 40px;
}

.tours-section {
    margin-bottom: 80px;
}

.tours-section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

/* =========================
   GRID
========================= */

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* =========================
   CARD
========================= */

.tours-card {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 10px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tours-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.85);
}

/* Reveal animation */
.tours-card.tours-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.tours-card.tours-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   IMAGE
========================= */

.tours-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    
}

.tours-bottom-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
}

.tours-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
    opacity: 0.8;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.tours-image img.loaded {
    filter: blur(0);
    opacity: 1;
}

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

.tours-price-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #000;
    color: #00c2a8;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(0,194,168,0.4);
}
.tours-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}
.tours-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.badge-open { background: #00c2a8; }
.badge-limited { background: #f56e79; }
.badge-soldout { background: #555; }
.badge-past { background: #555; }

/* =========================
   INFO
========================= */

.tours-info {
    padding: 15px;
    background: rgba(0,0,0,0.5);
}

.tours-info h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.tours-info p {
    margin: 0;
    color: #ccc;
}

/* =========================
   STATES
========================= */

.tours-card.limited {
    box-shadow: 0 0 18px rgba(255,160,90,0.18);
}

.past-tour {
    pointer-events: none;
    opacity: 0.6;
    filter: grayscale(80%);
}

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

@media (max-width: 768px) {
    .tours-image {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 480px) {
    .tours-image {
        aspect-ratio: 1 / 1;
    }
    /* Past Tours – visual disabled state */
.past-tours .tours-card {
    pointer-events: none;
    cursor: default;
    filter: grayscale(100%);
    opacity: 0.5;
}
}

@media (max-width: 768px) {

    /* Extra space between sections */
    .active-tours {
        margin-bottom: 48px;
    }

    /* Make Past Tours header breathe */
    .past-tours .section-title {
        margin-top: 32px;
    }
    .past-tours .section-title::after {
    content: " (Archived)";
    font-size: 0.85em;
    opacity: 0.6;
}
}
@media (max-width: 768px) {

    /* HARD disable past tour cards */
    .past-tours a.tours-card {
        pointer-events: none !important;
        cursor: default !important;

        filter: grayscale(100%) !important;
        opacity: 0.45 !important;

        transform: none !important;
        box-shadow: none !important;
    }

    /* Dim inner content explicitly */
    .past-tours a.tours-card * {
        opacity: 0.9;
    }
}

@media (max-width: 768px) {

    .past-tours a.tours-card::after {
        content: "Past Tour";
        position: absolute;
        bottom: 12px;
        right: 12px;
        font-size: 12px;
        padding: 4px 8px;
        background: rgba(0,0,0,0.6);
        color: #fff;
        border-radius: 4px;
    }
}


/* =============================================
   HIGHLIGHTS — shared checkmark list style
   Add to tours.css AND tour_details.css
   ============================================= */

/* --- tours.php card highlights --- */
.tours-highlights {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tours-highlights li {
    position: relative;
    padding-left: 22px;
    font-size: 0.82rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.tours-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #D4AF37;
    font-weight: 600;
    font-size: 0.8rem;
}

/* --- tour_details.php overview highlights --- */
.tour-highlights {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 18px;
}

.tour-highlights li {
    position: relative;
    padding-left: 26px;
    font-size: 0.92rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.tour-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    color: #D4AF37;
    font-weight: 700;
    font-size: 0.9rem;
}
