/*
 * ═══════════════════════════════════════════════════════════════════════════════
 * Lavisa Destinations Theme — ENHANCED SUPPLEMENTARY PAGES (E26)
 * ═══════════════════════════════════════════════════════════════════════════════
 *
 * @file        assets/css/ldt-enhanced-pages-supplementary.css
 * @package     Lavisa_Destinations_Theme
 * @since       2.9.27  (E26 — Visual Enhancement Roadmap v2 — closes Stage 9)
 * @depends     ldt-tokens-enhanced.css                       (E1)
 *              ldt-enhanced-base.css                         (E2)
 *              ldt-enhanced-animations.css                   (E3)
 *              ldt-enhanced-components.css                   (E22 — visa card, save)
 *              ldt-enhanced-pages.css                        (E23 — page rhythm)
 *              ldt-enhanced-pages-about-contact.css          (E25)
 *
 *   Polishes the supplementary page templates — tools, guide, browse,
 *   saved, sitemap, legal, quotation pages. Tool calculators / converters
 *   themselves were polished by E21; this layer adds the page-specific
 *   decorations:
 *
 *     pages/page-visa-checker.php       Visa step list + disclaimer
 *     pages/page-guide.php              Guide editorial layout + TOC
 *     pages/page-plan-trip.php          Multi-step planner
 *     pages/page-saved.php              Wishlist with empty state
 *     pages/page-sitemap.php            Auto-generated sitemap
 *     pages/page-terms.php              Legal page + decorated header
 *     pages/page-privacy.php            Same template
 *     pages/page-quotation-view.php     Customer quotation viewer
 *
 *   PURE CSS LAYER — no PHP partial is touched. Same approach as E4-E25.
 *   Closes Stage 9 (Supplementary Pages).
 *
 * ═══════════════════════════════════════════════════════════════════════════════
 */


/* ═══════════════════════════════════════════════════════════════════════════════
 * 1. VISA CHECKER PAGE — info + numbered steps + disclaimer
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-visa-page-info {
    max-width: 720px;
    margin: 32px auto 0;
    text-align: center;
}

body .ldt-visa-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
    text-align: left;
    counter-reset: ldt-visa-step;
}

[dir="rtl"] body .ldt-visa-steps,
.ldt-rtl body .ldt-visa-steps {
    text-align: right;
}

@media (max-width: 768px) {
    body .ldt-visa-steps {
        grid-template-columns: 1fr;
    }
}

body .ldt-visa-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    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);
    counter-increment: ldt-visa-step;
    transition:
        transform 300ms var(--ldt-ease-portal, ease),
        border-color 300ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-visa-step:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 140, 0, 0.30);
        box-shadow: 0 10px 24px rgba(0, 53, 128, 0.10);
    }
}

/* Number marker — accent gradient circle */
body .ldt-visa-step > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    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: 13px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.30);
}

