:root {
  --ink: #222;
  --muted: #6a6a6a;
  --line: #ebebeb;
  --accent: #e3405f;
  --accent-2: #d12c58;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 6px; font-weight: 600; }
h2 { font-size: 22px; font-weight: 600; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 10px 0 2px; font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.top { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { font-weight: 700; font-size: 19px; text-decoration: none; color: var(--accent); letter-spacing: -0.2px; }
.brand span { color: var(--ink); font-weight: 500; }
nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.pill { background: var(--ink); color: #fff !important; padding: 10px 16px; border-radius: 999px; text-decoration: none !important; font-weight: 600; display: inline-block; }
.pill.big { padding: 14px 22px; margin: 24px 0 48px; }

.title { padding: 26px 0 18px; }
.sub { margin: 0; color: var(--muted); }
.sub a { color: var(--ink); }

.grid { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.grid .g { display: block; overflow: hidden; }
.grid .g img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.grid .g:hover img { filter: brightness(.9); }
.grid .g0 { grid-row: 1 / 3; }
.grid .all { position: absolute; right: 18px; bottom: 18px; background: #fff; border: 1px solid var(--ink); border-radius: 8px; padding: 7px 14px; font-size: 14px; font-weight: 600; text-decoration: none; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; padding: 32px 0 64px; }
.main section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.main section:first-child { padding-top: 0; }
.host h2 { font-size: 22px; }
.highlights div { display: flex; flex-direction: column; margin-bottom: 18px; }
.highlights span { color: var(--muted); }

.beds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bed img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }
.bed p { margin: 0; color: var(--muted); font-size: 14px; }

.amen { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.amen li { display: flex; flex-direction: column; }
.amen span { color: var(--muted); font-size: 15px; }

.walks { list-style: none; padding: 0; margin: 12px 0; }
.walks li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.rules { padding-left: 20px; }
.rules li { margin: 6px 0; }

.rates { width: 100%; border-collapse: collapse; font-size: 15px; }
.rates th, .rates td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.rates td:nth-child(2) { font-weight: 600; }
.rates td:nth-child(3) { color: var(--muted); text-decoration: line-through; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding: 6px 2px 10px; }

.side { position: relative; }
.card { position: sticky; top: 96px; border: 1px solid #ddd; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; background: #fff; }
.price { font-size: 22px; margin: 0; }
.price .muted { font-size: 15px; }
.save { margin: 4px 0 16px; color: #0a7a3d; font-weight: 600; font-size: 14px; }
.card label { display: flex; flex-direction: column; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #b0b0b0; border-radius: 10px 10px 0 0; }
.dates label { padding: 10px 12px; }
.dates label + label { border-left: 1px solid #b0b0b0; }
.card label.full { border: 1px solid #b0b0b0; border-top: 0; padding: 10px 12px; }
.card label.full:first-of-type { border-radius: 0; }
.card input, .card select, .card textarea { border: 0; font: inherit; font-size: 15px; text-transform: none; font-weight: 400; padding: 4px 0 0; background: transparent; color: var(--ink); width: 100%; }
.card input:focus, .card select:focus, .card textarea:focus { outline: none; }
.card label:focus-within { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 8px; }
.quote { margin: 14px 0; font-size: 15px; }
.quote .row { display: flex; justify-content: space-between; padding: 4px 0; }
.quote .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.quote .strike { color: var(--muted); text-decoration: line-through; }
.quote .warn { color: #b42318; font-size: 14px; margin: 4px 0; }
.cta { width: 100%; margin-top: 16px; border: 0; border-radius: 8px; padding: 14px; font-size: 16px; font-weight: 600; color: #fff; cursor: pointer; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.cta:disabled { opacity: .6; cursor: default; }
.hp { position: absolute; left: -9999px; }
.result { font-weight: 600; margin: 10px 0 0; }
.result.ok { color: #0a7a3d; }
.result.err { color: #b42318; }

.cal { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cal .mhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; }
.cal .nav { border: 0; background: none; font-size: 20px; cursor: pointer; padding: 4px 10px; border-radius: 50%; }
.cal .nav:hover { background: #f2f2f2; }
.cal .nav:disabled { visibility: hidden; }
.cal table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.cal th { color: var(--muted); font-weight: 500; font-size: 12px; padding: 6px 0; }
.cal td { padding: 1px; }
.cal button.day { width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.cal button.day:hover:not(:disabled) { border-color: var(--ink); }
.cal button.day:disabled { color: #c4c4c4; text-decoration: line-through; cursor: default; font-weight: 400; }
.cal button.day.sel { background: var(--ink); color: #fff; }
.cal button.day.in { background: #f2f2f2; border-radius: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { list-style: none; cursor: pointer; }
.faq summary h2 { display: inline; font-size: 18px; }
.faq p { margin: 8px 0 0; color: #3d3d3d; }
.narrow section { padding: 10px 0; }
.wide { margin: 0 0 24px; }
.wide img { border-radius: var(--radius); }
.wide figcaption { color: var(--muted); font-size: 14px; padding-top: 6px; }

.foot { border-top: 1px solid var(--line); background: #f7f7f7; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 24px; }
.foot p { margin: 4px 0; }

@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .house > *, .cols > *, .main > * { min-width: 0; }
  .card { position: static; }
  .beds { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  nav a:not(.pill) { display: none; }
  .grid { grid-template-columns: 1fr; grid-template-rows: 260px; }
  .grid .g:not(.g0) { display: none; }
  .cal { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
}

/* Directory home */
.brand span { color: var(--ink); font-weight: 600; }
.hero { background: linear-gradient(180deg, #f7f7f7, #fff); padding: 40px 0 28px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 34px; max-width: 760px; }
.hero .sub { font-size: 18px; max-width: 720px; margin-bottom: 22px; }
.search { display: grid; grid-template-columns: 1fr 1fr 140px auto; gap: 0; border: 1px solid #ddd; border-radius: 999px; box-shadow: var(--shadow); background: #fff; max-width: 820px; overflow: hidden; }
.search label { display: flex; flex-direction: column; padding: 10px 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; border-right: 1px solid var(--line); }
.search input, .search select { border: 0; font: inherit; font-size: 15px; font-weight: 400; text-transform: none; padding: 2px 0 0; background: transparent; }
.search input:focus, .search select:focus { outline: none; }
.search .cta { margin: 8px; width: auto; padding: 0 26px; border-radius: 999px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip { border: 1px solid #ccc; background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.homes { padding: 32px 0 8px; }
.hgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hcard { display: flex; flex-direction: column; }
.hcard[hidden] { display: none; }
.hcard.dim { opacity: .55; }
.hcard-img img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hcard-body h3 { font-size: 17px; margin: 12px 0 2px; }
.hcard-body h3 a { text-decoration: none; }
.hcard-body p { margin: 2px 0; font-size: 15px; }
.hcard .rating { font-size: 14px; }
.hcard .hprice { margin-top: 6px; }
.havail { min-height: 20px; }
.why { padding: 40px 0 8px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-grid div { display: flex; flex-direction: column; }
.why-grid strong { font-size: 18px; margin-bottom: 4px; }
.why-grid span { color: var(--muted); }
.owners { margin: 40px 0; padding: 28px 32px; border-radius: var(--radius); background: #f7f7f7; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.owners h2 { margin-bottom: 6px; }
.owners p { margin: 0; color: #3d3d3d; max-width: 640px; }
.owners .pill.big { margin: 0; white-space: nowrap; }
.guide-teaser { padding: 0 0 48px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.crumbs a { color: var(--muted); }
.bed.nophoto { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.bed.nophoto h3 { margin-top: 0; }
.owner-form { position: static; max-width: 520px; }
.owner-form label.full:first-of-type { border-radius: 10px 10px 0 0; border-top: 1px solid #b0b0b0; }
.saved { color: #0a7a3d; font-weight: 600; }
pre { background: #f7f7f7; border-radius: 10px; padding: 14px; overflow-x: auto; font-size: 13px; }

@media (max-width: 900px) {
  .hgrid, .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: 26px; }
  .search { grid-template-columns: 1fr 1fr; border-radius: 16px; }
  .search label { border-bottom: 1px solid var(--line); }
  .search .cta { grid-column: 1 / -1; padding: 12px; }
  .hgrid, .why-grid { grid-template-columns: 1fr; }
  .owners { flex-direction: column; align-items: flex-start; }
}

/* Photo carousel (lightbox) */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 20px; }
.lb-close { justify-self: start; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; padding: 8px 12px; border-radius: 8px; }
.lb-close:hover { background: #f2f2f2; }
.lb-count { font-size: 14px; font-weight: 600; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 20px 24px; min-height: 0; }
.lb-stage figure { margin: 0; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-width: 0; }
.lb-img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; }
.lb-cap { margin-top: 12px; color: var(--muted); font-size: 15px; text-align: center; }
.lb-prev, .lb-next { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #ccc; background: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lb-prev:hover, .lb-next:hover { border-color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.grid .g, .gallery a { cursor: zoom-in; }

/* Mobile-only pieces (hidden on desktop) */
.mstrip-wrap, .mbar, .mnav { display: none; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 60px; }
  nav { display: none; }
  .mnav { display: block; position: relative; }
  .mnav summary { list-style: none; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px solid #ddd; border-radius: 999px; cursor: pointer; }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav summary span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
  .mnav-panel { position: absolute; right: 0; top: 52px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 230px; padding: 8px 0; z-index: 20; }
  .mnav-panel a { padding: 13px 20px; text-decoration: none; font-size: 16px; }
  .mnav-panel a:active { background: #f2f2f2; }

  /* House page: swipeable full-width photos instead of the mosaic */
  .grid { display: none; }
  .mstrip-wrap { display: block; position: relative; margin: 0 -16px; }
  .mstrip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mstrip::-webkit-scrollbar { display: none; }
  .mstrip a { flex: 0 0 100%; scroll-snap-align: start; }
  .mstrip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
  .mstrip-count { position: absolute; right: 14px; bottom: 14px; background: rgba(34,34,34,.72); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; pointer-events: none; }
  .crumbs { display: none; }
  .house { display: flex; flex-direction: column; }
  .house .mstrip-wrap { order: -1; }
  .title { padding: 18px 0 4px; }
  .title h1 { font-size: 22px; }
  .sub { font-size: 14px; }
  .cols { padding: 16px 0 24px; }
  .main section { padding: 22px 0; }
  h2 { font-size: 20px; }
  .beds { gap: 12px; }
  .bed h3 { font-size: 15px; }
  .rates { font-size: 14px; }
  .rates th, .rates td { padding: 8px 4px; }
  .walks li { font-size: 15px; }
  .card { box-shadow: none; border: 1px solid #ddd; padding: 18px; scroll-margin-top: 70px; }
  .card input, .card select, .card textarea, .search input, .search select { font-size: 16px; } /* stops iPhone zoom on focus */
  .dates label, .card label.full { padding: 12px; }
  .cta { min-height: 48px; }

  /* Calendar: big tap targets */
  .cal { gap: 20px; }
  .cal button.day { width: 100%; max-width: 46px; height: 44px; }
  .cal td { width: 14.28%; }

  /* Sticky booking bar */
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }
  .mbar div { display: flex; flex-direction: column; font-size: 15px; line-height: 1.3; }
  .mbar span { color: var(--muted); font-size: 13px; }
  .mbar .cta { width: auto; margin: 0; padding: 12px 20px; text-decoration: none; text-align: center; font-size: 16px; }
  body:has(.mbar) .foot { padding-bottom: 84px; }

  /* Carousel on phones: full-bleed photo, swipe, no side buttons */
  .lb { background: #000; color: #fff; }
  .lb-close { color: #fff; }
  .lb-close:hover { background: rgba(255,255,255,.12); }
  .lb-close span { display: none; }
  .lb-stage { padding: 0 0 20px; gap: 0; }
  .lb-prev, .lb-next { display: none; }
  .lb-img { max-height: calc(100vh - 140px); border-radius: 0; width: 100%; }
  .lb-cap { color: #ccc; padding: 0 16px; }

  /* Home */
  .hero { padding: 24px 0 18px; }
  .hero .sub { font-size: 16px; }
  .search label { padding: 10px 14px; }
  .search label:nth-of-type(3) { grid-column: 1 / -1; border-right: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 40px; }
  .homes { padding-top: 22px; }
  .hgrid { gap: 26px; }
  .owners { padding: 22px; margin: 28px 0; }
  .why-grid { gap: 18px; }
  .foot-in { padding: 24px 16px; }
  .faq summary h2 { font-size: 17px; }
  .pill.big { display: block; text-align: center; }
}
.quote + label.full { border-top: 1px solid #b0b0b0; border-radius: 10px 10px 0 0; }
.card label.full:has(textarea) { border-radius: 0 0 10px 10px; }
.mbar { transition: transform .2s; }
.mbar.away { transform: translateY(110%); }

/* "or book on Airbnb / Vrbo" buttons under the request form */
.platforms { margin-top: 18px; }
.platforms .or { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: #717171; font-size: 13px; }
.platforms .or::before, .platforms .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pbtns.one { grid-template-columns: 1fr; }
.pbtn { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; text-align: center; }
.pbtn:hover { background: #f7f7f7; }
.pbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.platforms .small { margin: 10px 0 0; text-align: center; }

/* Desktop: the sticky booking card scrolls inside itself when it's taller than the window,
   so "Request to book" and the platform buttons are always reachable. */
@media (min-width: 901px) {
  .side .card { max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
