/*
  Site-wide look, written mobile first: the base rules are the phone layout,
  and the min-width sections at the bottom enlarge it for tablets and desktops.
  Change colors and fonts in :root; the pages pick them up.
*/
:root {
  --color-bg: #fbfaf7;
  --color-surface: #ffffff;
  --color-text: #1f2a2e;
  --color-muted: #5b6a6f;
  --color-border: #e2ded6;
  --color-accent: #0f6e6a;
  --color-accent-text: #ffffff;
  --color-placeholder: #dfe9e7;
  --color-notice: #fdf3dc;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --radius: 10px;
  --max-width: 1080px;
  --gutter: 16px;
  --tap: 44px;
  --book-bar-height: 72px;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; line-height: 1.25; }
h1 { font-size: 1.8rem; margin: 0 0 .5rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
a { color: var(--color-accent); }

/* 16px+ text in form fields stops iPhones from zooming in on focus. */
input, select, textarea, button { font: inherit; font-size: max(16px, 1rem); }

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

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 1.25rem var(--gutter); scroll-margin-top: 64px; }
.page { max-width: 760px; }
.lead { font-size: 1.1rem; color: var(--color-muted); }

/* Header and phone menu */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 56px; }
.brand { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-text); text-decoration: none; padding: 6px 0; line-height: 1.15; }
.brand-name { display: block; }
.brand-sub { display: block; font-family: var(--font-body); font-size: .72rem; color: var(--color-muted); letter-spacing: .02em; }

.menu-toggle {
  display: none;
  min-width: var(--tap); min-height: var(--tap);
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius);
  color: var(--color-text); padding: 0 12px; cursor: pointer;
}
.js .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }

.site-nav { width: 100%; display: flex; flex-direction: column; padding-bottom: 8px; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: flex; }
.site-nav a {
  display: flex; align-items: center; min-height: var(--tap);
  color: var(--color-text); text-decoration: none;
  border-top: 1px solid var(--color-border);
}
.site-nav a[aria-current="page"] { color: var(--color-accent); font-weight: 600; }
.site-nav .nav-book { display: none; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap);
  background: var(--color-accent); color: var(--color-accent-text);
  padding: 10px 22px; border: 0; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; text-align: center; cursor: pointer;
}
.button:hover { filter: brightness(1.1); }
.button-block { display: flex; width: 100%; }

/* Hero */
.hero-text { padding-top: 1.25rem; padding-bottom: .5rem; }
.facts { color: var(--color-muted); margin: .25rem 0 1rem; }

/* Photos: swipeable strip on phones, grid on larger screens */
.photo {
  background: var(--color-placeholder); color: var(--color-muted);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; font-size: .95rem;
}
.photo-hero { border-radius: 0; aspect-ratio: 4 / 3; max-height: 60vh; width: 100%; }
.photo-wide { aspect-ratio: 4 / 3; }

.gallery {
  display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .photo { flex: 0 0 85%; scroll-snap-align: center; }
.swipe-hint { font-size: .85rem; color: var(--color-muted); margin: .5rem 0 0; }

.highlights { padding-left: 1.2rem; }
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px 18px; }
.card ul { margin: 0; padding-left: 1.1rem; }

.cta { text-align: center; }
.notice { background: var(--color-notice); border-radius: var(--radius); padding: 14px 18px; margin: 1rem 0; }

