/* Destinations Showcase Plugin – style.css v1.2.1 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

.ds-section {
    --ds-cream:   #f2ede8;
    --ds-ink:     #1c1c1c;
    --ds-muted:   #6a6460;
    --ds-border:  #d8d0c8;
    --ds-radius:  4px;
    background: var(--ds-cream);
    padding: 72px 0 80px;
    font-family: 'Jost', sans-serif;
    overflow: hidden;
}

/* ── Inner layout ─────────────────────────────────────── */
.ds-inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Heading column ───────────────────────────────────── */
.ds-heading-col {
    flex-shrink: 0;
    width: 200px;
    padding-right: 40px;
    padding-top: 8px;
}

.ds-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.15;
    color: var(--ds-ink);
    margin: 0 0 18px;
    letter-spacing: -.01em;
}

.ds-subheading {
    font-size: .88rem;
    font-weight: 300;
    color: var(--ds-muted);
    line-height: 1.7;
    margin: 0;
}

/* ── Carousel wrapper ─────────────────────────────────── */
.ds-carousel-wrapper {
    flex: 1;
    min-width: 0;
    overflow-x: scroll;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.ds-carousel-wrapper::-webkit-scrollbar { display: none; }

/* ── Track ────────────────────────────────────────────── */
.ds-track {
    display: flex;
    gap: 16px;
    width: max-content;
    cursor: grab;
    user-select: none;
    padding-bottom: 4px;
    touch-action: pan-y pinch-zoom;
}
.ds-track.ds-dragging { cursor: grabbing; }

/* ── Card ─────────────────────────────────────────────── */
.ds-card {
    width: calc((100vw - 200px - 80px - 40px) / 3 - 11px);
    min-width: 200px;
    max-width: 340px;
    flex-shrink: 0;
    animation: dsFadeUp .5s ease both;
    scroll-snap-align: start;
}

@keyframes dsFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ds-card__link {
    display: block;
    text-decoration: none;
    color: var(--ds-ink);
    outline-offset: 4px;
    -webkit-tap-highlight-color: transparent;
}

.ds-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: var(--ds-radius);
    background: #c8c0b8;
}

.ds-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.25,.46,.45,.94);
    display: block;
    pointer-events: none;
}
@media (hover: hover) {
    .ds-card__link:hover .ds-card__img,
    .ds-card__link:focus .ds-card__img {
        transform: scale(1.06);
    }
}

.ds-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.22) 0%, transparent 55%);
    pointer-events: none;
}

.ds-card__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 6px;
    border-bottom: 1px solid var(--ds-border);
    gap: 8px;
}

.ds-card__label span {
    font-size: .88rem;
    font-weight: 400;
    color: var(--ds-ink);
    letter-spacing: .01em;
    line-height: 1.3;
}

.ds-card__arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--ds-muted);
    transition: transform .22s, color .22s;
}
@media (hover: hover) {
    .ds-card__link:hover .ds-card__arrow,
    .ds-card__link:focus .ds-card__arrow {
        transform: translateX(4px);
        color: var(--ds-ink);
    }
}

/* ── Controls bar (arrows + dots) ─────────────────────── */
.ds-controls {
    max-width: 1400px;
    margin: 28px auto 0;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ds-controls__arrows {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── Arrows ───────────────────────────────────────────── */
.ds-arrow {
    background: none;
    border: 1px solid var(--ds-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ds-ink);
    transition: background .18s, border-color .18s, color .18s, opacity .18s;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
@media (hover: hover) {
    .ds-arrow:hover:not(:disabled) {
        background: var(--ds-ink);
        color: #fff;
        border-color: var(--ds-ink);
    }
}
.ds-arrow:active:not(:disabled) {
    background: var(--ds-ink);
    color: #fff;
    border-color: var(--ds-ink);
}
.ds-arrow:disabled {
    opacity: .28;
    cursor: default;
    pointer-events: none;
}
.ds-arrow svg { width: 18px; height: 18px; }

/* ── Dots ─────────────────────────────────────────────── */
.ds-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ds-dot {
    height: 44px;
    width: 32px;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.ds-dot::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--ds-border);
    transition: background .22s, width .25s cubic-bezier(.4,0,.2,1);
}
.ds-dot.ds-dot--active {
    width: 48px;
}
.ds-dot.ds-dot--active::after {
    background: var(--ds-ink);
}
@media (hover: hover) {
    .ds-dot:hover::after { background: var(--ds-muted); }
}

/* ── Tablet landscape (769px – 1024px) ───────────────── */
/* NOTE: no overlap with mobile rules below — min-width guard is critical */
@media (max-width: 1024px) and (min-width: 769px) {
    .ds-inner    { padding: 0 32px; }
    .ds-controls { padding: 0 32px; }
    .ds-heading-col { width: 180px; padding-right: 28px; }
    .ds-card {
        width: calc((100vw - 180px - 64px - 28px) / 2 - 8px);
        max-width: none;
    }
}

/* ── Mobile / tablet portrait (≤768px) ───────────────── */
/* Layout and structural resets only — JS handles carousel→grid switch */
@media (max-width: 768px) {
    .ds-section { padding: 48px 0 64px; }
    .ds-inner {
        flex-direction: column;
        padding: 0 20px;
        gap: 24px;
    }
    .ds-heading-col {
        width: 100%;
        padding-right: 0;
    }
    .ds-controls {
        padding: 0 20px;
        margin-top: 20px;
    }
    /* Hide arrow/dot controls on mobile — JS also hides them inline */
    .ds-controls__arrows,
    .ds-dots {
        display: none;
    }
}

/* ── Small phones (≤480px) ────────────────────────────── */
@media (max-width: 480px) {
    .ds-arrow { width: 48px; height: 48px; }
    .ds-card__label span { font-size: .78rem; }
}

/* ── Very small phones (≤380px) ──────────────────────── */
@media (max-width: 380px) {
    .ds-inner    { padding: 0 16px; }
    .ds-controls { padding: 0 16px; }
}
