/* =========================================================
ROOKIE IN TOWN · EXPERIENCE CORE · HEADER v0.4.0
Sistema visual conectado con Gestia Livin
========================================================= */

:root {
  --rit-header-orange: var(--rit-core-color-brand);
  --rit-header-orange-dark: var(--rit-core-color-brand-dark);
  --rit-header-orange-soft: var(--rit-core-color-brand-surface);
  --rit-header-petrol: var(--rit-core-color-petrol);
  --rit-header-petrol-2: var(--rit-core-color-petrol-2);
  --rit-header-petrol-soft: var(--rit-core-color-petrol-surface);
  --rit-header-ink: var(--rit-core-color-ink);
  --rit-header-muted: var(--rit-core-color-muted);
  --rit-header-line: rgba(11, 48, 66, 0.11);
  --rit-header-white: var(--rit-core-color-white);
  --rit-core-header-height: 82px;
  --rit-core-header-height-scrolled: 70px;
  --rit-global-header-bottom: var(--rit-core-header-height);
  --rit-header-container: var(--rit-core-container-header);
  --rit-header-shadow: 0 12px 40px rgba(11, 48, 66, 0.08);
  --rit-header-shadow-strong: 0 24px 70px rgba(11, 48, 66, 0.16);
  --rit-header-ease: var(--rit-core-ease);
}

/* ---------- Reset local ---------- */
.rit-site-header,
.rit-site-header *,
.rit-mobile-drawer,
.rit-mobile-drawer *,
.rit-mobile-backdrop {
  box-sizing: border-box;
}

.rit-site-header a,
.rit-mobile-drawer a {
  text-decoration: none !important;
}

.rit-site-header button,
.rit-mobile-drawer button {
  font: inherit;
}

.rit-site-header svg,
.rit-mobile-drawer svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

/* ---------- Ocultar header original de WP Rentals ----------
   El JavaScript añade esta clase únicamente a elementos del tema
   que NO contienen el nuevo header. Así evitamos ocultar el módulo
   si WP Coder lo inserta dentro de un contenedor inesperado.
------------------------------------------------------------- */
.rit-native-header-hidden {
  display: none !important;
}

body.rit-menu-mounted,
body.rit-global-menu-active {
  padding-top: var(--rit-core-header-height) !important;
}

html {
  scroll-padding-top: calc(var(--rit-core-header-height) + 24px);
}

/* ---------- Header ---------- */
.rit-site-header {
  position: fixed;
  z-index: 99990;
  top: 0;
  right: 0;
  left: 0;
  height: var(--rit-core-header-height);
  border-bottom: 1px solid rgba(11, 48, 66, 0.07);
  background: rgba(255, 255, 255, 0.96);
  color: var(--rit-header-ink);
  box-shadow: 0 5px 22px rgba(11, 48, 66, 0.04);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition:
    height 260ms var(--rit-header-ease),
    box-shadow 260ms ease,
    background-color 260ms ease;
}

.rit-site-header.is-scrolled {
  height: var(--rit-core-header-height-scrolled);
  background: rgba(255, 255, 255, 0.985);
  box-shadow: var(--rit-header-shadow);
}

body.rit-admin-bar-visible .rit-site-header {
  top: 32px;
}

/* Si WordPress conserva la clase admin-bar pero oculta la barra, no se reserva hueco. */
body.admin-bar:not(.rit-admin-bar-visible) .rit-site-header {
  top: 0 !important;
}

body.admin-bar:not(.rit-admin-bar-visible) .rit-mobile-drawer,
body.admin-bar:not(.rit-admin-bar-visible) .rit-mobile-backdrop {
  top: 0 !important;
  height: 100dvh !important;
}

/* ---------- Coordinación con módulos sticky externos ----------
   El valor representa la coordenada inferior real del header en el viewport.
   JavaScript lo recalcula durante scroll, resize y la transición de altura.
--------------------------------------------------------------- */
body.rit-admin-bar-visible {
  --rit-global-header-bottom: calc(var(--rit-core-header-height) + 32px);
}

