/*
 * ═══════════════════════════════════════════════════════════════════════════════
 * Lavisa Destinations Theme — ENHANCED ARCHIVE SURFACES (E12)
 * ═══════════════════════════════════════════════════════════════════════════════
 *
 * @file        assets/css/ldt-enhanced-sections-archive.css
 * @package     Lavisa_Destinations_Theme
 * @since       2.9.13  (E12 — Visual Enhancement Roadmap v2 — opens Stage 5)
 * @depends     ldt-tokens-enhanced.css      (E1 — gradients, shadows, glass tokens)
 *              ldt-enhanced-base.css        (E2 — section primitives)
 *              ldt-enhanced-animations.css  (E3 — keyframes: ldt-float-icon,
 *                                                 ldt-pulse-glow, ldt-bounce-in)
 *
 *   Polishes the archive / listing surfaces — what visitors see when they
 *   browse destinations across countries, regions, types, or search results:
 *
 *     section-destination-grid.php   Card grid (grid/list/compact view variants)
 *     section-filter-sidebar.php     Sticky sidebar with collapsible filter groups
 *     section-sort-controls.php      Top bar with count + sort + view toggle
 *     section-pagination.php         Numbered pagination with prev/next + ellipsis
 *     section-empty-state.php        "No results" empty state with actions
 *
 *   PURE CSS LAYER — no PHP partial is touched. Same approach as E4-E11.
 *
 * ═══════════════════════════════════════════════════════════════════════════════
 */


/* ═══════════════════════════════════════════════════════════════════════════════
 * 1. DESTINATION GRID CARDS (.ldt-dg-card)
 *
 * Used in grid / list / compact view variants. Each card is an article with
 * media + body + optional badges. We polish: hover-lift, image hover-zoom,
 * type badge polish (per-type color comes from PHP-injected --b_type class),
 * title hover-color shift, list-variant accent left-bar.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-dg-card {
    background: #ffffff;
    border-radius: var(--ldt-radius-card, 1.25rem);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 53, 128, 0.06);
    transition:
        transform 350ms var(--ldt-ease-portal, ease),
        box-shadow 350ms var(--ldt-ease-portal, ease),
        border-color 350ms var(--ldt-ease-portal, ease);
    border: 1px solid rgba(0, 53, 128, 0.04);
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-dg-card:hover {
        transform: translateY(-6px);
        border-color: rgba(255, 140, 0, 0.18);
        box-shadow:
            0 18px 38px -8px rgba(0, 53, 128, 0.20),
            0 0 0 1px rgba(255, 140, 0, 0.08);
    }
}

/* Card link wrapper */
body .ldt-dg-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* Media wrap with overflow:hidden so image zoom clips */
body .ldt-dg-card__media {
    position: relative;
    overflow: hidden;
}

body .ldt-dg-card__img {
    transition: transform 600ms var(--ldt-ease-portal, ease);
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-dg-card:hover .ldt-dg-card__img {
        transform: scale(1.08);
    }
}

/* Image placeholder (when image missing) — soft gradient */
body .ldt-dg-card__img--placeholder {
    background: linear-gradient(
        135deg,
        rgba(0, 53, 128, 0.08) 0%,
        rgba(255, 140, 0, 0.08) 100%
    );
    aspect-ratio: 4 / 3;
}

/* Badges row — top corner of media */
body .ldt-dg-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 1;
}

[dir="rtl"] body .ldt-dg-card__badges,
.ldt-rtl body .ldt-dg-card__badges {
    left: auto;
    right: 12px;
}

/* Generic badge — translucent pill, polished. The per-type color comes from
   the PHP-injected modifier class `--{b_type}`. We layer polish on top. */
