/* ============================================
   Apartment Leo — design system
   Palette + type matched to the Touch Stay
   welcome guide (apartment-leo.touchstay.com)
   ============================================ */

:root {
  /* Color — sampled from the welcome guide */
  --navy: #1A293A;          /* guide footer / hero ground */
  --navy-soft: #233446;     /* guide panel fill */
  --blue: #1C559E;          /* guide header + primary buttons */
  --blue-mid: #4A7FBF;
  --blue-light: #9DBEE4;    /* accents on navy */
  --blue-tint: #E8EEF7;     /* quiet blue wash */
  --paper: #FFFFFF;
  --surface: #F1F4F8;       /* alternating section fill */
  --ink: #303133;           /* guide body text */
  --ink-soft: #5B6672;
  --ink-mute: #8A94A0;
  --line: rgba(26, 41, 58, 0.12);
  --white: #FFFFFF;

  /* Type — the guide sets everything in Figtree */
  --font-display: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-meta: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-meta);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  color: var(--navy);
  margin-top: 0.5rem;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  position: relative;
}
.section--tint {
  background: var(--surface);
}

/* ---------- Contour signature motif ---------- */
.contour-divider {
  height: 64px;
  width: 100%;
  overflow: hidden;
  opacity: 0.5;
}
.contour-divider svg { width: 100%; height: 100%; display: block; }

.contour-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: 0;
}
.contour-bg svg { width: 100%; height: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img {
  height: 44px;
  width: auto;
}
.brand span {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}
.nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav a:not(.btn):hover { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  /* 44px minimum touch target */
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover { background: #17467F; }
.btn--accent {
  background: var(--blue);
  color: var(--white);
}
.btn--accent:hover { background: #17467F; }
.btn--outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: transparent;
}
.btn--outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,41,58,0.45) 0%, rgba(26,41,58,0.32) 38%, rgba(26,41,58,0.72) 72%, rgba(26,41,58,0.92) 100%);
  z-index: 1;
}
.hero__contour {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: screen;
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--paper);
  padding-top: 6rem;
  padding-bottom: 3.2rem;
  width: 100%;
}
.hero__content .eyebrow { color: rgba(255,255,255,0.92); text-shadow: 0 1px 12px rgba(26,41,58,0.6); }
.hero__content .eyebrow::before { background: rgba(255,255,255,0.92); }
.hero__title {
  font-family: var(--font-display);
  text-shadow: 0 2px 24px rgba(26,41,58,0.45);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
  max-width: 16ch;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 44ch;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 1px 14px rgba(26,41,58,0.55);
  margin-bottom: 2rem;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-bottom: 2.2rem;
  font-family: var(--font-meta);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
}
.hero__stats span { color: rgba(255,255,255,0.8); }
.hero__stats { text-shadow: 0 1px 12px rgba(26,41,58,0.55); }
.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-grid__text p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-top: 1.1rem;
}
.about-grid__text p:first-of-type { margin-top: 1.4rem; }
.about-grid__media {
  position: relative;
}
.about-grid__media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* ---------- Stay details ---------- */
.stay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.5rem;
}
.stay-card {
  background: var(--paper);
  padding: 2rem 1.75rem;
}
.stay-card__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 1.1rem;
  color: var(--blue);
}
.stay-card__icon svg { width: 100%; height: 100%; }
.stay-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.stay-card p, .stay-card ul {
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.stay-card ul { margin-top: 0.4rem; }
.stay-card li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.25rem;
}
.stay-card li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* Shared facilities — deliberately the same card shell as .stay-card
   above (white surface, blue icon, identical type scale), just spanning
   the full grid width so the seasonal hours have room to sit beside it. */
.facility {
  margin-top: 1px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: none;
  padding: 2rem 1.75rem;
}
.facility__lede h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.facility__lede p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  max-width: 46ch;
}
.facility__hours {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0;
}
.facility__hours dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  padding-bottom: 0.6rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.facility__hours dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.facility__hours dd.facility__dates {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

/* ---------- Gallery ---------- */
.gallery-group { margin-top: 2.75rem; }
.gallery-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
/* the shared .block-title carries its own rule; inside a group head the
   head element owns the divider so the note sits above it, not below */
.gallery-group__head .block-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.block-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.block-title,
.amenity-group__title {
  font-family: var(--font-meta);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
}
.gallery img {
  width: 100%;
  /* the width/height attributes on the <img> are presentational hints;
     without height:auto they beat aspect-ratio and the tiles go portrait */
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  transition: opacity 0.18s ease;
}
.gallery a { cursor: zoom-in; display: block; }
.gallery a:hover img { opacity: 0.88; }
.shot { margin: 0; }
.shot figcaption {
  margin-top: 0.45rem;
  font-family: var(--font-meta);
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--ink-mute);
}

/* ---------- Amenities ---------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.5rem 2rem;
  margin-top: 2.5rem;
}

.amenity-group li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.94rem;
  color: var(--navy-soft);
  padding: 0.35rem 0;
}
.amenity-group li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--ink-mute);
}

/* ---------- House rules ---------- */
.rules-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
}
.rules-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rules-list svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ---------- Getting here (timetable) ---------- */
.transit {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 2.5rem;
}
.transit__contour {
  position: absolute;
  inset: 0;
  opacity: 0.12;
}
.transit__inner {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.transit-col h4 {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-light);
  margin-bottom: 1rem;
}
.transit-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--font-meta);
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
}
.transit-row:last-child { border-bottom: none; }
.transit-row span:first-child {
  color: rgba(255,255,255,0.65);
  min-width: 0;            /* the label yields first, so the value stays whole */
}
.transit-row span:last-child {
  color: var(--white);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.transit-tip {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}

/* ---------- Book / widget ---------- */
.section-lede {
  max-width: 60ch;
  margin-top: 1rem;
  color: var(--ink-soft);
}
.book-layout {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.book-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.book-panel__widget { min-height: 420px; }

.book-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2rem);
}
.checkin-times {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.checkin-times dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.35rem;
}
.checkin-times dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.book-aside .rules-list { margin-top: 0; }
.book-aside .rules-list li {
  background: var(--surface);
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
}
/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer .brand span { color: var(--paper); }
.footer-links {
  display: flex;
  gap: 1.75rem;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}
.footer-links a:hover { color: var(--blue-light); }
.footer-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .book-layout { grid-template-columns: 1fr; }
  /* nowrap values would overflow a narrow panel, so stack label over value */
  .transit-row { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .transit-row span:last-child { text-align: left; }
  .about-grid__media { order: -1; }
  .stay-grid { grid-template-columns: 1fr; }
  .facility { grid-template-columns: 1fr; gap: 1.75rem; }
  .transit__inner { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav { 
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { padding: 0.6rem 0; width: 100%; }
  .nav .btn { margin-top: 0.5rem; }
  .nav-toggle { display: flex; }
  .brand span { font-size: 1.15rem; }
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 1rem 2.5rem;
  }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Gallery lightbox ---------- */
.lightbox__figure {
  margin: 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 92vw;
}
.lightbox__figure figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-meta);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}
.lightbox__room {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--blue-light);
}
.lightbox__count {
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.55);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(26, 41, 58, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.gallery a { cursor: zoom-in; }

@media (max-width: 720px) {
  .lightbox__nav { width: 38px; height: 38px; }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
}
