/* Swift Stay Antigua — "Editorial Island"
   Tokens come from the brand board. Display type is Bodoni Moda, body is Karla. */

:root {
  --ink: #0f2a3c;
  --ink-2: #3d5563;
  --muted: #55646e;
  --linen: #f4ede1;
  --linen-2: #eee4d3;
  --sand: #e8dcc6;
  --sand-2: #c9b99c;
  --hibiscus: #c4482f;
  --hibiscus-ink: #a63d27; /* hibiscus dark enough for small text on linen */
  --sunset: #e0704e;
  --peach: #f3a27f;
  --lagoon: #1f7a78;
  --sea: #3fa9a6;
  --white: #ffffff;
  --line: rgba(15, 42, 60, 0.15);
  --line-strong: rgba(15, 42, 60, 0.3);
  --line-on-ink: rgba(244, 237, 225, 0.2);
  --muted-on-ink: #b7c4cc;
  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 18px 40px rgba(15, 42, 60, 0.1);
  --shadow-lg: 0 24px 50px rgba(15, 42, 60, 0.14);
  --gutter: clamp(20px, 5.5vw, 80px);
  --measure: 68ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--hibiscus);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--peach);
  color: var(--ink);
}

/* Type ------------------------------------------------------------------ */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.display em {
  font-style: italic;
  color: var(--hibiscus);
}

.display--xl {
  font-size: clamp(44px, 5.7vw, 82px);
  line-height: 0.98;
}

.display--lg {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.02;
}

.display--md {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.08;
}

.display--sm {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.1;
}

.display--italic {
  font-style: italic;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--rule::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--hibiscus);
}

.lede {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: var(--measure);
}

.body {
  color: var(--ink-2);
  max-width: var(--measure);
}

.small {
  font-size: 14px;
  color: var(--muted);
}

.on-ink {
  color: var(--linen);
}

.on-ink .eyebrow,
.on-ink .small {
  color: var(--muted-on-ink);
}

.on-ink .display em {
  color: var(--peach);
}

.on-ink .body {
  color: var(--muted-on-ink);
}

/* Layout ---------------------------------------------------------------- */

.wrap {
  padding-inline: var(--gutter);
  max-width: 1440px;
  margin-inline: auto;
}

.section {
  padding-block: clamp(56px, 7.5vw, 112px);
}

.section--tight {
  padding-block: clamp(40px, 5vw, 72px);
}

.band--ink {
  background: var(--ink);
  color: var(--linen);
}

.band--sand {
  background: var(--sand);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack--lg {
  gap: 28px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.row--between {
  justify-content: space-between;
}

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

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head .lede {
  max-width: 460px;
}

@media (max-width: 960px) {
  .split,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--hibiscus);
  color: var(--white);
}

.btn--primary:hover {
  background: #b03f28;
  color: var(--white);
}

.btn--ink {
  background: var(--ink);
  color: var(--linen);
}

.btn--ink:hover {
  background: #163a50;
  color: var(--linen);
}

.btn--outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.on-ink .btn--outline {
  border-color: var(--linen);
  color: var(--linen);
}

.btn--lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 17px;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: 15px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--linen);
}

.pill--accent {
  background: var(--hibiscus);
  color: var(--white);
}

.pill--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  font-size: 12px;
}

/* Nav ------------------------------------------------------------------- */

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

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

.brand:hover {
  color: var(--ink);
}

.brand__word {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand__place {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand__lockup {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav {
    height: 64px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--linen);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }

  .nav__links a {
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav__links .btn {
    margin-top: 8px;
  }

  .nav.is-open .nav__links {
    display: flex;
  }
}

/* Hero ------------------------------------------------------------------ */
/* Desktop keeps the editorial split: copy on the left, the villa's terrace on the right. On a phone the headline
   sits on the photo and the prices and one button follow, so the first screen does the selling. */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 53fr) minmax(0, 47fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: min(760px, calc(100svh - 76px));
}

.hero__art {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--ink);
}

.hero__art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__head {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px) 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero__head .display--xl {
  font-size: clamp(48px, 5.9vw, 86px);
}

.hero__body {
  grid-column: 1;
  grid-row: 2;
  padding: 26px clamp(24px, 4vw, 64px) clamp(40px, 5vw, 64px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bay-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.bay-chip svg {
  flex-shrink: 0;
  color: var(--sunset);
}

/* Full-bleed cover photo (the lead home's cover) */
.hero__cover {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%; /* keep the sea in frame when the photo is portrait */
  display: block;
}

.hero__cover-label {
  position: absolute;
  left: 32px;
  bottom: 32px;
  max-width: 300px;
  background: rgba(244, 237, 225, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 16px 36px rgba(15, 42, 60, 0.18);
}

.hero__cover-label .caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.3;
}

/* The two nightly prices under the booking bar */
.hero-prices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 0;
}

.hero-prices__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--line-strong);
}

.hero-prices__item:last-child {
  border-right: 0;
  margin-right: 0;
}

.hero-prices__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-prices__rate {
  font-size: 15px;
  color: var(--ink-2);
}

.hero-prices__rate strong {
  font-size: 20px;
  color: var(--ink);
}