body .ldt-visa-step > p {
    color: var(--ldt-gray-700, #334155);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    font-weight: 500;
}

body .ldt-visa-disclaimer {
    color: var(--ldt-gray-500, #94a3b8);
    font-size: 12px;
    font-style: italic;
    text-align: center;
    margin: 8px 0 0;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 2. GUIDE PAGE (.ldt-main--guide) — editorial layout
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-main--guide {
    background: linear-gradient(
        180deg,
        rgba(0, 53, 128, 0.020) 0%,
        transparent 30%,
        transparent 100%
    );
}

body .ldt-guide-wrap {
    padding: 32px 0 64px;
}

/* Layout — article + floating TOC sidebar */
body .ldt-guide-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 1024px) {
    body .ldt-guide-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Article container */
body .ldt-guide-content {
    max-width: 760px;
    margin: 0 auto;
}

/* Actions row (save / share) at top of article */
body .ldt-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 53, 128, 0.06);
}

/* Section headings — anchor target */
body .ldt-guide-section {
    margin-bottom: 36px;
    scroll-margin-top: 96px;  /* offset for sticky header */
}

body .ldt-guide-section h2 {
    color: var(--ldt-dark, #1e293b);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    position: relative;
    padding-left: 18px;
}

[dir="rtl"] body .ldt-guide-section h2,
.ldt-rtl body .ldt-guide-section h2 {
    padding-left: 0;
    padding-right: 18px;
}

body .ldt-guide-section h2::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 4px;
    background: var(--ldt-gradient-accent,
                linear-gradient(180deg, #ff8c00 0%, #e07a00 100%));
    border-radius: 2px;
}

[dir="rtl"] body .ldt-guide-section h2::before,
.ldt-rtl body .ldt-guide-section h2::before {
    left: auto;
    right: 0;
}

/* Lead paragraph — first paragraph drop-cap style */
body .ldt-guide-lead {
    color: var(--ldt-gray-800, #1e293b);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.65;
    margin: 0 0 20px;
}

body .ldt-guide-lead::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.85;
    padding: 4px 10px 0 0;
    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);
    font-weight: 800;
    font-family: var(--ldt-font-display, 'Poppins', sans-serif);
}

[dir="rtl"] body .ldt-guide-lead::first-letter,
.ldt-rtl body .ldt-guide-lead::first-letter {
    float: right;
    padding: 4px 0 0 10px;
}

/* Prose body — long-form text */
body .ldt-guide-prose,
body .ldt-guide-content p:not(.ldt-guide-lead) {
    color: var(--ldt-gray-700, #334155);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 16px;
}

body .ldt-guide-prose p {
    margin: 0 0 16px;
}

body .ldt-guide-prose strong {
    color: var(--ldt-dark, #1e293b);
    font-weight: 700;
}

body .ldt-guide-prose a {
    color: var(--ldt-accent-dark, #e07a00);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 140, 0, 0.40);
    text-underline-offset: 3px;
    transition:
        color 200ms var(--ldt-ease-portal, ease),
        text-decoration-color 200ms var(--ldt-ease-portal, ease);
}

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

body .ldt-guide-prose blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 140, 0, 0.06) 0%,
        rgba(0, 53, 128, 0.04) 100%
    );
    border-left: 4px solid var(--ldt-accent, #ff8c00);
    border-radius: 0 var(--ldt-radius-input, 0.75rem) var(--ldt-radius-input, 0.75rem) 0;
    color: var(--ldt-gray-800, #1e293b);
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.6;
}

[dir="rtl"] body .ldt-guide-prose blockquote,
.ldt-rtl body .ldt-guide-prose blockquote {
    border-left: none;
    border-right: 4px solid var(--ldt-accent, #ff8c00);
    border-radius: var(--ldt-radius-input, 0.75rem) 0 0 var(--ldt-radius-input, 0.75rem);
}

/* Highlights grid — numbered cards */
body .ldt-guide-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

body .ldt-guide-highlight {
    position: relative;
    padding: 18px 18px 18px 56px;
    background: var(--ldt-glass-light, rgba(255, 255, 255, 0.92));
    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);
}

[dir="rtl"] body .ldt-guide-highlight,
.ldt-rtl body .ldt-guide-highlight {
    padding: 18px 56px 18px 18px;
}

body .ldt-guide-highlight__num {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ldt-font-mono, 'JetBrains Mono', monospace);
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.35);
}

[dir="rtl"] body .ldt-guide-highlight__num,
.ldt-rtl body .ldt-guide-highlight__num {
    left: auto;
    right: 18px;
}

/* Tips list — pro-tip style */
body .ldt-guide-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

body .ldt-guide-tip {
    padding: 14px 18px;
    background: rgba(255, 140, 0, 0.04);
    border: 1px solid rgba(255, 140, 0, 0.20);
    border-left: 4px solid var(--ldt-accent, #ff8c00);
    border-radius: var(--ldt-radius-input, 0.75rem);
    color: var(--ldt-gray-800, #1e293b);
    font-size: 0.9375rem;
    line-height: 1.6;
}

[dir="rtl"] body .ldt-guide-tip,
.ldt-rtl body .ldt-guide-tip {
    border-left: 1px solid rgba(255, 140, 0, 0.20);
    border-right: 4px solid var(--ldt-accent, #ff8c00);
}

body .ldt-guide-tip strong {
    color: var(--ldt-accent-dark, #e07a00);
    font-weight: 700;
}

/* Sidebar TOC */
body .ldt-guide-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
}

@media (max-width: 1024px) {
    body .ldt-guide-sidebar {
        position: static;
    }
}

body .ldt-guide-toc__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body .ldt-guide-toc__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: var(--ldt-gray-700, #334155);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--ldt-radius-input, 0.75rem);
    transition:
        background 200ms var(--ldt-ease-portal, ease),
        color 200ms var(--ldt-ease-portal, ease);
}

body .ldt-guide-toc__link:hover,
body .ldt-guide-toc__link.is-active {
    background: rgba(255, 140, 0, 0.08);
    color: var(--ldt-accent-dark, #e07a00);
}

body .ldt-guide-toc__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 53, 128, 0.08);
    color: var(--ldt-primary, #003580);
    font-family: var(--ldt-font-mono, 'JetBrains Mono', monospace);
    font-weight: 800;
    font-size: 10px;
    flex-shrink: 0;
    transition:
        background 200ms var(--ldt-ease-portal, ease),
        color 200ms var(--ldt-ease-portal, ease);
}

body .ldt-guide-toc__link:hover .ldt-guide-toc__num,
body .ldt-guide-toc__link.is-active .ldt-guide-toc__num {
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
    color: #ffffff;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 3. PLAN-YOUR-TRIP PAGE (.ldt-main--planyourtrip) — multi-step planner
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-main--planyourtrip {
    background: linear-gradient(
        180deg,
        rgba(0, 53, 128, 0.020) 0%,
        rgba(255, 140, 0, 0.015) 60%,
        transparent 100%
    );
}

/* Step indicator bar */
body .ldt-pyt-steps {
    padding: 32px 0 16px;
}

body .ldt-pyt-steps__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 16px;
    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-pill, 9999px);
    box-shadow: 0 4px 14px rgba(0, 53, 128, 0.06);
}

body .ldt-pyt-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: var(--ldt-gray-500, #94a3b8);
    font-size: 13px;
    font-weight: 600;
    transition: color 250ms var(--ldt-ease-portal, ease);
}

body .ldt-pyt-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 53, 128, 0.08);
    color: var(--ldt-gray-500, #94a3b8);
    font-family: var(--ldt-font-mono, 'JetBrains Mono', monospace);
    font-weight: 800;
    font-size: 12px;
    transition:
        background 300ms var(--ldt-ease-portal, ease),
        color 300ms var(--ldt-ease-portal, ease),
        box-shadow 300ms var(--ldt-ease-portal, ease);
}

body .ldt-pyt-step.active .ldt-pyt-step__num {
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.40);
}

body .ldt-pyt-step.active {
    color: var(--ldt-dark, #1e293b);
    font-weight: 700;
}

/* Completed steps */
body .ldt-pyt-step.completed .ldt-pyt-step__num {
    background: rgba(34, 197, 94, 0.16);
    color: rgb(21, 128, 61);
}

/* Connecting line between steps */
body .ldt-pyt-step__line {
    flex: 1;
    height: 2px;
    background: rgba(0, 53, 128, 0.10);
    border-radius: 1px;
    max-width: 40px;
}

@media (max-width: 600px) {
    body .ldt-pyt-step__label {
        display: none;
    }
    body .ldt-pyt-step__line {
        max-width: 24px;
    }
}

/* Form section */
body .ldt-pyt-form-section {
    padding: 16px 0 64px;
}

body .ldt-pyt-form {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px;
    background: var(--ldt-glass-strong-light, rgba(255, 255, 255, 0.96));
    -webkit-backdrop-filter: blur(20px) saturate(180%);
            backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 53, 128, 0.08);
    border-radius: var(--ldt-radius-card, 1.25rem);
    box-shadow:
        0 12px 32px rgba(0, 53, 128, 0.10),
        0 0 0 1px rgba(255, 140, 0, 0.06);
}

/* Panel — one per step (only the active is shown) */
body .ldt-pyt-panel {
    display: none;
}

body .ldt-pyt-panel.active {
    display: block;
    animation: ldt-fade-up 350ms var(--ldt-ease-portal, ease);
}

@media (prefers-reduced-motion: reduce) {
    body .ldt-pyt-panel.active { animation: none; }
}

body .ldt-pyt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 600px) {
    body .ldt-pyt-row {
        grid-template-columns: 1fr;
    }
}

body .ldt-pyt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

body .ldt-pyt-field-label,
body .ldt-pyt-field > label {
    color: var(--ldt-gray-600, #64748b);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body .ldt-pyt-field input,
body .ldt-pyt-field select,
body .ldt-pyt-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 53, 128, 0.04);
    border: 1px solid rgba(0, 53, 128, 0.10);
    border-radius: var(--ldt-radius-input, 0.75rem);
    color: var(--ldt-dark, #1e293b);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition:
        background 200ms var(--ldt-ease-portal, ease),
        border-color 200ms var(--ldt-ease-portal, ease),
        box-shadow 200ms var(--ldt-ease-portal, ease);
}

body .ldt-pyt-field input:focus,
body .ldt-pyt-field select:focus,
body .ldt-pyt-field textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--ldt-accent, #ff8c00);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.18);
}

body .ldt-pyt-hint {
    color: var(--ldt-gray-600, #64748b);
    font-size: 13px;
    font-style: italic;
    background: rgba(255, 140, 0, 0.04);
    border: 1px dashed rgba(255, 140, 0, 0.30);
    border-radius: var(--ldt-radius-input, 0.75rem);
    padding: 10px 14px;
    margin: 14px 0 0;
}

/* Nav row at bottom of form (Back / Next / Submit) */
body .ldt-pyt-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 53, 128, 0.06);
}