body .ldt-dg-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--ldt-radius-pill, 9999px);
    color: var(--ldt-dark, #1e293b);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* Per-type badge color hints (matches trust categories palette) */
body .ldt-dg-card__badge--country,
body .ldt-dg-card__badge--region {
    background: rgba(0, 87, 184, 0.12);
    border-color: rgba(0, 87, 184, 0.30);
    color: var(--ldt-primary, #003580);
}

body .ldt-dg-card__badge--city {
    background: rgba(255, 140, 0, 0.12);
    border-color: rgba(255, 140, 0, 0.30);
    color: var(--ldt-accent-dark, #e07a00);
}

body .ldt-dg-card__badge--featured {
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
    border-color: rgba(255, 255, 255, 0.20);
    color: #ffffff;
    box-shadow: var(--ldt-shadow-offer,
                0 4px 14px rgba(255, 140, 0, 0.40));
    animation: ldt-badge-pulse 2.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    body .ldt-dg-card__badge--featured { animation: none; }
}

/* Body content */
body .ldt-dg-card__body {
    padding: 18px;
}

body .ldt-dg-card__title {
    color: var(--ldt-dark, #1e293b);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
    transition: color 250ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-dg-card:hover .ldt-dg-card__title {
        color: var(--ldt-primary, #003580);
    }
}

body .ldt-dg-card__subtitle {
    color: var(--ldt-gray-600, #64748b);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 2. LIST VARIANT — accent left-bar on hover
 *
 * .ldt-destination-grid--list renders horizontal cards. Add a 4px accent bar
 * that grows from 0 to full height on hover.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-destination-grid--list .ldt-dg-card {
    position: relative;
}

body .ldt-destination-grid--list .ldt-dg-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 0;
    background: var(--ldt-gradient-accent,
                linear-gradient(180deg, #ff8c00 0%, #e07a00 100%));
    border-radius: 0 4px 4px 0;
    transform: translateY(-50%);
    transition: height 350ms var(--ldt-ease-portal, ease);
    z-index: 2;
}

[dir="rtl"] body .ldt-destination-grid--list .ldt-dg-card::before,
.ldt-rtl body .ldt-destination-grid--list .ldt-dg-card::before {
    left: auto;
    right: 0;
    border-radius: 4px 0 0 4px;
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-destination-grid--list .ldt-dg-card:hover::before {
        height: 70%;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 3. EMPTY GRID NOTE (.ldt-destination-grid--empty)
 *
 * Inline empty message inside the grid (different from full empty-state).
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-destination-grid--empty {
    background: var(--ldt-glass-light, rgba(255, 255, 255, 0.65));
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    border: 1px dashed rgba(0, 53, 128, 0.20);
    border-radius: var(--ldt-radius-card, 1.25rem);
    padding: 48px 24px !important;
}

body .ldt-destination-grid__empty-msg {
    color: var(--ldt-gray-600, #64748b);
    font-size: 15px;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 4. FILTER SIDEBAR (.ldt-filter-sidebar)
 *
 * Sticky panel with collapsible <details> filter groups. Polish: glass-light
 * panel, custom-styled checkboxes, rotating chevron, accent count badges,
 * accent gradient apply button.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-filter-sidebar {
    background: var(--ldt-glass-light, rgba(255, 255, 255, 0.92)) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
            backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 53, 128, 0.08) !important;
    border-radius: var(--ldt-radius-card, 1.25rem) !important;
    box-shadow: 0 4px 20px rgba(0, 53, 128, 0.06);
    padding: 20px !important;
}

/* Header — title + clear button */
body .ldt-filter-sidebar__title {
    color: var(--ldt-dark, #1e293b);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

body .ldt-filter-sidebar__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ldt-gray-500, #94a3b8);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 200ms var(--ldt-ease-portal, ease);
}

body .ldt-filter-sidebar__clear:hover {
    color: var(--ldt-accent, #ff8c00);
}

/* Active filter count badge next to "Clear" */
body .ldt-filter-sidebar__clear-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
    color: #ffffff;
    border-radius: var(--ldt-radius-pill, 9999px);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

/* Filter group — collapsible <details> */
body .ldt-filter-group {
    border-bottom: 1px solid rgba(0, 53, 128, 0.06);
    padding: 14px 0;
}

body .ldt-filter-group:first-child {
    padding-top: 0;
}

body .ldt-filter-group:last-child {
    border-bottom: none;
}

/* Group label (summary) — flex with chevron */
body .ldt-filter-group__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    color: var(--ldt-dark, #1e293b);
    font-weight: 700;
    font-size: 14px;
    padding: 4px 0;
    transition: color 200ms var(--ldt-ease-portal, ease);
}

body .ldt-filter-group__label::-webkit-details-marker {
    display: none;
}

body .ldt-filter-group__label:hover {
    color: var(--ldt-primary, #003580);
}

body .ldt-filter-group__label-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body .ldt-filter-group__icon {
    display: inline-flex;
    align-items: center;
    color: var(--ldt-accent, #ff8c00);
    flex-shrink: 0;
}

/* Active count badge inside the group label */
body .ldt-filter-group__count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    background: rgba(255, 140, 0, 0.16);
    color: var(--ldt-accent-dark, #e07a00);
    border-radius: var(--ldt-radius-pill, 9999px);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Chevron — rotates 180deg when group is open */
body .ldt-filter-group__chevron {
    display: inline-flex;
    align-items: center;
    color: var(--ldt-gray-400, #94a3b8);
    transition: transform 250ms var(--ldt-ease-portal, ease);
    flex-shrink: 0;
}

body .ldt-filter-group[open] > .ldt-filter-group__label > .ldt-filter-group__chevron {
    transform: rotate(180deg);
}

/* Options list */
body .ldt-filter-group__options {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

body .ldt-filter-group__option {
    margin-bottom: 6px;
}

body .ldt-filter-group__option:last-child {
    margin-bottom: 0;
}

/* Filter option — label wrapping checkbox + label-text + count */
body .ldt-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--ldt-radius-input, 0.75rem);
    cursor: pointer;
    transition: background 200ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-filter-option:hover {
        background: rgba(255, 140, 0, 0.06);
    }
}

/* Custom checkbox / radio — accent color when checked */
body .ldt-filter-option input[type="checkbox"],
body .ldt-filter-option input[type="radio"] {
    accent-color: var(--ldt-accent, #ff8c00);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

body .ldt-filter-option__label {
    flex: 1;
    color: var(--ldt-dark, #1e293b);
    font-size: 14px;
    font-weight: 500;
    transition: color 200ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-filter-option:hover .ldt-filter-option__label {
        color: var(--ldt-primary, #003580);
    }
}

/* When checked, the parent label can highlight the text via :has (modern browsers) */
@supports selector(:has(*)) {
    body .ldt-filter-option:has(input:checked) .ldt-filter-option__label {
        color: var(--ldt-accent-dark, #e07a00);
        font-weight: 700;
    }

    body .ldt-filter-option:has(input:checked) {
        background: rgba(255, 140, 0, 0.08);
    }
}

/* Option count — small grey number */
body .ldt-filter-option__count {
    color: var(--ldt-gray-500, #94a3b8);
    font-size: 12px;
    font-weight: 600;
}

/* Apply filters button — accent gradient */
body .ldt-filter-sidebar__apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    padding: 12px 18px;
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%)) !important;
    color: #ffffff;
    border: none;
    border-radius: var(--ldt-radius-input, 0.75rem);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: var(--ldt-shadow-accent-soft,
                0 4px 15px rgba(255, 140, 0, 0.25));
    transition:
        transform 200ms var(--ldt-ease-portal, ease),
        box-shadow 200ms var(--ldt-ease-portal, ease),
        filter 200ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-filter-sidebar__apply:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(255, 140, 0, 0.40);
        filter: brightness(1.06);
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 5. SORT CONTROLS (.ldt-archive-sort-controls)
 *
 * Top bar above the grid: count + sort dropdown + view mode toggle.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-archive-sort-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    background: var(--ldt-glass-light, rgba(255, 255, 255, 0.92));
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 53, 128, 0.06);
    border-radius: var(--ldt-radius-input, 0.75rem);
    box-shadow: 0 2px 10px rgba(0, 53, 128, 0.04);
    margin-bottom: 16px;
}

/* Result count */
body .ldt-archive-sort-controls__count {
    color: var(--ldt-gray-600, #64748b);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

body .ldt-archive-sort-controls__count strong {
    color: var(--ldt-primary, #003580);
    font-weight: 800;
}

body .ldt-archive-sort-controls__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Sort label + select */
body .ldt-archive-sort-controls__sort select {
    background: #ffffff;
    border: 1px solid rgba(0, 53, 128, 0.12);
    border-radius: var(--ldt-radius-input, 0.75rem);
    padding: 8px 14px;
    color: var(--ldt-dark, #1e293b);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition:
        border-color 200ms var(--ldt-ease-portal, ease),
        box-shadow 200ms var(--ldt-ease-portal, ease);
}

body .ldt-archive-sort-controls__sort select:focus,
body .ldt-archive-sort-controls__sort select:focus-visible {
    outline: none;
    border-color: var(--ldt-accent, #ff8c00);
    box-shadow: var(--ldt-ring-focus-accent,
                0 0 0 3px rgba(255, 140, 0, 0.20));
}

/* View mode toggle — segmented glass pill group */
body .ldt-archive-view {
    display: inline-flex;
    background: rgba(0, 53, 128, 0.04);
    border: 1px solid rgba(0, 53, 128, 0.10);
    border-radius: var(--ldt-radius-input, 0.75rem);
    padding: 3px;
    gap: 2px;
}

body .ldt-archive-view__btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: calc(var(--ldt-radius-input, 0.75rem) - 4px);
    color: var(--ldt-gray-500, #94a3b8);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 200ms var(--ldt-ease-portal, ease),
        color 200ms var(--ldt-ease-portal, ease),
        box-shadow 200ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-archive-view__btn:hover:not(.is-active) {
        color: var(--ldt-primary, #003580);
    }
}

body .ldt-archive-view__btn.is-active {
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
    color: #ffffff;
    box-shadow: var(--ldt-shadow-accent-soft,
                0 2px 8px rgba(255, 140, 0, 0.30));
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 6. PAGINATION (.ldt-archive-pagination)
 *
 * Numbered pagination with prev/next, current page, ellipsis.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-archive-pagination {
    margin: 32px 0 16px;
}

body .ldt-archive-pagination__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

body .ldt-archive-pagination__item {
    display: inline-flex;
}

/* Link / span — common base */
body .ldt-archive-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 53, 128, 0.10);
    border-radius: var(--ldt-radius-input, 0.75rem);
    color: var(--ldt-dark, #1e293b);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 53, 128, 0.04);
    transition:
        background 200ms var(--ldt-ease-portal, ease),
        border-color 200ms var(--ldt-ease-portal, ease),
        color 200ms var(--ldt-ease-portal, ease),
        transform 200ms var(--ldt-ease-portal, ease),
        box-shadow 200ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-archive-pagination__link:not(.ldt-archive-pagination__link--current):not(.ldt-archive-pagination__link--disabled):hover {
        background: rgba(255, 140, 0, 0.08);
        border-color: rgba(255, 140, 0, 0.40);
        color: var(--ldt-accent-dark, #e07a00);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(255, 140, 0, 0.18);
    }
}

/* Current page */
body .ldt-archive-pagination__link--current {
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: var(--ldt-shadow-accent-soft,
                0 4px 12px rgba(255, 140, 0, 0.35));
}

/* Disabled state */
body .ldt-archive-pagination__link--disabled {
    background: rgba(0, 53, 128, 0.02) !important;
    border-color: rgba(0, 53, 128, 0.06) !important;
    color: var(--ldt-gray-300, #cbd5e1) !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Prev / Next items — slightly wider with chevron icons */
body .ldt-archive-pagination__item--prev .ldt-archive-pagination__link,
body .ldt-archive-pagination__item--next .ldt-archive-pagination__link {
    padding: 0 16px;
}

/* Ellipsis (gap) */
body .ldt-archive-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--ldt-gray-400, #94a3b8);
    font-weight: 700;
    user-select: none;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 7. EMPTY STATE (.ldt-archive-empty)
 *
 * Full empty state when zero results match. Glass-light card with floating
 * icon + actions row.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-archive-empty {
    margin: 24px 0;
}

body .ldt-archive-empty__inner {
    background: var(--ldt-glass-light, rgba(255, 255, 255, 0.65));
    -webkit-backdrop-filter: blur(20px) saturate(180%);
            backdrop-filter: blur(20px) saturate(180%);
    border: 1px dashed rgba(0, 53, 128, 0.20);
    border-radius: var(--ldt-radius-card, 1.25rem);
    padding: 56px 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 53, 128, 0.04);
}

body .ldt-archive-empty__visual {
    margin-bottom: 20px;
}

body .ldt-archive-empty__icon {
    font-size: 4rem;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.10));
    animation: ldt-float-icon 6s ease-in-out infinite;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    body .ldt-archive-empty__icon { animation: none; }
}

body .ldt-archive-empty__img {
    max-width: 200px;
    height: auto;
    display: inline-block;
}

body .ldt-archive-empty__title {
    color: var(--ldt-dark, #1e293b);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}

body .ldt-archive-empty__message {
    color: var(--ldt-gray-600, #64748b);
    line-height: 1.6;
    margin: 0 auto 24px;
    max-width: 480px;
}

/* Actions row — primary + secondary */
body .ldt-archive-empty__actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Primary action — accent gradient pill */
body .ldt-archive-empty__action--primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
    color: #ffffff !important;
    border-radius: var(--ldt-radius-pill, 9999px);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--ldt-shadow-accent,
                0 10px 30px rgba(255, 140, 0, 0.30));
    transition:
        transform 200ms var(--ldt-ease-portal, ease),
        box-shadow 200ms var(--ldt-ease-portal, ease),
        filter 200ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-archive-empty__action--primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 36px rgba(255, 140, 0, 0.45);
        filter: brightness(1.06);
    }
}

/* Secondary action — text link with brand color */
body .ldt-archive-empty__action--secondary,
body .ldt-archive-empty__action--ghost {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: rgba(0, 53, 128, 0.04);
    border: 1px solid rgba(0, 53, 128, 0.10);
    border-radius: var(--ldt-radius-pill, 9999px);
    color: var(--ldt-primary, #003580);
    font-weight: 600;
    text-decoration: none;
    transition:
        background 200ms var(--ldt-ease-portal, ease),
        border-color 200ms var(--ldt-ease-portal, ease),
        color 200ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-archive-empty__action--secondary:hover,
    body .ldt-archive-empty__action--ghost:hover {
        background: rgba(255, 140, 0, 0.10);
        border-color: rgba(255, 140, 0, 0.30);
        color: var(--ldt-accent-dark, #e07a00);
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 8. RESPONSIVE
 * ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Sort controls: stack on mobile */
    body .ldt-archive-sort-controls {
        gap: 10px;
        padding: 10px 12px;
    }

    body .ldt-archive-sort-controls__right {
        gap: 8px;
        flex-wrap: wrap;
    }

    /* View toggle: keep horizontal but tighter */
    body .ldt-archive-view__btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* Pagination: tighter buttons on mobile */
    body .ldt-archive-pagination__link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    body .ldt-archive-pagination__item--prev .ldt-archive-pagination__link,
    body .ldt-archive-pagination__item--next .ldt-archive-pagination__link {
        padding: 0 12px;
    }

    /* Filter sidebar: not sticky on mobile (often full-width above grid) */
    body .ldt-filter-sidebar {
        position: static !important;
        padding: 16px !important;
    }

    /* Empty state: smaller icon */
    body .ldt-archive-empty__icon {
        font-size: 3rem;
    }

    body .ldt-archive-empty__inner {
        padding: 40px 18px;
    }
}


/* ─── END OF ldt-enhanced-sections-archive.css ────────────────────────────── */