body.rit-global-menu-active #rit-home .rit-top-search {
  top: var(--rit-global-header-bottom, var(--rit-core-header-height)) !important;
  z-index: 99980 !important;
}

.rit-site-header__inner {
  display: grid;
  grid-template-columns: minmax(148px, 178px) minmax(0, 1fr) auto;
  align-items: center;
  width: min(calc(100% - 40px), var(--rit-header-container));
  height: 100%;
  margin: 0 auto;
  gap: clamp(13px, 1.45vw, 25px);
}

/* ---------- Marca ---------- */
.rit-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
  color: var(--rit-header-petrol) !important;
  transition: transform 220ms var(--rit-header-ease), opacity 220ms ease;
}

.rit-brand:hover {
  transform: translateY(-1px);
}

.rit-brand:focus-visible,
.rit-site-header a:focus-visible,
.rit-site-header button:focus-visible,
.rit-mobile-drawer a:focus-visible,
.rit-mobile-drawer button:focus-visible {
  outline: 3px solid rgba(234, 122, 17, 0.32) !important;
  outline-offset: 3px;
}

.rit-brand__image {
  display: block;
  width: auto;
  max-width: 170px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  transition: max-height 260ms var(--rit-header-ease), max-width 260ms var(--rit-header-ease);
}

.rit-site-header.is-scrolled .rit-brand__image {
  max-width: 158px;
  max-height: 44px;
}

/* ---------- Navegación desktop ---------- */
.rit-desktop-nav {
  justify-self: center;
  min-width: 0;
}

.rit-desktop-nav__list {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  gap: 3px;
  list-style: none !important;
}

.rit-desktop-nav__item {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
}

.rit-desktop-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--rit-header-ink) !important;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.rit-desktop-nav__link:hover,
.rit-desktop-nav__item.is-open > .rit-desktop-nav__link,
.rit-desktop-nav__link.is-current {
  background: var(--rit-header-orange-soft);
  color: var(--rit-header-orange-dark) !important;
}

.rit-desktop-nav__link.is-current::after {
  position: absolute;
  right: 13px;
  bottom: 6px;
  left: 13px;
  height: 2px;
  border-radius: 10px;
  background: var(--rit-header-orange);
  content: "";
}

.rit-desktop-nav__toggle {
  gap: 6px;
}

.rit-chevron {
  width: 14px;
  height: 14px;
  transition: transform 220ms var(--rit-header-ease);
}

.rit-desktop-nav__item.is-open .rit-chevron {
  transform: rotate(180deg);
}

/* ---------- Dropdowns ---------- */
.rit-dropdown {
  position: absolute;
  z-index: 10;
  top: calc(100% + 14px);
  left: 50%;
  width: 360px;
  padding: 14px;
  border: 1px solid var(--rit-header-line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: var(--rit-header-shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px) scale(0.985);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 240ms var(--rit-header-ease);
}

.rit-dropdown::before {
  position: absolute;
  top: -15px;
  right: 0;
  left: 0;
  height: 15px;
  content: "";
}

.rit-desktop-nav__item.is-open > .rit-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.rit-dropdown--accommodation {
  width: 430px;
}

.rit-dropdown--rookie {
  width: 340px;
}

.rit-dropdown__featured {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: center;
  padding: 13px;
  border-radius: 14px;
  background: var(--rit-header-petrol);
  color: #fff !important;
  gap: 12px;
  transition: transform 180ms ease, background-color 180ms ease;
}

.rit-dropdown__featured:hover {
  background: var(--rit-header-petrol-2);
  transform: translateY(-1px);
}

.rit-dropdown__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.rit-dropdown__icon svg {
  width: 22px;
}

.rit-dropdown__featured strong,
.rit-dropdown__featured small,
.rit-dropdown--rookie strong,
.rit-dropdown--rookie small,
.rit-dropdown__city strong,
.rit-dropdown__city small {
  display: block;
}

.rit-dropdown__featured strong {
  font-size: 15px;
  font-weight: 750;
}

.rit-dropdown__featured small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  line-height: 1.35;
}

