/* Destination cards + homepage slider */
:root {
    --dc-gold: #c59341;
    --dc-gold-light: #e8c882;
    --dc-navy: #1b3e5f;
    --dc-navy-deep: #0f2840;
    --dc-muted: #64748b;
    --dc-border: rgba(27, 62, 95, 0.1);
    --dc-safari: #2d6a4f;
    --dc-safari-light: #52b788;
}

/* ── Section ── */
.xk9_destinations-section {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}

.xk9_destinations-section--home {
    background: #ffffff;
}

.xk9_destinations-section .container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
}

/* ── Header ── */
.xk9_destinations-header {
    margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.xk9_destinations-header--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.xk9_destinations-header__text {
    flex: 1 1 280px;
    max-width: 620px;
}

.xk9_destinations-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.9rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: rgba(27, 62, 95, 0.06);
    border: 1px solid rgba(197, 147, 65, 0.35);
    color: var(--dc-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.xk9_destinations-header .xk9_section-title {
    color: var(--dc-navy);
    font-weight: 800;
    font-size: clamp(1.75rem, 4.5vw, 2.55rem);
    margin: 0 0 0.55rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.xk9_destinations-header .xk9_section-subtitle {
    color: var(--dc-muted);
    font-size: clamp(0.92rem, 2.2vw, 1.05rem);
    margin: 0;
    line-height: 1.65;
}

.xk9_destinations-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.xk9_destinations-viewall {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dc-navy) 0%, var(--dc-navy-deep) 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 40, 64, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.xk9_destinations-viewall:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 40, 64, 0.28);
}

.xk9_destinations-viewall__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--dc-gold);
    color: var(--dc-navy-deep);
    font-size: 0.72rem;
    font-weight: 800;
}

.xk9_destinations-viewall i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.xk9_destinations-viewall:hover i {
    transform: translateX(3px);
}

.xk9_destinations-viewall--block {
    width: 100%;
    justify-content: center;
}

.xk9_destinations-footer-cta {
    margin-top: 1.25rem;
}

/* ── Slider ── */
.alv-dest-slider {
    position: relative;
}

.alv-dest-slider__nav {
    display: flex;
    gap: 0.45rem;
}

.alv-dest-slider__btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--dc-border);
    border-radius: 50%;
    background: #fff;
    color: var(--dc-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(15, 40, 64, 0.08);
}

.alv-dest-slider__btn:hover:not(:disabled) {
    background: var(--dc-navy);
    color: #fff;
    border-color: var(--dc-navy);
    transform: scale(1.05);
}

.alv-dest-slider__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.alv-dest-slider__track {
    display: flex;
    gap: clamp(1rem, 2vw, 1.35rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.35rem 0.15rem 1rem;
    margin: 0 -0.15rem;
}

.alv-dest-slider__track::-webkit-scrollbar {
    display: none;
}

.alv-dest-slider__slide {
    flex: 0 0 calc(100% - 0.5rem);
    scroll-snap-align: start;
    min-width: 0;
}

.alv-dest-slider__dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.5rem;
    padding-bottom: 0.25rem;
}

.alv-dest-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(27, 62, 95, 0.2);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.alv-dest-slider__dot.is-active {
    width: 28px;
    background: var(--dc-gold);
}

/* ── Grid (destinations / safari pages) ── */
.xk9-destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
    align-items: stretch;
}

/* ── Card ── */
.alv-dest-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    text-decoration: none;
    color: inherit;
    border-radius: 22px;
    overflow: hidden;
    background: var(--dc-navy-deep);
    box-shadow:
        0 4px 0 var(--dc-gold),
        0 18px 40px rgba(15, 40, 64, 0.2);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
}

.alv-dest-card--safari {
    box-shadow:
        0 4px 0 var(--dc-safari-light),
        0 18px 40px rgba(15, 40, 64, 0.2);
}

.alv-dest-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 4px 0 var(--dc-gold-light),
        0 28px 52px rgba(15, 40, 64, 0.28);
}

.alv-dest-card--safari:hover {
    box-shadow:
        0 4px 0 #95d5b2,
        0 28px 52px rgba(15, 40, 64, 0.28);
}

.alv-dest-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.alv-dest-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.alv-dest-card:hover .alv-dest-card__img {
    transform: scale(1.09);
}

.alv-dest-card__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 40, 64, 0.15) 0%,
        rgba(15, 40, 64, 0.35) 45%,
        rgba(15, 40, 64, 0.88) 100%
    );
}

.alv-dest-card__accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, transparent 50%, rgba(197, 147, 65, 0.25) 50%);
    pointer-events: none;
}

.alv-dest-card--safari .alv-dest-card__accent {
    background: linear-gradient(135deg, transparent 50%, rgba(82, 183, 136, 0.3) 50%);
}

.alv-dest-card__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1rem 0;
}

.alv-dest-card__badge {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dc-navy-deep);
    background: var(--dc-gold-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.alv-dest-card--safari .alv-dest-card__badge {
    color: #fff;
    background: var(--dc-safari-light);
}

.alv-dest-card__pin {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 55%;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(15, 40, 64, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alv-dest-card__pin i {
    color: var(--dc-gold-light);
    flex-shrink: 0;
    font-size: 0.7rem;
}

.alv-dest-card__panel {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding: 1.25rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.alv-dest-card__title {
    margin: 0;
    font-size: clamp(1.2rem, 2.8vw, 1.45rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.alv-dest-card__text {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alv-dest-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
    transition: background 0.3s ease, border-color 0.3s ease, gap 0.25s ease;
}

.alv-dest-card__cta i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dc-gold);
    color: var(--dc-navy-deep);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.alv-dest-card--safari .alv-dest-card__cta i {
    background: var(--dc-safari-light);
    color: #fff;
}

.alv-dest-card:hover .alv-dest-card__cta {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(197, 147, 65, 0.45);
}

.alv-dest-card:hover .alv-dest-card__cta i {
    transform: rotate(-45deg) scale(1.08);
}

.xk9_destinations-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--dc-muted);
    background: #fff;
    border-radius: 20px;
    border: 1px dashed var(--dc-border);
}

.xk9_destinations-section.xk9_destinations-page {
    background: #f4f7fa;
}

.xk9_destinations-section.xk9_destinations-page .xk9-destinations-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

/* ── Responsive ── */
@media (min-width: 576px) {
    .alv-dest-slider__slide {
        flex: 0 0 calc(50% - 0.65rem);
    }
}

@media (min-width: 992px) {
    .alv-dest-slider__slide {
        flex: 0 0 calc(33.333% - 0.9rem);
    }

    .xk9_destinations-section.xk9_destinations-page .xk9-destinations-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .alv-dest-slider__slide {
        flex: 0 0 calc(25% - 1rem);
    }
}

@media (max-width: 767.98px) {
    .xk9_destinations-header--row {
        flex-direction: column;
        align-items: stretch;
    }

    .xk9_destinations-header__actions {
        justify-content: space-between;
        width: 100%;
    }

    .xk9_destinations-header__actions .xk9_destinations-viewall {
        display: none;
    }

    .alv-dest-card {
        min-height: 360px;
    }
}

@media (max-width: 575.98px) {
    .xk9-destinations-grid {
        grid-template-columns: 1fr;
    }

    .alv-dest-card__panel {
        padding: 1.1rem 1rem 1.15rem;
    }

    .alv-dest-card__pin {
        max-width: 62%;
        font-size: 0.68rem;
    }
}
