/* destinations.css - Smooth image zoom, sliding hover overlay, and fully responsive layout */

.destinations-grid-section {
    max-width: 1350px;
    margin: 40px auto;
    padding: 0 25px; /* Ensures safe spacing from the left and right walls */
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 35px;
}

.section-title-wrap h2 {
    font-size: 30px;
    color: #0f172a;
    margin-bottom: 8px;
}

.section-intro-text {
    color: #64748b;
    font-size: 15px;
}

.dest-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Card Box */
.destination-card-box {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.destination-card-box:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.dest-card-image-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}

/* Background Image with Zoom Animation */
.dest-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease-in-out;
}

.destination-card-box:hover .dest-card-image {
    transform: scale(1.12); /* Zooms forward smoothly */
}

/* Badge Styling */
.dest-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 4;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 4;
}

.wishlist-btn:hover {
    background: #fff;
    color: #e63946;
}

/* Default Title Overlay at bottom */
.dest-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 15%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
    padding: 25px 15px 15px 15px;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.dest-title-overlay h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Hide default title and show interactive overlay on hover */
.destination-card-box:hover .dest-title-overlay {
    opacity: 0;
}

/* Hover Overlay with text and View Details button */
.dest-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.78);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease-in-out;
    z-index: 3;
}

.destination-card-box:hover .dest-hover-overlay {
    opacity: 1;
    visibility: visible;
}

.hover-desc {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    transform: translateY(10px);
    transition: transform 0.35s ease-in-out;
}

.destination-card-box:hover .hover-desc {
    transform: translateY(0);
}

/* View Details Button */
.view-details-btn {
    background: #f59e0b;
    color: #0f172a;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
    transition: all 0.35s ease-in-out, background 0.2s;
}

.destination-card-box:hover .view-details-btn {
    transform: translateY(0);
}

.view-details-btn:hover {
    background: #d97706;
    color: #ffffff;
}

/* Card Body Details */
.dest-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
}

.tour-meta {
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}

.tour-route {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.dest-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
}

.operator-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.operator-name {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.op-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;
}

.stars {
    color: #f59e0b;
    font-size: 11px;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES FOR MOBILE/TABLET
   ========================================== */

@media (max-width: 992px) {
    .destinations-grid-section {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .destinations-grid-section {
        margin: 25px auto;
        padding: 0 15px; /* Tighter padding for smaller screens */
    }

    .section-title-wrap h2 {
        font-size: 24px;
    }

    .section-intro-text {
        font-size: 14px;
    }

    .dest-card-grid {
        grid-template-columns: 1fr; /* Stack cards cleanly on mobile */
        gap: 20px;
    }

    .dest-card-image-wrap {
        height: 220px;
    }
}