.rit-arrow {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.rit-dropdown a:hover .rit-arrow,
.rit-primary-cta:hover svg,
.rit-mobile-primary:hover > svg {
  transform: translateX(3px);
}

.rit-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  gap: 9px;
}

.rit-dropdown__city {
  display: flex;
  flex-direction: column;
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--rit-header-line);
  border-radius: 14px;
  background: #fff;
  color: var(--rit-header-ink) !important;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.rit-dropdown__city:hover {
  border-color: rgba(234, 122, 17, 0.32);
  background: var(--rit-header-orange-soft);
  transform: translateY(-2px);
}

.rit-dropdown__eyebrow,
.rit-dropdown__label {
  color: var(--rit-header-orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.rit-dropdown__city strong {
  margin-top: 13px;
  font-size: 14px;
  line-height: 1.3;
}

.rit-dropdown__city small {
  margin-top: 5px;
  color: var(--rit-header-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.rit-dropdown--rookie {
  padding: 12px;
}

.rit-dropdown--rookie .rit-dropdown__label {
  display: block;
  padding: 7px 10px 9px;
}

.rit-dropdown--rookie > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  padding: 12px 11px;
  border-radius: 12px;
  color: var(--rit-header-ink) !important;
  gap: 10px;
  transition: background-color 180ms ease, color 180ms ease;
}

.rit-dropdown--rookie > a + a {
  border-top: 1px solid rgba(11, 48, 66, 0.06);
}

.rit-dropdown--rookie > a:hover {
  background: var(--rit-header-orange-soft);
  color: var(--rit-header-orange-dark) !important;
}

.rit-dropdown--rookie strong {
  font-size: 14px;
  font-weight: 720;
}

.rit-dropdown--rookie small {
  margin-top: 3px;
  color: var(--rit-header-muted);
  font-size: 11.5px;
  line-height: 1.35;
}


/* ---------- Selector de idioma desktop ---------- */
.rit-language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 3px 6px;
  border: 1px solid rgba(11, 48, 66, 0.12);
  border-radius: 11px;
  background: #fff;
  color: var(--rit-header-muted);
  gap: 4px;
  white-space: nowrap;
}

.rit-language-switcher a {
  display: grid;
  min-width: 25px;
  min-height: 25px;
  place-items: center;
  border-radius: 8px;
  color: var(--rit-header-muted) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background-color 180ms ease, color 180ms ease;
}

.rit-language-switcher a:hover {
  background: var(--rit-header-orange-soft);
  color: var(--rit-header-orange-dark) !important;
}

.rit-language-switcher a[aria-current="page"] {
  background: var(--rit-header-petrol);
  color: #fff !important;
}

.rit-language-switcher > span {
  color: rgba(11, 48, 66, 0.24);
  font-size: 9px;
}

/* ---------- Acciones desktop ---------- */
.rit-header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

.rit-account-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 6px 10px;
  border: 1px solid rgba(11, 48, 66, 0.14);
  border-radius: 14px;
  background: var(--rit-header-petrol-soft);
  color: var(--rit-header-petrol) !important;
  gap: 7px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.rit-account-link:hover {
  border-color: rgba(11, 48, 66, 0.3);
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 48, 66, 0.08);
  transform: translateY(-1px);
}

.rit-account-link__icon {
  width: 25px;
  height: 25px;
  color: var(--rit-header-petrol);
}

.rit-account-link > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.rit-account-link small {
  color: var(--rit-header-muted);
  font-size: 10px;
  font-weight: 680;
}

.rit-account-link strong {
  margin-top: 4px;
  color: var(--rit-header-petrol);
  font-size: 12px;
  font-weight: 790;
  white-space: nowrap;
}

.rit-owner-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 15px;
  align-items: center;
  min-height: 48px;
  padding: 6px 10px 6px 7px;
  border: 1px solid rgba(11, 48, 66, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--rit-header-petrol) !important;
  gap: 7px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.rit-owner-link:hover {
  border-color: rgba(11, 48, 66, 0.28);
  background: var(--rit-header-petrol-soft);
  box-shadow: 0 8px 20px rgba(11, 48, 66, 0.08);
  transform: translateY(-1px);
}

.rit-owner-link__monogram {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--rit-header-petrol);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
}

