/*
 * ═══════════════════════════════════════════════════════════════════════════════
 * Lavisa Destinations Theme — ENHANCED PAGES (E23)
 * ═══════════════════════════════════════════════════════════════════════════════
 *
 * @file        assets/css/ldt-enhanced-pages.css
 * @package     Lavisa_Destinations_Theme
 * @since       2.9.24  (E23 — Visual Enhancement Roadmap v2 — Stage 8 middle)
 * @depends     ldt-tokens-enhanced.css           (E1)
 *              ldt-enhanced-base.css             (E2)
 *              ldt-enhanced-animations.css       (E3)
 *              ldt-enhanced-sections-booking.css (E19 — booking sections)
 *              ldt-enhanced-sections-tools.css   (E21 — tools sections)
 *              ldt-enhanced-components.css       (E22 — components)
 *
 *   Polishes the page-level wrappers and bridge surfaces between sections.
 *   Most child sections are already polished by E4-E22; this layer adds
 *   per-variant page rhythm + the few page-only surfaces that don't have
 *   a dedicated section partial:
 *
 *     pages/page-hotels.php       → .ldt-main--hotels
 *     pages/page-flights.php      → .ldt-main--flights
 *     pages/page-cars.php         → .ldt-main--cars
 *     pages/page-tools.php        → .ldt-page--tools
 *                                   .ldt-tools-getting-started
 *                                   .ldt-tools-gs__steps
 *     pages/page-deals.php        → .ldt-page--deals
 *     pages/page-budget.php       → .ldt-page--budget + .ldt-notice
 *     pages/page-{tip|currency|visa-checker|weather}.php → .ldt-page--{slug}
 *     pages/{search-destinations,page-saved,page-compare,page-planner}.php
 *
 *   PURE CSS LAYER — no PHP partial is touched. Same approach as E4-E22.
 *   Continues Stage 8 (Components & Polish).
 *
 * ═══════════════════════════════════════════════════════════════════════════════
 */


/* ═══════════════════════════════════════════════════════════════════════════════
 * 1. BOOKING PAGE WRAPPERS (.ldt-main--{hotels|flights|cars})
 *
 * Pages /hotels/, /flights/, /cars/ chain: booking-hero → search → categories
 * → stats → testimonials → FAQ → newsletter. Each section is already polished;
 * we add subtle per-variant background rhythm so the page reads as one
 * continuous surface rather than disconnected sections.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-main {
    position: relative;
}

/* Hotels — warm-leaning rhythm */
body .ldt-main--hotels {
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 140, 0, 0.015) 60%,
        rgba(0, 53, 128, 0.020) 80%,
        transparent 100%
    );
}

/* Flights — sky-leaning rhythm */
body .ldt-main--flights {
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(0, 87, 184, 0.020) 60%,
        rgba(0, 53, 128, 0.025) 80%,
        transparent 100%
    );
}

/* Cars — slate-to-blue rhythm */
body .ldt-main--cars {
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(15, 23, 42, 0.018) 60%,
        rgba(0, 53, 128, 0.022) 80%,
        transparent 100%
    );
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 2. PAGE WRAPPER (.ldt-page) — generic page (tools, deals, etc.)
 *
 * The pages using `.ldt-page` (not `.ldt-main`) have their own inline <style>
 * blocks with base background. We layer polish around them.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-page {
    position: relative;
    min-height: 100vh;
}

/* Page body container — used by deals, budget, planner, etc. */
body .ldt-page__body {
    padding: 32px 0;
}

/* Per-variant subtle bg fade */
body .ldt-page--tools {
    background: linear-gradient(
        180deg,
        rgba(255, 140, 0, 0.02) 0%,
        transparent 12%,
        transparent 88%,
        rgba(0, 53, 128, 0.02) 100%
    ) !important;
}

body .ldt-page--deals {
    background: linear-gradient(
        180deg,
        rgba(220, 38, 38, 0.02) 0%,
        rgba(255, 140, 0, 0.015) 30%,
        transparent 60%,
        transparent 100%
    );
}