.hero__cta {
  display: none;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .hero__art {
    grid-column: 1;
    grid-row: 1;
    height: min(480px, 58svh);
    min-height: 400px;
  }

  /* A scrim so the headline reads on the photo */
  .hero__art::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 42, 60, 0) 38%, rgba(15, 42, 60, 0.9) 100%);
  }

  .hero__cover img {
    object-position: 50% 40%;
  }

  .hero__cover-label {
    display: none;
  }

  .hero__head {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
    padding: 0 var(--gutter) 26px;
    gap: 14px;
    color: var(--linen);
  }

  .hero__head .eyebrow {
    color: var(--peach);
  }

  .hero__head .display em {
    color: var(--peach);
  }

  .hero__head .display--xl {
    font-size: clamp(40px, 11.6vw, 58px);
  }

  .bay-chip {
    background: rgba(15, 42, 60, 0.35);
    border-color: rgba(244, 237, 225, 0.35);
    color: var(--linen);
    font-size: 12px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .bay-chip svg {
    color: var(--peach);
  }

  .hero__body {
    grid-row: 2;
    padding: 22px var(--gutter) 32px;
    gap: 18px;
  }

  /* Prices and the button come before the paragraph, so they're on the first screen */
  .hero__body .lede {
    order: 3;
    font-size: 16px;
  }

  .hero-prices {
    order: 1;
  }

  .hero__cta {
    order: 2;
  }

  .hero__body .trust {
    order: 4;
  }

  .hero .booking-bar {
    display: none;
  }

  .hero-prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .hero-prices__item {
    padding: 12px 14px;
    margin: 0;
    border-right: 1px solid var(--line);
  }

  .hero__cta {
    display: inline-flex;
  }

  .trust {
    justify-content: center;
    font-size: 12px;
  }
}

/* Booking bar (desktop hero): home, "pick on the calendar", guests, go ----------------------------------- */

.booking-bar {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid rgba(15, 42, 60, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.booking-bar__field {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  min-width: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  font: inherit;
}

.booking-bar__dates {
  flex-grow: 1.5;
  cursor: pointer;
}

.booking-bar__dates:hover {
  background: var(--linen);
}

.booking-bar__field label,
.booking-bar__label,
.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-bar__value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.booking-bar__field select {
  border: 0;
  padding: 0;
  background: transparent;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  min-height: 24px;
}

.booking-bar__cta {
  padding: 8px;
  display: flex;
}

.booking-bar__cta .btn {
  border-radius: 10px;
  min-height: 100%;
}

/* The resort, straight after the hero: what Antigua Village does for guests ------------------------------ */

.resort {
  padding-top: clamp(36px, 4.5vw, 64px);
}

.resort__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px 48px;
  margin-bottom: clamp(20px, 2.4vw, 28px);
}

.resort__head .stack {
  gap: 12px;
}

.resort__note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 360px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.resort__note .link-arrow {
  min-height: 36px;
  color: var(--ink);
}

.resort__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(15, 42, 60, 0.06);
}

/* Nine of them, three to a row: the icon beside the words, a rule between neighbours */
.resort__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.resort__item:nth-child(3n + 1) {
  border-left: 0;
}

.resort__item:nth-child(-n + 3) {
  border-top: 0;
}

.resort__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--linen);
  color: var(--hibiscus);
}

.resort__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.resort__text strong {
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance; /* where a long title has to wrap ("A boat for the day"), no word is left alone */
}

.resort__text span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  text-wrap: pretty;
}

/* A little tighter on a tablet, so the words keep their room */
@media (max-width: 1023px) {
  .resort__item {
    gap: 12px;
    padding: 16px;
  }
}

/* On a small tablet three columns are too narrow to share: the icon sits above the words */
@media (max-width: 800px) {
  .resort__item {
    flex-direction: column;
    gap: 10px;
    padding: 16px 16px 18px;
  }
}

/* One to a row on a phone, the icon back beside the words */
@media (max-width: 600px) {
  .resort__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .resort__item:nth-child(n) {
    flex-direction: row;
    gap: 12px;
    padding: 12px 16px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .resort__item:first-child {
    border-top: 0;
  }

  .resort__icon {
    width: 36px;
    height: 36px;
  }

  .resort__icon svg {
    width: 20px;
    height: 20px;
  }

  .resort__text strong {
    font-size: 15px;
  }

  .resort__text span {
    font-size: 13px;
  }
}

/* Cards ----------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card__media {
  position: relative;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.card__media--dark {
  background: var(--ink);
}

.card__media .pill {
  position: absolute;
  top: 16px;
  left: 16px;
}

.card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
}

.facts-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.facts-inline span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--muted);
}

.price {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.price strong {
  color: var(--ink);
}

.photo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card__media--dark .photo-slot {
  color: var(--muted-on-ink);
}

@media (max-width: 640px) {
  .card__media {
    height: 220px;
  }

  .card__title {
    font-size: 28px;
  }
}

/* The homes: two cards, the family card, and a slim line for a home that isn't open yet -------------------- */

.homes-grid {
  align-items: stretch;
}

.card__open {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--linen);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 42, 60, 0.18);
}

.card__open-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lagoon);
  flex-shrink: 0;
}

.card__summary {
  font-size: 16px;
}

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

.card__stay {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--linen-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card__stay-label {
  font-size: 13px;
  color: var(--muted);
}

.card__stay-total,
.stay-price__total,
.bundle-card__price strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.card__stay-total small,
.stay-price__total small,
.bundle-card__price small {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.bundle-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  color: var(--linen);
}

.bundle-card__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  height: 200px;
  background: #1d3a4d;
}

.bundle-card__media {
  overflow: hidden;
}

.bundle-card__media img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.bundle-card__body {
  flex-grow: 1;
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bundle-card .eyebrow {
  color: var(--muted-on-ink);
}

.bundle-card .display em {
  color: var(--peach);
}

.bundle-card p {
  font-size: 16px;
  line-height: 1.5;
  color: #d5dde2;
}

.bundle-card__price {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line-on-ink);
  border-bottom: 1px solid var(--line-on-ink);
}

.bundle-card__price span {
  font-size: 15px;
  color: var(--muted-on-ink);
}

.bundle-card__price strong,
.bundle-card__price small {
  color: var(--linen);
}

.bundle-card .btn {
  align-self: flex-start;
}

.btn--linen {
  background: var(--linen);
  color: var(--ink);
}

