/* The Red Hideaway. Colors and type sizes carried over from the original site. */
@font-face {
  font-family: "Playfair";
  src: url("/assets/fonts/playfair-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: hsl(5.17, 57.43%, 39.61%);
  --red-dark: hsl(5.17, 57.43%, 32%);
  --paper: hsl(0, 0%, 96.08%);
  --white: #fff;
  --ink: hsl(0, 0%, 7.06%);
  --blush: hsl(20.57, 36.84%, 81.37%);
  --sage: hsl(110, 6.32%, 62.75%);
  --serif: "Playfair", "Playfair Display", Georgia, "Times New Roman", serif;
  --radius: 10px;
  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, h3, h4 { font-weight: 300; line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.2rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.8rem); }
h3, .h3 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.2rem); }
h4, .h4 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--red); color: var(--white); padding: 0.6em 1em;
}
.skip-link:focus { left: 0; }
.center { text-align: center; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--mid { max-width: 1000px; }
.wrap--narrow { max-width: 760px; }
.eyebrow, .small-caps {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85em; margin-bottom: 0.8em;
}
.lead { font-size: 1.1em; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.7em 1.5em; border-radius: var(--radius);
  background: var(--red); color: var(--white); text-decoration: none;
  font: inherit; font-size: 0.95em; letter-spacing: 0.04em; border: 0; cursor: pointer;
  transition: background-color 0.2s;
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); }
.btn--book { text-transform: uppercase; }
.btn--light { background: var(--white); color: var(--red); text-transform: uppercase; }
.btn--light:hover, .btn--light:focus-visible { background: var(--paper); }
.link-btn {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.site-header__inner {
  max-width: 1500px; margin: 0 auto; padding: 0.7rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.site-header__logo img { width: clamp(170px, 22vw, 290px); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); margin-left: auto; }
.site-nav a:not(.btn) { text-decoration: none; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.site-nav__icon { display: inline-flex; }
.site-header__book { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 0.6rem; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 26px; height: 2px; background: var(--ink); position: relative; transition: transform 0.2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
@media (max-width: 760px) {
  .site-header__inner { gap: 0.6rem; }
  .site-header__logo { margin-right: auto; }
  .site-header__logo img { width: clamp(120px, 36vw, 170px); }
  .site-header__book { padding: 0.55em 0.9em; font-size: 0.8rem; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin-left: 0;
    flex-direction: column; gap: 1.3rem; padding: 1.8rem var(--gutter) 2rem;
    background: var(--paper); border-bottom: 1px solid rgba(0, 0, 0, 0.08); font-size: 1.3rem;
  }
  .site-nav.is-open { display: flex; }
}

/* Hero slideshow */
.hero { position: relative; height: min(88vh, 62vw); min-height: 420px; background: #000; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; }
.hero__text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--gutter);
}
.hero__text h1 { color: var(--paper); text-transform: uppercase; letter-spacing: 0.04em; margin: 0; max-width: 16em; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 1.2rem; display: flex; justify-content: center; gap: 0.6rem; }
.hero__dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--paper);
  background: transparent; padding: 0; cursor: pointer;
}
.hero__dots button[aria-selected="true"] { background: var(--paper); }