.rit-owner-link__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.rit-owner-link__copy small {
  color: var(--rit-header-muted);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.rit-owner-link__copy strong {
  margin-top: 4px;
  color: var(--rit-header-petrol);
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.rit-external {
  width: 14px;
  height: 14px;
}


/* El CTA del header es deliberadamente secundario. La acción primaria de
   búsqueda pertenece al módulo de reserva, que conserva el relleno naranja. */
.rit-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px 0 14px;
  border: 1px solid rgba(11, 48, 66, 0.17);
  border-radius: 13px;
  background: #fff;
  color: var(--rit-header-petrol) !important;
  box-shadow: none;
  font-size: 13.5px;
  font-weight: 760;
  white-space: nowrap;
  gap: 9px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.rit-primary-cta:hover {
  border-color: rgba(11, 48, 66, 0.32);
  background: var(--rit-header-petrol-soft);
  box-shadow: 0 8px 18px rgba(11, 48, 66, 0.08);
  transform: translateY(-1px);
}

.rit-primary-cta svg {
  width: 27px;
  height: 27px;
  padding: 5px;
  border-radius: 50%;
  background: var(--rit-header-orange-soft);
  color: var(--rit-header-orange-dark);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.rit-primary-cta:hover svg {
  background: var(--rit-header-orange);
  color: #fff;
}

.rit-mobile-trigger {
  display: none;
}

/* ---------- Drawer mobile ---------- */
.rit-mobile-backdrop {
  position: fixed;
  z-index: 99991;
  inset: 0;
  background: rgba(5, 25, 34, 0.52);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.rit-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.rit-mobile-drawer {
  position: fixed;
  z-index: 99992;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(92vw, 430px);
  height: 100dvh;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: #f5f8fa;
  color: var(--rit-header-ink);
  box-shadow: -30px 0 80px rgba(4, 26, 36, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateX(104%);
  transition:
    transform 340ms var(--rit-header-ease),
    opacity 220ms ease,
    visibility 340ms ease;
}

.rit-mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

body.rit-admin-bar-visible .rit-mobile-drawer,
body.rit-admin-bar-visible .rit-mobile-backdrop {
  top: 32px;
  height: calc(100dvh - 32px);
}

.rit-mobile-drawer__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 18px;
  border-bottom: 1px solid var(--rit-header-line);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rit-mobile-drawer__brand {
  display: inline-flex;
  align-items: center;
  color: var(--rit-header-petrol);
}

.rit-mobile-drawer__brand-image {
  display: block;
  width: auto;
  height: 42px;
  max-width: 150px;
  object-fit: contain;
}

.rit-mobile-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rit-header-line);
  border-radius: 13px;
  background: #fff;
  color: var(--rit-header-petrol);
  cursor: pointer;
}

.rit-mobile-close svg {
  width: 22px;
  height: 22px;
}

.rit-mobile-drawer__body {
  flex: 1 1 auto;
  padding: 16px 16px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rit-mobile-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ee8a2f 0%, #ea7a11 100%);
  color: #fff !important;
  box-shadow: 0 18px 36px rgba(234, 122, 17, 0.24);
}

.rit-mobile-primary span {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.2;
}

.rit-mobile-primary small {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.rit-mobile-primary > svg {
  width: 20px;
  transition: transform 180ms ease;
}

.rit-mobile-nav {
  margin-top: 18px;
}

.rit-mobile-nav__direct,
.rit-mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  margin: 0 0 10px;
  padding: 0 14px;
  border: 1px solid rgba(11, 48, 66, 0.1);
  border-radius: 15px;
  background: #fff;
  color: var(--rit-header-ink) !important;
  font-size: 16px;
  font-weight: 720;
  text-align: left;
  box-shadow: 0 10px 24px rgba(11, 48, 66, 0.05);
}

.rit-mobile-nav__direct--account {
  color: var(--rit-header-petrol) !important;
  background: var(--rit-header-petrol-soft);
  border-color: rgba(11, 48, 66, 0.16);
}

.rit-mobile-nav__direct--account svg {
  width: 22px;
  height: 22px;
  color: var(--rit-header-petrol);
}

.rit-mobile-nav__toggle {
  cursor: pointer;
}

.rit-mobile-nav__toggle svg {
  width: 17px;
  height: 17px;
  color: var(--rit-header-muted);
  transition: transform 220ms var(--rit-header-ease);
}

.rit-mobile-nav__group.is-open .rit-mobile-nav__toggle {
  color: var(--rit-header-orange-dark) !important;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
}

.rit-mobile-nav__group.is-open .rit-mobile-nav__toggle svg {
  transform: rotate(180deg);
}

.rit-mobile-nav__panel {
  margin: -4px 0 10px;
  padding: 6px;
  border: 1px solid rgba(11, 48, 66, 0.1);
  border-radius: 0 0 15px 15px;
  border-top: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(11, 48, 66, 0.04);
}

.rit-mobile-nav__panel a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 11px;
  border-radius: 11px;
  color: var(--rit-header-muted) !important;
  font-size: 14px;
  font-weight: 630;
  gap: 9px;
}

.rit-mobile-nav__panel a:hover,
.rit-mobile-nav__panel a.is-current,
.rit-mobile-nav__direct.is-current {
  background: var(--rit-header-orange-soft);
  color: var(--rit-header-orange-dark) !important;
}

.rit-mobile-city {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--rit-header-petrol-soft);
  color: var(--rit-header-petrol);
  font-size: 9px;
  font-weight: 800;
}



.rit-mobile-gestia {
  display: block;
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--rit-header-petrol);
  color: #fff !important;
  box-shadow: 0 18px 42px rgba(11, 48, 66, 0.2);
}