.btn--linen:hover {
  background: var(--white);
  color: var(--ink);
}

.upcoming-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: inherit;
}

.upcoming-row + .upcoming-row {
  margin-top: 0;
  border-top: 0;
}

.upcoming-row__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hibiscus-ink);
  white-space: nowrap;
}

.upcoming-row__text {
  flex-grow: 1;
  font-size: 16px;
  color: var(--ink-2);
}

.upcoming-row__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.upcoming-row__go svg,
.link-arrow svg,
.island-links__row a svg {
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .upcoming-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .card__actions .btn {
    flex-grow: 1;
  }
}

/* Trio ------------------------------------------------------------------ */

.trio {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.trio__plus {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  color: var(--hibiscus);
  align-self: center;
}

.trio__unit {
  flex: 1 1 260px;
  max-width: 360px;
  background: var(--white);
  border: 1px solid rgba(15, 42, 60, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trio__unit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(15, 42, 60, 0.4);
}

.trio__photo {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.trio__body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.trio__unit .card__title {
  font-size: 28px;
}

@media (max-width: 640px) {
  .trio {
    flex-direction: column;
    align-items: stretch;
  }

  .trio__unit {
    max-width: none;
  }

  .trio__plus {
    margin: -6px 0;
  }
}

/* Gallery --------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 254px;
  gap: 12px;
}

.gallery__item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sand);
}

.gallery__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__item:first-child img {
  object-position: 50% 30%; /* portrait covers: keep the sea in frame */
}

.gallery--bay .gallery__item:first-child img {
  object-position: 50% 36%;
}

.gallery__item .photo-slot {
  position: absolute;
  inset: 0;
  align-items: flex-end;
  justify-content: flex-start;
}

figure.gallery__item {
  margin: 0;
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  font-size: 13px;
  color: var(--linen);
  background: linear-gradient(to top, rgba(15, 42, 60, 0.62), rgba(15, 42, 60, 0));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gallery__item:hover .gallery__caption,
.gallery__item:focus-within .gallery__caption {
  opacity: 1;
}

@media (max-width: 960px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery__item:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery__caption {
    opacity: 1;
  }
}

/* Unit page ------------------------------------------------------------- */

.unit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 28px;
}

.unit-head__title {
  font-size: clamp(44px, 5vw, 72px);
}

.unit-head__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.unit-head__book {
  display: flex;
  align-items: center;
  gap: 16px;
}

.unit-head__book .price {
  font-size: 16px;
}

.unit-head__book .price strong {
  font-size: 24px;
}

.unit-photos__frame {
  position: relative;
}

.gallery__count {
  display: none;
}

.unit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 64px;
  align-items: start;
  padding-top: 48px;
}

.unit-layout__main {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.unit-layout__side {
  align-self: stretch; /* the full height of the page's main column, so the booking card can stick */
}

.stay-prices {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stay-prices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stay-price {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stay-price--on {
  border: 2px solid var(--lagoon);
  padding: 17px 19px;
}

.stay-price__label {
  font-size: 14px;
  color: var(--muted);
}

.stay-price__total {
  font-size: 26px;
}

.stay-price__note {
  font-size: 13px;
  color: var(--muted);
}

.stay-price__note--off {
  font-weight: 700;
  color: var(--lagoon);
}

.open-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e3efee;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.open-line span:nth-child(2) {
  flex-grow: 1;
}

.open-line__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lagoon);
  flex-shrink: 0;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.stat-strip > div {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
}

.stat-strip > div:first-child {
  padding-left: 0;
}

.stat-strip > div:last-child {
  border-right: 0;
}

.stat-strip .display {
  font-size: 28px;
}

.unit-copy__lede {
  font-size: 18px;
  line-height: 1.65;
}

.unit-copy.is-collapsed .unit-copy__more {
  display: none;
}

.link-button {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

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

.amenities li {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.amenities svg {
  flex-shrink: 0;
  color: var(--hibiscus);
}

.good-to-know {
  padding: 28px 32px;
  background: var(--linen-2);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.good-to-know .grid-2 {
  gap: 12px 40px;
  font-size: 15px;
  color: var(--ink-2);
}

.facts-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}

.facts-list div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.facts-list dt {
  color: var(--muted);
}

.facts-list dd {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .unit-layout {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
  }
}

@media (max-width: 960px) {
  .unit-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .unit-head__side {
    align-items: flex-start;
  }

  /* The phone has the booking bar at the bottom; the pills repeat the facts below */
  .unit-head__book,
  .unit-head__pills .pill--outline {
    display: none;
  }

  .unit-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 28px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip > div:nth-child(2) {
    border-right: 0;
  }

  .stat-strip > div:nth-child(3) {
    padding-left: 0;
  }

  .stat-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .amenities {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  /* The photos become a swipe carousel, edge to edge, with a counter */
  .unit-photos {
    padding-inline: 0;
  }

  .gallery--unit {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    scrollbar-width: none;
  }

  .gallery--unit::-webkit-scrollbar {
    display: none;
  }

  .gallery--unit .gallery__item,
  .gallery--unit .gallery__item:first-child {
    flex: 0 0 100%;
    height: 300px;
    border-radius: 0;
    scroll-snap-align: start;
  }

  .gallery--unit .gallery__caption {
    display: none;
  }

  .gallery__count {
    display: block;
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 42, 60, 0.78);
    color: var(--linen);
    font-size: 12px;
    font-weight: 700;
  }

  .unit-photos .gallery__all {
    left: 14px;
    right: auto;
    bottom: 14px;
    min-height: 36px;
    font-size: 13px;
  }

  .stay-prices__grid {
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .stay-price,
  .stay-price--on {
    padding: 12px;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .stay-price:last-child {
    border-right: 0;
  }

  .stay-price__total {
    font-size: 18px;
  }

  .stay-price__note {
    font-size: 12px;
  }

  .facts-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .good-to-know {
    padding: 22px 20px;
  }
}

/* Booking card: price, dates, guests, a calendar you tap, the live total --------------------------------- */

.rate-card {
  position: sticky;
  top: 24px;
  padding: 26px;
  background: var(--white);
  border: 1px solid rgba(15, 42, 60, 0.16);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rate-card > * {
  flex-shrink: 0; /* when the card scrolls inside itself, nothing gets squashed */
}

.rate-card__sheet-head {
  display: none;
  align-items: center;
  justify-content: space-between;
}

.rate-card__sheet-title {
  font-family: var(--font-display);
  font-size: 26px;
}

.rate-card__close {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.rate-card__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.rate-card__rate {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.rate-card__price .display {
  font-size: 40px;
}

.rate-card__open {
  font-size: 13px;
  font-weight: 700;
  color: var(--lagoon);
}

.fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
}

.fieldset .field {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--line-strong);
}

.fieldset .field:nth-child(odd) {
  border-right: 1px solid var(--line-strong);
}

.fieldset .field:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.field input,
.field select {
  border: 0;
  padding: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  min-height: 24px;
}

.rc-date {
  display: block;
  min-height: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.rc-date.is-set {
  color: var(--ink);
}

.rate-card.is-enhanced [data-date-field] {
  cursor: pointer;
}

.rc-cal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rc-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rc-cal__month {
  font-family: var(--font-display);
  font-size: 22px;
}

.rc-cal__nav {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.rc-cal__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.rc-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 3px;
}

.rc-cal__dow {
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.rc-day {
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.rc-day:hover:not(:disabled) {
  background: var(--linen-2);
}

.rc-day:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.rc-day--blank {
  visibility: hidden;
}

.rc-day--off {
  color: #a9b2b8;
  cursor: default;
}

.rc-day--booked,
.rc-day--checkout {
  background: repeating-linear-gradient(135deg, rgba(15, 42, 60, 0.07) 0 4px, transparent 4px 8px);
}

.rc-day--booked {
  color: #a9b2b8;
  text-decoration: line-through;
  cursor: not-allowed;
}

.rc-day--checkout {
  color: var(--ink-2);
}

.rc-day--in {
  border-radius: 0;
  background: #d7e9e8;
}

.rc-day--in:hover:not(:disabled) {
  background: #c6dfde;
}

.rc-day--start,
.rc-day--end,
.rc-day--start:hover:not(:disabled),
.rc-day--end:hover:not(:disabled) {
  background: var(--lagoon);
  color: var(--white);
  font-weight: 700;
}

.rc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--muted);
}

.rc-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rc-legend__item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.rc-legend__item--sel::before {
  background: var(--lagoon);
}

.rc-legend__item--booked::before {
  border: 1px solid #a9b2b8;
  background: repeating-linear-gradient(135deg, rgba(15, 42, 60, 0.12) 0 2px, transparent 2px 4px);
}

.rc-nudge {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--linen-2);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}

.rc-nudge--tip,
.rc-nudge--ok {
  background: #e3efee;
  color: #14504e;
}

.rc-nudge--error {
  background: #fbe7e2;
  color: #8a2f1c;
}

.breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}

.breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.breakdown .is-off {
  font-weight: 600;
  color: var(--lagoon);
}

.breakdown .total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
  font-size: 17px;
}

.rate-card__go {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rate-card__total {
  display: none;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--muted);
}

.rate-card__total strong {
  font-size: 20px;
  color: var(--ink);
}

/* A tall card on a short screen scrolls inside itself, with Reserve pinned to its foot */
@media (min-width: 961px) {
  .rate-card[data-rate-card] {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .rate-card[data-rate-card] .rate-card__go {
    position: sticky;
    bottom: -26px; /* over the card's own bottom padding */
    z-index: 1;
    padding: 12px 0 14px;
    background: var(--white);
  }
}

.rate-card__fine {
  text-align: center;
  font-size: 13px;
}

.rate-card__ask {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--linen-2);
  font-size: 14px;
  color: var(--ink-2);
}

.notice--error {
  background: #fbe7e2;
  color: #8a2f1c;
}

.notice--ok {
  background: #e3f1f0;
  color: #17504f;
}

/* Phones: the card lives in a sheet, opened from the booking bar at the bottom of the screen */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 42, 60, 0.55);
}

.sheet-backdrop[hidden] {
  display: none;
}

html.sheet-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .rate-card {
    position: static;
  }

  .rate-card.is-enhanced:not(.is-sheet) {
    display: none;
  }

  .rate-card.is-sheet {
    position: fixed;
    left: 0;
    right: 0;
    top: 24px;
    bottom: 0;
    z-index: 80;
    padding: 12px 20px 0;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 -20px 50px rgba(15, 42, 60, 0.25);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .rate-card.is-sheet.is-sheet-in {
    transform: none;
  }

  .rate-card.is-sheet .rate-card__sheet-head {
    display: flex;
    position: sticky;
    top: -12px;
    z-index: 2;
    margin: -12px 0 0;
    padding: 12px 0 6px;
    background: var(--white);
  }

  .rate-card.is-sheet .rate-card__total:not([hidden]) {
    display: flex;
  }

  .rate-card.is-sheet .rate-card__go {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding: 12px 0 calc(16px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rate-card.is-sheet {
    transition: none;
  }
}

/* The booking bar pinned to the bottom of a phone's screen */
.book-bar {
  display: none;
}

.book-bar__price {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 15px;
  color: var(--ink-2);
}

.book-bar__price strong {
  font-size: 18px;
  color: var(--ink);
}

.book-bar__from {
  font-size: 14px;
}

.book-bar__sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 960px) {
  .book-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) var(--gutter);
    background: var(--linen);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(15, 42, 60, 0.12);
  }

  .book-bar[hidden],
  html.sheet-open .book-bar {
    display: none;
  }

  .book-bar .btn {
    min-height: 48px;
    padding: 0 24px;
  }

  body.has-book-bar {
    padding-bottom: 84px;
  }
}

/* Phones: the home page's "Check dates" asks which home first, then that home's calendar opens */
.pick-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  background: var(--white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 50px rgba(15, 42, 60, 0.25);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.pick-sheet[hidden] {
  display: none;
}

.pick-sheet.is-in {
  transform: none;
}

.pick-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pick-sheet__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
}

.pick-sheet__close {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.pick-sheet__lede {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}

.pick-sheet__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pick-home {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--linen);
  color: var(--ink);
  text-decoration: none;
}

.pick-home:active {
  background: var(--linen-2);
}

.pick-home__media {
  width: 64px;
  height: 64px;
  display: flex;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sand);
}

.pick-home__media img {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}

.pick-home__media--pair img + img {
  border-left: 2px solid var(--linen);
}

.pick-home__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pick-home__name {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.1;
}

.pick-home__meta {
  font-size: 13px;
  color: var(--muted);
}

.pick-home__open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lagoon);
}

