/* =========================================================
   LANGUAGE DROPDOWN — shared across styles.css/alquiler.css/property.css
========================================================= */
.langDropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 90;
}
.langDropdown__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}
.langDropdown__button:hover {
  background: rgba(198, 162, 79, 0.12);
  border-color: rgba(198, 162, 79, 0.34);
  color: rgba(231, 216, 195, 0.98);
}
.langDropdown__chevron {
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
  opacity: 0.78;
}
.langDropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 160px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 21, 34, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease;
  z-index: 100;
}
.langDropdown.is-open .langDropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.langDropdown__menu a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 11px 12px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.langDropdown__menu a:hover,
.langDropdown__menu a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(231, 216, 195, 0.98);
}
.drawerLang {
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(231, 216, 195, 0.38);
  background: rgba(20, 42, 64, 0.98);
}
.drawerLang__label {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.drawerLang__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.drawerLang__buttons a {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(231, 216, 195, 0.32);
  background: rgba(7, 18, 30, 0.94);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.drawerLang__buttons a.is-active {
  background: #d9b868;
  border-color: #f5eadb;
  color: #081521;
  font-weight: 700;
}
.drawerLang__buttons a:hover {
  background: rgba(34, 57, 79, 0.98);
  border-color: rgba(198, 162, 79, 0.5);
  color: rgba(231, 216, 195, 0.98);
}
@media (max-width: 980px) {
  .nav .langDropdown {
    display: none;
  }
}

.mobileNavToggle,
.mobileNavDrawer {
  display: none;
}

@media (max-width: 820px) {
  .has-floating-mobile-nav .topbar {
    display: none;
  }

  .mobileNavToggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1200;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    gap: 6px;
    border-radius: 14px;
    border: 1px solid rgba(231, 216, 195, 0.5);
    background: rgba(7, 18, 30, 0.96);
    color: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
    cursor: pointer;
  }

  .mobileNavToggle[aria-expanded="true"] {
    opacity: 0;
    pointer-events: none;
  }

  .mobileNavToggle span {
    width: 19px;
    height: 1px;
    background: currentColor;
  }

  .mobileNavToggle span:nth-child(2) {
    width: 14px;
    justify-self: end;
  }

  .mobileNavDrawer {
    position: fixed;
    inset: 0;
    z-index: 1190;
    display: block;
    background: rgba(4, 10, 17, 0.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease;
  }

  .mobileNavDrawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobileNavDrawer__panel {
    min-height: 100%;
    min-height: 100dvh;
    width: 100%;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #5b5e60;
    color: #fff;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobileNavDrawer.is-open .mobileNavDrawer__panel {
    transform: translateX(0);
  }

  .mobileNavDrawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -22px -22px 0;
    padding: 22px;
    background: #071421;
    border-bottom: 1px solid rgba(231, 216, 195, 0.24);
  }

  .mobileNavDrawer__title {
    font-family: "Fraunces", ui-serif, Georgia, serif;
    font-size: 22px;
    color: #f5eadb;
  }

  .mobileNavDrawer__close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(231, 216, 195, 0.72);
    background: rgba(231, 216, 195, 0.28);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }

  .mobileNavDrawer__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
  }

  .mobileNavDrawer__link,
  .mobileNavDrawer__lang,
  .mobileNavDrawer__meta {
    border: 0;
    border-bottom: 1px solid rgba(245, 234, 219, 0.42);
    border-radius: 0;
    background: transparent;
  }

  .mobileNavDrawer__link {
    position: relative;
    padding: 22px 42px 22px 4px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition:
      color 0.3s ease,
      padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      border-color 0.3s ease;
  }

  .mobileNavDrawer__link::after {
    content: "→";
    position: absolute;
    right: 5px;
    top: 50%;
    color: rgba(245, 234, 219, 0.72);
    font-size: 18px;
    transform: translate(-6px, -50%);
    transition:
      color 0.3s ease,
      transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobileNavDrawer__link:hover,
  .mobileNavDrawer__link:focus-visible,
  .mobileNavDrawer__link:active {
    padding-left: 12px;
    color: #f5eadb;
    border-color: #d9b868;
  }

  .mobileNavDrawer__link:hover::after,
  .mobileNavDrawer__link:focus-visible::after,
  .mobileNavDrawer__link:active::after {
    color: #d9b868;
    transform: translate(0, -50%);
  }

  .mobileNavDrawer__link.is-active {
    color: #f5eadb;
  }

  .mobileNavDrawer__lang {
    padding: 20px 4px 22px;
  }

  .mobileNavDrawer__lang p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .mobileNavDrawer__lang div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mobileNavDrawer__lang a {
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(231, 216, 195, 0.32);
    background: rgba(7, 18, 30, 0.94);
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .mobileNavDrawer__lang a.is-active {
    background: #d9b868;
    border-color: #f5eadb;
    color: #081521;
    font-weight: 700;
  }

  .mobileNavDrawer__meta {
    margin-top: auto;
    padding: 18px 4px 0;
    border-bottom: 0;
    border-top: 1px solid rgba(245, 234, 219, 0.42);
    color: rgba(255, 255, 255, 0.96);
    font-size: 13px;
    letter-spacing: 0.06em;
    line-height: 1.7;
  }
}