.rit-mobile-gestia__topline {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.rit-mobile-gestia__content {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: center;
  margin-top: 13px;
  gap: 12px;
}

.rit-mobile-gestia__monogram {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-family: Georgia, serif;
  font-size: 21px;
}

.rit-mobile-gestia__content strong,
.rit-mobile-gestia__content small {
  display: block;
}

.rit-mobile-gestia__content strong {
  font-size: 14px;
}

.rit-mobile-gestia__content small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10.5px;
  line-height: 1.45;
}

.rit-mobile-gestia__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

.rit-mobile-gestia__link svg {
  width: 16px;
}

.rit-mobile-drawer__footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  border-top: 1px solid var(--rit-header-line);
  background: #fff;
  color: var(--rit-header-muted);
  font-size: 9px;
}

.rit-mobile-languages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rit-mobile-languages a {
  color: var(--rit-header-muted) !important;
  font-size: 11px;
  font-weight: 750;
}

.rit-mobile-languages a[aria-current="page"] {
  color: var(--rit-header-orange-dark) !important;
}

body.rit-nav-open {
  overflow: hidden !important;
}

body.rit-global-menu-active #rit-home .rit-top-search.rit-search-docked-mobile,
body.rit-global-menu-active #rit-home #rit-top-search.rit-search-docked-mobile {
  position: fixed !important;
  top: auto !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
  max-width: none !important;
  z-index: 99980 !important;
  box-shadow: 0 20px 44px rgba(11, 48, 66, 0.2);
}

body.rit-search-mobile-docked {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 108px);
}

