/* =========================================================
   DISCOVER PAGE HERO & LAYOUT STYLING
   ========================================================= */

.discover-hero-section {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1340px;
    height: 480px;
    margin: 20px auto 0 auto;
    background: url('../image/beast.jpg') no-repeat center center/cover;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.discover-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(12, 35, 30, 0.55), rgba(12, 35, 30, 0.8));
    z-index: 1;
}

.discover-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: #ffffff;
}

.discover-hero-content h1 {
    font-family: serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.discover-hero-content p {
    font-size: 1.15rem;
    color: #e2e8e5;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.discover-main-content {
    padding: 50px 20px;
    background-color: #ffffff;
    min-height: 400px;
}

.discover-container {
    max-width: 1340px;
    margin: 0 auto;
}

/* =========================================================
   SAFARI CARDS GRID STYLING
   ========================================================= */

.section-title {
    text-align: center;
    font-family: serif;
    font-size: 2.2rem;
    color: #1a3a32;
    margin-bottom: 40px;
}

.safari-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.safari-card-style-b {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
}

.safari-card-style-b:hover {
    transform: translateY(-5px);
}

.card-img-container {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.safari-joining-tag {
    position: absolute;
    top: 15px;
    left: 0;
    background: #e63946;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 5px 12px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.wishlist-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Red Background Title Overlay Styling */
.image-title-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.image-title-overlay h3 {
    display: inline;
    background: #e63946;
    color: #ffffff;
    padding: 3px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* =========================================================
   HOVER SLIDE-UP OVERLAY EFFECT FOR DISCOVER CARDS
   ========================================================= */

.card-hover-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    transition: bottom 0.35s ease-in-out;
    z-index: 4;
}

.safari-card-style-b:hover .card-hover-overlay {
    bottom: 0;
}

.safari-card-style-b:hover .image-title-overlay {
    opacity: 0;
}

.card-hover-overlay p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-hover-btn {
    background: #e63946;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card-hover-btn:hover {
    background: #d62828;
}

.card-clickable-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-specs {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
}

.tour-route {
    font-size: 0.82rem;
    color: #444;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.operator-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.operator-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.rating-wrap .stars {
    color: #ffc107;
    font-size: 0.75rem;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES (FIXED FOR MOBILE SPACING)
   ========================================================= */

@media (max-width: 1200px) {
    .safari-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .discover-hero-override {
        width: calc(100% - 20px);
        height: 320px;
        border-radius: 16px;
    }
    
    .discover-hero-override h1 {
        font-size: 2rem;
    }

    .discover-hero-override p {
        font-size: 0.95rem;
    }

    .safari-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header-content-center h2 {
        font-size: 1.6rem;
    }
}