/**
 * Mountain Archive Page - Professional Styles
 * Uses Elementor Global Colors and Fonts
 *
 * @package RoamEase_Pro
 * @since 2.5.0
 */

/* ==========================================================================
   CSS Variables - Minimal fallbacks, Elementor globals take priority
   ========================================================================== */
:root {
    --rma-radius: 12px;
    --rma-radius-lg: 24px;
}

/* ==========================================================================
   Container
   ========================================================================== */
.roamease-mountain-archive {
    background: #f9fafb;
    min-height: 100vh;
}

.rma-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
    box-sizing: border-box;
}

/* ==========================================================================
   Hero Section (Elementor Globals)
   ========================================================================== */
.rma-hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fallback gradient using Elementor primary color */
    background: var(--e-global-color-primary, #083321);
    background: linear-gradient(135deg, var(--e-global-color-primary, #083321) 0%, #052218 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* When banner image is set via Customizer */
.rma-hero[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rma-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* No overlay when no image - Elementor primary color is already the background */
    background: transparent;
}

/* When hero has an image - dark overlay */
.rma-hero--has-image .rma-hero__overlay {
    display: block;
    background: rgba(0, 0, 0, 0.5);
}

.rma-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

.rma-hero__container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.rma-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--e-global-color-secondary, #FEBC11);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
}

.rma-hero__badge svg {
    width: 18px;
    height: 18px;
}

.rma-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.rma-hero__text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 30px;
    max-width: 700px;
    line-height: 1.7;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.rma-hero__stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.rma-hero__stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.rma-hero__stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.rma-hero__stat-icon svg {
    width: 20px;
    height: 20px;
    color: var(--e-global-color-secondary, #FEBC11);
}

/* ==========================================================================
   Main Body Layout
   ========================================================================== */
.rma-body {
    padding: 40px 0 60px;
}

.rma-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .rma-layout {
        flex-direction: column;
    }
}

/* ==========================================================================
   Sidebar / Filters
   ========================================================================== */
.rma-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;
}

.rma-sidebar-backdrop {
    display: none;
}

@media (max-width: 1024px) {
    .rma-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .rma-sidebar-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}

.rma-sidebar__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);
}

.rma-sidebar__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--e-global-color-text, #111827);
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.rma-sidebar__close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--e-global-color-text, #111827);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rma-sidebar__close:hover {
    color: var(--e-global-color-primary, #083321);
}

.rma-sidebar__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);
    justify-content: center;
}

/* Filter Blocks - Tour Archive Style (Elementor Globals) */
.rma-filter-block {
    margin-bottom: 0;
}