.pick-home__rate {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.pick-home__rate strong {
  font-size: 17px;
  color: var(--ink);
}

/* The crossed-out price sits above the real one, so the column stays narrow and the name gets the room */
.pick-home__rate .was {
  display: block;
  margin: 0 0 1px;
}

@media (max-width: 360px) {
  .pick-home {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .pick-home__media {
    width: 52px;
    height: 52px;
  }

  .pick-home__name {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pick-sheet {
    transition: none;
  }
}

/* Forms ----------------------------------------------------------------- */

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

.form-grid .field--full {
  grid-column: span 2;
}

.field--boxed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--boxed label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.on-ink .field--boxed label {
  color: var(--linen);
}

.field--boxed input,
.field--boxed select,
.field--boxed textarea {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  outline: none;
}

.field--boxed textarea {
  min-height: 96px;
  resize: vertical;
}

.field--boxed input:focus,
.field--boxed select:focus,
.field--boxed textarea:focus {
  border-color: var(--ink);
}

.field__error {
  font-size: 13px;
  color: #8a2f1c;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.choice:has(input:checked) {
  border: 1.5px solid var(--ink);
}

.choice input {
  margin: 0;
  accent-color: var(--ink);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.check input {
  margin-top: 3px;
  accent-color: var(--ink);
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid .field--full {
    grid-column: auto;
  }
}

/* Checkout: the stay and the total first, then three fields, then how to pay ------------------------------ */

.checkout-head {
  padding-top: 40px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: start;
  padding-bottom: clamp(56px, 7.5vw, 112px);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.checkout-summary {
  position: sticky;
  top: 24px;
  grid-column: 2;
  grid-row: 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(15, 42, 60, 0.16);
  box-shadow: var(--shadow);
}

.checkout-summary__photo {
  position: relative;
  height: 150px;
  background: var(--sand);
}

.checkout-summary__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.checkout-summary__photo .pill {
  position: absolute;
  left: 14px;
  bottom: 12px;
}

.checkout-summary__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-summary__title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.checkout-summary__title .card__title {
  font-size: 26px;
}

.checkout-summary__change {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: -10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-summary__cancel {
  padding: 12px 14px;
  border-radius: 12px;
  background: #e3efee;
  font-size: 14px;
  line-height: 1.45;
  color: #14504e;
}

.checkout-note summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.checkout-note[open] summary {
  margin-bottom: 8px;
}

.pay-choices {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 10px;
}

.pay-choices legend {
  margin-bottom: 12px;
}

.pay-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.pay-choice:has(input:checked) {
  border: 2px solid var(--ink);
  padding: 13px 15px;
}

.pay-choice input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}

.pay-choice__text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-choice__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
}

.next-steps {
  padding: 24px;
  border-radius: 14px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.next-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.next-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: #d5dde2;
}

.next-steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: var(--peach);
}

.next-steps strong {
  color: var(--linen);
}

.summary-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(15, 42, 60, 0.16);
  border-radius: 14px;
}

.summary-card__thumb {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sand);
}

.summary-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 960px) {
  .checkout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .checkout-summary {
    position: static;
    grid-column: 1;
  }

  .checkout-form {
    grid-row: 2;
  }

  .checkout-head {
    padding-top: 24px;
    padding-bottom: 18px;
  }
}

