/* Avicon Travel - site header (includes/header.php). Owner approved the design 2026-10-01.
   Trust strip scrolls away; the nav row sticks. Classes are prefixed avh- so the old theme CSS can't reach them. */
.avh-strip, .avh, .avh-drawer { --avh-navy: #10233d; --avh-blue: #1A3A6E; --avh-gold: #F5A623; --avh-line: #e6ebf2; font-family: Poppins, Arial, sans-serif; }
.avh-strip *, .avh *, .avh-drawer * { box-sizing: border-box; }
.avh a, .avh-strip a, .avh-drawer a { text-decoration: none; }
.avh button, .avh-strip button, .avh-drawer button { font: inherit; cursor: pointer; }

/* trust strip */
.avh-strip { background: var(--avh-navy); color: #d9e2f0; font-size: 12.5px; line-height: 1.4; position: relative; z-index: 1001; }
.avh-strip__in { max-width: 1320px; margin: 0 auto; padding: 7px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.avh-strip__trust { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.avh-strip__trust svg { flex: none; color: var(--avh-gold); }
.avh-strip b { color: var(--avh-gold); font-weight: 500; }
.avh-short { display: none; }
.avh-strip__side { display: inline-flex; align-items: center; gap: 18px; flex: none; }
.avh-strip__mail { color: #d9e2f0; }
.avh-strip__mail:hover { color: #fff; }

/* language switcher */
.avh-lang { position: relative; }
.avh-lang__btn { display: inline-flex; align-items: center; gap: 6px; background: none; color: #fff; border: 1px solid rgba(217, 226, 240, .35); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 500; line-height: 1.5; }
.avh-lang__btn:hover, .avh-lang__btn[aria-expanded="true"] { border-color: rgba(255, 255, 255, .7); }
.avh-flag { display: block; width: auto; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.avh-lang__list { position: absolute; top: calc(100% + 8px); right: 0; width: 200px; background: #fff; color: var(--avh-navy); border: 1px solid var(--avh-line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16, 35, 61, .18); padding: 6px; display: grid; z-index: 1003; }
.avh-lang__list[hidden] { display: none; }
.avh-lang__list button { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; border-radius: 6px; padding: 7px 10px; font-size: 13.5px; color: var(--avh-navy); text-align: left; }
.avh-lang__list button span { display: inline-flex; align-items: center; gap: 9px; }
.avh-lang__list button i { font-style: normal; font-size: 12px; color: #8593a8; }
.avh-lang__list button:hover { background: #f2f5fa; }
.avh-lang__list button.is-on { background: #fff4dc; font-weight: 600; }

/* main row */
.avh { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--avh-line); transition: box-shadow .2s ease; }
.avh.is-stuck { box-shadow: 0 6px 20px rgba(16, 35, 61, .08); }
.avh__in { max-width: 1320px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 28px; }
.avh__logo { flex: none; display: block; }
.avh__logo img { display: block; height: 52px; width: auto; }
.avh__nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.avh__link { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--avh-navy); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.avh__link:hover { color: var(--avh-blue); border-bottom-color: rgba(245, 166, 35, .5); }
.avh__link.is-on { color: var(--avh-blue); border-bottom-color: var(--avh-gold); }
.avh__drop { position: relative; }
.avh__sub { position: absolute; top: 100%; left: -10px; min-width: 180px; padding: 8px; margin-top: 8px; background: #fff; border: 1px solid var(--avh-line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16, 35, 61, .12); display: grid; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.avh__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.avh__drop:hover .avh__sub, .avh__drop:focus-within .avh__sub { opacity: 1; visibility: visible; transform: none; }
.avh__sub a { color: var(--avh-navy); font-size: 14px; padding: 8px 10px; border-radius: 6px; }
.avh__sub a:hover { background: #f2f5fa; }
.avh__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avh__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid #dfe5ee; background: #fff; color: var(--avh-navy); padding: 0; }
.avh__icon:hover { border-color: var(--avh-blue); }
.avh__wa { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: #e9f8ef; color: #0d7a3e; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; }
.avh__wa:hover { background: #d8f2e2; color: #0b6b36; }
.avh__cta { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; background: var(--avh-gold); color: var(--avh-navy); border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 600; }
.avh__cta:hover { background: #e8971a; color: var(--avh-navy); }
.avh__burger { display: none; }
.avh a:focus-visible, .avh button:focus-visible, .avh-strip a:focus-visible, .avh-strip button:focus-visible, .avh-drawer a:focus-visible, .avh-drawer button:focus-visible, .avh-drawer summary:focus-visible { outline: 2px solid var(--avh-gold); outline-offset: 2px; }

/* search */
.avh-search { position: relative; }
.avh-search__box { position: absolute; top: calc(100% + 10px); right: 0; width: 360px; background: #fff; border: 1px solid var(--avh-line); border-radius: 12px; box-shadow: 0 10px 30px rgba(16, 35, 61, .14); padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 1002; }
.avh-search__box[hidden] { display: none; }
.avh-search__box input[type="text"] { flex: 1 1 200px; min-width: 0; height: 42px; border: 1px solid #d5dce7; border-radius: 8px; padding: 0 12px; font: 14px Poppins, Arial, sans-serif; color: var(--avh-navy); }
.avh-search__box input[type="text"]:focus { outline: none; border-color: var(--avh-blue); }
.avh-search__box button { height: 42px; border: 0; border-radius: 8px; background: var(--avh-blue); color: #fff; padding: 0 16px; font-size: 14px; font-weight: 600; }
.avh-search__quick { flex: 1 1 100%; font-size: 12.5px; color: #66748a; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.avh-search__quick a { color: var(--avh-blue); }

/* drawer (mobile menu) */
.avh-drawer { position: fixed; inset: 0; z-index: 100000; background: rgba(10, 22, 40, .45); }
.avh-drawer[hidden] { display: none; }
.avh-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; overflow-y: auto; padding: 0 18px calc(24px + env(safe-area-inset-bottom, 0px)); animation: avh-in .2s ease; }
@keyframes avh-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.avh-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--avh-line); }
.avh-drawer__head .avh__logo img { height: 44px; }
.avh-drawer__nav { display: grid; }
.avh-drawer__nav > a, .avh-drawer__group summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 2px; border-bottom: 1px solid #eef1f6; font-size: 15.5px; font-weight: 500; color: var(--avh-navy); cursor: pointer; list-style: none; }
.avh-drawer__group summary::-webkit-details-marker { display: none; }
.avh-drawer__nav > a.is-on { color: var(--avh-blue); font-weight: 600; }
.avh-drawer__nav span { color: #8a97ab; display: inline-block; transition: transform .15s ease; }
.avh-drawer__group[open] summary span { transform: rotate(45deg); }
.avh-drawer__group a { display: block; padding: 10px 14px; font-size: 14.5px; color: #33445e; border-bottom: 1px solid #f3f5f9; }
.avh-drawer__btns { display: grid; gap: 10px; margin-top: 18px; }
.avh-drawer__btns a { justify-content: center; padding: 12px 18px; font-size: 15px; }
body.avh-locked { overflow: hidden; }

/* Google Translate leaves a bar and offsets body; keep the page as it is */
div.skiptranslate, #google_translate_element2 { display: none !important; }
body { top: 0 !important; }
font font { background-color: transparent !important; box-shadow: none !important; position: initial !important; }

/* narrower desktops: drop the phone number text first, then the email */
@media (max-width: 1280px) {
  .avh__in { gap: 22px; }
  .avh__nav { gap: 18px; font-size: 14.5px; }
  .avh__right > .avh__wa span { display: none; }
  .avh__right > .avh__wa { padding: 0; width: 40px; height: 40px; justify-content: center; }
}
@media (max-width: 1100px) {
  .avh__nav { gap: 14px; font-size: 14px; }
  .avh-strip__mail { display: none; }
}
/* tablet and phone: logo + search + WhatsApp + menu */
@media (max-width: 991px) {
  .avh__nav, .avh__right > .avh__cta { display: none; }
  .avh__burger { display: grid; }
  .avh__right > .avh__wa { background: #25D366; color: #fff; }
  .avh__in { padding: 8px 16px; gap: 12px; }
  .avh__logo img { height: 46px; }
  .avh-strip__in { padding: 6px 16px; }
  .avh-search { position: static; }
  .avh-search__box { top: calc(100% + 6px); left: 12px; right: 12px; width: auto; }
}
@media (max-width: 600px) {
  .avh-long { display: none; }
  .avh-short { display: inline; }
  .avh-strip { font-size: 11.5px; }
  .avh-strip__trust svg { display: none; }
  .avh-lang__btn { padding: 1px 8px; font-size: 11.5px; }
  .avh-lang__btn .avh-flag { height: 12px; }
  .avh__right { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .avh, .avh__sub, .avh__link { transition: none; }
  .avh-drawer__panel { animation: none; }
}
