.rb-home {
  --home-ink: #123635;
  --home-muted: #45625f;
  --home-sea: #185750;
  --home-paper: #fcfaf5;
  --home-sand: #efe6d7;
  --home-line: #d8e1da;
  --home-serif: Georgia, "Times New Roman", serif;
  color: var(--home-ink);
  background: var(--home-paper);
}

.rb-home .rb-home-shell {
  width: min(1200px, calc(100% - clamp(36px, 7vw, 100px)));
  margin-inline: auto;
}

.rb-home h1, .rb-home h2, .rb-home h3 {
  color: inherit;
  font-family: var(--home-serif);
  letter-spacing: -.047em;
  line-height: 1.02;
}

.rb-home h2 { margin: 0; font-size: clamp(34px, 5vw, 66px); }
.rb-home p { color: var(--home-muted); }
.rb-home .rb-home-kicker {
  margin: 0 0 12px;
  color: var(--home-sea);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rb-home-hero {
  --hero-navy: #092a40;
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 7vw, 96px) 0 30px;
  background: var(--hero-navy);
}
.rb-home-hero-grid { display: grid; min-height: clamp(230px, 29vw, 360px); align-items: center; }
.rb-home-hero-copy { padding-block: 0 32px; }
.rb-home .rb-home-hero-copy h1 {
  max-width: 16ch;
  margin: 0 0 16px;
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: clamp(36px, 5.4vw, 76px);
  font-weight: 760;
  line-height: 1.02;
  text-wrap: balance;
}
.rb-home .rb-home-hero-copy .rb-home-kicker { color: #d4e8f7; }
.rb-home .rb-home-intro { max-width: 43ch; margin-bottom: 12px; color: #fff; font-size: clamp(16px, 2vw, 20px); }
.rb-home .rb-home-hero-copy .rb-home-text-link { color: #fff; }
.rb-home-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.rb-home-hero-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #092a40f5 0%, #092a40e8 28%, #092a4078 66%, #092a4038 100%);
  content: "";
}
.rb-home-hero-photo img, .rb-home-residence-photo img, .rb-home-trip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rb-home-hero-photo img { position: absolute; inset: 0; object-position: center 38%; }

.rb-home .rb-home-text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--home-sea);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  font-weight: 750;
}

.rb-home .rb-home-booking {
  position: relative;
  z-index: 1;
  display: grid;
  overflow: visible;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)) minmax(0, .65fr) auto;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px #173e3620;
}
.rb-home-booking label {
  display: grid;
  min-width: 0;
  padding: 8px 10px 3px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 750;
}
.rb-home-booking :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--home-ink);
  font: 600 16px/1.3 system-ui, sans-serif;
}
.rb-home-booking input::-webkit-date-and-time-value { text-align: start; }
.rb-home .rb-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--home-sea);
  color: #fff;
  cursor: pointer;
  font: 750 15px/1.3 system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
}
.rb-home .rb-home-button:hover { background: #103e3a; }
.rb-home :is(a, button, input, select):focus-visible { outline: 3px solid #9f561d; outline-offset: 3px; }
.rb-home .rb-home-booking label > span { font-size: 13px; font-weight: 750; }
.rb-home .rb-home-booking button { margin: 0; background: #103d5c; }
.rb-home .rb-home-booking button:hover { background: #092a40; }
.rb-home-booking .rb8-search-error { grid-column: 1 / -1; }

.rb-home-section { padding-block: clamp(52px, 7vw, 100px); }
.rb-home #rb-home-residencias { scroll-margin-top: 120px; }
.rb-home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: 28px;
}
.rb-home-residences, .rb-home-stays { display: grid; gap: clamp(14px, 2vw, 24px); }
.rb-home-residences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rb-home-residence {
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 17px;
  background: #fff;
}
.rb-home-residence-photo {
  aspect-ratio: 16 / 9;
  background: var(--home-sand);
}
.rb-home-residence-copy { padding: clamp(20px, 3vw, 34px); }
.rb-home-residence-copy h3 { margin: 0 0 8px; font-size: clamp(33px, 4vw, 52px); }
.rb-home-residence-copy > p:not(.rb-home-kicker) { margin-bottom: 6px; }
.rb-home-featured { background: #e7efea; }
.rb-home-stays { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-home .rb8-stay-card { min-width: 0; box-shadow: none; }
.rb-home .rb8-stay-body { flex: 1; }
.rb-home .rb8-stay-foot a { min-height: 44px; }

.rb-home-trip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  overflow: hidden;
  border: 1px solid #dbe4ec;
  border-radius: 16px;
  background: #edf4f9;
}
.rb-home-trip img { max-height: 340px; aspect-ratio: 16 / 9; object-position: 76% center; }
.rb-home-trip-copy { align-self: center; padding: clamp(24px, 4vw, 54px); }
.rb-home .rb-home-trip-copy h2 {
  margin: 0 0 12px;
  color: #10334c;
  font: 750 clamp(28px, 3.4vw, 46px)/1.08 system-ui, sans-serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.rb-home .rb-home-trip-copy p { color: #354f60; }
.rb-home .rb-home-trip-copy .rb-home-kicker { color: #245a7c; }
.rb-home .rb-home-button-light { background: #103d5c; color: #fff; }
.rb-home .rb-home-button-light:hover { background: #092a40; }
.rb-home-help { padding-block: clamp(34px, 5vw, 64px); background: var(--home-sand); }
.rb-home-help .rb-home-section-head { align-items: center; margin-bottom: 0; }
.rb-home-help p { margin: 10px 0 0; }

@media (max-width: 1000px) {
  .rb-home .rb-home-booking { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rb-home-booking button { grid-column: 1 / -1; }
  .rb-home-stays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .rb-home-trip, .rb-home-residences { grid-template-columns: minmax(0, 1fr); }
  .rb-home-hero { padding-block: 38px 20px; }
  .rb-home-hero-grid { min-height: 0; }
  .rb-home-hero-copy { padding-block: 0 18px; }
  .rb-home-hero-photo::after { background: linear-gradient(180deg, #092a40c7, #092a40 75%); }
  .rb-home .rb-home-booking { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-home-booking label:first-child, .rb-home-booking label:last-of-type { grid-column: 1 / -1; }
  .rb-home-section-head, .rb-home-help .rb-home-section-head { align-items: flex-start; flex-direction: column; }
  .rb-home-trip img { aspect-ratio: 16 / 9; height: auto; }
}

@media (max-width: 500px) {
  .rb-home-stays { grid-template-columns: minmax(0, 1fr); }
}