/* Reviews --------------------------------------------------------------- */

.quote-card {
  margin: 0;
  padding: 32px;
  background: var(--linen-2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote-card__mark {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.6;
  color: var(--hibiscus);
}

.quote-card p {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
}

.quote-card footer {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer ---------------------------------------------------------------- */

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  padding-bottom: 56px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-on-ink);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--muted-on-ink);
}

.footer__links a:hover {
  color: var(--peach);
}

@media (max-width: 960px) {
  .cta-band,
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* Messages -------------------------------------------------------------- */

.messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
}

.message {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--linen-2);
  font-size: 15px;
}

.message--success {
  background: #e3f1f0;
  color: #17504f;
}

.message--error {
  background: #fbe7e2;
  color: #8a2f1c;
}

/* Utilities ------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mt-8 {
  margin-top: 8px;
}

.mt-24 {
  margin-top: 24px;
}

.center {
  text-align: center;
  align-items: center;
}

.max-w {
  max-width: 820px;
  margin-inline: auto;
}

.narrow {
  max-width: 640px;
  margin-inline: auto;
}

/* The Island (journal) ---------------------------------------------------- */

/* Journal index header: the title beside a still life, the category filters underneath */
.index-head {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.index-head__photo {
  margin: 0;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sand);
}

.index-head__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 960px) {
  .index-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-head__photo {
    aspect-ratio: 3 / 2;
  }
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: center;
}