body .ldt-page--budget,
body .ldt-page--currency,
body .ldt-page--tip,
body .ldt-page--weather,
body .ldt-page--visa-checker {
    background: linear-gradient(
        180deg,
        rgba(0, 53, 128, 0.02) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 140, 0, 0.02) 100%
    );
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 3. TOOLS GETTING STARTED (.ldt-tools-getting-started) — /tools/ 3-step intro
 *
 * The PHP file ships its own inline base styles. We layer polish on top:
 * accent gradient numbered badges, glass step cards, accent step-link arrows.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-tools-getting-started {
    position: relative;
    /* The PHP inline <style> sets padding + bg — preserved */
}

body .ldt-tools-gs__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px;
}

body .ldt-tools-gs__title {
    background: var(--ldt-gradient-text,
                linear-gradient(135deg, #003580 0%, #0057b8 50%, #ff8c00 100%));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--ldt-primary, #003580);  /* fallback */
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}

body .ldt-tools-gs__subtitle {
    color: var(--ldt-gray-600, #64748b);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
}

/* Steps grid */
body .ldt-tools-gs__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: ldt-tools-gs;
}

@media (max-width: 900px) {
    body .ldt-tools-gs__steps {
        grid-template-columns: 1fr;
    }
}

/* Step card */
body .ldt-tools-gs__step {
    position: relative;
    list-style: none;
    counter-increment: ldt-tools-gs;
    background: var(--ldt-glass-light, rgba(255, 255, 255, 0.92));
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 53, 128, 0.08);
    border-radius: var(--ldt-radius-card, 1.25rem);
    box-shadow: 0 4px 14px rgba(0, 53, 128, 0.06);
    padding: 22px 22px 20px;
    transition:
        transform 350ms var(--ldt-ease-portal, ease),
        border-color 350ms var(--ldt-ease-portal, ease),
        box-shadow 350ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-tools-gs__step:hover {
        transform: translateY(-3px);
        border-color: rgba(255, 140, 0, 0.30);
        box-shadow:
            0 14px 30px rgba(255, 140, 0, 0.10),
            0 0 0 1px rgba(255, 140, 0, 0.08);
    }
}

/* Number badge — accent gradient circle, top-left */
body .ldt-tools-gs__num {
    position: absolute;
    top: -14px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
    color: #ffffff;
    font-family: var(--ldt-font-mono, 'JetBrains Mono', monospace);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 14px rgba(255, 140, 0, 0.40);
    border: 3px solid #ffffff;
}

[dir="rtl"] body .ldt-tools-gs__num,
.ldt-rtl body .ldt-tools-gs__num {
    left: auto;
    right: 22px;
}

/* Step heading */
body .ldt-tools-gs__step h3 {
    color: var(--ldt-dark, #1e293b);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
    margin: 14px 0 8px;
}

/* Step description */
body .ldt-tools-gs__step p {
    color: var(--ldt-gray-600, #64748b);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 14px;
}

/* Step links — flex row of accent-bordered pills */
body .ldt-tools-gs__step-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body .ldt-tools-gs__step-links a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 140, 0, 0.08);
    border: 1px solid rgba(255, 140, 0, 0.30);
    color: var(--ldt-accent-dark, #e07a00);
    border-radius: var(--ldt-radius-pill, 9999px);
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    transition:
        background 200ms var(--ldt-ease-portal, ease),
        color 200ms var(--ldt-ease-portal, ease),
        border-color 200ms var(--ldt-ease-portal, ease),
        transform 200ms var(--ldt-ease-portal, ease);
}

body .ldt-tools-gs__step-links a:hover {
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.30);
}

[dir="rtl"] body .ldt-tools-gs__step-links a,
.ldt-rtl body .ldt-tools-gs__step-links a {
    direction: rtl;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 4. NOTICE BOX (.ldt-notice) — info panel used by budget / tools / etc.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(
        135deg,
        rgba(0, 87, 184, 0.06) 0%,
        rgba(0, 53, 128, 0.03) 100%
    );
    border: 1px solid rgba(0, 53, 128, 0.16);
    border-left: 4px solid var(--ldt-primary-light, #0057b8);
    border-radius: var(--ldt-radius-input, 0.75rem);
    color: var(--ldt-gray-700, #334155);
    font-size: 14px;
    line-height: 1.55;
    margin: 16px 0;
}

[dir="rtl"] body .ldt-notice,
.ldt-rtl body .ldt-notice {
    border-left: 1px solid rgba(0, 53, 128, 0.16);
    border-right: 4px solid var(--ldt-primary-light, #0057b8);
}

/* Notice variants by class */
body .ldt-notice--success {
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.08) 0%,
        rgba(34, 197, 94, 0.03) 100%
    );
    border-color: rgba(34, 197, 94, 0.30);
    border-left-color: rgb(21, 128, 61);
    color: rgb(21, 128, 61);
}

body .ldt-notice--warning {
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.08) 0%,
        rgba(245, 158, 11, 0.03) 100%
    );
    border-color: rgba(245, 158, 11, 0.30);
    border-left-color: rgb(180, 83, 9);
    color: rgb(146, 64, 14);
}

