/* =========================================================
   WISHLIST PAGE SPECIFIC STYLES
   ========================================================= */

.wishlist-page-main {
    padding-top: 20px;
    padding-bottom: 90px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.wishlist-header-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../image/beast.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
    margin-top: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.wishlist-header-banner h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.wishlist-header-banner p {
    font-size: 16px;
    opacity: 0.9;
}

.wishlist-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Toolbar above grid */
.wishlist-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.remove-all-btn {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.remove-all-btn:hover {
    background: #e60000;
}

/* Full Wishlist Grid */
.full-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Card layout matching home page card structure */
.wishlist-item-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eaeaea;
}

.wishlist-item-card .card-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.wishlist-item-card .card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Orange status badge styling */
.wishlist-item-card .orange-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
    text-transform: uppercase;
}

/* The 'x' removal button overlay */
.remove-from-page-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.remove-from-page-btn:hover {
    background: #e63946;
}

/* Card Body Sub-Information styling */
.wishlist-item-card .card-content-body {
    padding: 18px;
    flex-grow: 1;
}

.wishlist-item-title {
    font-size: 17px;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.tour-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
    font-weight: 600;
}

.tour-destinations, 
.tour-age-range {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.4;
}

.tour-destinations strong, 
.tour-age-range strong {
    color: #222;
}

/* Discover Button styling */
.card-footer-meta {
    padding: 15px 18px;
    border-top: 1px solid #f1f1f1;
    background: #fafafa;
}

.card-discover-btn {
    display: block;
    background-color: #0077b6;
    color: #fff;
    padding: 10px 0;
    width: 100%;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s ease;
}

.card-discover-btn:hover {
    background-color: #023e8a;
}

/* Empty State UI Styling */
.empty-wishlist-state {
    text-align: center;
    background: #fff;
    padding: 60px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 40px auto;
}

.empty-icon-wrap {
    font-size: 50px;
    color: #e63946;
    margin-bottom: 20px;
}

.empty-wishlist-state h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.empty-wishlist-state p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.explore-safaris-btn {
    display: inline-block;
    background-color: #0077b6;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.explore-safaris-btn:hover {
    background-color: #023e8a;
}

/* =========================================================
   PARALLAX ADVENTURE SECTION & SCROLL-TRIGGERED ANIMATION
   ========================================================= */

.parallax-adventure-section {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../image/parallexlion.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.parallax-hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    width: 100%;
}

.parallax-hero-content h2 {
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

/* Initially hidden / stopped until .is-visible class is triggered */
.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid transparent; 
    width: 0;
}

/* Triggered state added via JS IntersectionObserver */
.parallax-adventure-section.is-visible .typing-text {
    border-right-color: #ff4d4d;
    animation: typing 3.5s steps(25, end) forwards, blink-cursor 0.75s step-end infinite;
}

.parallax-hero-content p {
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    opacity: 0;
}

.parallax-adventure-section.is-visible p {
    animation: fadeInText 1s ease-in-out 3.5s forwards;
}

/* Typing and Blinking Keyframes */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: #ff4d4d; }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   MOBILE RESPONSIVE FIXES (< 768px)
   ========================================================= */
@media (max-width: 768px) {
    .wishlist-page-main {
        padding-bottom: 100px;
    }
    
    .parallax-adventure-section {
        background-attachment: scroll;
        height: 280px;
        margin-top: 5px;
    }
    
    .parallax-hero-content h2 {
        font-size: 20px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .typing-text {
        white-space: normal;
        border-right: none;
        width: 100%;
    }
    
    .parallax-adventure-section.is-visible .typing-text {
        animation: fadeInText 1s ease-in-out forwards;
    }
    
    .parallax-hero-content p {
        font-size: 13px;
        padding: 0 10px;
    }

    .parallax-adventure-section.is-visible p {
        animation: fadeInText 1s ease-in-out 0.3s forwards;
    }
}

/* =========================================================
   REDDISH THEME: ADVENTUROUS EXPEDITIONS SECTION
   ========================================================= */

.adventurous-tours-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #2c0b08 0%, #4a120d 100%);
    color: #fff;
    margin-top: 30px;
}

.adventures-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 40px;
}

.section-header-centered .sub-badge {
    background-color: #d9534f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.section-header-centered h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.section-header-centered p {
    font-size: 15px;
    color: #f0d5d3;
    opacity: 0.9;
}

/* Desktop Grid Layout (Exactly 4 items) */
.adventures-mobile-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Individual Card Styling */
.adventure-story-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adventure-story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(139, 30, 15, 0.4);
}

.adventure-story-card .card-img-container {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.adventure-story-card .card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.adventure-story-card:hover .card-img-container img {
    transform: scale(1.08);
}

/* Reddish Theme Tag Overlay on Image */
.adventure-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #8b1e0f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 5;
}

/* Wishlist Heart Button inside card */
.adventure-story-card .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
}

.adventure-story-card .wishlist-btn:hover {
    background: #8b1e0f;
}

.adventure-story-card .card-content-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.adventure-story-card .wishlist-item-title {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.adventure-story-card .tour-meta-row {
    margin-bottom: 8px;
}

.adventure-story-card .price-tag {
    font-size: 14px;
    font-weight: 700;
    color: #8b1e0f;
}

.adventure-story-card .price-tag small {
    font-size: 11px;
    color: #666;
    font-weight: normal;
}

.adventure-story-card .tour-destinations {
    font-size: 12px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.4;
}

.adventure-story-card .tour-destinations strong {
    color: #222;
}

.adventure-story-card .card-footer-meta {
    border-top: 1px solid #f1f1f1;
    padding-top: 12px;
    margin-top: auto;
}

.adventure-story-card .card-discover-btn {
    display: block;
    background-color: #8b1e0f;
    color: #fff;
    padding: 9px 0;
    width: 100%;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s ease;
}

.adventure-story-card .card-discover-btn:hover {
    background-color: #5c1209;
}


/* =========================================================
   MOBILE RESPONSIVE: VERTICAL SCROLL-SNAP EFFECT (< 768px)
   ========================================================= */
@media (max-width: 768px) {
    .adventurous-tours-section {
        padding: 40px 15px;
    }

    .section-header-centered h2 {
        font-size: 24px;
    }

    .section-header-centered p {
        font-size: 13px;
    }

    /* Converts grid into a clean vertical snap scroll experience on small devices */
    .adventures-mobile-stack {
        display: flex;
        flex-direction: column;
        gap: 20px;
        scroll-snap-type: y mandatory;
        overflow-y: auto;
        padding-bottom: 10px;
    }

    .adventure-story-card {
        scroll-snap-align: center;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
}