/* Submit success message */
body .ldt-pyt-msg {
    padding: 14px 18px;
    border-radius: var(--ldt-radius-input, 0.75rem);
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
}

body .ldt-pyt-msg.is-success {
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.30);
    color: rgb(21, 128, 61);
    animation: ldt-cf-success-pulse 600ms ease;
}

body .ldt-pyt-msg.is-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.30);
    color: rgb(185, 28, 28);
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 4. SAVED PAGE (.ldt-main--saved) — wishlist
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-main--saved {
    background: linear-gradient(
        180deg,
        rgba(255, 140, 0, 0.025) 0%,
        transparent 30%,
        transparent 100%
    );
}

body .ldt-saved-wrap {
    padding: 32px 0 64px;
}

/* Loading state */
body .ldt-saved-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--ldt-gray-500, #94a3b8);
    font-size: 14px;
    font-weight: 600;
}

/* Empty state */
body .ldt-saved-empty {
    text-align: center;
    padding: 56px 24px;
    background: var(--ldt-glass-light, rgba(255, 255, 255, 0.92));
    border: 1px dashed rgba(0, 53, 128, 0.16);
    border-radius: var(--ldt-radius-card, 1.25rem);
    max-width: 560px;
    margin: 0 auto;
}

body .ldt-saved-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(255, 140, 0, 0.10) 0%,
        rgba(0, 53, 128, 0.06) 100%
    );
    border: 1px solid rgba(255, 140, 0, 0.20);
    color: var(--ldt-accent, #ff8c00);
    font-size: 3rem;
    margin-bottom: 18px;
}

