/* =============================================
   Destination CSS — Archive + Single
   ============================================= */

/* --- Archive: Grid with Destination Cards --- */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.destination-grid--archive {
    padding-bottom: 48px;
}

/* --- Destination Card Component (shared by front-page + archive) --- */
.dest-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.dest-card__link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.dest-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dest-card:hover .dest-card__img {
    transform: scale(1.08);
}

.dest-card__placeholder {
    width: 100%;
    height: 100%;
    background: rgba(var(--heading-color-rgb), 0.05);
}

.dest-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0) 60%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    z-index: 2;
}

.dest-card__name {
    font-size: var(--h4-size);
    font-weight: 900;
    color: var(--overlay-text-color, #ffffff);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.dest-card__count {
    font-size: var(--secondary-size);
    color: rgba(255, 255, 255, 0.75);
}

/* Pagination (re-uses .archive-pagination from tour.css) */

/* =============================================
   SINGLE DESTINATION
   ============================================= */

/* Destination Content */
.dest-content-section {
    padding: 48px 0 32px;
}

.dest-rich-text {
    max-width: 900px;
}

.dest-rich-text h2 {
    font-size: var(--content-h2-size);
    font-weight: 800;
    color: var(--heading-color);
    margin: 32px 0 16px;
}

.dest-rich-text p {
    font-size: var(--content-size);
    color: var(--text-color);
    line-height: 1.85;
    opacity: 0.85;
    margin-bottom: 20px;
}

.dest-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 24px 0;
}

/* Linked Tours Section */
.dest-tours {
    border-top: 1px solid rgba(var(--heading-color-rgb), 0.05);
}

/* Re-uses .section-title for heading */
/* Re-uses .tour-grid for the grid */
/* Re-uses .tour-card styles from front-page.css / tour.css */

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

@media (max-width: 991px) {
    .destination-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dest-tours .tour-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .destination-grid {
        grid-template-columns: 1fr;
    }

    .dest-card {
        aspect-ratio: 16/9;
    }

    .dest-content-section {
        padding: 32px 0 24px;
    }

    .dest-tours .tour-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dest-card__overlay {
        padding: 20px;
    }
}
