:root {
  --ink: #182022;
  --muted: #5b6769;
  --line: #dce5e3;
  --paper: #fbfcfa;
  --sea: #0e8a95;
  --sea-dark: #075d67;
  --sun: #f1b955;
  --coral: #d9624b;
  --leaf: #547c45;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(19, 43, 48, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(8, 25, 28, .58), rgba(8, 25, 28, 0));
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .16);
  font-size: 13px;
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.nav-links a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  opacity: .92;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 132px clamp(20px, 6vw, 84px) 64px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-flataldeia-airbnb.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 34, 38, .88) 0%, rgba(9, 34, 38, .62) 38%, rgba(9, 34, 38, .18) 72%),
    linear-gradient(0deg, rgba(8, 28, 31, .78) 0%, rgba(8, 28, 31, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, .88);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--coral);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .58);
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 6vw, 84px);
  bottom: 54px;
  width: min(290px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel strong {
  display: block;
  font-size: 48px;
  line-height: 1;
}

.hero-panel span {
  display: block;
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
}

.panel-divider {
  height: 1px;
  margin: 16px 0;
  background: rgba(255, 255, 255, .32);
}

.section,
.stats,
.reviews,
.cta {
  padding-left: clamp(20px, 6vw, 84px);
  padding-right: clamp(20px, 6vw, 84px);
}

.section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.intro,
.gallery {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(280px, .78fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.intro p,
.gallery p,
.section-copy p,
.reviews-note {
  font-size: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 14px;
  padding-bottom: 14px;
  background: var(--paper);
}

.stats article {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.stats strong {
  display: block;
  color: var(--sea-dark);
  font-size: 22px;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.property-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 64px) 14px;
  background: var(--paper);
}

.property-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 70px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.property-card strong {
  color: var(--sea-dark);
  font-size: 34px;
  line-height: 1;
}

.property-card span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-grid article {
  min-height: 210px;
  padding: 26px;
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--white);
  background: var(--sea);
  border-radius: 8px;
  font-weight: 800;
}

.reviews {
  position: relative;
  padding-top: 96px;
  padding-bottom: 104px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f7fbfa 0%, #e8f5f3 100%);
}

.reviews::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
}

.reviews-shell {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0 auto;
}

.reviews-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.reviews-heading h2 {
  max-width: 780px;
}

.reviews-note {
  max-width: 780px;
  margin-bottom: 0;
}

.score-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(14, 138, 149, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 40px rgba(12, 65, 71, .08);
}

.score {
  display: block;
  color: var(--sea-dark);
  font-size: 64px;
  font-weight: 800;
  line-height: .95;
}

.score-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.score-strip p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
}

.reviews-carousel {
  min-width: 0;
}

.carousel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.airbnb-link {
  color: var(--sea-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(7, 93, 103, .22);
  border-radius: 999px;
  color: var(--sea-dark);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(12, 65, 71, .1);
  font: inherit;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  outline: none;
  border-color: var(--sea);
  color: var(--white);
  background: var(--sea);
}

.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 28%);
  gap: 20px;
  margin-inline: -4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 4px 24px;
  scroll-padding-left: 4px;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(7, 93, 103, .32) transparent;
  scrollbar-width: thin;
}

.review-card {
  min-height: 300px;
  padding: 24px;
  border-color: rgba(7, 93, 103, .14);
  box-shadow: 0 18px 40px rgba(12, 65, 71, .1);
  scroll-snap-align: start;
}

.review-card p {
  margin-bottom: 0;
  color: #263739;
  font-size: 16px;
  line-height: 1.65;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.review-author .review-avatar {
  display: block;
  flex: 0 0 42px;
  width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  max-height: 42px !important;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(19, 43, 48, .14);
  object-fit: cover;
  object-position: center;
}

.review-author strong,
.review-author span {
  display: block;
}

.review-author strong {
  font-size: 17px;
}

.review-author span {
  color: var(--muted);
  font-size: 14px;
}

.stars {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.stars span {
  color: var(--muted);
  font-weight: 600;
}

.cta {
  padding-top: 86px;
  padding-bottom: 92px;
  color: var(--white);
  background: var(--sea-dark);
}

.cta h2 {
  max-width: 820px;
}

.cta p {
  color: rgba(255, 255, 255, .82);
}

.cta .eyebrow {
  color: var(--sun);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 126px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 40px;
  }

  .intro,
  .gallery,
  .split,
  .reviews-heading {
    grid-template-columns: 1fr;
  }

  .review-track {
    grid-auto-columns: minmax(320px, 54%);
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 18px;
  }

  .hero {
    padding: 104px 20px 42px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

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

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .stats article {
    min-height: 42px;
    padding: 8px 10px;
    justify-content: center;
  }

  .stats strong {
    font-size: 20px;
  }

  .stats span {
    font-size: 12px;
  }

  .property-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 10px 8px;
  }

  .property-card {
    min-height: 64px;
    padding: 10px 12px;
  }

  .property-card strong {
    font-size: 32px;
  }

  .property-card span {
    font-size: 16px;
  }

  .property-summary + .section {
    padding-top: 34px;
  }

  .button {
    width: 100%;
  }

  .carousel-controls {
    justify-content: flex-start;
  }

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

  .score-strip {
    grid-template-columns: 1fr;
  }

  .review-track {
    grid-auto-columns: minmax(282px, 88%);
  }

  .review-card {
    min-height: 318px;
  }
}

/* Final compact override for the property summary. Keep this block small on every viewport. */
.stats,
.compact-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  max-width: 720px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.stats article,
.stats article:last-child,
.compact-stats article,
.compact-stats article:last-child {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 38px !important;
  padding: 7px 8px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
}

.stats strong,
.compact-stats strong {
  font-size: 18px !important;
  line-height: 1 !important;
}

.stats span,
.compact-stats span {
  font-size: 12px !important;
  line-height: 1.1 !important;
}

@media (max-width: 680px) {
  .stats,
  .compact-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .stats article,
  .stats article:last-child,
  .compact-stats article,
  .compact-stats article:last-child {
    min-height: 34px !important;
    padding: 6px 8px !important;
  }

  .stats strong,
  .compact-stats strong {
    font-size: 17px !important;
  }

  .stats span,
  .compact-stats span {
    font-size: 11px !important;
  }
}