/* Header */
body .ldt-saved-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 53, 128, 0.06);
}

body .ldt-saved-count {
    color: var(--ldt-dark, #1e293b);
    font-weight: 700;
    font-size: 15px;
}

body .ldt-saved-count strong {
    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);
    font-weight: 800;
}

/* Cards grid */
body .ldt-saved-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

/* Card wrap with remove button */
body .ldt-saved-card-wrap {
    position: relative;
    transition: transform 350ms var(--ldt-ease-portal, ease);
}

body .ldt-saved-card-wrap:hover {
    transform: translateY(-3px);
}

/* Remove button — circular ✕ at top-right */
body .ldt-saved-card-wrap__remove {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 53, 128, 0.12);
    color: var(--ldt-gray-700, #334155);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    opacity: 0;
    transform: scale(0.92);
    transition:
        opacity 250ms var(--ldt-ease-portal, ease),
        transform 250ms var(--ldt-ease-portal, ease),
        background 250ms var(--ldt-ease-portal, ease),
        color 250ms var(--ldt-ease-portal, ease);
}

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

body .ldt-saved-card-wrap:hover .ldt-saved-card-wrap__remove,
body .ldt-saved-card-wrap:focus-within .ldt-saved-card-wrap__remove {
    opacity: 1;
    transform: scale(1);
}

body .ldt-saved-card-wrap__remove:hover {
    background: rgb(239, 68, 68);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.40);
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 5. LEGAL PAGES (.ldt-main--legal) — terms / privacy / sitemap
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-main--legal {
    background: linear-gradient(
        180deg,
        rgba(0, 53, 128, 0.030) 0%,
        transparent 18%,
        transparent 100%
    );
}

/* Legal hero (decorated header) */
body .ldt-legal-hero {
    padding: 64px 0 32px;
    background: linear-gradient(
        135deg,
        rgba(0, 53, 128, 0.08) 0%,
        rgba(255, 140, 0, 0.04) 100%
    );
    position: relative;
    overflow: hidden;
}

body .ldt-legal-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

