/* ================================================================
 * /rv-campsites/ page styles (Lake Hartwell)
 * Loaded conditionally on the RV Campsites page template only.
 *
 * Components defined here:
 *   - .slm-scarcity-pill        Reusable inventory-pressure pill
 *   - .slm-rv-hero__actions     Dual-CTA flex row
 *   - .slm-btn--outline-white   New button variant for navy-bg dual CTAs
 *   - .slm-rv-book              Booking widget band (anchor #book)
 *   - .slm-empty-state-overlay  Branded recovery message under the widget
 *
 * Page-scoped selectors (body.page-rv-campsites) hide the Boats tab
 * and pre-result widget chrome on this page only, leaving
 * /online-booking/ untouched.
 * ================================================================ */

/* Sticky header offset so #book anchor scrolls don't hide under
 * the nav. (scroll-behavior: smooth is set globally in style.css.) */
.slm-rv-book {
    scroll-margin-top: 80px;
}

.slm-scarcity-pill {
    display: inline-block;
    background-color: var(--yacht-gold, #D4AF37);
    color: var(--yacht-navy, #0A192F);
    font-family: var(--font-sans, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
    line-height: 1;
}

@media (min-width: 768px) {
    .slm-scarcity-pill {
        font-size: 13px;
        padding: 10px 20px;
    }
}

.slm-rv-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    align-items: center;
    justify-content: center;
}

.slm-rv-hero__actions .slm-btn {
    /* Hero CTA sizing. min-width gives the single primary CTA a
     * commanding inline floor that reads as the page's main action;
     * margin-top:0 cancels the global .slm-rv-hero__cta { margin-top:
     * 2rem } so spacing comes only from the parent row's margin-top:
     * 24px. font-size and padding inherit from the global
     * .slm-rv-hero__cta rule in style.css. */
    min-width: 360px;
    margin-top: 0;
}

@media (max-width: 480px) {
    .slm-rv-hero__actions .slm-btn {
        /* Drop the desktop min-width so flex governs sizing on narrow
         * viewports (e.g. 280px Galaxy Fold outer). Without this the
         * 260px floor forces horizontal overflow. */
        min-width: 0;
        flex: 1 1 100%;
    }
}

/* New button variant: outline on navy backgrounds */
.slm-btn--outline-white {
    background-color: transparent;
    color: var(--yacht-white, #FFFFFF);
    border: 2px solid var(--yacht-white, #FFFFFF);
    transition: background-color 200ms ease, color 200ms ease;
}

.slm-btn--outline-white:hover,
.slm-btn--outline-white:focus {
    background-color: var(--yacht-white, #FFFFFF);
    color: var(--yacht-navy, #0A192F);
}

.slm-rv-book {
    border-top: 4px solid var(--yacht-navy, #0A192F);
}

.slm-rv-book__header {
    text-align: center;
    margin-bottom: 32px;
}

.slm-rv-book__subtitle {
    font-size: 16px;
    color: var(--yacht-navy, #0A192F);
    opacity: 0.75;
    margin-top: 8px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.slm-rv-book__widget-wrap {
    background: var(--yacht-white, #FFFFFF);
    border: 1px solid var(--yacht-gray, #F8F9FA);
    border-radius: 8px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.06);
    /* Reserve space so the async Sharper widget does not shift content
     * below it as it boots. Sized to typical rendered height; the wrap
     * grows beyond this when inventory is taller. */
    min-height: 720px;
}

@media (max-width: 768px) {
    .slm-rv-book__widget-wrap {
        padding: 16px;
        min-height: 540px;
    }
}

.slm-rv-book__trust {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--yacht-navy, #0A192F);
    opacity: 0.55;
}

.slm-rv-book__fallback {
    text-align: center;
    padding: 48px 16px;
    color: var(--yacht-navy, #0A192F);
}

/* ----------------------------------------------------------------
 * Help-and-recovery panel rendered below the widget. Hidden by default;
 * the inline script in page-rv-rentals.php reveals it after the Sharper
 * widget settles iff no priced inventory rendered (no-results state).
 * The native [hidden] attribute is removed by the script when shown.
 * ---------------------------------------------------------------- */
.slm-empty-state-overlay {
    margin-top: 24px;
    padding: 24px;
    background: var(--yacht-gray, #F8F9FA);
    border-left: 4px solid var(--yacht-gold, #D4AF37);
    border-radius: 4px;
    text-align: center;
}

.slm-empty-state-overlay[hidden] {
    display: none;
}

.slm-empty-state-overlay__title {
    font-family: var(--font-sans, 'Montserrat', sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--yacht-navy, #0A192F);
    margin: 0 0 8px;
}

.slm-empty-state-overlay__body {
    font-size: 14px;
    color: var(--yacht-navy, #0A192F);
    opacity: 0.8;
    margin: 0 0 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.slm-empty-state-overlay__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

@media (max-width: 480px) {
    .slm-empty-state-overlay__actions .slm-btn {
        flex: 1 1 100%;
    }
}

/* Empty-state overlay sits on the light --yacht-gray panel, so the global
 * .slm-btn--outline (white border, white text) renders invisibly here, and
 * .slm-btn--primary inherits an unstyled fallback inside the overlay. Force
 * both to readable on-light variants scoped to this overlay only. */
.slm-empty-state-overlay .slm-btn--outline {
    background-color: transparent;
    color: var(--yacht-navy, #0A192F);
    border: 2px solid var(--yacht-navy, #0A192F);
}

.slm-empty-state-overlay .slm-btn--outline:hover,
.slm-empty-state-overlay .slm-btn--outline:focus {
    background-color: var(--yacht-navy, #0A192F);
    color: var(--yacht-white, #FFFFFF);
}

.slm-empty-state-overlay .slm-btn--primary {
    background-color: var(--yacht-gold, #D4AF37);
    color: var(--yacht-navy, #0A192F);
    border: 2px solid var(--yacht-gold, #D4AF37);
}

.slm-empty-state-overlay .slm-btn--primary:hover,
.slm-empty-state-overlay .slm-btn--primary:focus {
    background-color: var(--yacht-gold-light, #E5C565);
    border-color: var(--yacht-gold-light, #E5C565);
    color: var(--yacht-navy, #0A192F);
}

/* ----------------------------------------------------------------
 * Page-scoped Sharper widget restrictions on /rv-campsites/ only.
 * Body class is page-template-page-rv-rentals-php (the page template
 * filename), not the slug. WordPress emits a slug body class only when
 * the theme adds it via filter; this site does not. Sharper class
 * names verified live via DevTools 2026-04-27.
 * /online-booking/ keeps its full functionality.
 * ---------------------------------------------------------------- */

/* Hide non-active tab in the Sharper wizard nav (Boats on the RV page) */
body.page-template-page-rv-rentals-php .sdms-wizard-v2__nav .nav-link:not(.active) {
    display: none !important;
}

/* Hide left sidebar (Result View radios + Category dropdown). Whole
 * sidebar removal is cleaner than per-control hide because Sharper
 * uses generic .form-group wrappers that aren't safe to blanket-hide. */
body.page-template-page-rv-rentals-php .sdms-online-booking-search-sidebar {
    display: none !important;
}
