/* Coastal Calm — Airbnb-inspired styling */
:root {
  --pink: #ff385c;
  --pink-dark: #e00b41;
  --ink: #222222;
  --muted: #717171;
  --line: #dddddd;
  --bg: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  --maxw: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { color: var(--ink); background: var(--bg); line-height: 1.4; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; }
.muted { color: var(--muted); }
.dot { color: var(--muted); margin: 0 6px; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px); z-index: 50;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--pink); text-decoration: none; }
.brand-mark { font-size: 22px; }
.topnav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.topnav a { text-decoration: none; color: var(--ink); }
.topnav a:hover { text-decoration: underline; }
.book-link { border: 1px solid var(--line); padding: 8px 16px; border-radius: 22px; font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px; }

/* Title */
.title-row h1 { font-size: 26px; margin: 8px 0 6px; }
.subline { font-size: 14px; }
.subline a { color: var(--ink); }
.rating { font-weight: 600; }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 8px; height: 420px;
  border-radius: 16px; overflow: hidden; margin: 18px 0 32px;
}
.g-main { grid-row: 1 / span 2; }
.gallery div { position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-photos {
  position: absolute; bottom: 16px; right: 16px; background: #fff;
  border: 1px solid var(--ink); border-radius: 10px; padding: 7px 14px;
  font-weight: 600; cursor: pointer; font-size: 14px;
}

/* Content layout */
.content { display: grid; grid-template-columns: 1fr 372px; gap: 64px; align-items: start; }
.block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.block h2 { font-size: 22px; margin: 0 0 14px; }

.host-row { display: flex; justify-content: space-between; align-items: center; }
.host-row h2 { margin: 0; }
.host-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--pink);
  color: #fff; display: grid; place-items: center; font-size: 24px;
}

.highlights { display: flex; flex-direction: column; gap: 18px; }
.hl { display: flex; gap: 16px; align-items: flex-start; }
.hl span { font-size: 24px; }
.hl p { margin: 2px 0 0; font-size: 14px; }

.amen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.amen { font-size: 15px; }

.map-placeholder {
  margin-top: 12px; height: 240px; border-radius: var(--radius);
  background: linear-gradient(135deg, #cfe8e4, #a9d6cf); display: grid;
  place-items: center; color: #4a7c74; font-weight: 600;
}

.policy-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.policy-cols h3 { font-size: 16px; margin: 0 0 8px; }
.policy-cols ul { padding-left: 18px; margin: 0; font-size: 14px; }
.policy-cols li { margin-bottom: 6px; }

/* Booking card */
.book-col { position: sticky; top: 88px; }
.book-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; background: #fff;
}
.bc-price { font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.bc-price .muted { font-size: 15px; font-weight: 400; }

.bc-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: 8px 8px 0 0; }
.bc-date { text-align: left; padding: 10px 12px; background: #fff; border: none; cursor: pointer; }
.bc-date:first-child { border-right: 1px solid var(--line); }
.bc-date small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.bc-date span { font-size: 14px; }
.bc-guests label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  border: 1px solid var(--ink); border-top: none; border-radius: 0 0 8px 8px; padding: 8px 12px; }
.bc-guests select { display: block; width: 100%; border: none; font-size: 14px; padding: 2px 0; background: #fff; outline: none; }

.reserve-btn {
  width: 100%; margin-top: 16px; padding: 14px; border: none; border-radius: 10px;
  background: linear-gradient(90deg, #e61e4d, #d70466); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.reserve-btn:hover { filter: brightness(1.05); }
.reserve-btn:disabled { background: #dddddd; color: #fff; cursor: not-allowed; }
.bc-note { text-align: center; font-size: 13px; margin: 12px 0 0; }

.bc-breakdown { margin-top: 18px; font-size: 15px; }
.bc-breakdown .row { display: flex; justify-content: space-between; padding: 7px 0; }
.bc-breakdown .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; }
.bc-breakdown .row span:first-child { text-decoration: underline; color: var(--muted); cursor: default; }
.bc-breakdown .err { color: var(--pink-dark); }

.direct-note { text-align: center; margin-top: 16px; font-size: 13px; }

/* Calendar popover */
.cal-pop {
  position: absolute; right: 0; margin-top: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 18px; z-index: 40; width: 640px; max-width: 92vw;
}
.cal-head { display: flex; align-items: flex-start; gap: 12px; }
.cal-head > button {
  background: #fff; border: none; font-size: 22px; cursor: pointer; color: var(--ink);
  width: 36px; height: 36px; border-radius: 50%;
}
.cal-head > button:hover { background: #f0f0f0; }
.cal-head > button:disabled { color: #ccc; cursor: not-allowed; background: #fff; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; flex: 1; }
.cal-month h4 { text-align: center; margin: 0 0 10px; font-size: 15px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow span { text-align: center; font-size: 11px; color: var(--muted); padding-bottom: 6px; }
.cal-day {
  aspect-ratio: 1; border: none; background: #fff; cursor: pointer; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; padding: 0;
}
.cal-day small { font-size: 9px; color: var(--muted); margin-top: 2px; }
.cal-day:hover:not(:disabled) { border: 1px solid var(--ink); }
.cal-day.blocked, .cal-day.past { color: #ccc; text-decoration: line-through; cursor: not-allowed; }
.cal-day.blocked small, .cal-day.past small { color: #ddd; }
.cal-day.empty { visibility: hidden; }
.cal-day.selected { background: var(--ink); color: #fff; border-radius: 50%; }
.cal-day.selected small { color: #ddd; }
.cal-day.inrange { background: #f0f0f0; border-radius: 0; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.link-btn { background: none; border: none; text-decoration: underline; font-weight: 600; cursor: pointer; font-size: 14px; }

/* Footer */
.site-footer {
  max-width: var(--maxw); margin: 40px auto 0; padding: 24px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  font-size: 14px; flex-wrap: wrap; gap: 8px;
}

/* Toast / banners */
.banner { max-width: var(--maxw); margin: 12px auto 0; padding: 12px 24px; }
.banner.warn { color: var(--pink-dark); }

/* Responsive */
@media (max-width: 900px) {
  .content { grid-template-columns: 1fr; gap: 0; }
  .book-col { position: static; margin-top: 24px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 240px; height: auto; }
  .gallery .g-cell { display: none; }
  .g-main { grid-row: auto; height: 260px; }
  .policy-cols { grid-template-columns: 1fr; }
  .cal-pop { width: 92vw; }
  .cal-months { grid-template-columns: 1fr; gap: 18px; }
}
