/*
 * ═══════════════════════════════════════════════════════════════════════════════
 * Lavisa Destinations Theme — ENHANCED PORTAL HANDOFF (E24)
 * ═══════════════════════════════════════════════════════════════════════════════
 *
 * @file        assets/css/ldt-enhanced-portal-handoff.css
 * @package     Lavisa_Destinations_Theme
 * @since       2.9.25  (E24 — Visual Enhancement Roadmap v2 — Stage 8 closing)
 * @depends     ldt-tokens-enhanced.css                  (E1)
 *              ldt-enhanced-base.css                    (E2)
 *              ldt-enhanced-animations.css              (E3 — keyframes:
 *                                                            ldt-pulse-glow,
 *                                                            ldt-icon-pulse)
 *              ldt-enhanced-sections-cta.css            (E11 — sticky-cta base)
 *              ldt-enhanced-sections-single-cards.css   (E16 — service cards)
 *              ldt-enhanced-pages.css                   (E23 — page rhythm)
 *
 *   Polishes the inline portal handoff surfaces on destination pages — the
 *   buttons / strips / sidebars that take users from "I'm reading about
 *   Dubai" to "I'm actively booking Dubai" inside the portal proper:
 *
 *     sections/sidebar/section-sidebar-cta-buttons.php       Right-rail buttons
 *     sections/sidebar/section-sidebar-deal-spotlight.php    Deal spotlight widget
 *     sections/sidebar/section-sidebar-mini-tools.php        Mini tool links
 *     sections/sidebar/section-sidebar-related-destinations.php  Mini dest list
 *     sections/sidebar/section-sidebar-key-facts.php         Quick facts widget
 *     sections/single/section-services.php                   Service cards (hover state)
 *     sections/single/section-hotels.php                     Trust strip above carousel
 *
 *   PURE CSS LAYER — no PHP partial is touched. Same approach as E4-E23.
 *   Closes Stage 8 (Components & Polish).
 *
 * ═══════════════════════════════════════════════════════════════════════════════
 */