/* ---------- Ajustes progresivos desktop ---------- */
@media (max-width: 1500px) and (min-width: 1121px) {
  .rit-site-header__inner {
    width: min(calc(100% - 28px), var(--rit-header-container));
    grid-template-columns: minmax(126px, 150px) minmax(0, 1fr) auto;
    gap: 9px;
  }

  .rit-desktop-nav__link {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 14px;
  }

  .rit-brand__image {
    max-width: 150px;
  }

  .rit-owner-link__copy small {
    display: none;
  }

  .rit-owner-link__copy strong {
    margin-top: 0;
  }

  .rit-account-link {
    grid-template-columns: 24px minmax(0, 1fr);
    padding-inline: 8px;
  }

  .rit-account-link__icon {
    width: 22px;
    height: 22px;
  }

  .rit-account-link small {
    display: block;
    font-size: 9px;
  }

  .rit-account-link strong {
    margin-top: 0;
    font-size: 11px;
  }

  .rit-primary-cta {
    min-height: 42px;
    padding: 0 7px 0 11px;
    font-size: 12px;
  }

  .rit-primary-cta svg {
    width: 25px;
    height: 25px;
  }
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 1120px) {
  :root {
    --rit-core-header-height: 70px;
    --rit-core-header-height-scrolled: 66px;
  }

  .rit-site-header__inner {
    display: flex;
    width: min(calc(100% - 28px), var(--rit-header-container));
    justify-content: space-between;
  }

  .rit-desktop-nav,
  .rit-header-actions {
    display: none;
  }

  .rit-brand__image {
    max-width: 150px;
    max-height: 45px;
  }

  .rit-mobile-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(11, 48, 66, 0.12);
    border-radius: 14px;
    background: #fff;
    color: var(--rit-header-petrol);
    box-shadow: 0 6px 18px rgba(11, 48, 66, 0.06);
    cursor: pointer;
    gap: 5px;
  }

  .rit-mobile-trigger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 10px;
    background: currentColor;
  }
}

@media (max-width: 782px) {
  body.rit-admin-bar-visible {
    --rit-global-header-bottom: calc(var(--rit-core-header-height) + 46px);
  }

  body.rit-admin-bar-visible .rit-site-header {
    top: 46px;
  }

  body.rit-admin-bar-visible .rit-mobile-drawer,
  body.rit-admin-bar-visible .rit-mobile-backdrop {
    top: 46px;
    height: calc(100dvh - 46px);
  }
}

@media (max-width: 420px) {
  .rit-site-header__inner {
    width: calc(100% - 22px);
  }

  .rit-brand__image {
    max-width: 138px;
  }

  .rit-mobile-drawer {
    width: 94vw;
  }

  .rit-mobile-drawer__brand-image {
    height: 38px;
    max-width: 138px;
  }

  .rit-mobile-drawer__body {
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* ---------- Preferencias de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .rit-site-header *,
  .rit-mobile-drawer *,
  .rit-mobile-backdrop {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ---------- Ajustes de longitud para la versión inglesa ---------- */
body.rit-language-en .rit-owner-link__copy small {
  font-size: 7.5px;
}

body.rit-language-en .rit-primary-cta {
  padding-right: 7px;
  padding-left: 12px;
  font-size: 11px;
}

@media (max-width: 1500px) and (min-width: 1121px) {
  .rit-language-switcher {
    padding-inline: 4px;
  }

  .rit-language-switcher > span {
    display: none;
  }

  body.rit-language-en .rit-owner-link__copy {
    display: none;
  }

  body.rit-language-en .rit-owner-link {
    grid-template-columns: 32px 14px;
  }
}


/* 0.12.0 — menú de alojamiento escalable por ciudad, tipología y barrios prioritarios. */
.rit-dropdown--accommodation{width:min(700px,calc(100vw - 40px))}
.rit-dropdown__discovery{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--rit-header-line)}
.rit-dropdown__discovery-block{min-width:0}
.rit-dropdown__section-label{display:block;margin:0 0 8px;padding:0 3px;color:var(--rit-header-orange-dark);font-size:9px;font-weight:850;letter-spacing:.14em}
.rit-dropdown__quick-link{display:grid;grid-template-columns:38px minmax(0,1fr) 18px;align-items:center;min-height:76px;padding:12px;border:1px solid var(--rit-header-line);border-radius:13px;background:#fff;color:var(--rit-header-ink)!important;gap:11px;transition:transform 180ms ease,border-color 180ms ease,background-color 180ms ease}
.rit-dropdown__quick-link:hover{transform:translateY(-1px);border-color:rgba(234,122,17,.32);background:var(--rit-header-orange-soft)}
.rit-dropdown__quick-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--rit-header-orange-soft);color:var(--rit-header-orange-dark)}
.rit-dropdown__quick-icon svg{width:19px;height:19px}
.rit-dropdown__quick-link strong,.rit-dropdown__quick-link small{display:block}
.rit-dropdown__quick-link strong{font-size:13.5px;line-height:1.25}
.rit-dropdown__quick-link small{margin-top:3px;color:var(--rit-header-muted);font-size:10.5px;line-height:1.35}
.rit-dropdown__area-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.rit-dropdown__area-links a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;padding:8px 10px;border-radius:10px;background:var(--rit-header-petrol-soft);color:var(--rit-header-petrol)!important;font-size:12.5px;font-weight:720;transition:background-color 180ms ease,color 180ms ease}
.rit-dropdown__area-links a:hover{background:var(--rit-header-orange-soft);color:var(--rit-header-orange-dark)!important}
.rit-dropdown__area-links a span{flex:none;color:var(--rit-header-muted);font-size:9px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}
.rit-mobile-nav__subheading{display:block;padding:10px 11px 4px;color:var(--rit-header-orange-dark);font-size:9px;font-weight:850;letter-spacing:.12em}
@media(max-width:1180px){.rit-dropdown--accommodation{width:min(620px,calc(100vw - 30px))}.rit-dropdown__discovery{grid-template-columns:1fr}.rit-dropdown__area-links{grid-template-columns:repeat(4,minmax(0,1fr))}.rit-dropdown__area-links a{display:block;min-height:52px}.rit-dropdown__area-links a span{display:block;margin-top:3px}}

