/* ============================================================
   VEGA HOME — HEADER AIRBNB-STYLE
   ============================================================ */
:root {
  --vh-primary: #2C4B8E;      /* Azul Vega */
  --vh-accent:  #F5A56C;      /* Naranja Vega */
  --vh-text:    #222222;
  --vh-muted:   #717171;
  --vh-border:  #EBEBEB;
  --vh-hover-bg:#F7F7F7;
  --vh-shadow:  0 1px 12px rgba(0,0,0,.08);
  --vh-radius:  32px;
}

/* Reset del header viejo del tema */
#homey_nav_sticky,
#homey_nav_sticky_mobile,
.header-nav.homey_nav_sticky,
body > header#homey_nav_sticky,
body > header#homey_nav_sticky_mobile {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Reset del vh-topbar hardcodeado en la home */
.vh-ref .vh-topbar,
.home .vh-ref .vh-topbar,
body.home .vh-topbar {
  display: none !important;
}

/* Espacio para el nuevo header sticky */
body { padding-top: 0; }
body.vh-header-loaded { padding-top: 80px; }
@media (max-width: 768px) {
  body.vh-header-loaded { padding-top: 64px; }
}

/* ============================================================
   HEADER PRINCIPAL
   ============================================================ */
.vh-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border-bottom: 1px solid var(--vh-border);
  transition: box-shadow .2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.vh-header.is-scrolled { box-shadow: var(--vh-shadow); }

.vh-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}
@media (max-width: 768px) {
  .vh-header__inner {
    grid-template-columns: auto 1fr auto;
    padding: 10px 16px;
    min-height: 64px;
    gap: 8px;
  }
}

/* LOGO */
.vh-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.vh-header__logo img {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .vh-header__logo img { height: 32px; }
}

/* BUSCADOR CENTRAL (desktop) */
.vh-header__search {
  display: flex;
  justify-content: center;
}
.vh-search-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius);
  padding: 6px 6px 6px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  cursor: pointer;
  transition: box-shadow .2s;
  text-decoration: none;
  color: var(--vh-text);
  font-weight: 500;
  font-size: 14px;
  max-width: 480px;
  width: 100%;
}
.vh-search-pill:hover { box-shadow: 0 2px 8px rgba(0,0,0,.15); color: var(--vh-text); text-decoration: none; }
.vh-search-pill__text {
  flex: 1;
  padding: 8px 12px 8px 0;
  border-right: 1px solid var(--vh-border);
}
.vh-search-pill__text .place { color: var(--vh-text); font-weight: 600; display: block; }
.vh-search-pill__text .meta  { color: var(--vh-muted); font-weight: 400; font-size: 12px; display: block; margin-top: 2px; }
.vh-search-pill__where { padding: 0 12px; color: var(--vh-muted); font-size: 13px; border-right: 1px solid var(--vh-border); }
.vh-search-pill__when  { padding: 0 12px; color: var(--vh-muted); font-size: 13px; }
.vh-search-pill__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vh-primary), #4166B0);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}
.vh-search-pill__btn svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
  .vh-header__search { display: none; }
}

/* NAV DERECHA (desktop) */
.vh-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
}
.vh-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.vh-nav-link {
  padding: 10px 14px;
  border-radius: 22px;
  color: var(--vh-text);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.vh-nav-link:hover { background: var(--vh-hover-bg); color: var(--vh-text); text-decoration: none; }
.vh-nav-link--phone {
  color: var(--vh-primary);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .vh-header__nav .vh-nav-link:not(.vh-nav-link--phone):not(.vh-nav-link--priority) { display: none; }
}
@media (max-width: 768px) {
  .vh-header__nav .vh-nav-link { display: none; }
}

/* Menú hamburguesa (desktop pill + mobile) */
.vh-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--vh-border);
  background: #fff;
  padding: 6px 6px 6px 14px;
  border-radius: var(--vh-radius);
  cursor: pointer;
  transition: box-shadow .2s;
  margin-left: 8px;
  color: var(--vh-text);
  text-decoration: none;
  font-family: inherit;
}
.vh-menu-btn:hover { box-shadow: var(--vh-shadow); }
.vh-menu-btn__icon {
  width: 16px; height: 16px;
}
.vh-menu-btn__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--vh-muted);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vh-menu-btn__avatar svg { width: 16px; height: 16px; fill: #fff; }

/* Botón CTA reservar */
.vh-cta {
  background: var(--vh-accent);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 22px !important;
  font-weight: 700 !important;
}
.vh-cta:hover { background: #EE9152; }

/* ============================================================
   DRAWER MÓVIL
   ============================================================ */
.vh-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s;
}
.vh-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.vh-drawer {
  position: fixed;
  top: 0; right: 0;
  bottom: 0;
  width: min(400px, 90vw);
  background: #fff;
  z-index: 10001;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.vh-drawer.is-open { transform: translateX(0); }

.vh-drawer__head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--vh-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vh-drawer__head img { height: 32px; }
.vh-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background .15s;
}
.vh-drawer__close:hover { background: var(--vh-hover-bg); }
.vh-drawer__close svg { width: 20px; height: 20px; }

.vh-drawer__body { flex: 1; padding: 8px 0; }
.vh-drawer__body a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  color: var(--vh-text);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: background .15s;
}
.vh-drawer__body a:hover { background: var(--vh-hover-bg); color: var(--vh-text); text-decoration: none; }
.vh-drawer__body a svg { width: 20px; height: 20px; color: var(--vh-muted); flex-shrink: 0; }
.vh-drawer__section-title {
  padding: 20px 24px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--vh-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.vh-drawer__divider { height: 1px; background: var(--vh-border); margin: 8px 24px; }

.vh-drawer__foot {
  padding: 20px 24px;
  border-top: 1px solid var(--vh-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vh-drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--vh-primary);
  color: #fff !important;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.vh-drawer__cta:hover { background: #234175; color: #fff; text-decoration: none; }
.vh-drawer__cta svg { width: 18px; height: 18px; }

/* Foot info: email y legal — con padding izquierdo consistente (mismo eje que items del body) */
.vh-drawer__foot-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 4px 0;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--vh-muted);
  text-align: left;
}
.vh-drawer__foot-link {
  color: var(--vh-primary);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}
.vh-drawer__foot-link:hover { text-decoration: underline; color: var(--vh-primary); }
.vh-drawer__foot-legal { color: var(--vh-muted); font-size: 11px; }