.post-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
  color: var(--peach);
}

.post-card--featured .post-card__media {
  aspect-ratio: 16 / 10;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card__body h2 a:hover {
  color: var(--hibiscus);
}

.article {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: clamp(56px, 7.5vw, 112px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.article__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.article__cover img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 14px;
  background: var(--sand);
}

.article__foot {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}

.prose {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.1;
  color: var(--ink);
  margin-top: 1.8em;
}

.prose h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.5em;
}

.prose a {
  color: var(--hibiscus);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose blockquote {
  margin: 1.4em 0;
  padding-left: 20px;
  border-left: 2px solid var(--hibiscus);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
}

.prose strong {
  color: var(--ink);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line-strong);
  margin: 2em 0;
}

.related:hover .display {
  color: var(--hibiscus);
}

@media (max-width: 960px) {
  .posts {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-card--featured {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Lightbox ---------------------------------------------------------------- */

html.lb-open {
  overflow: hidden;
}

.lb-target {
  cursor: zoom-in;
}

.lb-target:focus-visible {
  outline: 3px solid var(--hibiscus);
  outline-offset: 3px;
}

.gallery__item img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery__item.lb-target:hover img {
  transform: scale(1.035);
}

.gallery {
  position: relative;
}

.gallery__all {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 42, 60, 0.2);
  background: rgba(244, 237, 225, 0.94);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.gallery__all:hover {
  background: var(--white);
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  color: var(--linen);
  opacity: 0;
  transition: opacity 0.25s ease;
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
}

.lb[hidden] {
  display: none;
}

.lb--in {
  opacity: 1;
}

.lb__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, rgba(22, 58, 80, 0.98), rgba(9, 24, 35, 0.99));
}

.lb__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 64px 88px 12px;
}

.lb__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  cursor: zoom-in;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  -webkit-user-drag: none;
}

.lb__img--in {
  opacity: 1;
}

.lb--zoomed .lb__img {
  cursor: grab;
  transition: transform 0.25s ease;
}

.lb__ghost {
  position: fixed;
  z-index: 3;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lb__close,
.lb__arrow {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 237, 225, 0.28);
  border-radius: 50%;
  background: rgba(244, 237, 225, 0.1);
  color: var(--linen);
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.lb__close:hover,
.lb__arrow:hover {
  background: rgba(244, 237, 225, 0.24);
}

.lb__close:focus-visible,
.lb__arrow:focus-visible,
.lb__thumb:focus-visible,
.lb__link:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}

.lb__close {
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
}

.lb__arrow {
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translateY(-50%);
}

.lb__arrow--prev {
  left: 20px;
}

.lb__arrow--next {
  right: 20px;
}

.lb__arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.lb--single .lb__arrow,
.lb--zoomed .lb__arrow {
  display: none;
}

.lb__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 24px 12px;
}

.lb__cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lb__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
}

.lb__text {
  font-size: 15px;
  line-height: 1.4;
  color: var(--linen);
}

.lb__link {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--peach);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lb__link:hover {
  color: var(--linen);
}

.lb__counter {
  flex: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--linen);
}

.lb__film {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 24px 18px;
  scrollbar-width: none;
}

.lb__film::-webkit-scrollbar {
  display: none;
}

.lb__film > :first-child {
  margin-left: auto;
}

.lb__film > :last-child {
  margin-right: auto;
}

.lb__thumb {
  flex: none;
  width: 68px;
  height: 46px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(244, 237, 225, 0.08);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.lb__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb__thumb:hover {
  opacity: 0.85;
}

.lb__thumb--on {
  opacity: 1;
  border-color: var(--linen);
}

@media (hover: none) {
  .lb__close,
  .lb__arrow {
    background: rgba(244, 237, 225, 0.14);
  }
}

@media (max-width: 960px) {
  .lb__film {
    display: none;
  }

  .lb__stage {
    padding: 56px 0 10px;
  }

  .lb__arrow {
    width: 44px;
    height: 44px;
    top: auto;
    bottom: 14px;
    transform: none;
  }

  .lb__arrow:active {
    transform: scale(0.94);
  }

  .lb__arrow--prev {
    left: 14px;
  }

  .lb__arrow--next {
    right: 14px;
  }

  .lb__bar {
    padding: 6px 74px 68px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .lb__cap {
    align-items: center;
  }

  .lb__counter {
    font-size: 16px;
  }

  .lb__img {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  }

  .gallery__all {
    right: 10px;
    bottom: 10px;
    min-height: 38px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb,
  .lb__img,
  .gallery__item img {
    transition: none;
  }
}

/* The village's film, in a pop-out ------------------------------------- */

html.film-open {
  overflow: hidden;
}

.film-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 24px;
}

.film-modal[hidden] {
  display: none;
}

.film-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 60, 0.93);
}

/* As wide as it can be while the close button, the player and what's under it fit the window's height. */
.film-modal__box {
  position: relative;
  width: min(1120px, 100%, calc((100vh - 210px) * 16 / 9));
  width: min(1120px, 100%, calc((100dvh - 210px) * 16 / 9));
}

/* The tile's photo sits behind the player (film.js sets it) until the film paints over it. YouTube's minimum
   player size is 200 px each way, hence the min-height on the narrowest phones. */
.film-modal__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: #000 center / cover no-repeat;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.film-modal__player iframe,
.film-modal__player video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.film-modal__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244, 237, 225, 0.35);
  background: transparent;
  color: var(--linen);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.film-modal__close:hover {
  background: var(--linen);
  color: var(--ink);
}

.film-modal__below {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.film-modal__caption {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted-on-ink);
}