/* 0.18.4 — menú Rookie con jerarquía equivalente al mega menú de Alojamientos. */
.rit-dropdown--rookie-mega {
  width: min(700px, calc(100vw - 40px));
  padding: 14px;
}

.rit-dropdown--rookie-mega > .rit-dropdown__featured {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: center;
  padding: 13px;
  border: 0;
  border-radius: 14px;
  background: var(--rit-header-petrol);
  color: #fff !important;
  gap: 12px;
}

.rit-dropdown--rookie-mega > .rit-dropdown__featured:hover {
  background: var(--rit-header-petrol-2);
  color: #fff !important;
}

.rit-dropdown--rookie-mega > .rit-dropdown__featured strong {
  color: #fff;
  font-size: 15px;
}

.rit-dropdown--rookie-mega > .rit-dropdown__featured small {
  color: rgba(255, 255, 255, 0.72);
}

.rit-dropdown--rookie-mega > .rit-dropdown__grid,
.rit-dropdown--rookie-mega > .rit-dropdown__discovery {
  border-top: 0;
}

.rit-dropdown--rookie-mega .rit-dropdown__city {
  min-height: 104px;
}

.rit-dropdown__discovery--rookie {
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
}

.rit-dropdown__service-links {
  grid-template-columns: 1fr;
}

.rit-dropdown__service-links a {
  display: block;
  min-height: 0;
  padding: 9px 11px;
}

.rit-dropdown__service-links a span {
  display: block;
  margin-top: 3px;
  color: var(--rit-header-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

@media (max-width: 1180px) and (min-width: 1121px) {
  .rit-dropdown--rookie-mega {
    width: min(620px, calc(100vw - 30px));
  }

  .rit-dropdown__discovery--rookie {
    grid-template-columns: 1fr;
  }

  .rit-dropdown__service-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rit-dropdown__service-links a {
    min-height: 66px;
  }
}

/* 0.19.13 — Host Family is not an active service and must not appear in navigation. */
.rit-core-header a[href*="/familia-anfitriona/"],
.rit-core-header a[href*="/host-family/"],
.rit-mobile-drawer a[href*="/familia-anfitriona/"],
.rit-mobile-drawer a[href*="/host-family/"]{display:none!important}