/* Sections and color themes */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--tight { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.theme-white { background: var(--paper); color: var(--ink); }
.theme-bold { background: var(--paper); color: var(--ink); }
.theme-bold h2, .theme-bold h3, .theme-bold a, .theme-bold .link-btn { color: var(--red); }
.theme-bright { background: var(--white); color: var(--red); }
.theme-bold + .theme-white, .theme-white + .theme-bold, .theme-bold + .theme-bold, .theme-white + .theme-white {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

/* Welcome */
.welcome__logo { width: min(560px, 90%); margin: 0 auto 1.2rem; }
.badges {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.8rem 2.5rem; margin-top: 2rem; margin-bottom: 2.5rem; text-align: center;
}
.badges li { max-width: 15em; }
.badges strong { display: block; font-weight: 400; color: var(--red); font-size: 1.1em; }
.badges span { font-size: 0.85em; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stats img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.stats p { text-align: center; margin: 0.7rem 0 0; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9em; }
.stats span { display: block; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Photo reel */
.reel { position: relative; margin-top: 1.5rem; }
.reel__track {
  list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: 1vw;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__track li { flex: 0 0 auto; scroll-snap-align: center; }
.reel__track img { height: clamp(240px, 42vw, 560px); width: auto; max-width: 86vw; object-fit: cover; }
.reel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 1.8rem; line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.reel__btn--prev { left: 1rem; }
.reel__btn--next { right: 1rem; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split__media img { border-radius: var(--radius); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.ticks, .list, .amenities { list-style: none; padding: 0; }
.ticks li, .list li { margin-bottom: 0.45em; }
.ticks li::before { content: "•"; color: var(--red); margin-right: 0.5em; }

/* Cards */
.cards { list-style: none; padding: 0; display: grid; gap: 1.5rem; margin: 2rem 0 0; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards--4 { grid-template-columns: 1fr; } }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--radius); }
.card h3 { font-size: 1.5rem; margin: 0.8rem 0 0.2rem; }
.card p { margin: 0; }

/* Amenities */
.amenities { columns: 2; column-gap: 3rem; margin-top: 1.2rem; }
.amenities li { break-inside: avoid; padding: 0.35em 0 0.35em 1.4em; position: relative; }
.amenities li::before {
  content: ""; position: absolute; left: 0; top: 0.85em; width: 0.5em; height: 0.5em;
  border-radius: 50%; background: var(--red);
}
@media (max-width: 520px) { .amenities { columns: 1; } }

/* Things-to-do lists */
.columns-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.columns-4 .list { font-size: 0.92em; }
@media (max-width: 1100px) { .columns-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .columns-4 { grid-template-columns: 1fr; } }
.columns-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 620px) { .columns-2 { grid-template-columns: 1fr; } }

/* Reviews / social grid */
.social-grid { list-style: none; padding: 0; margin: 2rem auto 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; }
.social-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 800px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }

/* Hosts */
.hosts { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 1.5rem; }
.hosts__photo img { border-radius: var(--radius); }
@media (max-width: 800px) { .hosts { grid-template-columns: 1fr; } .hosts__photo { max-width: 300px; } }

/* FAQs */
.faqs details { border-top: 1px solid rgba(0, 0, 0, 0.25); }
.faqs details:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.25); }
.faqs summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary h3 { margin: 0; }
.faqs summary::after { content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.faqs details[open] summary::after { content: "−"; }
.faqs__answer { padding-bottom: 1rem; }

/* Modals */
.modal {
  border: 0; border-radius: var(--radius); padding: 1.5rem clamp(1.2rem, 4vw, 2.5rem) 2rem;
  width: min(1000px, 92vw); max-height: 85vh; background: var(--paper); color: var(--ink);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.5); }
.modal h2 { color: var(--red); padding-right: 2.5rem; }
.modal h3 { font-size: 1.25rem; margin-top: 1.4em; color: var(--red); }
.modal h4 { font-size: 1.05rem; margin-top: 1.2em; letter-spacing: 0.06em; }
.modal__body { font-size: 0.92em; }
.modal__close {
  position: sticky; float: right; top: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.modal--booking { width: min(380px, 96vw); padding: 0.6rem; max-height: 92vh; }
.modal--booking iframe { width: 100%; height: 750px; border: 0; display: block; }
.modal--booking .modal__close { position: absolute; right: 0.4rem; top: 0.4rem; float: none; z-index: 2; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; }
.lightbox__close, .lightbox__nav {
  position: fixed; border: 0; background: rgba(255, 255, 255, 0.9); border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; }
.lightbox__nav--next { right: 1rem; top: 50%; }

/* Gallery page */
.page-title { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; text-align: center; color: var(--red); }
.grid-gallery { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1vw; }
.grid-gallery button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.grid-gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 700px) { .grid-gallery { grid-template-columns: repeat(2, 1fr); gap: 2vw; } }

/* Text pages and blog */
.prose { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); color: var(--red); }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; color: var(--red); }
.prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.prose a { color: var(--red); }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose--legal { font-size: 1rem; }
.post-meta { font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.1em; }
.post-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.post-list a { text-decoration: none; }
.post-list img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--radius); }
.post-list h2 { font-size: 1.5rem; margin: 0.8rem 0 0.3rem; color: var(--red); }
.cta-band { background: var(--white); color: var(--red); text-align: center; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter); }

/* Footer */
.site-footer { position: relative; color: var(--paper); text-align: center; overflow: hidden; background: #000; }
.site-footer__bg { position: absolute; inset: 0; }
.site-footer__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.site-footer__inner { position: relative; max-width: 900px; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.site-footer__logo { width: min(480px, 85%); margin: 0 auto 1rem; }
.site-footer__tagline { font-size: 1.4em; }
.site-footer__social { display: inline-flex; margin-bottom: 1.5rem; }
.site-footer__notice { font-size: 0.8em; line-height: 1.5; }
.site-footer__links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; font-size: 0.9em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide { transition: none; }
}