/* Listing page layout (structure only; fonts and colors come later). Phone first. */
.gallery-hero { position: relative; }
.gh-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gh-grid::-webkit-scrollbar { display: none; }
.gh-grid .photo { flex: 0 0 100%; border-radius: 0; aspect-ratio: 4 / 3; scroll-snap-align: start; }
.gh-all {
  position: absolute; right: 12px; bottom: 12px; background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: 8px 12px; font-size: .9rem;
  text-decoration: none; min-height: 36px; display: inline-flex; align-items: center;
}
.listing { padding-top: 1rem; padding-bottom: 2rem; }
.listing-head h1 { font-size: 1.6rem; margin-bottom: .4rem; }
.listing-head .facts { margin: .15rem 0; }
.rating { font-weight: 600; margin: .5rem 0 0; }
.section-block { padding: 1.5rem 0; border-top: 1px solid var(--color-border); }
.section-block:first-of-type { border-top: 0; }
.section-block h2 { margin-top: 0; }
.listing-head + .section-block { border-top: 1px solid var(--color-border); margin-top: 1rem; }
.highlights-grid { display: grid; gap: 14px; }
.hl h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.hl p { margin: 0; color: var(--color-muted); }
.lead-text { font-size: 1.1rem; }
.honest-note { background: var(--color-notice); border-radius: var(--radius); padding: 12px 16px; font-size: .95rem; }
.detail-list { margin: 0; display: grid; gap: 14px; }
.detail-list dt { font-weight: 700; }
.detail-list dd { margin: .15rem 0 0; color: var(--color-muted); }
.cards-2, .cards-3 { grid-template-columns: 1fr; }
.card h3 { margin-top: 0; }
.card-big { display: block; font-size: 1.15rem; margin: .3rem 0 .2rem; }
.card-note { display: block; color: var(--color-muted); font-size: .9rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--color-border); border-radius: 999px; padding: 6px 12px; background: var(--color-surface); font-size: .95rem; }
.amenity-top { columns: 2; column-gap: 20px; padding-left: 1.1rem; margin: 0 0 1rem; }
.amenity-top li { margin-bottom: .4rem; break-inside: avoid; }
.amenity-all summary {
  cursor: pointer; display: inline-flex; align-items: center; min-height: var(--tap);
  border: 1px solid var(--color-text); border-radius: var(--radius); padding: 0 16px; font-weight: 600;
}
.amenity-all h3 { margin: 1.2rem 0 .4rem; font-size: 1.05rem; }
.amenity-all ul { padding-left: 1.1rem; margin: 0; }
.nearby { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; }
.nearby td { padding: 8px 0; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.nearby td:last-child { text-align: right; color: var(--color-muted); white-space: nowrap; padding-left: 12px; }
.cta-block { text-align: center; }
.listing-aside { display: none; }
.book-card { border: 1px solid var(--color-border); border-radius: 14px; padding: 20px; background: var(--color-surface); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.book-card-title { font-size: 1.25rem; font-weight: 700; margin: 0; }
.book-card-facts { padding-left: 1.1rem; margin: .8rem 0 1rem; color: var(--color-muted); }
.book-card-note { text-align: center; font-size: .85rem; color: var(--color-muted); margin: .6rem 0 0; }

/* Guide and info pages */
.guide-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0; padding: 0; list-style: none; }
.guide-nav a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 12px; border: 1px solid var(--color-border); border-radius: 999px; text-decoration: none; color: var(--color-text); background: var(--color-surface); }
.guide-section { padding: 1.25rem 0; border-top: 1px solid var(--color-border); scroll-margin-top: 64px; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.guide-list li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px 14px; }
.guide-list strong { display: block; }
.guide-list span { color: var(--color-muted); font-size: .95rem; }
.tip { background: var(--color-notice); border-radius: var(--radius); padding: 12px 16px; }
.todo-note { border: 1px dashed #c9a227; border-radius: var(--radius); padding: 10px 14px; color: #7a5d00; background: #fffaeb; font-size: .9rem; }

@media (min-width: 600px) {
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: 1fr 1fr; }
  .detail-list-2 { grid-template-columns: 1fr 1fr; }
  .amenity-top { columns: 2; }
}

@media (min-width: 900px) {
  .gallery-hero { max-width: var(--max-width); margin: 1rem auto 0; padding: 0 var(--gutter); }
  .gh-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 440px; overflow: hidden; border-radius: 14px; }
  .gh-grid .photo { aspect-ratio: auto; height: 100%; }
  .gh-grid .gh-1 { grid-row: 1 / 3; }
  .gh-all { right: calc(var(--gutter) + 14px); }
  .listing { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
  .listing-head h1 { font-size: 2rem; }
  .listing-aside { display: block; position: sticky; top: 84px; padding-top: 1rem; }
  .amenity-top { columns: 2; }
}

/* Sticky booking bar, always within thumb reach on phones */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--book-bar-height);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.book-bar-text { font-size: .9rem; color: var(--color-muted); line-height: 1.3; }
.book-bar-text strong { color: var(--color-text); }
.has-book-bar { padding-bottom: calc(var(--book-bar-height) + env(safe-area-inset-bottom)); }

