/* ============================================================
   Roam Maldives Slider v2 — slider.css
   Multi-card carousel with vertical collection filter tabs
   All classes prefixed .rm- to avoid theme conflicts
   ============================================================ */

/* ── Outer wrapper ───────────────────────────────────────── */
.rm-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
    --rm-height: 540px;
    --rm-gap: 6px;
}

/* ── Vertical filter tabs (left column) ──────────────────── */
.rm-tabs {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
    width: 54px;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.rm-tab {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-orientation: mixed;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 24px 0;
    cursor: pointer;
    color: rgba(0,0,0,0.35);
    line-height: 1.4;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.rm-tab:last-child {
    border-bottom: none;
}

.rm-tab.active {
    color: rgba(0,0,0,0.85);
    background: rgba(0,0,0,0.05);
}

.rm-tab:hover:not(.active) {
    color: rgba(0,0,0,0.6);
}

/* ── Stage (arrow + track) ───────────────────────────────── */
.rm-stage {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    position: relative;
}

/* ── Arrow buttons ───────────────────────────────────────── */
.rm-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.12);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    color: #333;
}

.rm-arrow:hover {
    background: rgba(255,255,255,0.95);
}

.rm-arrow-prev { left: 10px; }
.rm-arrow-next { right: 10px; }

/* ── Track wrapper (clipping window) ────────────────────── */
.rm-track-wrap {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    padding: 20px 0;
}

/* ── Track (scrolling row of cards) ─────────────────────── */
.rm-track {
    display: flex;
    gap: var(--rm-gap);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Individual card ─────────────────────────────────────── */
.rm-card {
    flex-shrink: 0;
    /* width set via JS based on cards-visible setting */
}

.rm-card-inner {
    height: var(--rm-height, 540px);
    background-size: cover;
    background-position: center center;
    background-color: #2a3a4a; /* dark fallback when no image */
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

/* ── Dark gradient overlay on each card ─────────────────── */
.rm-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.18) 45%,
        rgba(0,0,0,0.05) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2rem 1.5rem;
    text-align: center;
}

/* ── Card top — logo / name area ─────────────────────────── */
.rm-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.25rem;
    width: 100%;
}

/* Custom logo image */
.rm-logo-img {
    max-height: 52px;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 8px;
}

/* Small label above resort name (e.g. "SUN SIYAM") */
.rm-card-label {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: inherit;
}

/* Large resort name */
.rm-card-name {
    color: #fff;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
    font-family: inherit;
}

/* Subtitle / tagline */
.rm-card-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 4px;
    font-family: inherit;
}

/* ── Buttons at bottom of each card ─────────────────────── */
.rm-card-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Shared button styles */
.rm-btn {
    display: inline-block;
    padding: 9px 22px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

/* Outline button — "View Resort" */
.rm-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.65);
    color: #fff;
}

.rm-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}

/* Solid button — "Book Now" */
.rm-btn-solid {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.65);
    color: #fff;
}

.rm-btn-solid:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    /* Reduce visible cards by 1 on tablet — handled in JS */
    .rm-card-name { font-size: 26px; }
}

@media (max-width: 600px) {
    /* Always 1 card on mobile */
    .rm-tabs {
        display: none; /* hide vertical tabs on mobile — too narrow */
    }

    .rm-card-inner {
        height: 420px;
    }

    .rm-arrow {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .rm-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
}
