:root {
  --ink: #1f2421;
  --muted: #6b716d;
  --line: #e4e2dc;
  --bg: #fbfaf7;
  --card: #ffffff;
  --accent: #513317;      /* logo brown */
  --accent-soft: #f2ebe4; /* light tint for date ranges */
  --accent-ink: #ffffff;
  --error: #b42318;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 30, 25, 0.10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, sans-serif;
  padding-bottom: 84px; /* room for the mobile bar */
}
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.topbar { padding: 14px max(16px, calc((100% - 1120px) / 2 + 16px)); background: var(--accent); }
.brand {
  /* baseline: the title's letters sit on the same line as the bottom of the mountains */
  display: inline-flex; align-items: baseline; gap: 12px;
  font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -0.01em;
  /* 2x the original 16px; shrinks just enough to stay on one line on small phones */
  font-size: clamp(1.1rem, 5.4vw, 2rem); line-height: 1.1; white-space: nowrap;
}
.brand-mark { height: 1.4em; width: auto; flex: none; }

.page { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }

/* Gallery: swipeable strip on phones, Airbnb-style grid on desktop */
.gallery {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 16px -16px 20px; padding: 0 16px;
}
.gallery img {
  /* min-width: 0 stops the photo's own width/height attributes from stretching it */
  flex: 0 0 88%; width: 88%; min-width: 0; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
  scroll-snap-align: center; background: var(--line);
}
.gallery img { cursor: pointer; }
.gallery-wrap { position: relative; }
.show-all {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--ink); border-radius: 8px; cursor: pointer;
}
.show-all[hidden] { display: none; }
.show-all:hover { background: #fff; }
.show-all-text { display: none; }
body.modal-open { overflow: hidden; }

/* Photo tour: full-screen scrolling collage */
.photo-tour {
  width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--card); color: var(--ink);
}
.photo-tour[open] { display: flex; flex-direction: column; }
.photo-tour::backdrop { background: var(--card); }
.tour-head {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); font-weight: 600; flex: none;
}
.tour-back {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: none;
  font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.tour-back:hover { background: #f0eee9; }
.tour-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tour-grid { max-width: 880px; margin: 0 auto; padding: 12px 12px 40px; display: grid; gap: 8px; }
.tour-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.tour-photo {
  display: block; position: relative; min-width: 0; padding: 0; border: 0; border-radius: 6px;
  background: var(--line); cursor: zoom-in; overflow: hidden;
}
.tour-photo img {
  display: block; width: 100%; height: auto; min-width: 0; aspect-ratio: 4 / 3; object-fit: cover; transition: filter 0.15s;
}
.tour-photo:hover img { filter: brightness(0.92); }

/* One wide photo, keeping (roughly) its own shape */
.tour-wide { grid-template-columns: minmax(0, 1fr); }
.tour-wide img { aspect-ratio: var(--ratio, 1.5); }

/* Two portraits side by side */
.tour-pair-tall img { aspect-ratio: 2 / 3; }
/* Portrait + landscape at the very end: meet in the middle */
.tour-pair-mixed img { aspect-ratio: 4 / 5; }
/* A lone portrait: half width, centered */
.tour-single-tall { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.tour-single-tall .tour-photo { width: calc(50% - 4px); }
.tour-single-tall img { aspect-ratio: 2 / 3; }

/* Tall portrait beside two stacked landscapes; its height follows the stack */
.tour-tall-left, .tour-tall-right { grid-template-rows: auto auto; }
.tour-tall { grid-row: 1 / 3; }
.tour-tall img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.tour-tall-left .tour-tall { grid-column: 1; }
.tour-tall-left .tour-top, .tour-tall-left .tour-bottom { grid-column: 2; }
.tour-tall-right .tour-tall { grid-column: 2; }
.tour-tall-right .tour-top, .tour-tall-right .tour-bottom { grid-column: 1; }
.tour-top { grid-row: 1; }
.tour-bottom { grid-row: 2; }

/* Single-photo viewer */
.viewer {
  width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: #0d0d0d; color: #fff;
}
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: #0d0d0d; }
.viewer-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px 16px; font-size: 0.95rem; flex: none;
}
.viewer-close {
  justify-self: start; font: inherit; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.08);
  border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
.viewer-close:hover { background: rgba(255, 255, 255, 0.18); }
.viewer-stage {
  flex: 1; min-height: 0; margin: 0; padding: 0 8px 16px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto;
  align-items: center; gap: 8px;
}
.viewer-stage img {
  grid-column: 2; width: 100%; height: 100%; min-height: 0; object-fit: contain; user-select: none;
}
.viewer-stage figcaption { grid-column: 1 / -1; text-align: center; color: #bbb; font-size: 0.9rem; min-height: 1.2em; }
.viewer-nav {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.viewer-nav:hover { background: rgba(255, 255, 255, 0.18); }
@media (max-width: 899px) {
  /* Phones swipe instead; give the photo the full width. */
  .viewer-nav { display: none; }
  .viewer-stage { grid-template-columns: 0 minmax(0, 1fr) 0; gap: 0; }
}

.rating-link { display: inline-block; margin-top: 4px; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rating-link[hidden], .reviews[hidden], .reviews-airbnb[hidden] { display: none; }
.reviews h2 { font-size: 1.4rem; }
.reviews-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
}
.review { display: grid; gap: 8px; align-content: start; scroll-snap-align: start; }
.reviews-grid .review { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--card); }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-head > div { display: grid; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 1.1rem;
}
.review-via { color: var(--muted); font-size: 0.85rem; }
.review-meta { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--muted); }
.review-stars { color: var(--ink); letter-spacing: 1px; }
.review-text { margin: 0; white-space: pre-line; }
.review-text.clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-more { justify-self: start; font: inherit; font-weight: 600; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--ink); }
.review-more[hidden] { display: none; }
.reviews-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.reviews-actions .show-more { margin-top: 0; }
.reviews-airbnb { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.reviews-list { display: grid; gap: 28px; }
.reviews-list .review { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.reviews-list .review:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .reviews-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 64px; overflow: visible; }
  .reviews-grid .review { border: 0; padding: 0; background: none; }
}
.where { margin-top: 8px; }
.where-neighborhood { margin: 22px 0 0; max-width: 760px; }
.where-neighborhood h3 { font-size: 1.05rem; margin: 0 0 8px; }
.where-neighborhood p { margin: 0; }
.where-neighborhood[hidden], .from-host[hidden], .hosts[hidden], .know[hidden], .know-col[hidden], .host-photo[hidden], .host-badge[hidden] { display: none; }
.prose p { margin: 0 0 14px; white-space: pre-line; }
.prose p:last-child { margin-bottom: 0; }
.from-host .prose { max-width: 760px; }

/* About your hosts */
.hosts-layout { display: grid; gap: 28px; }
.host-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px;
  background: var(--card); border-radius: 22px; padding: 26px 24px;
  box-shadow: 0 6px 22px rgba(20, 20, 20, 0.12);
}
.host-id { display: grid; justify-items: center; text-align: center; gap: 4px; }
.host-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.host-name { font-size: 1.5rem; line-height: 1.2; margin-top: 6px; }
.host-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.host-badge svg { color: var(--accent); }
.host-stats { margin: 0; display: grid; gap: 0; min-width: 110px; }
.host-stats > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.host-stats > div:last-child { border-bottom: 0; }
.host-stats dd { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.host-stats dt { font-size: 0.75rem; font-weight: 600; }
.host-details h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.host-details ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* Things to know */
.know-grid { display: grid; gap: 28px; }
.know-col h3 { font-size: 1.05rem; margin: 0 0 12px; }
@media (min-width: 900px) {
  .hosts-layout { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 64px; align-items: start; }
  .know-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}
.where[hidden] { display: none; }
.map { height: 340px; border-radius: var(--radius); overflow: hidden; background: #e8e4dc; }
.map-failed::after { content: "Map unavailable"; display: grid; place-items: center; height: 100%; color: var(--muted); }
.where-label { font-weight: 600; margin: 14px 0 2px; }
.where-note { color: var(--muted); margin: 0; font-size: 0.95rem; }
.map-home {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
@media (min-width: 900px) { .map { height: 480px; } }

/* Loading placeholder: soft shimmering tiles in the gallery's shape */
.gallery-skeleton { display: contents; }
.gallery-skeleton span {
  flex: 0 0 88%; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: linear-gradient(100deg, #ebe8e2 30%, #f4f2ee 50%, #ebe8e2 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .gallery-skeleton span { animation: none; } }
/* Photos fade in as they arrive instead of popping in */
.gallery img { opacity: 0; transition: opacity 0.25s ease; }
.gallery img.loaded { opacity: 1; }

.sub, .facts { color: var(--muted); margin: 0; }
.headline { font-weight: 600; }
.description p, .about-body p { margin: 0 0 14px; white-space: pre-line; }
.description p:last-child { margin-bottom: 0; }
.show-more {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px;
  font: inherit; font-weight: 600; color: var(--ink); background: #ece9e3; border: 0; border-radius: 8px; cursor: pointer;
}
.show-more:hover { background: #e2ded6; }
.show-more[hidden] { display: none; }

/* About this space: centered card on desktop, full-screen sheet on phones */
.about {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: none; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: var(--card); color: var(--ink);
}
.about[open] { display: flex; flex-direction: column; }
.about::backdrop { background: rgba(0, 0, 0, 0.5); }
.about-head { display: flex; align-items: center; padding: 10px 12px; flex: none; }
.about-body { flex: 1; overflow-y: auto; padding: 4px 24px 32px; }
.about-body h2 { font-size: 1.6rem; margin: 0 0 20px; }
.about-body h3 { font-size: 1.1rem; margin: 26px 0 10px; }
@media (min-width: 900px) {
  .about { width: min(760px, 92vw); height: auto; max-height: 86vh; margin: auto; border-radius: var(--radius); }
  .about-body { padding: 4px 40px 40px; }
}
/* Where you'll sleep: swipeable cards on phones, a grid on desktop */
.rooms {
  display: grid; grid-auto-flow: column; grid-auto-columns: 58%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px;
}
.room {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px;
  display: grid; gap: 4px; align-content: start; scroll-snap-align: start; background: var(--card);
}
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.room-icons { display: flex; gap: 6px; color: var(--ink); margin-bottom: 10px; }
.room strong { font-weight: 600; }
.room span { color: var(--muted); font-size: 0.95rem; }

.amenities, .rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.amenities { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }

/* Full amenity list (dialog): grouped, two compact columns */
.amenity-groups section + section { border-top: 1px solid var(--line); }
.amenity-groups h3 { margin-top: 18px; }
.amenity-groups section:first-child h3 { margin-top: 0; }
.amenity-group {
  list-style: none; padding: 0 0 18px; margin: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px;
}
.amenity-group li { display: grid; gap: 2px; align-content: start; }
.amenity-note { color: var(--muted); font-size: 0.88rem; line-height: 1.35; }
.amenity-group li.unavailable .amenity-name { text-decoration: line-through; color: var(--muted); }
@media (max-width: 480px) { .amenity-group { grid-template-columns: minmax(0, 1fr); } }

/* Booking card */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px;
}
.card { position: relative; }
.price-line { font-size: 1.05rem; }
.price-link {
  font: inherit; font-size: 1.45rem; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; cursor: pointer;
}
.price-for { color: var(--ink); }
.price-details {
  position: absolute; z-index: 20; top: 64px; left: -12px; right: -12px;
  background: var(--card); border-radius: 20px; padding: 28px 28px 24px;
  box-shadow: 0 10px 34px rgba(20, 20, 20, 0.2);
}
.price-details[hidden] { display: none; }
.price-details h3 { margin: 0 0 18px; font-size: 1.15rem; }
.price-details-row { display: flex; justify-content: space-between; gap: 12px; }
.price-details-x { position: absolute; top: 14px; right: 16px; font-size: 1.5rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 4px 6px; }
/* Date fields (open the calendar) */
.dates-wrap { position: relative; }
.dates {
  display: grid; grid-template-columns: 1fr 1fr; width: 100%; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left; background: #fff;
  border: 1px solid #cfccc4; border-radius: 10px; overflow: hidden;
}
.dates:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.date-field { display: grid; gap: 2px; padding: 10px 12px; }
.date-field + .date-field { border-left: 1px solid #cfccc4; }
.date-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.date-value { color: var(--muted); }
.dates.has-dates .date-value { color: var(--ink); }

/* Calendar: full-screen sheet on phones */
.calendar {
  position: fixed; inset: 0; z-index: 30; background: var(--card);
  display: flex; flex-direction: column;
}
.calendar[hidden] { display: none; }
body.cal-locked { overflow: hidden; }
.cal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 16px 8px; }
.cal-title { font-size: 1.25rem; margin: 0; }
.cal-sub { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }
.cal-x { font-size: 1.6rem; line-height: 1; background: none; border: 0; cursor: pointer; padding: 4px 8px; color: var(--ink); }
.cal-status { margin: 0 16px 8px; color: var(--muted); font-size: 0.9rem; }
.cal-body { flex: 1; overflow-y: auto; padding: 0 12px; position: relative; }
.cal-months { display: grid; gap: 24px; padding-bottom: 16px; }
.cal-month h3 { font-size: 1rem; margin: 8px 4px 10px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow span { text-align: center; font-size: 0.75rem; color: var(--muted); padding-bottom: 6px; }
.cal-day {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 0;
  font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--ink);
  background: none; border: 0; cursor: pointer;
}
.cal-day > span { width: 88%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; position: relative; z-index: 1; }
.cal-day:not([aria-disabled]):hover > span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day[aria-disabled] { cursor: default; }
.cal-past, .cal-off { color: #b9b6ae; }
.cal-booked { color: #b9b6ae; }
.cal-booked > span { text-decoration: line-through; }
.cal-short { color: #b9b6ae; }
.cal-today > span { font-weight: 700; }
.cal-between { background: var(--accent-soft); }
.cal-start, .cal-end { color: var(--accent-ink); }
.cal-start > span, .cal-end > span { background: var(--accent); }
.cal-range-start { background: linear-gradient(90deg, transparent 50%, var(--accent-soft) 50%); }
.cal-range-end { background: linear-gradient(90deg, var(--accent-soft) 50%, transparent 50%); }
.cal-pad { background: none; }
.cal-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
}
.cal-clear { font: inherit; font-weight: 600; background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--ink); padding: 8px 0; }
.cal-clear:disabled { color: #b9b6ae; cursor: default; }
.cal-nav {
  position: absolute; top: 2px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); z-index: 2;
}
.cal-nav:hover:not(:disabled) { background: #f0eee9; }
.cal-nav:disabled { color: #d4d1ca; cursor: default; }
.cal-prev { left: 8px; }
.cal-next { right: 8px; }
label { display: grid; gap: 4px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
input, select {
  font: inherit; text-transform: none; letter-spacing: 0; font-weight: 400;
  padding: 10px 12px; border: 1px solid #cfccc4; border-radius: 10px; background: #fff; width: 100%;
}
.breakdown { display: grid; gap: 6px; font-size: 0.95rem; }
.breakdown div { display: flex; justify-content: space-between; }
.breakdown .total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }
.primary {
  font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 14px 18px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
.primary:disabled { opacity: 0.45; cursor: not-allowed; }
.fine { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 0; }
.error { color: var(--error); margin: 0; font-size: 0.95rem; }

/* Mobile layout: booking card sits below details; bottom bar jumps to it */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.details { min-width: 0; }
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
}
.mobile-bar span { display: block; color: var(--muted); font-size: 0.85rem; }

/* Checkout sheet */
dialog { border: 0; padding: 0; border-radius: var(--radius); width: min(560px, 100vw); max-height: 92vh; }
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.sheet { padding: 20px; display: grid; gap: 12px; }
.sheet header { display: flex; justify-content: space-between; align-items: center; }
.sheet h2 { margin: 0; }
.close { font-size: 1.6rem; background: none; border: 0; cursor: pointer; line-height: 1; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; gap: 8px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.95rem; }
.check input { width: auto; margin-top: 4px; }
.summary { color: var(--muted); }

/* Instagram (prototype) */
.ig[hidden] { display: none; }
.ig-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.ig-head h2 { margin: 0; }
.ig-handle { color: var(--ink); font-weight: 600; }
.ig-embed { display: flex; justify-content: center; }
.ig-embed .instagram-media, .ig-embed iframe { width: 100% !important; max-width: 540px !important; min-width: 0 !important; margin: 0 !important; }

/* Message host */
.message-host {
  margin-top: 8px; font: inherit; font-weight: 600; padding: 12px 22px; border-radius: 10px; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--ink);
}
.message-host:hover { background: #f6f4ef; }
.link-button { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; }
#message-fields, .message-sent { display: grid; gap: 12px; }
#message-fields[hidden], .message-sent[hidden] { display: none; }
.message-trip { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 0.95rem; }
.message-sent p { margin: 0; }
.optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
textarea {
  font: inherit; text-transform: none; letter-spacing: 0; font-weight: 400; resize: vertical; min-height: 110px;
  padding: 10px 12px; border: 1px solid #cfccc4; border-radius: 10px; background: #fff; width: 100%;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#turnstile:empty { display: none; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .gallery {
    display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
    height: 440px; overflow: hidden; margin: 24px 0; padding: 0; border-radius: var(--radius);
  }
  .gallery img { width: 100%; height: 100%; min-width: 0; min-height: 0; aspect-ratio: auto; border-radius: 0; }
  .gallery-skeleton span { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
  .gallery-skeleton span:first-child { grid-row: span 2; }
  .gallery { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .gallery img:first-child { grid-row: span 2; }
  .gallery img:nth-child(n + 6) { display: none; }
  .gallery img:hover { filter: brightness(0.92); }
  .show-all { right: 24px; bottom: 24px; }
  .show-all-text { display: inline; }
  .show-all-count { display: none; }
  .tour-head { padding: 14px 24px; }
  .tour-grid { padding: 24px 24px 64px; }
  .viewer-head { padding: 16px 24px; }
  .viewer-stage { padding: 0 24px 24px; gap: 24px; }
  .viewer-nav { width: 48px; height: 48px; }
  .layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
  .booking { position: sticky; top: 24px; }
  /* Calendar: popover anchored to the booking card, spilling left over the page */
  .calendar {
    position: absolute; inset: auto; top: calc(100% + 6px); right: -21px; width: 680px; max-height: none;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(20, 30, 25, 0.18);
  }
  .cal-head { padding: 22px 24px 6px; }
  .cal-status { margin: 0 24px 6px; }
  .cal-body { overflow: visible; padding: 0 24px; }
  .cal-months { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 8px; }
  .cal-month h3 { text-align: center; }
  .cal-foot { border-top: 0; padding: 4px 24px 18px; }
  .cal-day { font-size: 0.9rem; }
  .rooms { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  h1 { font-size: 2rem; }
}

/* Request to book (checkout sheet) */
.request-steps { margin: 4px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.88rem; display: grid; gap: 2px; }
.breakdown-note { margin: 2px 0 0; color: var(--muted); font-size: 0.85rem; }

/* Guest booking page */
.booking-page { padding-bottom: 0; }
.booking-main { padding-top: 28px; padding-bottom: 48px; }
.booking-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.booking-status h1 { font-size: 1.7rem; margin: 0 0 12px; }
.booking-status p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.sign-frame { width: 100%; height: 78vh; min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: 8px; }
.trip-card h3 { margin: 0 0 12px; font-size: 1.1rem; }
.trip-facts { margin: 0 0 14px; display: grid; gap: 10px; }
.trip-facts div { display: grid; gap: 2px; }
.trip-facts dt { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.trip-facts dd { margin: 0; }
.secondary-button, .button-link {
  display: inline-block; margin-top: 6px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.secondary-button { border: 1px solid var(--ink); color: var(--ink); background: #fff; }
.button-link { color: var(--accent-ink); }
#pay-element { margin: 8px 0 12px; }
.booking-status .primary { margin-top: 4px; }
@media (min-width: 900px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
  .trip-card { position: sticky; top: 24px; }
}
.trip-card[hidden] { display: none; }

/* Host page */
.host-signin { max-width: 420px; }
.host-signin[hidden], #dashboard[hidden] { display: none; }
.host-signin-form { display: grid; gap: 12px; }
.host-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 8px; }
.host-who { color: var(--muted); font-size: 0.92rem; }
.req-group { margin-top: 28px; }
.req-group > summary { font-weight: 600; font-size: 1.1rem; cursor: pointer; margin-bottom: 12px; }
.req {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  display: grid; gap: 8px; margin-bottom: 12px; max-width: 760px;
}
.req-requested { border-color: var(--accent); box-shadow: var(--shadow); }
.req-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.req-name { font-size: 1.08rem; margin-right: 10px; }
.req-badge { font-size: 0.78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.req-total { font-weight: 700; white-space: nowrap; }
.req-trip { color: var(--ink); }
.req-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.req-contact a { color: var(--ink); }
.req-message { margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: #faf8f4; border-radius: 0 8px 8px 0; white-space: pre-line; }
.req-meta { margin: 0; font-size: 0.9rem; }
.req-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.req-actions .primary, .req-actions .secondary-button { margin: 0; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.req-actions label { width: 100%; }
.booking-status a:not([class]) { color: var(--ink); }

/* Payment choice in the request sheet */
.pay-choice { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.pay-choice legend { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; padding: 0; }
.pay-option {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #cfccc4; border-radius: 10px; cursor: pointer;
  text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.95rem;
}
.pay-option input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.pay-option > span { display: grid; gap: 2px; }
.pay-option strong { font-weight: 600; }
.pay-hint { color: var(--muted); font-size: 0.86rem; }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pay-option:has(input:disabled) { cursor: default; opacity: 0.75; }
.request-steps[hidden] { display: none; }

/* License / permit line above Things to know */
.permit-line { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; }
.permit-line[hidden], .permit-badge[hidden] { display: none; }
.permit-badge { width: 36px; height: 36px; object-fit: contain; flex: none; }
#airbnb-book { color: var(--ink); }
.check input { accent-color: var(--accent); }