/* Book page (plain, functional; styling comes later) */
.bk-step { font-size: 1.15rem; margin: 1.75rem 0 .6rem; }
.bk-muted { color: var(--color-muted); font-size: .9rem; }
.bk-center { text-align: center; }
.bk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bk-errors { background: #fdecea; color: #8a1c12; border-radius: var(--radius); padding: 10px 14px; margin: 10px 0; }
.bk-errors p { margin: 4px 0; }
.bk-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-dates label, .bk-fields label { display: block; font-weight: 600; font-size: .95rem; }
.bk-dates input, .bk-fields input, .bk-fields textarea, .bk-guests input {
  display: block; width: 100%; margin-top: 4px; min-height: var(--tap); padding: 8px 10px;
  border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); color: var(--color-text);
}
.bk-js .bk-dates { display: none; }
.bk-hint { margin: .4rem 0 .6rem; font-size: .95rem; }
.bk-cal { max-height: 460px; overflow-y: auto; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 4px 8px 8px; background: var(--color-surface); }
.bk-month h3 { font-size: 1rem; margin: 12px 0 6px; }
.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.bk-wd span { text-align: center; font-size: .75rem; color: var(--color-muted); }
.bk-day {
  min-height: var(--tap); border: 0; border-radius: 8px; background: transparent; color: var(--color-text);
  font-size: .95rem; cursor: pointer;
}
.bk-day:hover { background: var(--color-placeholder); }
.bk-day.no { color: #b8b3a8; text-decoration: line-through; }
.bk-day.off { color: #d8d4cb; cursor: default; text-decoration: none; }
.bk-day.ok-out { font-weight: 700; }
.bk-day.range { background: var(--color-placeholder); border-radius: 0; }
.bk-day.sel { background: var(--color-accent); color: var(--color-accent-text); font-weight: 700; text-decoration: none; }
.bk-guests { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-guests input { width: 70px; text-align: center; margin: 0; }
.bk-step-btn { width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface); font-size: 1.3rem; cursor: pointer; color: var(--color-text); }
.bk-max { color: var(--color-muted); font-size: .9rem; }
.bk-quote { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px 14px; background: var(--color-surface); }
.bk-quote.loading { opacity: .6; }
.bk-lines { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bk-lines td { padding: 5px 0; }
.bk-lines td:last-child { text-align: right; white-space: nowrap; }
.bk-lines tr.discount td { color: #1d7a3a; }
.bk-lines tr.total td { font-weight: 700; border-top: 1px solid var(--color-border); padding-top: 8px; font-size: 1.05rem; }
.bk-fields { display: grid; gap: 12px; }
.bk-captcha { margin-top: 1.5rem; min-height: 65px; }
.bk-submit { margin-top: 1rem; min-height: 52px; font-size: 1.05rem; }
.bk-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--color-surface); border-top: 1px solid var(--color-border);
}
.bk-bar[hidden] { display: none; }
.booking { padding-bottom: 90px; }

.site-footer { border-top: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-muted); font-size: .9rem; }
.footer-inner { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; padding-bottom: 20px; }

/* Tablets */
@media (min-width: 600px) {
  .gallery .photo { flex-basis: 45%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .photo-wide { aspect-ratio: 16 / 7; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* Desktops: inline menu, photo grid, no bottom bar */
@media (min-width: 900px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 1.5rem var(--gutter); }

  .js .menu-toggle { display: none; }
  .site-nav, .js .site-nav {
    display: flex; flex-direction: row; align-items: center;
    width: auto; gap: 4px 20px; padding: 0;
  }
  .site-nav a { border-top: 0; font-size: .95rem; color: var(--color-muted); min-height: 0; }
  .site-nav a[aria-current="page"] { color: var(--color-text); font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
  .site-nav .nav-book { display: inline-flex; color: var(--color-accent-text); min-height: 38px; padding: 6px 16px; }

  .photo-hero { aspect-ratio: auto; height: 460px; }
  .gallery {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    overflow: visible; margin: 0; padding: 0;
  }
  .swipe-hint { display: none; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

  .book-bar { display: none; }
  .has-book-bar { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