.film-modal__sound {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--linen);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.film-modal__sound[hidden] {
  display: none;
}

.film-modal__sound:hover {
  background: var(--peach);
}

.film-modal__sound:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
}

/* On a phone the film runs edge to edge: the widest picture, and above YouTube's 200 px minimum. */
@media (max-width: 640px) {
  .film-modal {
    padding: 16px 0;
  }

  .film-modal__player {
    border-radius: 0;
  }

  .film-modal__close {
    top: -50px;
    right: 12px;
  }

  .film-modal__below {
    padding: 0 16px;
  }
}

/* A phone on its side: the close button moves beside the player and the caption steps aside. */
@media (orientation: landscape) and (max-height: 520px) {
  .film-modal {
    padding: 12px 64px;
  }

  .film-modal__box {
    width: min(1120px, 100%, calc((100vh - 84px) * 16 / 9));
    width: min(1120px, 100%, calc((100dvh - 84px) * 16 / 9));
  }

  .film-modal__player {
    border-radius: 12px;
  }

  .film-modal__close {
    top: 0;
    right: -56px;
  }

  .film-modal__below {
    margin-top: 10px;
    padding: 0;
  }

  .film-modal__caption {
    display: none;
  }
}

/* The village film card ---------------------------------------------- */

.film-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  color: var(--linen);
  text-align: left;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
}

.film-card__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.film-card:hover .film-card__poster {
  transform: scale(1.04);
}

.film-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 42, 60, 0.05) 0%, rgba(15, 42, 60, 0.2) 45%, rgba(15, 42, 60, 0.85) 100%);
}

.film-card__play {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--linen);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding-left: 3px;
  box-shadow: 0 8px 20px rgba(15, 42, 60, 0.3);
  transition: transform 0.2s ease;
}

.film-card:hover .film-card__play {
  transform: scale(1.08);
}

.film-card__text {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.film-card__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--peach);
}

.film-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
}

.film-card__sub {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(244, 237, 225, 0.82);
}

.film-card:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
}

/* Guest reviews --------------------------------------------------------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review {
  margin: 0;
  position: relative;
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reviews--unit {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.reviews--unit .review {
  background: var(--white);
}

.good-to-know a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review__mark {
  position: absolute;
  top: 6px;
  left: 22px;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  color: var(--peach);
  pointer-events: none;
}

.review__quote {
  margin: 0;
  padding-top: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.38;
  text-wrap: pretty;
}

.review__who {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.review__name {
  font-weight: 700;
  font-size: 15px;
}

.review__from {
  font-weight: 400;
  color: var(--muted);
}

.review__meta {
  font-size: 13px;
  color: var(--muted);
}

.review__stars {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--sunset);
}

@media (max-width: 960px) {
  .reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .reviews {
    grid-template-columns: minmax(0, 1fr);
  }

  .review__quote {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .film-card__poster,
  .film-card__play {
    transition: none;
  }
}

/* A day on Dickenson Bay -------------------------------------------------- */

.section-head--flush {
  margin-bottom: 0;
}

.day .lede {
  color: var(--muted-on-ink);
}

.day__rail {
  display: grid;
  /* One column per moment: six by design, fewer if the owners keep fewer (then no wider than six would be). */
  grid-template-columns: repeat(var(--moments, 6), minmax(0, 1fr));
  max-width: calc(var(--moments, 6) * 240px);
  gap: 16px;
}

.day__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.day__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #1d3a4d;
}

.day__time {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--peach);
}

.day__text {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  color: #d5dde2;
}

.day__foot {
  display: none;
  align-items: center;
  gap: 16px;
}

.day__foot .link-arrow {
  color: var(--linen);
}

.rail-track {
  flex-grow: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--line-on-ink);
  overflow: hidden;
}

.rail-bar {
  width: 20%;
  height: 100%;
  border-radius: 2px;
  background: var(--peach);
}

@media (max-width: 960px) {
  .day__rail {
    display: flex;
    max-width: none;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .day__rail::-webkit-scrollbar {
    display: none;
  }

  .day__item {
    flex: 0 0 min(70vw, 280px);
    scroll-snap-align: start;
  }

  .day__time {
    font-size: 28px;
  }

  .day__foot {
    display: flex;
  }
}

/* Plain facts in pills ---------------------------------------------------- */

.trust-row {
  padding-block: 32px;
}

.trust-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row .trust-chips {
  justify-content: center;
}

.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.trust-chips li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: var(--lagoon);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Who's coming? ------------------------------------------------------------ */

.trips__layout {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.trips__side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.trips__tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trip-tab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--linen);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.trip-tab__title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}

.trip-tab__sub {
  font-size: 14px;
  color: var(--muted);
}

.trips .is-enhanced .trip-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--linen);
}

.trips .is-enhanced .trip-tab[aria-selected="true"] .trip-tab__sub {
  color: var(--muted-on-ink);
}

.trip-tab:focus-visible {
  outline: 3px solid var(--lagoon);
  outline-offset: 2px;
}

.trips__panels {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.trip-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.trip-panel[hidden] {
  display: none;
}

.trip-panel img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--sand-2);
}

.trip-panel__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trip-panel__copy .body {
  font-size: 17px;
  line-height: 1.55;
}

.trip-panel .btn {
  align-self: flex-start;
}

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

.trip-facts div {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--linen);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trip-facts span {
  font-size: 13px;
  color: var(--muted);
}

.trip-facts strong {
  font-size: 20px;
}

@media (max-width: 1100px) {
  .trip-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .trip-panel img {
    height: 320px;
  }
}

@media (max-width: 960px) {
  .trips__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .trips__tabs {
    flex-direction: row;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--linen);
    border: 1px solid var(--line);
  }

  .trip-tab {
    flex: 1 1 0;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 8px 6px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    text-align: center;
  }

  .trip-tab__title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
  }

  .trip-tab__sub {
    display: none;
  }

  .trip-panel img {
    height: 240px;
  }

  .trip-panel .btn {
    align-self: stretch;
  }
}