body .ldt-notice--error {
    background: linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.08) 0%,
        rgba(239, 68, 68, 0.03) 100%
    );
    border-color: rgba(239, 68, 68, 0.30);
    border-left-color: rgb(185, 28, 28);
    color: rgb(185, 28, 28);
}

[dir="rtl"] body .ldt-notice--success,
[dir="rtl"] body .ldt-notice--warning,
[dir="rtl"] body .ldt-notice--error,
.ldt-rtl body .ldt-notice--success,
.ldt-rtl body .ldt-notice--warning,
.ldt-rtl body .ldt-notice--error {
    border-right-color: inherit;
}

body .ldt-notice strong {
    font-weight: 800;
}

body .ldt-notice a {
    color: var(--ldt-accent-dark, #e07a00);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(255, 140, 0, 0.40);
}

body .ldt-notice a:hover {
    color: var(--ldt-accent, #ff8c00);
    text-decoration-color: var(--ldt-accent, #ff8c00);
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 5. SECTION SPACING RHYTHM ON BOOKING PAGES
 *
 * Tighten the gap between booking-search and the next section (categories or
 * featured-airlines) so they read as a continuous unit.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-main--hotels .ldt-fs,
body .ldt-main--hotels .ldt-hs,
body .ldt-main--hotels .ldt-cs,
body .ldt-main--flights .ldt-fs,
body .ldt-main--flights .ldt-hs,
body .ldt-main--flights .ldt-cs,
body .ldt-main--cars .ldt-fs,
body .ldt-main--cars .ldt-hs,
body .ldt-main--cars .ldt-cs {
    padding-bottom: 8px;
}

/* Soft separator before stats row on booking pages */
body .ldt-main--hotels .ldt-booking-content--stats,
body .ldt-main--flights .ldt-booking-content--stats,
body .ldt-main--cars .ldt-booking-content--stats {
    border-top: 1px solid rgba(0, 53, 128, 0.06);
    margin-top: 8px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 6. SAVED PAGE / COMPARE PAGE / PLANNER PAGE
 *
 * Generic polish for the planner/saved/compare pages — usually feature lists
 * of saved items.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-page--saved,
body .ldt-page--compare,
body .ldt-page--planner,
body .ldt-page--plan-trip {
    background: linear-gradient(
        180deg,
        rgba(0, 53, 128, 0.025) 0%,
        transparent 100%
    );
}

body .ldt-page--saved .ldt-page__body,
body .ldt-page--compare .ldt-page__body,
body .ldt-page--planner .ldt-page__body,
body .ldt-page--plan-trip .ldt-page__body {
    padding-top: 32px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 7. SEARCH RESULTS PAGE (search-destinations.php)
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-page--search,
body .search-results .ldt-page,
body .search-no-results .ldt-page {
    background: linear-gradient(
        180deg,
        rgba(255, 140, 0, 0.03) 0%,
        transparent 30%,
        transparent 100%
    );
}


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

@media (max-width: 768px) {

    /* Tools getting-started: tighter cards */
    body .ldt-tools-gs__step {
        padding: 18px 16px 16px;
    }

    body .ldt-tools-gs__num {
        width: 30px;
        height: 30px;
        top: -12px;
        left: 16px;
        font-size: 12px;
    }

    [dir="rtl"] body .ldt-tools-gs__num,
    .ldt-rtl body .ldt-tools-gs__num {
        right: 16px;
    }

    body .ldt-tools-gs__step h3 {
        font-size: 15px;
        margin-top: 10px;
    }

    /* Notice: tighter padding */
    body .ldt-notice {
        padding: 12px 14px;
        font-size: 13px;
    }
}


/* ─── END OF ldt-enhanced-pages.css ───────────────────────────────────────── */
