/* ==========================================================================
   Expedition Hero Widget
   Plugin: Developercode Core
   ========================================================================== */

:root {
    --exh-primary: #FF6B00;
    --exh-primary-rgb: 255, 107, 0;
    --exh-dark: #0A1628;
    --exh-dark-rgb: 10, 22, 40;
}

/* ---------- Section ---------------------------------------------------- */

.exh {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    margin: 0;
}

/* ---------- Background ------------------------------------------------- */

.exh__bg {
    position: absolute; inset: 0; z-index: 1;
}

.exh__bg img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.exh__bg-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(
        105deg,
        rgba(var(--exh-dark-rgb), 0.88) 0%,
        rgba(var(--exh-dark-rgb), 0.65) 40%,
        rgba(var(--exh-dark-rgb), 0.25) 70%,
        rgba(var(--exh-dark-rgb), 0.15) 100%
    );
}

.exh__bg-vignette {
    position: absolute; inset: 0; z-index: 3;
    background: radial-gradient(ellipse at 80% 50%, transparent 50%, rgba(var(--exh-dark-rgb), 0.3) 100%);
    pointer-events: none;
}

/* ---------- Location pins ---------------------------------------------- */

.exh__pins {
    position: absolute; inset: 0; z-index: 4; pointer-events: none;
}

.exh__pin {
    position: absolute;
    width: 28px; height: 28px;
    color: var(--exh-primary);
    filter: drop-shadow(0 2px 8px rgba(var(--exh-primary-rgb), 0.4));
    animation: exh-pin-bounce 2s ease-in-out infinite;
}
.exh__pin svg { width: 100%; height: 100%; }

.exh__pin--1 { top: 22%; right: 28%; animation-delay: 0s; }
.exh__pin--2 { top: 38%; right: 18%; animation-delay: -0.7s; }
.exh__pin--3 { top: 15%; right: 42%; animation-delay: -1.4s; opacity: 0.6; }

@keyframes exh-pin-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ---------- Inner layout ----------------------------------------------- */

.exh__inner {
    position: relative; z-index: 5;
    max-width: 1340px; width: 100%;
    margin: 0 auto; padding: 48px 48px;
    display: flex; align-items: flex-end;
    justify-content: space-between; gap: 40px;
}

/* ---------- Left column ------------------------------------------------ */

.exh__left {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    align-items: flex-start; gap: 0;
    padding-bottom: 8px;
}

/* Thumbnail card */
.exh__thumb-card {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 12px 8px 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    margin-bottom: 20px;
    animation: exh-float 6s ease-in-out infinite;
}

.exh__thumb-img {
    width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
}
.exh__thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.exh__thumb-info { display: flex; flex-direction: column; gap: 6px; }

.exh__thumb-avatars { display: flex; }
.exh__thumb-avatar {
    width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(var(--exh-dark-rgb), 0.6);
    margin-left: -6px; object-fit: cover; display: block;
}
.exh__thumb-avatar:first-child { margin-left: 0; }
.exh__thumb-avatar--ph {
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.5);
}
.exh__thumb-avatar--ph svg { width: 14px; height: 14px; }

.exh__thumb-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(255, 255, 255, 0.7);
}

/* Description */
.exh__desc {
    font-size: 12px; font-weight: 600; line-height: 1.6;
    color: #FFFFFF; letter-spacing: 1.5px;
    max-width: 280px; margin: 0 0 20px;
}

/* Badge — road-line + truck eyebrow style */
.exh__badge {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
}

.exh__badge-road {
    display: inline-flex; align-items: center; height: 2px; flex-shrink: 0;
}

.exh__badge-road-line {
    display: block; width: 48px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--exh-primary) 0px, var(--exh-primary) 8px, transparent 8px, transparent 14px);
    opacity: 0.5;
}

.exh__badge-truck {
    width: 16px; height: 16px; color: var(--exh-primary);
    flex-shrink: 0; margin-left: -2px;
    animation: exh-badge-drive 3s ease-in-out infinite;
}
@keyframes exh-badge-drive { 0%,100%{transform:translateX(0)} 50%{transform:translateX(6px)} }

.exh__badge-text {
    font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--exh-primary);
}

/* Title */
.exh__title {
    font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.08;
    color: #fff; margin: 0 0 24px; max-width: 520px;
    letter-spacing: -0.02em;
}
.exh__title-hl { color: var(--exh-primary); }

/* CTA */
.exh__cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 12px;
    background: var(--exh-primary); color: #fff;
    font-size: 14px; font-weight: 700; text-decoration: none;
    box-shadow: 0 4px 20px rgba(var(--exh-primary-rgb), 0.35);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}
.exh__cta svg { width: 16px; height: 16px; transition: transform 0.35s ease; }
.exh__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(var(--exh-primary-rgb), 0.5);
}
.exh__cta:hover svg { transform: translateX(4px); }