[dir="rtl"] body .ldt-legal-hero::before,
.ldt-rtl body .ldt-legal-hero::before {
    right: auto;
    left: -120px;
}

body .ldt-legal-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

body .ldt-legal-hero__inner h1 {
    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);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

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

/* Legal content body */
body .ldt-legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 0 64px;
    color: var(--ldt-gray-700, #334155);
    font-size: 1rem;
    line-height: 1.75;
}

body .ldt-legal-content h2 {
    color: var(--ldt-dark, #1e293b);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    margin: 36px 0 14px;
    padding-left: 16px;
    position: relative;
    scroll-margin-top: 96px;
}

[dir="rtl"] body .ldt-legal-content h2,
.ldt-rtl body .ldt-legal-content h2 {
    padding-left: 0;
    padding-right: 16px;
}

body .ldt-legal-content h2::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 4px;
    background: var(--ldt-gradient-accent,
                linear-gradient(180deg, #ff8c00 0%, #e07a00 100%));
    border-radius: 2px;
}

[dir="rtl"] body .ldt-legal-content h2::before,
.ldt-rtl body .ldt-legal-content h2::before {
    left: auto;
    right: 0;
}

body .ldt-legal-content h3 {
    color: var(--ldt-dark, #1e293b);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 24px 0 10px;
}

body .ldt-legal-content p {
    margin: 0 0 14px;
}

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

body .ldt-legal-content a:hover {
    color: var(--ldt-accent, #ff8c00);
}

body .ldt-legal-content ul,
body .ldt-legal-content ol {
    padding-left: 24px;
    margin: 0 0 14px;
}

[dir="rtl"] body .ldt-legal-content ul,
[dir="rtl"] body .ldt-legal-content ol,
.ldt-rtl body .ldt-legal-content ul,
.ldt-rtl body .ldt-legal-content ol {
    padding-left: 0;
    padding-right: 24px;
}

body .ldt-legal-content li {
    margin-bottom: 6px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 6. SITEMAP (.ldt-sitemap__grid + .ldt-sitemap__country)
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-sitemap__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

body .ldt-sitemap__country {
    padding: 18px;
    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);
    transition:
        transform 300ms var(--ldt-ease-portal, ease),
        border-color 300ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-sitemap__country:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 140, 0, 0.30);
    }
}

body .ldt-sitemap__country h3,
body .ldt-sitemap__country > strong:first-child {
    color: var(--ldt-dark, #1e293b);
    font-weight: 800;
    font-size: 14px;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 53, 128, 0.06);
}

body .ldt-sitemap__country ul,
body .ldt-sitemap__country ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body .ldt-sitemap__country a {
    display: block;
    padding: 4px 8px;
    color: var(--ldt-gray-700, #334155);
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    transition:
        background 200ms var(--ldt-ease-portal, ease),
        color 200ms var(--ldt-ease-portal, ease);
}

body .ldt-sitemap__country a:hover {
    background: rgba(255, 140, 0, 0.06);
    color: var(--ldt-accent-dark, #e07a00);
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 7. QUOTATION VIEW (.ldt-main--quotation)
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-main--quotation {
    background: linear-gradient(
        180deg,
        rgba(0, 53, 128, 0.025) 0%,
        rgba(255, 140, 0, 0.015) 60%,
        transparent 100%
    );
    min-height: 100vh;
    padding: 32px 0;
}

/* The PHP file uses inline styles + .ldt-btn classes; we polish glass card
   + total + status pill. */
body .ldt-main--quotation > .ldt-container > div[style*="background"],
body .ldt-quotation-card {
    background: var(--ldt-glass-strong-light, rgba(255, 255, 255, 0.96)) !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 12px 32px rgba(0, 53, 128, 0.10),
        0 0 0 1px rgba(255, 140, 0, 0.06);
}


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

@media (max-width: 768px) {

    /* Visa: tighter steps */
    body .ldt-visa-step {
        padding: 14px;
    }

    /* Guide: tighter section spacing */
    body .ldt-guide-wrap {
        padding: 24px 0 48px;
    }

    body .ldt-guide-section {
        margin-bottom: 28px;
    }

    body .ldt-guide-lead::first-letter {
        font-size: 3rem;
    }

    /* Plan-trip: smaller form */
    body .ldt-pyt-form {
        padding: 20px;
    }

    /* Legal: tighter hero */
    body .ldt-legal-hero {
        padding: 48px 0 24px;
    }
}


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