/* Sam's Guest House — map-led page. One hero entrance; the papaya path is static. */

body { position: relative; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.site-footer,
main {
  padding-inline: max(2.25rem, var(--gutter));
}

html { scroll-padding-top: calc(var(--header-h, 4.5rem) + 0.75rem); }
h1, h2, h3 { scroll-margin-top: calc(var(--header-h, 4.5rem) + 0.75rem); }

.wrap {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-bg);
}

.site-header.is-scrolled {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "mark toggle"
    "lang lang";
  align-items: center;
  gap: 0.25rem 0.75rem;
  min-height: 4.25rem;
  padding-block: 0.6rem;
}

.wordmark {
  grid-area: mark;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.15;
  text-decoration: none;
}

.menu-toggle { grid-area: toggle; justify-self: end; }
.lang-switch { grid-area: lang; }
.desktop-nav,
.header-cta.button { display: none; }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.2rem;
  color: var(--c-ink);
  font-weight: 500;
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  box-shadow: inset 0 -2px 0 var(--c-accent);
}

.desktop-nav {
  grid-area: nav;
  gap: 0.85rem 1.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.desktop-nav a,
.drawer-nav a {
  color: var(--c-ink);
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.05rem;
  border-radius: var(--r-md);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button {
  background: var(--c-accent);
  border: 1.5px solid var(--c-accent);
  color: var(--c-accent-ink);
}

.button-secondary {
  background: transparent;
  border: 1.5px solid var(--c-ink);
  color: var(--c-ink);
}

.icon-button {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-ink);
}

.icon-button svg,
.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
}

button { font: inherit; cursor: pointer; }

.drawer {
  margin: 0 0 0 auto;
  width: min(22rem, 100%);
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  padding: 1rem 1rem 1.5rem;
  background: var(--c-surface);
  color: var(--c-ink);
}

.drawer[open] { display: flex; flex-direction: column; gap: 1rem; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.drawer-nav { display: flex; flex-direction: column; align-items: flex-start; }
.drawer::backdrop,
.lightbox::backdrop { background: rgb(31 44 40 / .55); }

.hero { padding-block: 1.25rem 2.75rem; }
.section { padding-block: 0.5rem 3rem; }

.hero-copy { display: grid; gap: 0.9rem; justify-items: start; }
.kicker { margin: 0; color: var(--c-muted); font-weight: 600; font-size: var(--fs-0); }
.hero-subline,
.prose p,
.section-intro p,
.contact-intro { margin: 0; }
.prose { display: grid; gap: 0.9rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.fact-chips li {
  background: var(--c-tint);
  border-radius: var(--r-md);
  padding: 0.4rem 0.75rem;
  font-weight: 500;
}

.hero-map { margin: 1.35rem 0 0; }
.map-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-tint);
  box-shadow: var(--shadow-1);
  aspect-ratio: 4 / 5;
}

.map-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.map-pin {
  width: 28px;
  height: 28px;
  color: var(--c-accent);
  display: block;
}

.map-pin svg { width: 28px; height: 28px; display: block; }

.map-pin--hero {
  position: absolute;
  left: 62%;
  top: 60%;
  margin-left: -14px;
  margin-top: -28px;
}

.walk-label {
  margin: 0.85rem 0 0;
  max-width: 16rem;
  margin-left: auto;
  text-align: end;
  font-weight: 500;
  color: var(--c-accent);
}

.walk-path {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.walk-path path {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  stroke-linecap: butt;
}

@media (prefers-reduced-motion: no-preference) {
  .map-frame { animation: map-settle var(--t-hero) var(--ease) both; }
  .map-pin--hero { animation: pin-drop var(--t-hero) var(--ease) both; }
}

@keyframes map-settle {
  from { transform: scale(0.97); }
  to { transform: none; }
}

@keyframes pin-drop {
  from { transform: translateY(-8px); }
  to { transform: none; }
}

.about-grid,
.contact-grid { display: grid; gap: 1.5rem; }
.hero-layout > *,
.about-grid > *,
.contact-grid > *,
.service-list > *,
.gallery-grid > * { min-width: 0; }
.about-figure { margin: 0; }
.about-figure img,
.service-card img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  background: var(--c-tint);
}

.about-figure { position: relative; }
.about-figure img { border-radius: var(--r-lg); }

.highlights,
.contact-details {
  display: grid;
  gap: 0.85rem 1rem;
  margin: 1.25rem 0 0;
}

.highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.highlights dt,
.contact-details dt,
.hours-label { color: var(--c-muted); font-weight: 500; font-size: var(--fs-0); }
.highlights dd,
.contact-details dd { margin: 0.15rem 0 0; font-weight: 600; }
.contact-details a { font-weight: 600; }

