:root {
  --navy: #0d1b2a;
  --navy-2: #16293f;
  --paper: #f5efe6;
  --paper-2: #ece2d5;
  --white: #ffffff;
  --ink: #111722;
  --muted: rgba(17, 23, 34, 0.66);
  --line: rgba(13, 27, 42, 0.12);
  --gold: #c6a24f;
  --champagne: #e7d8c3;
  --shadow: 0 28px 80px rgba(13, 27, 42, 0.13);
  --shadow-lg: 0 36px 100px rgba(13, 27, 42, 0.2);
  --topbar-h: 86px;
  --font-serif: "Fraunces", serif;
  --font-sans: "Inter", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(
      1000px 700px at 12% 8%,
      rgba(198, 162, 79, 0.14),
      transparent 62%
    ),
    radial-gradient(
      900px 620px at 88% 4%,
      rgba(214, 184, 178, 0.16),
      transparent 64%
    ),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

::selection {
  background: rgba(198, 162, 79, 0.28);
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--topbar-h);
  background: rgba(13, 27, 42, 0.86);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  width: min(1260px, calc(100% - 56px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__mark {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.18em;
  color: rgba(231, 216, 195, 0.96);
}

.brand__sub {
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.topnav a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--champagne);
}

.topnav__cta {
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

/* GENERAL */
.rentalPage {
  min-height: 100vh;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(13, 27, 42, 0.54);
}

/* HERO */
.rentalHero {
  padding: 82px 0 42px;
}

.rentalHero__inner {
  width: min(1260px, calc(100% - 56px));
  margin: 0 auto;
}

.rentalHero h1 {
  margin: 0;
  max-width: 900px;
  font-family: var(--font-serif);
  font-weight: 620;
  font-size: clamp(52px, 7vw, 110px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.rentalHero p:not(.eyebrow) {
  margin: 24px 0 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
}

/* AVAILABILITY BAR */
.availabilityBar {
  width: min(1260px, calc(100% - 56px));
  margin: 0 auto 34px;
}

.availabilityBar__inner {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 34px;
  align-items: center;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(13, 27, 42, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.availabilityIntro h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 620;
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.availabilityForm {
  display: grid;
  grid-template-columns:
    minmax(190px, 1fr) minmax(190px, 1fr) minmax(310px, 1.25fr)
    132px;
  gap: 14px;
  align-items: stretch;
}

.availabilityField,
.guestPicker {
  display: block;
  padding: 18px 20px;
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.availabilityField span,
.guestPicker__label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(13, 27, 42, 0.5);
}

.availabilityField input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
}

.guestCounter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.guestCounter strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.guestCounter span {
  display: block;
  font-size: 12px;
  color: rgba(13, 27, 42, 0.56);
}

.counterControls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.counterControls span {
  min-width: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.counterBtn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(13, 27, 42, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: var(--navy);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}

.counterBtn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.counterBtn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.availabilitySubmit {
  width: 132px;
  min-height: 68px;
  align-self: center;
  border: none;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 16px;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.availabilitySubmit:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
}

/* RESULTS LAYOUT */
.resultsLayout {
  width: min(1260px, calc(100% - 56px));
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  gap: 28px;
  align-items: start;
}

.resultsPanel {
  min-width: 0;
}

.resultsHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.resultsHead h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 620;
  font-size: clamp(36px, 4vw, 62px);
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.resultsHead p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* PROPERTY GRID */
.propertyGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.propertyCard {
  display: block;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 27, 42, 0.1);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    background 0.45s var(--ease);
}

.propertyCard:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 32px 90px rgba(13, 27, 42, 0.18);
}

.propertyCard__media {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: #d9dde0;
}

.propertyCard__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.propertyCard__slide.is-active {
  opacity: 1;
}

.propertyCard__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
}

.propertyCard__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      500px 340px at 20% 12%,
      rgba(231, 216, 195, 0.12),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(13, 27, 42, 0), rgba(13, 27, 42, 0.42));
}

.propertyCard__badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.74);
  color: #fff;
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.propertyCard__dots {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.propertyCard__dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.propertyCard__dots span.is-active {
  background: #fff;
}

.propertyCard__content {
  padding: 22px;
}

.propertyCard__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 620;
  font-size: 32px;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.propertyCard__location {
  margin: 10px 0 0;
  color: rgba(17, 23, 34, 0.56);
  font-size: 14px;
}

.propertyCard__stats {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(112px, 1fr);
  gap: 10px;
}

.propertyStat {
  min-height: 82px;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(13, 27, 42, 0.045);
  border: 1px solid rgba(13, 27, 42, 0.07);
}

.propertyStat--square {
  min-height: 82px;
  aspect-ratio: auto;
}

.propertyStat span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(13, 27, 42, 0.48);
}

.propertyStat strong {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1;
  color: var(--ink);
}

.propertyStat__beds {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 9px;
}

.propertyStat .bedType {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.bedType svg {
  width: 24px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bedType[title="Cama individual"] svg,
.bedType[title="Single bed"] svg {
  width: 19px;
}

.bedType b {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}

.propertyCard__footer {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(112px, 1fr);
  align-items: center;
  gap: 10px;
}

.propertyCard__hint {
  color: rgba(17, 23, 34, 0.58);
  font-size: 14px;
}

.propertyCard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.propertyCard__size {
  justify-self: center;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

/* MAP */
.mapPanel {
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
  height: calc(100vh - var(--topbar-h) - 48px);
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #d9dde0;
}

.map {
  width: 100%;
  height: 100%;
}

.mapPin {
  width: 48px;
  height: 60px;
  filter: drop-shadow(0 12px 12px rgba(13, 27, 42, 0.28));
}

.mapPin svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mapPin path {
  fill: var(--navy);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
}

.mapPin circle {
  fill: #fff;
}

.leaflet-popup-content-wrapper {
  border-radius: 16px;
}

.leaflet-popup-content {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 1180px) {
  .availabilityBar__inner {
    grid-template-columns: 1fr;
  }

  .availabilityForm {
    grid-template-columns: 1fr 1fr;
  }

  .guestPicker {
    grid-column: 1 / -1;
  }

  .availabilitySubmit {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 58px;
  }

  .resultsLayout {
    grid-template-columns: 1fr;
  }

  .mapPanel {
    position: relative;
    top: auto;
    height: 420px;
    min-height: 420px;
  }
}

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

  .topbar {
    height: auto;
    padding: 18px 0;
  }

  .topbar__inner {
    width: min(100%, calc(100% - 32px));
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    gap: 15px;
  }

  .rentalHero {
    padding: 34px 0 34px;
  }

  .rentalHero__inner,
  .availabilityBar,
  .resultsLayout {
    width: min(100%, calc(100% - 32px));
  }

  .availabilityBar__inner {
    padding: 24px;
    border-radius: 24px;
  }

  .availabilityForm {
    grid-template-columns: 1fr;
  }

  .guestPicker,
  .availabilitySubmit {
    grid-column: auto;
  }

  .resultsHead {
    flex-direction: column;
    align-items: flex-start;
  }

  .propertyGrid {
    grid-template-columns: 1fr;
  }

  .propertyCard__media {
    height: 280px;
  }

  .propertyCard__stats {
    grid-template-columns: minmax(0, 1.7fr) minmax(112px, 1fr);
  }
}

@media (max-width: 520px) {
  .propertyCard__stats {
    grid-template-columns: minmax(0, 1.65fr) minmax(108px, 1fr);
  }

  .propertyCard__footer {
    grid-template-columns: minmax(0, 1.65fr) minmax(108px, 1fr);
  }

  .propertyCard__cta {
    width: auto;
  }
}

/* -----------------------------
   FOOTER MEGA / CONTACT
----------------------------- */
.footerMega {
  position: relative;
  margin-top: 90px;
  background:
    radial-gradient(
      900px 600px at 12% 0%,
      rgba(198, 162, 79, 0.12),
      transparent 62%
    ),
    radial-gradient(
      900px 620px at 88% 10%,
      rgba(214, 184, 178, 0.1),
      transparent 64%
    ),
    linear-gradient(180deg, rgba(13, 27, 42, 0.92), rgba(13, 27, 42, 0.98));
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 70px 0 24px;
}

.footerMega .wrap,
.footerMega__grid,
.footerMega__bottom {
  width: min(1260px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

.footerMega__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.footerMega__eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

.footerMega__title {
  margin: 10px 0 16px;
  font-family: var(--font-serif, var(--serif, serif));
  font-weight: 620;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.96);
}

.footerMega__copy,
.footerMega__col p,
.footerMega__col a {
  color: rgba(255, 255, 255, 0.78);
}

.footerMega__copy {
  max-width: 48ch;
  line-height: 1.85;
}

.footerMega__heading {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 14px;
}

.footerMega__col p {
  margin: 0 0 10px;
  line-height: 1.65;
}

.footerMega__col a {
  transition: color 0.25s ease;
}

.footerMega__col a:hover {
  color: var(--champagne, #e7d8c3);
}

.footerMega__bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
}

.topnav a[data-lang-placeholder] {
  cursor: default;
}

@media (max-width: 980px) {
  .footerMega__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   RESPONSIVE POLISH
========================================================= */
@media (min-width: 821px) and (max-width: 1180px) {
  .topbar__inner {
    width: min(100%, calc(100% - 32px));
    gap: 14px;
  }

  .brand__mark {
    font-size: 16px;
  }

  .topnav {
    gap: 12px;
    flex-wrap: nowrap;
  }

  .topnav a {
    font-size: 10px;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }
}

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

  .topbar {
    padding: 12px 0;
    background: rgba(8, 20, 33, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(22px);
  }

  .topbar__inner {
    gap: 12px;
  }

  .brand__mark {
    font-size: 16px;
    letter-spacing: 0.14em;
  }

  .brand__sub {
    margin-top: 4px;
    font-size: 9px;
    letter-spacing: 0.24em;
  }

  .topnav {
    width: 100%;
    max-width: 100%;
    gap: 6px;
    flex-wrap: wrap;
    overflow: visible;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
  }

  .topnav a {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.96);
    font-size: 10px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .topnav .langDropdown__button {
    min-height: 42px;
  }

  .topnav a:hover,
  .topnav a.is-active {
    background: rgba(198, 162, 79, 0.18);
  }

  .rentalHero__inner,
  .availabilityBar,
  .resultsLayout {
    width: min(100%, calc(100% - 24px));
  }

  .rentalHero__inner h1 {
    font-size: clamp(48px, 13vw, 74px);
  }

  .availabilityBar__inner {
    padding: 22px;
  }

  .mapPanel {
    height: 360px;
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .topbar__inner {
    width: min(100%, calc(100% - 20px));
  }

  .topnav a {
    padding: 9px 10px;
  }

  .topnav__cta {
    flex: 1 1 auto;
    text-align: center;
  }

  .rentalHero {
    padding: 28px 0 28px;
  }

  .rentalHero__inner p {
    font-size: 15px;
    line-height: 1.75;
  }

  .availabilityBar__inner {
    padding: 18px;
    border-radius: 20px;
  }

  .propertyCard {
    border-radius: 22px;
  }

  .propertyCard__media {
    height: 240px;
  }

  .propertyCard__content {
    padding: 20px;
  }

  .mapPanel {
    height: 300px;
    min-height: 300px;
  }

  .footerMega .wrap,
  .footerMega__grid,
  .footerMega__bottom {
    width: min(100%, calc(100% - 28px));
  }
}

@media (min-width: 1440px) {
  .rentalHero__inner,
  .availabilityBar,
  .resultsLayout,
  .footerMega .wrap,
  .footerMega__grid,
  .footerMega__bottom {
    width: min(1380px, calc(100% - 96px));
  }
}
