/**
 * Destinations Index V3 — Tour Archive V2 Card Style
 * Card: 520px fixed height, width auto via grid
 * Image: 220px | Content: 300px (flexbox column)
 * Grid: 3 / 2 / 1 responsive columns
 * Typography: Elementor global variables only
 */

/* ============================================================
   CONTAINER & BACKGROUND
   ============================================================ */
.roamease-destinations-archive.v3 {
    background: inherit;
}

.roamease-destinations-archive.v3 .container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-left: clamp(18px, 3.5vw, 60px);
    padding-right: clamp(18px, 3.5vw, 60px);
    box-sizing: border-box;
}

@media (min-width: 1280px) {
    .roamease-destinations-archive.v3 .container {
        max-width: 1600px;
    }
}

.roamease-destinations-archive.v3 .archive-body .container {
    padding-top: 8px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.roamease-destinations-archive.v3 .archive-hero {
    background: transparent;
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1rem, 2.5vw, 2rem);
    text-align: center;
}

.roamease-destinations-archive.v3 .archive-hero .hero-title {
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-weight: var(--e-global-typography-primary-font-weight, 700);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--e-global-color-primary, #333333);
    margin: 0 0 clamp(0.75rem, 1.5vw, 1rem);
}

.roamease-destinations-archive.v3 .archive-hero .hero-text {
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--e-global-color-text, #6b7280);
    margin: 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   ARCHIVE BODY
   ============================================================ */
.roamease-destinations-archive.v3 .archive-body {
    background: transparent;
    padding: 12px 0 24px;
}

.roamease-destinations-archive.v3 .layout {
    display: grid;
    grid-template-columns: clamp(260px, 20vw, 300px) minmax(0, 1fr);
    gap: clamp(18px, 2.4vw, 32px);
    align-items: start;
}

.roamease-destinations-archive.v3 .results {
    flex: 1 1 auto;
    min-width: 0;
}

/* ============================================================
   GRID LAYOUT — 3 / 2 / 1
   ============================================================ */
.destinations-grid-v3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    gap: 20px;
    margin: clamp(1.25rem, 2.4vw, 2rem) 0;
}

/* Tablet: 2 cards */
@media (max-width: 1024px) {
    .destinations-grid-v3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
        gap: 16px;
    }
}

/* Mobile: 1 card */
@media (max-width: 640px) {
    .destinations-grid-v3 {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 16px;
    }
}

/* ============================================================
   DESTINATION CARD — MAIN STRUCTURE
   ============================================================ */
.destinations-grid-v3 .dest-card,
.destinations-grid-v3 .dest-card.card-style-reference {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 400px;
    height: 520px;
    min-height: 520px !important;
    max-height: 520px !important;
    margin: 0 auto;
    text-decoration: none;
    color: inherit;
}

.destinations-grid-v3 .dest-card:hover,
.destinations-grid-v3 .dest-card.card-style-reference:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   IMAGE SECTION — 220PX HEIGHT (CLEAN, NO OVERLAYS)
   ============================================================ */
.destinations-grid-v3 .dest-card .dest-image {
    width: 100%;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    overflow: hidden;
    flex: 0 0 220px;
    position: relative;
    background: #f5f5f5;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-top-left-radius: inherit !important;
    border-top-right-radius: inherit !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    line-height: 0;
    font-size: 0;
    display: block;
}

.destinations-grid-v3 .dest-card .dest-image img {
    width: calc(100% + 2px) !important;
    height: calc(100% + 2px) !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-top-left-radius: inherit !important;
    border-top-right-radius: inherit !important;
    display: block !important;
    position: absolute !important;
    top: -1px !important;
    left: -1px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top;
    max-width: none !important;
    max-height: none !important;
}

/* No Image Placeholder */
.destinations-grid-v3 .dest-card .dest-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f6f4 0%, #ebe7e3 100%);
    color: var(--e-global-color-text, #666);
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: 14px;
    font-style: italic;
    opacity: 0.7;
}

/* ============================================================
   CONTENT AREA — 300PX (FLEXBOX COLUMN, CENTERED)
   Structure: Country Pill → Title → Excerpt → CTA Button
   ============================================================ */
.destinations-grid-v3 .dest-card .dest-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 20px 22px !important;
    height: 300px;
    max-height: 300px;
    text-align: center;
    overflow: hidden;
}