.hours-unconfirmed { margin: 1rem 0 0; }

.section-intro { display: grid; gap: 0.6rem; margin-bottom: 1.15rem; max-width: 40rem; }
.services-note { margin: 0; color: var(--c-muted); font-weight: 500; }

.service-list,
.gallery-grid {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.service-card figure { position: relative; margin: 0; }
.service-card img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.service-copy { padding: 0.85rem 0.95rem 1rem; display: grid; gap: 0.35rem; }
.service-copy h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-1);
  line-height: 1.3;
  min-height: 3.2rem;
}
.service-copy p { margin: 0; }

.gallery-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--c-tint);
  color: inherit;
  overflow: hidden;
}

.gallery-frame { overflow: hidden; background: var(--c-tint); }
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid li:nth-child(1) .gallery-frame,
.gallery-grid li:nth-child(4) .gallery-frame { aspect-ratio: 3 / 4; }
.gallery-grid li:nth-child(3) .gallery-frame,
.gallery-grid li:nth-child(6) .gallery-frame { aspect-ratio: 1 / 1; }
.gallery-grid li:nth-child(2) .gallery-frame,
.gallery-grid li:nth-child(5) .gallery-frame,
.gallery-grid li:nth-child(7) .gallery-frame,
.gallery-grid li:nth-child(8) .gallery-frame { aspect-ratio: 4 / 3; }

.sample-badge {
  position: absolute;
  inset-inline-start: 0.5rem;
  inset-block-end: 0.5rem;
  z-index: 1;
  padding: 0.15rem 0.4rem;
  border-radius: var(--r-sm);
  background: rgb(31 44 40 / .55);
  color: #fff;
  font-family: Outfit, var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.map-column { display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.map-card {
  position: relative;
  min-width: 0;
  border-radius: var(--r-lg);
  background: var(--c-tint);
  box-shadow: var(--shadow-1);
}

.map-stage {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-tint);
}

.map-placeholder {
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.map-placeholder p { margin: 0; }
.map-stage iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-pin--contact {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 1.4rem;
  transform: translate(-50%, 0);
}

.maps-link {
  color: var(--c-ink);
  font-weight: 600;
  justify-self: start;
}

.site-footer { padding-block: 1rem calc(2rem + var(--sticky-cta-h)); }
.footer-top,
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: end;
}
.footer-top p,
.footer-bottom p,
.preview-notice p { margin: 0.35rem 0 0; }
.footer-bottom { margin-top: 1.25rem; color: var(--c-muted); }
.social-link { font-weight: 600; color: var(--c-ink); min-height: 44px; display: inline-flex; align-items: center; }
.back-top { color: var(--c-ink); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.preview-notice {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.offer-link[hidden] { display: none; }

.sticky-cta {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem max(2.25rem, var(--gutter)) calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
}

.sticky-cta .button { width: 100%; }
body:has(dialog[open]) .sticky-cta { visibility: hidden; }
a, button, summary { scroll-margin-bottom: calc(var(--sticky-cta-h) + 0.75rem); }

.lightbox {
  width: min(60rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  border: 0;
  border-radius: var(--r-lg);
  padding: 0;
  background: var(--c-surface);
  color: var(--c-ink);
}

.viewer-toolbar,
.viewer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
}

.viewer-image {
  background: var(--c-ink);
  min-height: 12rem;
}

.viewer-image img {
  width: 100%;
  max-height: min(70vh, 40rem);
  object-fit: contain;
  margin-inline: auto;
}

.viewer-bottom p { margin: 0; }
.viewer-controls { display: flex; align-items: center; gap: 0.35rem; }
.viewer-count { min-width: 3.5rem; text-align: center; font-weight: 600; }

.image-unavailable { position: relative; min-height: 8rem; background: var(--c-tint); }
.image-unavailable img { visibility: hidden; }
.image-unavailable::after {
  content: attr(data-fallback-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--c-muted);
  text-align: center;
}

@media (min-width: 700px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 769px) {
  .map-frame { aspect-ratio: 16 / 9; }
}

@media (min-width: 1024px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "mark nav lang cta";
    min-height: 4.5rem;
  }

  .desktop-nav { display: flex; }
  .header-cta.button { display: inline-flex; grid-area: cta; }
  .menu-toggle { display: none; }

  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
  }

  .hero-map { margin-top: 0; }
  .about-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
  .contact-grid { align-items: start; }
  .service-list,
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .map-frame,
  .map-pin--hero { animation: none; }
}
