/* tivoli888 — design system (Bootstrap 5.3 skin) */
:root {
  --brand: #b20f03;
  --brand-dark: #8a0b02;
  --brand-light: #d94a3a;
  --gold: #d9a066;
  --ink: #241a14;
  --paper: #faf6f0;
  --card: #ffffff;
  --line: #e8dfd3;
  --muted: #6f6359;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

h1, h2, h3, h4, h5, .hero-title, .section-title, .navbar-brand, .listing-title {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ---------- navbar ---------- */
.site-nav {
  background: linear-gradient(180deg, #2a120d, #1c0c08);
  border-bottom: 3px solid var(--brand);
}
.site-nav .navbar-brand {
  font-size: 1.45rem;
  letter-spacing: .5px;
  color: #f5ece4;
}
.site-nav .navbar-brand span { color: var(--gold); }
.site-nav .nav-link { color: #e6d7c8; }
.site-nav .nav-link:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}
.btn-outline-light:hover { color: #2a120d; }
/* secondary action in the booking card ("Contact host") */
.btn-outline-brand {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}
.btn-outline-brand:hover, .btn-outline-brand:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1100px 480px at 72% -12%, #5a1a10 0%, #2a120d 55%, #170a07 100%);
  color: #f5ece4;
  padding: 6.5rem 0 5rem;
}
.hero-eyebrow {
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.hero-title span { color: var(--gold); font-style: italic; }
.hero-sub {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: #d9cbbd;
  font-size: 1.1rem;
}
.hero-cta .btn { margin: 0 .3rem .5rem; }

/* ---------- stats strip ---------- */
.stats {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
}
.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.3rem;
  color: var(--brand);
  line-height: 1;
}
.stat-label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- sections ---------- */
.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: .6rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  background: var(--brand);
}
.text-center.section-title::after { left: 50%; transform: translateX(-50%); }

/* ---------- home cards ---------- */
.home-card {
  border: 1px solid var(--line);
  border-radius: .9rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(36, 26, 20, .14);
  color: var(--ink);
}
.home-card .card-img-top { height: 210px; object-fit: cover; }
.home-card .card-title { font-size: 1.12rem; line-height: 1.3; }
.card-loc { color: var(--muted); font-size: .9rem; margin-bottom: .4rem; }
.card-meta { color: var(--muted); }
.card-price { font-size: 1.15rem; font-weight: 700; color: var(--brand); }
.card-price .from, .card-price .per { font-size: .8rem; font-weight: 400; color: var(--muted); }

/* ---------- why / features ---------- */
.why { background: var(--card); border-top: 1px solid var(--line); }
.feature { padding: 1rem 0; }
.feature-num {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: .4rem;
}
.feature h4 { font-size: 1.15rem; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, #2a120d, #5a1a10);
  color: #f5ece4;
  padding: 4rem 0;
}
.cta-title { color: #fff; }
.cta-sub { color: #d9cbbd; margin-bottom: 1.5rem; }

/* ---------- listing page ---------- */
.listing-hero { border: 1px solid var(--line); }
.listing-title { font-size: 1.9rem; }
.listing-loc { color: var(--muted); }
.chip {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .28rem .8rem;
  font-size: .82rem;
  color: var(--ink);
  margin: 0 .35rem .35rem 0;
}
.listing-desc { font-size: 1.02rem; }

.booking-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(36, 26, 20, .08);
  position: sticky;
  top: 90px;
}
.booking-price { font-size: 1.45rem; font-weight: 700; color: var(--brand); }
.booking-price .from, .booking-price .per { font-size: .85rem; font-weight: 400; color: var(--muted); }
.quote {
  background: #fdf3e7;
  border: 1px dashed var(--gold);
  border-radius: .6rem;
  padding: .6rem .8rem;
  font-weight: 600;
  color: #6b4a1e;
  text-align: center;
}

/* ---------- live price quote (booking card) ---------- */
.quote-box {
  background: #fdf3e7;
  border: 1px dashed var(--gold);
  border-radius: .6rem;
  padding: .6rem .8rem .5rem;
  margin-bottom: .75rem;
  color: #6b4a1e;
}
.quote-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
}
.quote-label { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.quote-total { font-size: 1.3rem; font-weight: 700; color: var(--brand); }
.quote-sub { font-size: .78rem; color: var(--muted); }
.quote-toggle {
  background: none;
  border: 0;
  padding: .15rem 0 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
}
.quote-detail { margin-top: .45rem; text-align: left; }
.quote-lines { border-top: 1px solid rgba(107, 74, 30, .25); padding-top: .35rem; }
.ql {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .82rem;
  line-height: 1.35;
  padding: .1rem 0;
}
.ql-label { color: #55371a; }
.ql-detail { display: block; font-size: .72rem; color: var(--muted); }
.ql-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ql-credit .ql-value { color: #1b7a3d; }
.ql-total {
  border-top: 1px solid rgba(107, 74, 30, .25);
  margin-top: .2rem;
  padding-top: .3rem;
  font-weight: 700;
}
.quote-foot { margin-top: .35rem; font-size: .72rem; color: var(--muted); text-align: left; }
.msg { font-weight: 600; text-align: center; }
.msg:empty { display: none; }
.fine-print { font-size: .78rem; color: var(--muted); }

/* ---------- admin ---------- */
.st-requested { background: #fff3cd; color: #856404; }
.st-approved  { background: #d1ecf1; color: #0c5460; }
.st-confirmed { background: #d4edda; color: #155724; }
.st-cancelled { background: #e2e3e5; color: #383d41; }
.badge.st-requested, .badge.st-approved, .badge.st-confirmed, .badge.st-cancelled {
  padding: .4em .7em;
  font-size: .78em;
  font-weight: 600;
}

/* ---------- result pages ---------- */
.result-card {
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
}
.result-icon {
  width: 74px; height: 74px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 2.2rem;
  line-height: 74px;
}
.result-icon-muted { background: #9a938c; }

/* ---------- footer ---------- */
.site-footer {
  background: #1c0c08;
  color: #cbb9a8;
}
.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: #f5ece4;
}
.footer-brand span { color: var(--gold); }
.site-footer h6 { color: #f5ece4; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 1.1rem;
  margin-top: 1.5rem;
  font-size: .82rem;
  color: #8d7a68;
}

/* ---------- Litepicker brand accents ---------- */
.litepicker .container__days .day-item.is-start-date,
.litepicker .container__days .day-item.is-end-date {
  background: var(--brand) !important;
  color: #fff !important;
  box-shadow: none;
}
.litepicker .container__days .day-item.is-in-range { background: #f5dcd7; color: var(--brand-dark); }
.litepicker .container__days .day-item.is-locked { background: #f0e9e0; color: #b7aca0; }
.litepicker { font-family: 'Segoe UI', system-ui, sans-serif; }

/* ---------- contact host (booking card) ---------- */
.contact-panel {
  background: #faf7f3;
  border: 1px solid rgba(107, 74, 30, .18);
  border-radius: .6rem;
  padding: .75rem .8rem .6rem;
}
/* honeypot: off-screen, never focusable — only a bot fills it */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .booking-card { position: static; }
  .hero { padding: 4rem 0 3.5rem; }
}

/* ---------- imported listing detail (Airbnb content import, 2026-10-06) -----
   Everything below renders copy pulled from the Airbnb room page by
   scripts/import_airbnb_content.py.  Plain text only — the template escapes it,
   so `listing-para` is what turns stored newlines back into visible breaks
   (Airbnb's UGC arrives with single \n inside bullet lists and blank-line
   paragraph separators). */
.listing-facts { color: var(--muted); font-size: .95rem; margin: -.35rem 0 .5rem; }
.listing-para { white-space: pre-line; }        /* keep \n inside a paragraph  */
.listing-subhead { color: var(--brand-dark); letter-spacing: .01em; }

.sleep-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: .85rem 1rem;
  height: 100%;
}
.sleep-name { font-weight: 700; margin: 0 0 .35rem; }
.sleep-item { color: var(--muted); margin: 0; font-size: .94rem; }

.amen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem 1.6rem;
}
.amen-group-title {
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0 0 .35rem;
}
.amen-list { list-style: none; margin: 0; padding: 0; }
.amen-list li { position: relative; padding-left: 1.15rem; font-size: .95rem; margin-bottom: .2rem; }
.amen-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { padding-left: 1.15rem; position: relative; margin-bottom: .3rem; font-size: .95rem; }
.rule-list li::before {
  content: "•";
  position: absolute;
  left: .15rem;
  color: var(--brand);
  font-weight: 700;
}
.rule-title { font-weight: 500; }
.rule-detail { color: var(--muted); font-size: .9rem; margin-top: .15rem; }

.host-strip {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: .5rem;
  padding: .85rem 1rem;
}

/* ---------- location map (2026-10-06) ---------------------------------------
   Google embed at city-level zoom with the listing marked, plus one-tap views
   of what is around it.  The iframe starts with no src (see the script in
   listing.html), so this block costs a guest nothing until they scroll to it. */
.map-block { scroll-margin-top: 90px; }
.map-address { color: var(--ink); font-size: .98rem; line-height: 1.35; }

.map-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.map-tab {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .28rem .85rem;
  font-size: .84rem;
  color: var(--ink);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.map-tab:hover { border-color: var(--brand); }
.map-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: .85rem;
  overflow: hidden;
  background: #eef2ef;
  box-shadow: 0 6px 18px rgba(36, 26, 20, .07);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
/* placeholder shown until the iframe actually loads */
.map-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  color: var(--muted);
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, #eef2ef 0 12px, #e7ece8 12px 24px);
}
.map-skeleton-pin { font-size: 1.7rem; }
.map-skeleton-txt { font-size: .85rem; text-align: center; padding: 0 1rem; }
@media (max-width: 575.98px) { .map-frame { aspect-ratio: 4 / 3; } }
