/* =========================================
   ELPIS TRAVEL – PREMIUM HEADER v2
   ========================================= */
:root {
    --hdr-bg: #ffffff;
    --hdr-text: #1a2340;
    --hdr-muted: #6b7280;
    --hdr-accent: #4f8ef7;
    --hdr-gold: #D4AF37;
    --hdr-green: #25d366;
    --topbar-bg: #0f1d3a;
    --topbar-text: #94a3b8;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---- TOP BAR ---- */
.elpis-topbar {
    background: var(--topbar-bg);
    font-size: 12.5px;
    font-weight: 500;
    padding: 9px 0;
    position: relative;
    z-index: 1060;
}
.elpis-topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.elpis-topbar-left  { display: flex; align-items: center; gap: 18px; }
.elpis-topbar-left a {
    color: var(--topbar-text); text-decoration: none;
    display: flex; align-items: center; gap: 6px;
    transition: var(--transition);
}
.elpis-topbar-left a:hover { color: #fff; }
.elpis-topbar-left a.wa-link { color: #25d366 !important; }
.elpis-topbar-left a.wa-link:hover { color: #1faf56 !important; }
.topbar-divider { width: 1px; height: 13px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.elpis-topbar-right { display: flex; align-items: center; gap: 4px; }
.topbar-social-link { color: var(--topbar-text); padding: 4px 8px; text-decoration: none; transition: var(--transition); border-radius: 5px; font-size: 13px; }
.topbar-social-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.topbar-sep { width: 1px; height: 13px; background: rgba(255,255,255,0.12); margin: 0 6px; flex-shrink: 0; }
.topbar-agency-btn { background: var(--hdr-accent); color: #fff !important; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; transition: var(--transition); display: flex; align-items: center; gap: 5px; }
.topbar-agency-btn:hover { background: #3b7ced; box-shadow: 0 4px 10px rgba(79,142,247,0.3); }

/* Topbar Dropdown */
.tb-dropdown { position: relative; }
.tb-dropdown > a {
    color: var(--topbar-text); text-decoration: none;
    display: flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 6px;
    transition: var(--transition); font-size: 12px;
}
.tb-dropdown > a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.tb-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 4px);
    background: #fff; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    min-width: 150px; padding: 8px 0; z-index: 1200;
}
.tb-dropdown.open .tb-menu { display: block; }
.tb-menu a {
    display: block; padding: 10px 18px; color: var(--hdr-text);
    text-decoration: none; font-size: 13px; font-weight: 500;
    transition: var(--transition);
}
.tb-menu a:hover { background: #f0f6ff; color: var(--hdr-accent); }
.tb-menu a.is-active { color: var(--hdr-accent); font-weight: 700; }

/* ---- MAIN HEADER ---- */
.elpis-header {
    background: var(--hdr-bg);
    position: sticky; top: 0; z-index: 1050;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}
.elpis-header.scrolled { box-shadow: 0 6px 30px rgba(15,29,58,0.10); }
.elpis-header-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 12px 0; gap: 16px;
}

/* Logo */
.elpis-logo { flex-shrink: 0; text-decoration: none; display: block; }
.elpis-logo img { max-height: 46px; width: auto; transition: transform 0.35s ease; display: block; }
.elpis-logo:hover img { transform: scale(1.04); }

/* Desktop Nav */
.elpis-nav { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.elpis-nav li a {
    display: block; color: var(--hdr-text); font-size: 14px; font-weight: 600;
    padding: 9px 13px; border-radius: 50px; text-decoration: none;
    position: relative; transition: var(--transition); white-space: nowrap;
}
.elpis-nav li a::after {
    content: ''; position: absolute; bottom: 4px; left: 50%;
    transform: translateX(-50%); width: 0; height: 2.5px;
    background: var(--hdr-accent); border-radius: 2px;
    transition: width 0.3s ease;
}
.elpis-nav li a:hover, .elpis-nav li.active a {
    color: var(--hdr-accent); background: rgba(79,142,247,0.07);
}
.elpis-nav li.active a::after, .elpis-nav li a:hover::after { width: 20px; }

/* Header Right Actions */
.elpis-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Search button */
.hdr-btn-icon {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.09);
    background: transparent; color: var(--hdr-text);
    font-size: 17px; cursor: pointer; transition: var(--transition);
    text-decoration: none;
}
.hdr-btn-icon:hover { background: rgba(79,142,247,0.08); border-color: var(--hdr-accent); color: var(--hdr-accent); }

/* WhatsApp CTA */
.hdr-btn-wa {
    display: flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 50px;
    background: linear-gradient(135deg, #25d366 0%, #0ea35a 100%);
    color: #fff !important; font-size: 13px; font-weight: 700;
    text-decoration: none; transition: var(--transition); white-space: nowrap;
    box-shadow: 0 4px 16px rgba(37,211,102,0.22);
    border: none; cursor: pointer;
}
.hdr-btn-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.35); color: #fff !important; }
.hdr-btn-wa i { font-size: 17px; }

/* Call CTA */
.hdr-btn-call {
    display: flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 50px;
    background: linear-gradient(135deg, #D4AF37 0%, #a88618 100%);
    color: #fff !important; font-size: 13px; font-weight: 700;
    text-decoration: none; transition: var(--transition); white-space: nowrap;
    box-shadow: 0 4px 16px rgba(212,175,55,0.25);
    border: none; cursor: pointer;
}
.hdr-btn-call:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,175,55,0.38); color: #fff !important; }
.hdr-btn-call i { font-size: 15px; animation: hdrRing 3s 1.5s infinite; }

@keyframes hdrRing {
    0%,55%,100% { transform: rotate(0); }
    5%,25%      { transform: rotate(-14deg); }
    15%,35%     { transform: rotate(14deg); }
}

/* Hamburger */
.elpis-hamburger {
    display: none; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 42px; height: 42px; border-radius: 10px;
    border: 1.5px solid rgba(0,0,0,0.09); background: transparent;
    cursor: pointer; transition: var(--transition);
}
.elpis-hamburger span { display: block; width: 22px; height: 2px; background: var(--hdr-text); border-radius: 2px; }
.elpis-hamburger:hover { background: rgba(79,142,247,0.06); border-color: var(--hdr-accent); }

/* ---- SEARCH OVERLAY ---- */
.elpis-search-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(10,20,40,0.80); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); z-index: 2000;
    align-items: flex-start; justify-content: center; padding-top: 13vh;
}
.elpis-search-overlay.is-open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.elpis-search-wrap { width: 90%; max-width: 700px; }
.elpis-search-box {
    background: #fff; border-radius: 20px; padding: 6px 20px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    animation: slideDown .22s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
.elpis-search-box .s-icon { font-size: 22px; color: var(--hdr-accent); flex-shrink: 0; }
.elpis-search-box input {
    flex: 1; border: none; outline: none; font-size: 18px;
    font-family: inherit; font-weight: 500; color: var(--hdr-text);
    background: transparent; padding: 16px 0;
}
.elpis-search-box input::placeholder { color: #adb5bd; }
.elpis-search-close {
    background: none; border: none; cursor: pointer; color: #adb5bd;
    font-size: 22px; transition: var(--transition); flex-shrink: 0; line-height: 1;
}
.elpis-search-close:hover { color: #e74c3c; transform: rotate(90deg); }
.search-quick-links { text-align: center; margin-top: 18px; }
.search-quick-links span { color: rgba(255,255,255,0.4); font-size: 12px; margin-right: 8px; }
.search-quick-links a {
    color: rgba(255,255,255,0.7); text-decoration: none; margin: 0 4px;
    padding: 5px 14px; border: 1px solid rgba(255,255,255,0.18);
    border-radius: 30px; font-size: 13px; transition: var(--transition);
    display: inline-block;
}
.search-quick-links a:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---- AUTOCOMPLETE ---- */
.elpis-search-box-wrapper { position: relative; width: 100%; max-width: 680px; }
.elpis-autocomplete {
    display: none; position: absolute; top: calc(100% + 10px); left: 0;
    min-width: 360px; max-width: 100vw;
    background: #fff; border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); max-height: 400px; overflow-y: auto; z-index: 2010;
}
.elpis-autocomplete.is-open { display: block; animation: slideDown .2s ease; }
.elpis-ac-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    color: var(--hdr-text); text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}
.elpis-ac-item:last-child { border-bottom: none; }
.elpis-ac-item:hover { background: rgba(79,142,247,0.06); color: var(--hdr-accent); }
.elpis-ac-img {
    width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.elpis-ac-text { flex: 1; }
.elpis-ac-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; line-height: 1.3; }
.elpis-ac-subtitle { font-size: 12px; color: var(--hdr-muted); display: flex; align-items: center; gap: 4px; }
.elpis-ac-stars { color: #f1c40f; font-size: 11px; margin-top: 2px; }
.elpis-ac-loading { padding: 20px; text-align: center; color: var(--hdr-muted); font-size: 14px; }

/* ---- MOBILE DRAWER ---- */
.elpis-drawer {
    position: fixed; top: 0; right: -320px; width: 300px;
    height: 100%; background: #0c1a35; z-index: 1900;
    overflow-y: auto; transition: right 0.33s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}
.elpis-drawer.is-open { right: 0; }
.elpis-drawer-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); z-index: 1850; backdrop-filter: blur(3px);
}
.elpis-drawer-backdrop.is-open { display: block; }
.elpis-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.drawer-close-btn {
    background: rgba(255,255,255,0.06); border: none; color: rgba(255,255,255,0.55);
    font-size: 22px; cursor: pointer; transition: var(--transition);
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.drawer-close-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.elpis-drawer-nav { list-style: none; margin: 0; padding: 16px 14px; }
.elpis-drawer-nav li a {
    display: flex; align-items: center; gap: 12px; padding: 12px 15px;
    color: rgba(255,255,255,0.75); font-size: 15px; font-weight: 600;
    text-decoration: none; border-radius: 11px;
    transition: var(--transition); margin-bottom: 3px;
}
.elpis-drawer-nav li a i { width: 20px; text-align: center; font-size: 16px; opacity: 0.6; }
.elpis-drawer-nav li a:hover, .elpis-drawer-nav li.active a {
    background: rgba(79,142,247,0.15); color: #fff;
}
.elpis-drawer-footer {
    margin-top: auto; padding: 20px 22px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex; flex-direction: column; gap: 10px;
}
.elpis-drawer-footer .hdr-btn-wa,
.elpis-drawer-footer .hdr-btn-call { justify-content: center; padding: 13px; }
.drawer-langs { display: flex; gap: 8px; margin-top: 4px; }
.drawer-langs a {
    flex: 1; text-align: center; padding: 9px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5);
    text-decoration: none; font-size: 13px; font-weight: 600; transition: var(--transition);
}
.drawer-langs a.active, .drawer-langs a:hover {
    background: rgba(79,142,247,0.18); border-color: var(--hdr-accent); color: #fff;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
    .elpis-nav { display: none; }
    .hdr-btn-call { display: none; }
    .elpis-hamburger { display: flex; }
}
@media (max-width: 640px) {
    .hdr-btn-wa .btn-label { display: none; }
    .hdr-btn-wa { padding: 10px 14px; }
    .elpis-topbar { display: none; }
}

/* Hide old ElpisTravelCore header elements */
.bc_topbar, .bc_header { display: none !important; }