/* Life at the village, short ------------------------------------------------ */

.village-v3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  align-items: center;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.checklist li {
  position: relative;
  padding: 15px 0 15px 28px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

.checklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 12px;
  height: 12px;
  background: var(--hibiscus);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.checklist strong {
  color: var(--ink);
}

.film-card--large {
  aspect-ratio: 5 / 4;
}

.film-card--large .film-card__title {
  font-size: 34px;
}

.film-card--large .film-card__sub {
  font-size: 15px;
}

.village-v3__photo {
  margin: 0;
}

.village-v3__photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (max-width: 960px) {
  .village-v3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .film-card--large {
    aspect-ratio: 16 / 11;
  }

  .film-card--large .film-card__title {
    font-size: 26px;
  }
}

/* The practical bits, and Ask the owners -------------------------------------- */

.practical {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding-top: 0;
}

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 25px);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
}

.faq details[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat;
}

.faq summary:focus-visible {
  outline: 3px solid var(--lagoon);
  outline-offset: 2px;
}

.faq__body {
  max-width: 62ch;
  padding: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.island-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.island-links__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.island-links__row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 700;
}

.island-links__row a:hover {
  border-color: var(--ink);
}

.ask-card {
  position: sticky;
  top: 24px;
  padding: 36px;
  border-radius: 18px;
  background: var(--sand);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.ask-form .notice,
.ask-form__when,
.ask-form__actions {
  grid-column: 1 / -1;
}

.ask-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.ask-form__actions .btn:first-child {
  flex-grow: 1;
}

@media (max-width: 960px) {
  .practical {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .ask-card {
    position: static;
    margin-inline: calc(var(--gutter) * -1);
    padding: 32px var(--gutter);
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  .ask-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .ask-form__actions .btn {
    flex-grow: 1;
  }
}


/* Offers: the price an offer replaces, crossed out; the tags; the code banner and the code box ------------------ */

.was {
  margin-right: 6px;
  font-weight: 400;
  font-size: 0.9em;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hibiscus);
  white-space: nowrap;
}

.on-ink .was,
.hero__head .was {
  color: var(--muted-on-ink);
}

.rate-card__rate .was {
  align-self: center;
  font-family: var(--font-display);
  font-size: 24px;
}

.book-bar__price .was {
  font-size: 14px;
}

.price .was {
  font-size: 15px;
}

.hero-prices__rate .was {
  font-size: 16px;
}

/* In the stay tiles the usual price sits on its own line above the real one, so every tile keeps one rhythm */
.card__stay-total .was,
.stay-price__total .was {
  display: block;
  margin: 0 0 1px;
  font-size: 14px;
}

.card__media .pill--offer {
  left: auto;
  right: 16px;
}

.pill--offer {
  background: var(--hibiscus);
  color: var(--white);
  white-space: nowrap;
}

.offer-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--hibiscus);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.offer-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.offer-note {
  font-size: 14px;
  line-height: 1.4;
  color: var(--hibiscus-ink);
}

.breakdown .is-offer {
  color: var(--hibiscus-ink);
}

.breakdown .offer-note span {
  color: var(--hibiscus-ink);
}

/* The band under the navigation while a guest's code is on */
.offer-banner {
  background: var(--ink);
  color: var(--linen);
}

.offer-banner__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.offer-banner__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.offer-banner__text {
  flex: 1 1 320px;
}

.offer-banner__text strong {
  color: var(--peach);
}

.offer-banner form {
  margin: 0;
}

.offer-banner__remove {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--linen);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.offer-banner__remove:hover {
  color: var(--peach);
}

/* The promotion ribbon above the navigation: a sale every guest gets, while it's switched on */
.promo-ribbon {
  background: var(--hibiscus);
  color: var(--white);
}

.promo-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.promo-ribbon__tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--linen);
  color: var(--hibiscus-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.promo-ribbon__text strong {
  font-weight: 700;
}

.promo-ribbon__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.promo-ribbon__link:hover,
.promo-ribbon__link:focus-visible {
  color: var(--linen);
}

/* On a phone the band stays one line: the tag, the name, Remove. The details are in every price anyway. */
@media (max-width: 640px) {
  .promo-ribbon__inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
    text-align: left;
  }

  .promo-ribbon__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .promo-ribbon__more {
    display: none;
  }

  .offer-banner__inner {
    flex-wrap: nowrap;
    gap: 10px;
    font-size: 13px;
  }

  .offer-banner__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .offer-banner__more {
    display: none;
  }
}

/* "Have a code?" in the booking card and at checkout */
.rc-code {
  font-size: 14px;
}

.rc-code__box summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}

.rc-code__box summary::-webkit-details-marker {
  display: none;
}

.rc-code__row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.rc-code__row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rc-code__row input::placeholder {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.rc-code__row .btn {
  min-height: 44px;
  padding: 0 18px;
}

.rc-code__msg {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.rc-code__msg--error {
  color: #8a2f1c;
}

.rc-code__msg--ok {
  color: #14504e;
}

.rc-code__on {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  color: var(--ink-2);
}

.checkout-code {
  margin-top: 14px;
}

.message--warning {
  background: #fdeee4;
  color: #8a2f1c;
}

.message--info {
  background: var(--linen-2);
  color: var(--ink-2);
}

/* The welcome photo is a figure now (the bay, not a link to a home) */
figure.hero__cover {
  margin: 0;
}

.bundle-card__media {
  position: relative;
}

.bundle-card__media .pill--offer {
  position: absolute;
  top: 16px;
  right: 16px;
}

.rate-card__total .was {
  font-size: 15px;
}