/* Country Pill — Below Image, Above Title */
.destinations-grid-v3 .dest-card .dest-country-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    background: transparent;
    border: 1px solid var(--e-global-color-primary, #083321);
    border-radius: 20px;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--e-global-color-primary, #083321);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.destinations-grid-v3 .dest-card:hover .dest-country-pill {
    background: var(--e-global-color-primary, #083321);
    color: var(--e-global-color-secondary, #FEBC11);
    border-color: var(--e-global-color-primary, #083321);
}

/* Destination Title — Centered, Uppercase */
.destinations-grid-v3 .dest-card .dest-title {
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-weight: var(--e-global-typography-primary-font-weight, 700);
    font-size: 18px;
    line-height: 1.3;
    height: auto;
    max-height: 50px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--e-global-color-primary, #083321);
    transition: color 0.2s ease;
}

.destinations-grid-v3 .dest-card:hover .dest-title {
    color: var(--e-global-color-secondary, #FEBC11);
}

/* Destination Excerpt — Centered, 3 Lines */
.destinations-grid-v3 .dest-card .dest-excerpt {
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: 14px;
    line-height: 1.5;
    color: var(--e-global-color-text, #111212);
    margin: 0;
    max-height: 63px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: center;
    opacity: 0.85;
}

/* Footer */
.destinations-grid-v3 .dest-card .dest-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

/* CTA Button — "View Destination →" */
.destinations-grid-v3 .dest-card .btn-view-dest {
    width: 100%;
    max-width: 280px;
    min-width: 180px;
    height: 48px;
    font-size: 13px;
    border-radius: 8px;
    background: var(--e-global-color-primary, #083321);
    color: var(--e-global-color-secondary, #FEBC11);
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 24px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
}

.destinations-grid-v3 .dest-card:hover .btn-view-dest {
    background: var(--e-global-color-secondary, #FEBC11);
    color: var(--e-global-color-primary, #083321);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.destinations-grid-v3 .dest-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.destinations-grid-v3 .dest-empty svg {
    margin-bottom: 20px;
    opacity: 0.4;
}

.destinations-grid-v3 .dest-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.destinations-grid-v3 .dest-empty p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* ============================================================
   FILTERS SIDEBAR (Countries only — no sidebar search)
   ============================================================ */
.roamease-destinations-archive.v3 .filters-sidebar {
    width: clamp(260px, 22vw, 320px);
    flex-shrink: 0;
    background: transparent !important;
    border: none;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: none;
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
}

.roamease-destinations-archive.v3 .filter-block {
    margin-bottom: 0;
}

.roamease-destinations-archive.v3 .filter-block .block-title {
    width: 100%;
    background: none;
    border: none;
    border-radius: 0 !important;
    position: relative;
    padding: 14px 20px 10px;
    margin-left: -20px;
    margin-right: -20px;
    border-top: 1px solid var(--e-global-color-primary, #083321);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    font-size: 15px;
    font-weight: 600;
    color: var(--e-global-color-primary, #083321);
    transition: color 0.2s ease;
}

.roamease-destinations-archive.v3 .filter-block .block-title:hover {
    color: var(--e-global-color-secondary, #FEBC11);
}

.roamease-destinations-archive.v3 .filter-block .block-title .title-text {
    color: inherit;
}

.roamease-destinations-archive.v3 .filter-block .block-title .caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex: 0 0 auto;
}

.roamease-destinations-archive.v3 .filter-block.collapsed .block-title .caret {
    transform: rotate(-45deg);
    opacity: 0.55;
}

.roamease-destinations-archive.v3 .filter-block .block-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.roamease-destinations-archive.v3 .filter-block:not(.collapsed) .block-body {
    max-height: 500px;
    padding-top: 12px;
    padding-bottom: 16px;
}

.roamease-destinations-archive.v3 .pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.roamease-destinations-archive.v3 .pill {
    display: inline-block;
    padding: 6px 12px;
    background: transparent;
    border-radius: 14px;
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--e-global-color-primary, #C79375);
    color: var(--e-global-color-primary, #C79375);
}

.roamease-destinations-archive.v3 .pill:hover {
    border-color: var(--e-global-color-primary, #C79375);
    background: transparent;
}

.roamease-destinations-archive.v3 input[type="radio"]:checked + .pill {
    background: var(--e-global-color-primary, #C79375);
    color: var(--e-global-color-accent, #fff);
    border-color: var(--e-global-color-primary, #C79375);
}

.roamease-destinations-archive.v3 .pill--clear {
    font-style: italic;
    opacity: 0.8;
}

/* ============================================================
   SEARCH & RESULTS BAR (top search only)
   ============================================================ */
.roamease-destinations-archive.v3 .results-search {
    margin-bottom: 20px;
}

.roamease-destinations-archive.v3 .search-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.roamease-destinations-archive.v3 .search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: 15px;
    height: 48px;
}

.roamease-destinations-archive.v3 .btn.btn-primary {
    flex-shrink: 0;
    min-width: 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--e-global-color-primary, #C79375);
    color: var(--e-global-color-accent, #F4F0EC);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s ease, color 0.2s ease;
}

.roamease-destinations-archive.v3 .btn.btn-primary:hover {
    background: var(--e-global-color-secondary, #333333);
    color: var(--e-global-color-primary, #C79375);
}

.roamease-destinations-archive.v3 .results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 8px 0 12px;
    padding: 10px 12px;
    background: transparent !important;
    border: 1px solid var(--e-global-color-primary, #C79375);
    border-radius: 12px;
}

.roamease-destinations-archive.v3 .results-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.roamease-destinations-archive.v3 .results-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.roamease-destinations-archive.v3 .view-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid rgba(199, 147, 117, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

.roamease-destinations-archive.v3 .view-btn {
    border: 0;
    background: transparent;
    color: var(--e-global-color-primary, #C79375);
    border-radius: 999px;
    height: 30px;
    padding: 0 12px;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.roamease-destinations-archive.v3 .view-btn.is-active {
    background: var(--e-global-color-primary, #C79375);
    color: var(--e-global-color-accent, #fff);
}

.roamease-destinations-archive.v3 .results-label {
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    font-weight: 600;
    font-size: 14px;
    color: var(--e-global-color-primary, #083321);
    white-space: nowrap;
}

.roamease-destinations-archive.v3 .active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.roamease-destinations-archive.v3 .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 14px;
    border: 1px solid var(--e-global-color-primary, #C79375);
    background: #fff;
    color: #000;
    font-size: 12px;
    line-height: 1;
}

.roamease-destinations-archive.v3 .btn-clear {
    padding: 8px 12px;
    background: transparent;
    color: var(--e-global-color-primary, #C79375);
    border: 1px solid var(--e-global-color-primary, #C79375);
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.roamease-destinations-archive.v3 .btn-clear:hover {
    background: var(--e-global-color-primary, #C79375);
    color: #fff;
}

/* ============================================================
   LIST VIEW (optional via .list-view)
   ============================================================ */
.destinations-grid-v3.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

.destinations-grid-v3.list-view .dest-card,
.destinations-grid-v3.list-view .dest-card.card-style-reference {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
    align-items: stretch;
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 260px !important;
    max-height: none !important;
    margin: 0;
    border-radius: 20px;
}

.destinations-grid-v3.list-view .dest-card .dest-image {
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    flex: none;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: inherit;
}

.destinations-grid-v3.list-view .dest-card .dest-image img {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    inset: auto !important;
}

.destinations-grid-v3.list-view .dest-card .dest-content {
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    height: auto;
    max-height: none;
    padding: 22px 24px 22px !important;
}

.destinations-grid-v3.list-view .dest-card .dest-country-pill {
    align-self: flex-start;
}

.destinations-grid-v3.list-view .dest-card .dest-title {
    text-align: left;
    text-transform: none;
    font-size: 24px;
    line-height: 1.25;
    max-height: none;
}

.destinations-grid-v3.list-view .dest-card .dest-excerpt {
    text-align: left;
    max-height: none;
    -webkit-line-clamp: initial;
}

.destinations-grid-v3.list-view .dest-card .dest-footer {
    justify-content: flex-start;
    margin-top: 8px;
}

.destinations-grid-v3.list-view .dest-card .btn-view-dest {
    width: auto;
    max-width: none;
    min-width: 180px;
}

/* ============================================================
   RESPONSIVE / MOBILE FILTER MODAL
   ============================================================ */

/* Mobile/Tablet: EDIT FILTERS Button (hidden on desktop) */
.roamease-destinations-archive.v3 .btn-edit-filters {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    color: var(--e-global-color-primary, #C79375);
    border: 1px solid var(--e-global-color-primary, #C79375);
    border-radius: 8px;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.roamease-destinations-archive.v3 .btn-edit-filters:hover,
.roamease-destinations-archive.v3 .btn-edit-filters:focus {
    background: var(--e-global-color-primary, #C79375);
    color: var(--e-global-color-accent, #fff);
    border-color: var(--e-global-color-primary, #C79375);
}

.roamease-destinations-archive.v3 .btn-edit-filters svg {
    width: 20px;
    height: 20px;
}

/* Filters Backdrop */
.roamease-destinations-archive.v3 .filters-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.roamease-destinations-archive.v3 .filters-backdrop.show {
    opacity: 1;
}

/* Filters Header (modal title + close) */
.roamease-destinations-archive.v3 .filters-header {
    display: none;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: space-between;
    background: var(--e-global-color-secondary, #fff);
}

.roamease-destinations-archive.v3 .filters-title {
    margin: 0;
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.roamease-destinations-archive.v3 .btn-close-filters {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #111827;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Filters Footer */
.roamease-destinations-archive.v3 .filters-footer {
    display: none;
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    bottom: 0;
    background: var(--e-global-color-secondary, #fff);
}

.roamease-destinations-archive.v3 .btn-apply-filters {
    width: 100%;
    padding: 14px 20px;
    background: var(--e-global-color-primary, #C79375);
    color: var(--e-global-color-accent, #fff);
    border: none;
    border-radius: 8px;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.roamease-destinations-archive.v3 .btn-apply-filters:hover {
    background: var(--e-global-color-secondary, #333333);
}

/* Desktop: keep normal layout */
@media (min-width: 1025px) {
    .roamease-destinations-archive.v3 .btn-edit-filters,
    .roamease-destinations-archive.v3 .filters-backdrop,
    .roamease-destinations-archive.v3 .filters-header,
    .roamease-destinations-archive.v3 .filters-footer {
        display: none !important;
    }

    .roamease-destinations-archive.v3 .filters-sidebar {
        position: sticky;
        top: 20px;
    }
}

@media (max-width: 1024px) {
    /* Show EDIT FILTERS button */
    .roamease-destinations-archive.v3 .btn-edit-filters {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
        height: 48px;
        border-radius: 8px;
        padding: 0 18px;
    }

    .roamease-destinations-archive.v3 .results {
        width: 100%;
    }

    .roamease-destinations-archive.v3 .results-bar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .roamease-destinations-archive.v3 .results-right {
        width: 100%;
        justify-content: space-between;
    }

    .roamease-destinations-archive.v3 .results .btn-edit-filters {
        margin-bottom: 12px;
    }

    .roamease-destinations-archive.v3 .search-input,
    .roamease-destinations-archive.v3 .btn.btn-primary {
        height: 48px;
    }

    /* Hide sidebar, show as modal when open */
    .roamease-destinations-archive.v3 .filters-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        background: var(--e-global-color-accent, var(--e-global-color-secondary, #fff)) !important;
        color: var(--e-global-color-text, #111827);
        border-radius: 0;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow: hidden;
        transform: translateY(100%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .roamease-destinations-archive.v3 .filters-sidebar.open {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    /* Show modal header / footer on mobile */
    .roamease-destinations-archive.v3 .filters-sidebar .filters-header,
    .roamease-destinations-archive.v3 .filters-sidebar .filters-footer {
        display: flex !important;
    }

    .roamease-destinations-archive.v3 .filters-sidebar .filters-header {
        min-height: 64px;
        align-items: center;
    }

    .roamease-destinations-archive.v3 .filters-sidebar .filters-header .btn-close-filters {
        display: flex !important;
        visibility: visible;
    }

    /* Form scroll container */
    .roamease-destinations-archive.v3 .filters-sidebar form {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
        padding-bottom: 28px;
        background: transparent;
    }

    .roamease-destinations-archive.v3 .filters-header,
    .roamease-destinations-archive.v3 .filters-footer {
        background: transparent;
        color: inherit;
    }

    .roamease-destinations-archive.v3 .filters-header {
        border-bottom: 0 !important;
        flex: 0 0 auto;
    }

    .roamease-destinations-archive.v3 .filters-sidebar form .filter-block:first-child .block-title {
        border-top: 0 !important;
    }

    .roamease-destinations-archive.v3 .filters-title {
        color: inherit;
        width: 100%;
        text-align: center;
        font-family: var(--e-global-typography-heading-font-family, var(--e-global-typography-primary-font-family, inherit));
        font-weight: var(--e-global-typography-heading-font-weight, 700);
    }

    .roamease-destinations-archive.v3 .btn-close-filters {
        color: inherit;
        opacity: 0.8;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none;
    }

    .roamease-destinations-archive.v3 .filters-header {
        position: relative;
        justify-content: center;
    }

    .roamease-destinations-archive.v3 .filters-header .btn-close-filters {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Footer button */
    .roamease-destinations-archive.v3 .filters-footer {
        justify-content: center;
        flex: 0 0 auto;
        position: relative;
        bottom: auto;
        background: var(--e-global-color-accent, var(--e-global-color-secondary, #fff)) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.08);
        z-index: 1;
    }

    .roamease-destinations-archive.v3 .btn-apply-filters {
        width: min(100%, 320px);
        margin: 0 auto;
        background: transparent;
        color: var(--e-global-color-primary, #C79375);
        border: 1px solid var(--e-global-color-primary, #C79375);
        text-align: center;
    }

    .roamease-destinations-archive.v3 .btn-apply-filters:hover,
    .roamease-destinations-archive.v3 .btn-apply-filters:focus {
        background: var(--e-global-color-primary, #C79375);
        color: var(--e-global-color-accent, #fff);
        border-color: var(--e-global-color-primary, #C79375);
    }

    /* Modal pill styles */
    .roamease-destinations-archive.v3 .filters-sidebar .pill {
        background: #fff;
        border-color: rgba(0, 0, 0, 0.18);
        color: var(--e-global-color-text, #111827);
    }

    .roamease-destinations-archive.v3 .filters-sidebar .pill:hover {
        border-color: rgba(0, 0, 0, 0.30);
        background: #fff;
    }

    .roamease-destinations-archive.v3 .filters-sidebar input[type="radio"]:checked + .pill {
        background: var(--e-global-color-primary, #C79375);
        border-color: var(--e-global-color-primary, #C79375);
        color: var(--e-global-color-accent, #fff);
    }

    .destinations-grid-v3 .dest-card .dest-image {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
        flex: 0 0 220px;
    }

    .roamease-destinations-archive.v3 .layout {
        display: flex;
        flex-direction: column;
    }

    /* Grid: 2 columns on tablet */
    .destinations-grid-v3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .destinations-grid-v3 .dest-card {
        width: 100%;
        max-width: 100%;
    }

    .destinations-grid-v3.list-view .dest-card,
    .destinations-grid-v3.list-view .dest-card.card-style-reference {
        grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
        min-height: 220px !important;
    }

    .destinations-grid-v3.list-view .dest-card .dest-title {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    /* Grid: 1 column on mobile */
    .destinations-grid-v3 {
        grid-template-columns: 1fr;
    }

    .destinations-grid-v3 .dest-card {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        height: auto;
        min-height: 500px;
    }

    .destinations-grid-v3 .dest-card .dest-image {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        flex: 0 0 200px;
    }

    .destinations-grid-v3 .dest-card .dest-content {
        height: auto;
        max-height: none;
        padding: 18px 16px 20px;
    }

    .destinations-grid-v3 .dest-card .dest-title {
        font-size: 16px;
        line-height: 22px;
    }

    .destinations-grid-v3.list-view .dest-card,
    .destinations-grid-v3.list-view .dest-card.card-style-reference {
        grid-template-columns: 1fr;
        min-height: 0 !important;
    }

    .destinations-grid-v3.list-view .dest-card .dest-image {
        height: 210px !important;
        min-height: 210px !important;
        border-top-right-radius: inherit !important;
        border-bottom-left-radius: 0;
    }

    .destinations-grid-v3.list-view .dest-card .dest-content {
        padding: 18px 16px 20px !important;
    }

    .destinations-grid-v3.list-view .dest-card .dest-title,
    .destinations-grid-v3.list-view .dest-card .dest-excerpt {
        text-align: left;
    }

    .roamease-destinations-archive.v3 .results-right {
        gap: 8px;
    }

    .roamease-destinations-archive.v3 .view-switch {
        width: 100%;
        justify-content: center;
    }

    /* Mobile modal height */
    .roamease-destinations-archive.v3 .filters-sidebar {
        height: 90vh;
        max-height: 90vh;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.destinations-grid-v3 .dest-card.reveal-base {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.destinations-grid-v3 .dest-card.reveal-base.inview {
    opacity: 1;
    transform: none;
}