/* ---------- Right column ----------------------------------------------- */

.exh__right {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 12px; flex-shrink: 0; width: 280px;
}

/* Stat card */
.exh__stat-card {
    display: flex; align-items: baseline; gap: 6px;
    padding: 14px 22px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    animation: exh-float 5s 1s ease-in-out infinite;
}

.exh__stat-value {
    font-size: 32px; font-weight: 900; color: #fff; line-height: 1;
    letter-spacing: -0.02em;
}

.exh__stat-suffix {
    font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* Profile card */
.exh__profile-card {
    width: 100%; padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(var(--exh-dark-rgb), 0.2);
    position: relative;
    animation: exh-float 7s 0.5s ease-in-out infinite;
}

.exh__profile-avatar {
    width: 48px; height: 48px; border-radius: 14px; overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(var(--exh-dark-rgb), 0.1);
}
.exh__profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.exh__profile-name {
    display: block; font-size: 16px; font-weight: 800;
    color: #1e293b; line-height: 1.2;
}
.exh__profile-role {
    display: block; font-size: 12px; font-weight: 500;
    color: #64748b; margin-top: 2px;
}

.exh__profile-info { margin-bottom: 16px; }

/* Details */
.exh__profile-details {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 14px;
}

.exh__detail {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #475569;
}
.exh__detail svg { width: 16px; height: 16px; color: var(--exh-primary); flex-shrink: 0; }

/* Route */
.exh__route {
    position: relative; width: 100%; height: 24px;
    color: rgba(var(--exh-primary-rgb), 0.4); margin-bottom: 8px;
}
.exh__route svg { width: 100%; height: 100%; }

.exh__route-dot {
    position: absolute; top: 50%; width: 10px; height: 10px;
    border-radius: 50%; transform: translateY(-50%);
}
.exh__route-dot--start { left: 0; background: var(--exh-primary); box-shadow: 0 0 8px rgba(var(--exh-primary-rgb), 0.5); }
.exh__route-dot--end { right: 0; background: #475569; }

/* Arrow button */
.exh__profile-arrow {
    position: absolute; bottom: 16px; right: 16px;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--exh-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(var(--exh-primary-rgb), 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.exh__profile-arrow svg { width: 18px; height: 18px; }
.exh__profile-arrow:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 24px rgba(var(--exh-primary-rgb), 0.5);
}

/* ---------- Corner icons ----------------------------------------------- */

.exh__corner-icons {
    position: absolute; top: 20px; right: 20px; z-index: 6;
    display: flex; gap: 8px;
}

.exh__corner-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}
.exh__corner-icon svg { width: 16px; height: 16px; }

/* ---------- Animation -------------------------------------------------- */

@keyframes exh-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .exh__inner { padding: 40px 32px; gap: 32px; }
    .exh__right { width: 240px; }
    .exh__title { font-size: clamp(28px, 3.5vw, 42px); }
    .exh__pins { display: none; }
}

@media (max-width: 768px) {
    .exh { min-height: 0; border-radius: 0; }
    .exh__inner {
        flex-direction: column; align-items: flex-start;
        padding: 100px 24px 32px; gap: 24px;
    }
    .exh__right { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: stretch; }
    .exh__stat-card { flex: 1; min-width: 120px; }
    .exh__profile-card { flex: 2; min-width: 220px; }
    .exh__corner-icons { top: 16px; right: 16px; }
    .exh__thumb-card { margin-bottom: 16px; }
    .exh__desc { max-width: 100%; }

    .exh__bg-overlay {
        background: linear-gradient(
            180deg,
            rgba(var(--exh-dark-rgb), 0.5) 0%,
            rgba(var(--exh-dark-rgb), 0.85) 50%,
            rgba(var(--exh-dark-rgb), 0.92) 100%
        );
    }
}

@media (max-width: 480px) {
    .exh__inner { padding: 80px 16px 24px; }
    .exh__title { font-size: 26px; max-width: 100%; }
    .exh__desc { font-size: 11px; }
    .exh__right { flex-direction: column; }
    .exh__stat-card { align-self: stretch; }
    .exh__profile-card { width: 100%; }
    .exh__corner-icons { display: none; }
    .exh__cta { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .exh__pin, .exh__thumb-card, .exh__stat-card, .exh__profile-card, .exh__badge-truck {
        animation: none !important;
    }
}

/* ---------- Editor ----------------------------------------------------- */

.elementor-editor-active .exh__pin,
.elementor-editor-active .exh__thumb-card,
.elementor-editor-active .exh__stat-card,
.elementor-editor-active .exh__profile-card,
.elementor-editor-active .exh__badge-truck {
    animation: none !important;
}