/* ═══════════════════════════════════════════════════════════════════════════════
 * 1. SHARED SIDEBAR WIDGET BASE (.ldt-widget)
 *
 * Every sidebar widget (cta-buttons, deal-spotlight, mini-tools, related,
 * facts) shares .ldt-widget + .ldt-widget__title + .ldt-widget__body.
 * Unify polish via shared rules.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-widget {
    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.08);
    border-radius: var(--ldt-radius-card, 1.25rem);
    box-shadow: 0 4px 14px rgba(0, 53, 128, 0.06);
    padding: 18px;
    margin-bottom: 16px;
    transition:
        border-color 300ms var(--ldt-ease-portal, ease),
        box-shadow 300ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-widget:hover {
        border-color: rgba(0, 53, 128, 0.14);
        box-shadow: 0 8px 22px rgba(0, 53, 128, 0.08);
    }
}

/* Widget title — uppercase tracked with accent prefix bar */
body .ldt-widget__title {
    color: var(--ldt-dark, #1e293b);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 53, 128, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

body .ldt-widget__title::before {
    content: "";
    width: 4px;
    height: 14px;
    background: var(--ldt-gradient-accent,
                linear-gradient(180deg, #ff8c00 0%, #e07a00 100%));
    border-radius: 2px;
}

body .ldt-widget__body {
    /* No special polish — content-driven */
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 2. SIDEBAR CTA BUTTONS (.ldt-widget--cta + .ldt-cta-buttons)
 *
 * Right-rail stack of 4 booking handoff buttons (Hotels / Flights / Cars /
 * Plan-trip). Each button has icon + label + optional "From AED X" eyebrow.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Single button — flex row with icon + label + eyebrow */
body .ldt-cta-buttons__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    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-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition:
        background 250ms var(--ldt-ease-portal, ease),
        border-color 250ms var(--ldt-ease-portal, ease),
        transform 250ms var(--ldt-ease-portal, ease),
        box-shadow 250ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-cta-buttons__btn:hover {
        background: rgba(255, 140, 0, 0.06);
        border-color: rgba(255, 140, 0, 0.30);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(255, 140, 0, 0.10);
    }
}

/* Primary variant — full accent gradient (used for top CTA, e.g., Hotels) */
body .ldt-cta-buttons__btn--primary {
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: var(--ldt-shadow-accent-soft, 0 6px 16px rgba(255, 140, 0, 0.30));
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-cta-buttons__btn--primary:hover {
        background: var(--ldt-gradient-accent,
                    linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
        border-color: transparent;
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(255, 140, 0, 0.45);
        filter: brightness(1.06);
    }
}

/* Secondary / outline variant */
body .ldt-cta-buttons__btn--secondary,
body .ldt-cta-buttons__btn--outline {
    background: transparent;
    border-color: rgba(0, 53, 128, 0.20);
    color: var(--ldt-primary, #003580);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-cta-buttons__btn--secondary:hover,
    body .ldt-cta-buttons__btn--outline:hover {
        background: rgba(0, 53, 128, 0.06);
        border-color: var(--ldt-primary, #003580);
    }
}

/* Generic icon inside button */
body .ldt-cta-buttons__btn .ldt-cta-buttons__icon,
body .ldt-cta-buttons__btn > [class*="icon"]:first-child,
body .ldt-cta-buttons__btn > .emoji,
body .ldt-cta-buttons__btn > span:first-child:not([class]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.10);
    color: var(--ldt-accent, #ff8c00);
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

body .ldt-cta-buttons__btn--primary .ldt-cta-buttons__icon,
body .ldt-cta-buttons__btn--primary > [class*="icon"]:first-child,
body .ldt-cta-buttons__btn--primary > .emoji,
body .ldt-cta-buttons__btn--primary > span:first-child:not([class]) {
    background: rgba(255, 255, 255, 0.20);
    color: #ffffff;
}

/* Eyebrow ("From AED X") — secondary text below label */
body .ldt-cta-buttons__btn .ldt-cta-buttons__eyebrow,
body .ldt-cta-buttons__btn small {
    display: block;
    color: var(--ldt-gray-500, #94a3b8);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

body .ldt-cta-buttons__btn--primary .ldt-cta-buttons__eyebrow,
body .ldt-cta-buttons__btn--primary small {
    color: rgba(255, 255, 255, 0.85);
}

/* Sticky right-rail behavior */
body .ldt-widget--cta {
    position: sticky;
    top: 24px;
}

@media (max-width: 900px) {
    body .ldt-widget--cta {
        position: static;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 3. SIDEBAR DEAL SPOTLIGHT (.ldt-widget--deal-spotlight)
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-widget--deal-spotlight {
    background: linear-gradient(
        135deg,
        rgba(220, 38, 38, 0.04) 0%,
        rgba(255, 140, 0, 0.04) 100%
    );
    border-color: rgba(255, 140, 0, 0.30);
}

body .ldt-widget--deal-spotlight .ldt-widget__title {
    color: var(--ldt-accent-dark, #e07a00);
}

body .ldt-widget--deal-spotlight .ldt-widget__title::before {
    background: linear-gradient(
        180deg,
        #dc2626 0%,
        #ff8c00 100%
    );
}

body .ldt-deal-spot__title {
    color: var(--ldt-dark, #1e293b);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 4. SIDEBAR MINI-TOOLS (.ldt-widget--mini-tools + .ldt-mini-tools__list)
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-mini-tools__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body .ldt-mini-tools__list > li {
    list-style: none;
}

body .ldt-mini-tools__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: var(--ldt-gray-700, #334155);
    font-weight: 600;
    font-size: 13px;
    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),
        gap 200ms var(--ldt-ease-portal, ease);
}

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

/* Tool icon (emoji) inside list items — accent-tint circle */
body .ldt-mini-tools__list a > span:first-child,
body .ldt-mini-tools__list a > .emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.10);
    color: var(--ldt-accent, #ff8c00);
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1;
    transition:
        background 200ms var(--ldt-ease-portal, ease),
        color 200ms var(--ldt-ease-portal, ease);
}

body .ldt-mini-tools__list a:hover > span:first-child,
body .ldt-mini-tools__list a:hover > .emoji {
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
    color: #ffffff;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 5. SIDEBAR RELATED DESTINATIONS (.ldt-widget--related + .ldt-widget-dest-mini)
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-widget--related .ldt-widget__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body .ldt-widget-dest-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: var(--ldt-dark, #1e293b);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border-radius: var(--ldt-radius-input, 0.75rem);
    transition:
        background 200ms var(--ldt-ease-portal, ease),
        transform 200ms var(--ldt-ease-portal, ease);
}

body .ldt-widget-dest-mini:hover {
    background: rgba(0, 53, 128, 0.04);
    transform: translateX(2px);
}

[dir="rtl"] body .ldt-widget-dest-mini:hover,
.ldt-rtl body .ldt-widget-dest-mini:hover {
    transform: translateX(-2px);
}

/* Destination thumb (image inside mini-card) */
body .ldt-widget-dest-mini img {
    width: 36px;
    height: 36px;
    border-radius: var(--ldt-radius-input, 0.75rem);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 53, 128, 0.08);
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 6. SIDEBAR KEY FACTS (.ldt-widget--facts + .ldt-facts-list)
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

body .ldt-facts-list > li {
    list-style: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 53, 128, 0.08);
    color: var(--ldt-gray-700, #334155);
    font-size: 13px;
}

body .ldt-facts-list > li:last-child {
    border-bottom: none;
}

body .ldt-facts-list > li > strong {
    color: var(--ldt-dark, #1e293b);
    font-weight: 700;
    text-align: right;
}

[dir="rtl"] body .ldt-facts-list > li > strong,
.ldt-rtl body .ldt-facts-list > li > strong {
    text-align: left;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 7. SERVICE CARD HOVER (.ldt-service-card) — adds tooltip-style polish
 *
 * The service-card was polished in E16; here we add the deeper hover
 * affordance: featured pulse + accent-shadow lift, color-tinted icon halo.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-service-card {
    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 12px rgba(0, 53, 128, 0.05);
    overflow: hidden;
    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-service-card:hover {
        transform: translateY(-3px);
        border-color: rgba(255, 140, 0, 0.30);
        box-shadow:
            0 14px 30px rgba(255, 140, 0, 0.12),
            0 0 0 1px rgba(255, 140, 0, 0.10);
    }
}

/* Featured service card — accent gradient frame */
body .ldt-service-card--featured {
    background: linear-gradient(
        135deg,
        rgba(255, 140, 0, 0.06) 0%,
        rgba(255, 140, 0, 0.02) 100%
    );
    border-color: rgba(255, 140, 0, 0.30);
    box-shadow:
        0 6px 18px rgba(255, 140, 0, 0.10),
        0 0 0 1px rgba(255, 140, 0, 0.10);
}

/* Icon wrap — color comes from PHP inline (s_color + 15 alpha hex) */
body .ldt-service-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--ldt-radius-input, 0.75rem);
    margin: 18px;
    font-size: 1.75rem;
    line-height: 1;
    transition:
        transform 300ms var(--ldt-ease-portal, ease),
        box-shadow 300ms var(--ldt-ease-portal, ease);
}

@media (hover: hover) and (pointer: fine) {
    body .ldt-service-card:hover .ldt-service-card__icon-wrap {
        transform: scale(1.06) rotate(-3deg);
        box-shadow: 0 6px 16px rgba(0, 53, 128, 0.15);
    }
}

body .ldt-service-card__body {
    padding: 0 18px 14px;
}

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

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

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

body .ldt-service-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 10px;
}

body .ldt-service-card__price-from {
    color: var(--ldt-gray-500, #94a3b8);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body .ldt-service-card__price-amount {
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    /* color comes from PHP inline */
}

body .ldt-service-card__actions {
    padding: 0 18px 16px;
    border-top: 1px solid rgba(0, 53, 128, 0.06);
    padding-top: 12px;
    margin-top: auto;
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 8. HOTELS TRUST STRIP — pill row above the carousel
 *
 * Add a "Best price guarantee" trust strip above .ldt-hotels__carousel.
 * Hooks off the existing .ldt-hotels__header structure.
 * ═══════════════════════════════════════════════════════════════════════════════ */

/* If the PHP markup includes a __trust-strip element, polish it.
   Falls back gracefully if not present. */
body .ldt-hotels__trust-strip,
body .ldt-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    margin: 14px 0 18px;
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.04) 0%,
        rgba(0, 53, 128, 0.04) 100%
    );
    border: 1px solid rgba(34, 197, 94, 0.20);
    border-radius: var(--ldt-radius-input, 0.75rem);
}

body .ldt-hotels__trust-chip,
body .ldt-trust-strip__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ldt-dark, #1e293b);
    border-radius: var(--ldt-radius-pill, 9999px);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body .ldt-hotels__trust-chip > span:first-child,
body .ldt-trust-strip__chip > span:first-child,
body .ldt-hotels__trust-chip > .emoji,
body .ldt-trust-strip__chip > .emoji {
    color: rgb(21, 128, 61);
    font-size: 14px;
    animation: ldt-icon-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    body .ldt-hotels__trust-chip > span:first-child,
    body .ldt-trust-strip__chip > span:first-child,
    body .ldt-hotels__trust-chip > .emoji,
    body .ldt-trust-strip__chip > .emoji {
        animation: none;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 9. SECTION-HOTELS "SEE MORE" DEEP-LINK PILL
 *
 * Polish for any "See more hotels in {city} →" deep-link pill that appears
 * in the hotels section header or after the carousel.
 * ═══════════════════════════════════════════════════════════════════════════════ */

body .ldt-hotels__see-more,
body .ldt-hotels__view-all,
body .ldt-section-deep-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 53, 128, 0.06);
    border: 1px solid rgba(0, 53, 128, 0.10);
    color: var(--ldt-primary, #003580);
    border-radius: var(--ldt-radius-pill, 9999px);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition:
        background 250ms var(--ldt-ease-portal, ease),
        color 250ms var(--ldt-ease-portal, ease),
        border-color 250ms var(--ldt-ease-portal, ease),
        gap 250ms var(--ldt-ease-portal, ease),
        transform 250ms var(--ldt-ease-portal, ease);
}

body .ldt-hotels__see-more:hover,
body .ldt-hotels__view-all:hover,
body .ldt-section-deep-link:hover {
    background: var(--ldt-gradient-accent,
                linear-gradient(135deg, #ff8c00 0%, #e07a00 100%));
    border-color: transparent;
    color: #ffffff;
    gap: 12px;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.30);
}


/* ═══════════════════════════════════════════════════════════════════════════════
 * 10. RESPONSIVE
 * ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Sidebar widgets: tighter padding */
    body .ldt-widget {
        padding: 14px;
    }

    body .ldt-widget__title {
        font-size: 12px;
    }

    /* CTA buttons: tighter */
    body .ldt-cta-buttons__btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    body .ldt-cta-buttons__btn .ldt-cta-buttons__icon,
    body .ldt-cta-buttons__btn > [class*="icon"]:first-child,
    body .ldt-cta-buttons__btn > .emoji {
        width: 28px;
        height: 28px;
    }

    /* Service card: tighter icon wrap */
    body .ldt-service-card__icon-wrap {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        margin: 14px;
    }

    /* Trust strip: tighter */
    body .ldt-hotels__trust-strip,
    body .ldt-trust-strip {
        padding: 8px 12px;
    }
}


/* ─── END OF ldt-enhanced-portal-handoff.css ──────────────────────────────── */
