/* 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;
  --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 ------------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 53fr) minmax(0, 47fr);
  min-height: 680px;
}

.hero__copy {
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px) clamp(40px, 5vw, 64px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: center;
}

.hero__art {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

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

.hero__photo {
  position: absolute;
  left: 32px;
  bottom: 32px;
  width: 232px;
  background: var(--linen);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 16px 36px rgba(15, 42, 60, 0.18);
}

.hero__photo img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.hero__photo .caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
}

/* Full-bleed cover photo in place of the illustration (once the lead home has a 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% 28%; /* 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;
}

.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);
    min-height: 0;
  }

  .hero__art {
    order: -1;
    height: 300px;
  }

  .hero__photo {
    display: none;
  }

  .hero__cover-label {
    left: 16px;
    bottom: 16px;
    max-width: 240px;
    padding: 10px 12px;
  }

  .hero__cover-label .caption {
    font-size: 15px;
  }

  .hero__copy {
    padding: 28px var(--gutter) 40px;
  }
}

/* Booking bar ----------------------------------------------------------- */

.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-right: 1px solid var(--line);
  min-width: 0;
}

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

.booking-bar__field input,
.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%;
}

@media (max-width: 960px) {
  .booking-bar {
    flex-wrap: wrap;
  }

  .booking-bar__field {
    flex: 1 1 45%;
    border-bottom: 1px solid var(--line);
  }

  .booking-bar__field:nth-child(2) {
    border-right: 0;
  }

  .booking-bar__field:nth-child(3) {
    flex-basis: 100%;
    border-right: 0;
  }

  .booking-bar__cta {
    flex-basis: 100%;
    padding: 10px;
  }

  .booking-bar__cta .btn {
    width: 100%;
    min-height: 52px;
  }
}

/* Ticker ---------------------------------------------------------------- */

.ticker {
  padding: 14px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.ticker__dot {
  color: var(--sunset);
}

/* 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;
  }
}

/* Numbered reasons / facts --------------------------------------------- */

.reason {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-ink);
}

.reason__num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--peach);
}

.reason h3 {
  font-size: 21px;
  font-weight: 700;
}

.reason p {
  color: var(--muted-on-ink);
  line-height: 1.6;
}

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

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

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.fact__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1;
}

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

@media (max-width: 640px) {
  .facts--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Map / art panels ------------------------------------------------------- */

.panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
  position: relative;
}

.panel__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel--map {
  aspect-ratio: 13 / 14;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.panel--map svg {
  width: 100%;
  height: 100%;
}

.callout {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: min(320px, 80%);
  padding: 22px 24px;
  background: var(--ink);
  color: var(--linen);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 40px rgba(15, 42, 60, 0.25);
}

.callout .display {
  font-size: 28px;
  line-height: 1.1;
}

@media (max-width: 960px) {
  .panel--map {
    justify-self: stretch;
    max-width: none;
  }

  .callout {
    position: static;
    width: auto;
    margin-top: 16px;
  }
}

/* Notes card (hosts) ---------------------------------------------------- */

.notes {
  background: var(--ink);
  color: var(--linen);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.notes__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-on-ink);
}

.notes__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.notes__name {
  font-family: var(--font-display);
  font-size: 24px;
}

.notes__item p {
  font-size: 14px;
  color: var(--muted-on-ink);
}

/* Around the island ------------------------------------------------------ */

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

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

.guide__col h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.guide__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide__name {
  font-weight: 700;
  font-size: 16px;
}

.guide__item p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

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

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

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

/* Two photos side by side with a caption under each (the village, in the "Three doors" section) */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  width: 100%;
  text-align: left;
}

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

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

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

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

.trio__plus {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--hibiscus);
  align-self: center;
}

.trio__unit {
  flex: 0 1 340px;
  min-width: 240px;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(15, 42, 60, 0.16);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

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

/* 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;
}

/* Photos beyond the first five: two wide tiles per row, a lone last one goes full width */
.gallery--more {
  margin-top: 12px;
  grid-auto-rows: 300px;
}

.gallery--more .gallery__item,
.gallery--more .gallery__item:first-child {
  grid-column: span 2;
  grid-row: auto;
}

.gallery--more .gallery__item:last-child:nth-child(odd) {
  grid-column: 1 / -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,
  .gallery--more .gallery__item,
  .gallery--more .gallery__item:last-child:nth-child(odd) {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery__caption {
    opacity: 1;
  }
}

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

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

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

.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;
}

.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: 18px;
}

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

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

  .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;
  }

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

/* Rate card ------------------------------------------------------------- */

.rate-card {
  position: sticky;
  top: 24px;
  padding: 28px;
  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: 18px;
}

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

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

.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: 12px 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--full {
  grid-column: span 2;
  border-right: 0 !important;
}

.fieldset .field:nth-last-child(-n + 1) {
  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;
}

.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 .total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
  font-size: 17px;
}

.breakdown .zero {
  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;
}

/* Calendar -------------------------------------------------------------- */

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

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

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

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

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

.cal__dow {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal__day {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
}

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

.cal__day--blank {
  background: transparent;
  border: 0;
  cursor: default;
}

.cal__day--past {
  color: var(--sand-2);
  background: transparent;
  cursor: not-allowed;
}

.cal__day--booked {
  background: var(--ink);
  color: var(--muted-on-ink);
  border-color: var(--ink);
  cursor: not-allowed;
}

.cal__day--resort {
  background: repeating-linear-gradient(135deg, var(--sand-2) 0 3px, var(--sand) 3px 6px);
  color: var(--muted);
  border-color: transparent;
  cursor: not-allowed;
}

.cal__day--sel {
  background: var(--lagoon);
  color: var(--white);
  border-color: var(--lagoon);
}

.cal__day--edge {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 13px;
  color: var(--ink-2);
}

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

.legend__item::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--white);
}

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

.legend__item--booked::before {
  background: var(--ink);
  border-color: var(--ink);
}

.legend__item--resort::before {
  background: repeating-linear-gradient(135deg, var(--sand-2) 0 3px, var(--sand) 3px 6px);
  border-color: transparent;
}

.cal-nav {
  display: flex;
  gap: 8px;
}

.cal-nav button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

  .cal__day {
    height: 44px;
  }
}

/* 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 layout ------------------------------------------------------- */

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

.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: 32px;
  }

  .rate-card {
    position: static;
  }
}

/* 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;
}

/* Photo strip (home page) -------------------------------------------------- */

.strip {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
}

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

.strip__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.strip__item {
  flex: 0 0 auto;
  width: min(440px, 78vw);
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sand);
  position: relative;
  margin: 0;
}

.strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
  transition: transform 0.6s ease;
}

.strip__item:hover img {
  transform: scale(1.03);
}

.strip__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 16px 14px;
  font-size: 13px;
  color: var(--linen);
  background: linear-gradient(to top, rgba(15, 42, 60, 0.68), rgba(15, 42, 60, 0));
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.strip__item figcaption strong {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  white-space: nowrap;
}

.strip__nav {
  display: flex;
  gap: 8px;
}

.strip__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

/* 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;
  }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.filter--on,
.filter:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--linen);
}

.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);
  }
}