.rma-block-title {
    width: calc(100% + 40px);
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    position: relative;
    padding: 14px 20px 10px;
    margin-left: -20px;
    margin-right: -20px;
    border-top: 1px solid var(--e-global-color-primary, #083321) !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--e-global-color-primary, #083321);
    font-family: var(--e-global-typography-primary-font-family, inherit);
    transition: color 0.2s ease;
    text-decoration: none !important;
}

/* Force all direct children of block-title to be inline */
.rma-block-title > * {
    display: inline-block !important;
}

.rma-block-title:focus,
.rma-block-title:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.rma-block-title:hover {
    color: var(--e-global-color-secondary, #FEBC11);
}

.rma-title-text {
    flex: 1 1 auto;
    display: inline !important;
    color: inherit;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    text-align: left;
}

.rma-title-text::before,
.rma-title-text::after {
    display: none !important;
    content: none !important;
}

/* Chevron arrow - aligned to far right */
.rma-caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    display: inline-block !important;
    padding: 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex: 0 0 auto;
    opacity: 0.6;
    margin-left: auto;
}

/* When expanded, chevron points down */
.rma-filter-block:not(.collapsed) .rma-caret {
    transform: rotate(45deg);
}

/* When collapsed, chevron points right */
.rma-filter-block.collapsed .rma-caret {
    transform: rotate(-45deg);
    opacity: 0.55;
}

.rma-block-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.rma-filter-block:not(.collapsed) .rma-block-body {
    max-height: 500px;
    padding-top: 12px;
    padding-bottom: 16px;
}

.rma-filter-block.collapsed .rma-block-body {
    display: none;
}

/* Pill List - Tour Archive Style (Elementor Globals) */
.rma-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rma-pill {
    display: inline-block;
    padding: 6px 12px;
    background: transparent;
    border-radius: 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--e-global-color-primary, #083321);
    color: var(--e-global-color-primary, #083321);
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.rma-pill:hover {
    border-color: var(--e-global-color-primary, #083321);
    background: transparent;
}

input[type="checkbox"]:checked + .rma-pill {
    background: var(--e-global-color-primary, #083321);
    border-color: var(--e-global-color-primary, #083321);
    color: var(--e-global-color-accent, #fff);
}

/* ==========================================================================
   Results Area
   ========================================================================== */
.rma-results {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

/* EDIT FILTERS Button - Tour Archive Style (Elementor Globals) */
.rma-btn-edit-filters {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    color: var(--e-global-color-primary, #083321);
    border: 1px solid var(--e-global-color-primary, #083321);
    border-radius: 8px;
    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;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    transition: all 0.3s ease;
}

.rma-btn-edit-filters:hover,
.rma-btn-edit-filters:focus {
    background: var(--e-global-color-primary, #083321);
    color: var(--e-global-color-accent, #fff);
    border-color: var(--e-global-color-primary, #083321);
}

.rma-btn-edit-filters svg {
    width: 20px;
    height: 20px;
}

/* VIEW ALL EXPEDITIONS Button (footer - Elementor Globals) */
.rma-btn-apply {
    width: 100%;
    padding: 14px 20px;
    background: var(--e-global-color-primary, #083321);
    color: var(--e-global-color-accent, #fff);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    transition: all 0.3s ease;
}

.rma-btn-apply:hover,
.rma-btn-apply:focus {
    background: var(--e-global-color-secondary, #FEBC11);
    color: var(--e-global-color-primary, #083321);
}

/* Clear All Button (Elementor Globals) */
.rma-btn-clear {
    padding: 8px 12px;
    background: transparent;
    color: var(--e-global-color-primary, #083321);
    border: 1px solid var(--e-global-color-primary, #083321);
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.rma-btn-clear:hover {
    background: var(--e-global-color-primary, #083321);
    color: var(--e-global-color-accent, #fff);
}

/* Search Bar (Elementor Globals) */
.rma-search {
    margin-bottom: 20px;
}

.rma-search__wrapper {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.rma-search__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    height: 48px;
    color: var(--e-global-color-text, #111827);
    background: #fff;
    box-sizing: border-box;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.rma-search__input:focus {
    outline: none;
    border-color: var(--e-global-color-primary, #083321);
}

.rma-search__input::placeholder {
    color: #9ca3af;
}

.rma-search__btn {
    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, #083321);
    color: var(--e-global-color-accent, #fff);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s ease, color 0.2s ease;
}

.rma-search__btn:hover {
    background: var(--e-global-color-secondary, #FEBC11);
    color: var(--e-global-color-primary, #083321);
}

.rma-search__btn svg {
    color: inherit;
}

/* Results Bar - bordered container (Elementor Globals) */
.rma-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 12px;
    padding: 10px 12px;
    background: transparent !important;
    border: 1px solid var(--e-global-color-primary, #083321);
    border-radius: 12px;
}

.rma-results-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rma-results-label {
    font-size: 0.95rem;
    color: var(--e-global-color-text, #111827);
    font-weight: 500;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.rma-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rma-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 14px;
    border: 1px solid var(--e-global-color-primary, #083321);
    background: #fff;
    color: #000;
    font-size: 12px;
    line-height: 1;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.rma-active-chip button {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Cards Grid - Tour Archive V2 Style
   ========================================================================== */
.rma-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .rma-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .rma-grid {
        grid-template-columns: 1fr;
    }
}

/* Card - Matching Tour Archive V2 */
.rma-card {
    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: 360px;
    max-width: 360px;
    height: 520px;
    min-height: 520px !important;
    max-height: 520px !important;
    margin: 0 auto;
}

.rma-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.rma-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Card Image - 220px Height */
.rma-card__image {
    position: relative;
    width: 100%;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    overflow: hidden;
    flex: 0 0 220px;
    background: #f5f5f5;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.rma-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rma-card:hover .rma-card__img {
    transform: scale(1.05);
}

.rma-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    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;
}

/* Card Badges - Tour Archive Style */
.rma-card__badge {
    position: absolute;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
}

.rma-card__badge--duration {
    top: 14px;
    left: 14px;
    background: var(--e-global-color-primary, #083321);
    color: var(--e-global-color-secondary, #FEBC11);
}

.rma-card__badge--difficulty {
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--e-global-color-primary, #083321);
    border: none;
    backdrop-filter: blur(8px);
}

/* Card Content - 300px Height, Centered */
.rma-card__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px !important;
    height: 300px;
    max-height: 300px;
    text-align: center;
}

/* Hide route tag - not needed in v2 style */
.rma-card__route {
    display: none;
}

/* Title - Centered, Uppercase, Responsive */
.rma-card__title {
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 700;
    line-height: 1.3;
    height: auto;
    max-height: 72px;
    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);
    flex-shrink: 0;
}

.rma-card:hover .rma-card__title {
    color: var(--e-global-color-secondary, #FEBC11);
}

/* Hide stats in v2 style */
.rma-card__stats {
    display: none;
}

/* Excerpt - Centered horizontally & vertically */
.rma-card__excerpt {
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: clamp(13px, 3.5vw, 14px) !important;
    line-height: 1.6 !important;
    color: var(--e-global-color-text, #111212);
    margin: auto 0 !important;
    height: auto !important;
    max-height: 72px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    text-align: center;
    opacity: 0.85;
    width: 100%;
    flex: 0 0 auto;
}

/* Card Footer - Centered Button */
.rma-card__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 0;
    border-top: none;
    margin-top: 0;
    text-align: center;
    flex-shrink: 0;
}

.rma-card__footer .rma-card__cta {
    margin: 0 auto;
}

/* Hide price section */
.rma-card__price,
.rma-card__price-label,
.rma-card__price-amount,
.rma-card__price-per {
    display: none;
}

/* CTA Button - Tour Archive V2 Style */
.rma-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--e-global-color-primary, #083321);
    color: var(--e-global-color-secondary, #FEBC11);
    border-radius: 8px;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 200px;
}

.rma-card:hover .rma-card__cta {
    background: var(--e-global-color-secondary, #FEBC11);
    color: var(--e-global-color-primary, #083321);
}

.rma-card__cta svg {
    display: none;
}

/* ==========================================================================
   Empty & No Results States (Elementor Globals)
   ========================================================================== */
.rma-empty,
.rma-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.rma-empty svg,
.rma-no-results svg {
    color: #9ca3af;
    margin-bottom: 20px;
}

.rma-empty h3,
.rma-no-results h3 {
    font-size: 1.5rem;
    color: var(--e-global-color-text, #111827);
    margin: 0 0 10px;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.rma-empty p,
.rma-no-results p {
    color: #6b7280;
    margin: 0 0 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

/* ==========================================================================
   Pagination (Elementor Globals)
   ========================================================================== */
.rma-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.rma-pagination .page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rma-pagination .page-numbers li {
    list-style: none;
}

.rma-pagination .page-numbers a,
.rma-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--e-global-color-text, #111827);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.rma-pagination .page-numbers a:hover {
    border-color: var(--e-global-color-primary, #083321);
    color: var(--e-global-color-primary, #083321);
}

.rma-pagination .page-numbers .current {
    background: var(--e-global-color-primary, #083321);
    border-color: var(--e-global-color-primary, #083321);
    color: #fff;
}

.rma-pagination .page-numbers .prev,
.rma-pagination .page-numbers .next {
    padding: 0 12px;
}

/* ==========================================================================
   CTA Section (Elementor Globals)
   ========================================================================== */
.rma-cta {
    background: linear-gradient(135deg, var(--e-global-color-primary, #083321) 0%, #052218 100%);
    padding: 60px 0;
}

.rma-cta__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.rma-cta__text {
    flex: 1;
    min-width: 300px;
}

.rma-cta__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.rma-cta__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 600px;
    line-height: 1.7;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.rma-cta__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons (Elementor Globals)
   ========================================================================== */
.rma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
}

.rma-btn--primary {
    background: var(--e-global-color-secondary, #FEBC11);
    color: #052218;
    border-color: var(--e-global-color-secondary, #FEBC11);
}

.rma-btn--primary:hover {
    background: #c49945;
    border-color: #c49945;
}

.rma-btn--outline {
    background: transparent;
    color: var(--e-global-color-text, #111827);
    border-color: #e5e7eb;
}

.rma-btn--outline:hover {
    border-color: var(--e-global-color-primary, #083321);
    color: var(--e-global-color-primary, #083321);
}

.rma-cta .rma-btn--outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.rma-cta .rma-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.rma-btn--large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

/* Desktop: Keep normal layout, hide mobile elements */
@media (min-width: 1025px) {
    .rma-btn-edit-filters,
    .rma-sidebar-backdrop,
    .rma-sidebar__header,
    .rma-sidebar__footer {
        display: none !important;
    }
    
    .rma-sidebar {
        position: sticky;
        top: 20px;
    }
}

/* Tablet/Mobile */
@media (max-width: 1024px) {
    /* Show EDIT FILTERS button - full width, centered */
    .rma-btn-edit-filters {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 48px;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box;
    }
    
    /* Ensure results column takes full width */
    .rma-results {
        width: 100%;
    }
    
    /* Match search bar height */
    .rma-search__input,
    .rma-search__btn {
        height: 48px;
    }
    
    /* Hide sidebar by default, show as modal when active */
    .rma-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        /* Modal panel background from Elementor globals */
        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;
    }
    
    .rma-sidebar.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }
    
    /* Show modal header and footer on mobile */
    .rma-sidebar__header,
    .rma-sidebar__footer {
        display: flex !important;
    }
    
    .rma-sidebar__header {
        min-height: 64px;
        flex: 0 0 auto;
        border-bottom: 0 !important;
        align-items: center;
    }
    
    .rma-sidebar__header .rma-sidebar__close {
        display: flex !important;
        visibility: visible;
    }
    
    /* Make the form the scroll container */
    .rma-sidebar .rma-filters {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
        padding-bottom: 28px;
        background: transparent;
    }
    
    .rma-sidebar__footer {
        flex: 0 0 auto;
    }
    
    /* Remove first filter block top border in modal */
    .rma-sidebar .rma-filter-block:first-child .rma-block-title {
        border-top: 0 !important;
    }
    
    /* Modal header/footer should match the panel background */
    .rma-sidebar__header,
    .rma-sidebar__footer {
        background: transparent;
        color: inherit;
    }
    
    /* Layout becomes single column */
    .rma-layout {
        display: flex;
        flex-direction: column;
    }
    
    /* Hero stats in rows */
    .rma-hero__stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }
    
    .rma-hero__stat {
        flex: 0 0 auto;
    }
    
    /* Show backdrop */
    .rma-sidebar-backdrop {
        display: block;
    }
}

@media (max-width: 768px) {
    .rma-hero {
        min-height: 360px;
    }
    
    /* Center hero content on mobile */
    .rma-hero__container {
        text-align: center;
    }
    
    .rma-hero__title,
    .rma-hero__text {
        text-align: center;
    }
    
    .rma-hero__stats {
        justify-content: center;
        gap: 16px;
    }
    
    .rma-hero__stat {
        font-size: 0.85rem;
    }
    
    .rma-hero__stat-icon {
        width: 36px;
        height: 36px;
    }
    
    .rma-body {
        padding: 24px 0 40px;
    }
    
    .rma-cta__content {
        flex-direction: column;
        text-align: center;
    }
    
    .rma-cta__text {
        text-align: center;
    }
    
    .rma-cta__actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    /* Mobile modal takes more screen height */
    .rma-sidebar {
        height: 90vh;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    /* Keep stats in row, just smaller gap */
    .rma-hero__stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
    }
    
    .rma-hero__stat {
        flex: 0 0 auto;
        font-size: 0.8rem;
    }
    
    .rma-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .rma-cta__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .rma-cta__actions .rma-btn {
        width: 100%;
    }
}
