/* ════════════════════════════════════════════════════════════════════════
   Public landing — Vignes & pierre claire (Phase 3)
   ════════════════════════════════════════════════════════════════════════ */

/* Public modal sheet */
#request-modal.modal-backdrop,
#amenities-modal.modal-backdrop {
  position: fixed;
  inset: 0;
  display: block;
  padding: 0;
  background: rgba(29, 24, 20, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 70;
  transition: opacity .25s ease;
}
#request-modal.modal-backdrop.is-open,
#amenities-modal.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

#request-modal .modal-sheet,
#amenities-modal .modal-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 12px 20px 28px;
  box-shadow: 0 -10px 30px rgba(29, 24, 20, .2);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  z-index: 71;
}
#request-modal .modal-sheet.is-open,
#amenities-modal .modal-sheet.is-open {
  transform: translateY(0);
}
#request-modal .modal-sheet-grabber,
#amenities-modal .modal-sheet-grabber {
  width: 40px;
  height: 4px;
  background: var(--rule-strong);
  border-radius: 4px;
  margin: 0 auto 16px;
}

#public-intro,
#public-gite-description {
  white-space: pre-wrap;
}

.public-body {
  --public-topnav-offset: 50px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: var(--public-topnav-offset);
}
.public-body > .public-main { flex: 1 0 auto; }
.public-body > .public-footer { flex-shrink: 0; }

/* Smooth anchor scroll + offset for fixed topnav */
html { scroll-behavior: smooth; }
.public-section { scroll-margin-top: var(--public-topnav-offset); }
.anchor-target {
  display: block;
  scroll-margin-top: var(--public-topnav-offset);
  visibility: hidden;
  width: 0;
  height: 0;
}

@media (min-width: 1024px) {
  #request-modal .modal-sheet,
  #amenities-modal .modal-sheet {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 720px;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 20px;
    padding: 28px;
    transform: translate(-50%, -50%) scale(.95);
  }
  #request-modal .modal-sheet.is-open,
  #amenities-modal .modal-sheet.is-open {
    transform: translate(-50%, -50%) scale(1);
  }
  #request-modal .modal-sheet-grabber,
  #amenities-modal .modal-sheet-grabber {
    display: none;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.public-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  color: #fff;
  padding: 0;
  display: block;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.08), transparent 60%),
    var(--public-hero-fallback);
  min-height: 0;
  max-width: 100vw;
}
.public-hero-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.public-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,24,20,0) 35%, rgba(29,24,20,.55) 100%);
  z-index: 1;
}
.public-hero-content {
  position: absolute;
  left: 18px; right: 18px; bottom: 36px;
  z-index: 2;
  max-width: calc(100vw - 36px);
}
.public-hero-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}
.public-hero-content h1 {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.public-subtitle {
  margin: 8px 0 0;
  max-width: 34rem;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.88);
}

/* ── Availability strip — pill capsule (mobile & desktop) ───────────── */
.availability-strip {
  padding: 0 14px;
  margin-top: -20px;
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  max-width: 100vw;
}
.availability-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) auto;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: var(--shadow-float);
  padding: 6px;
  gap: 0;
  position: relative;
  width: 100%;
  max-width: 520px;
  min-width: 0;
}
.availability-cell {
  padding: 0 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
  position: relative;
  min-height: 44px;
  height: 100%;
}
.availability-cell-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  display: block;
}
.availability-cell-value {
  display: block;
  position: relative;
  top: var(--availability-text-nudge, 4px);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: inherit;
  min-width: 0;
  flex: 0 1 auto;
}
.availability-cell[data-empty="true"] .availability-cell-value { color: var(--ink-2); }
.availability-cell-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  opacity: 0;
  cursor: pointer;
  font-family: inherit;
  color: transparent;
  padding: 0;
  margin: 0;
}
.availability-cell-input::-webkit-calendar-picker-indicator {
  opacity: 0.001;
  cursor: pointer;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.availability-cell-input:focus { outline: none; }
.availability-cell:focus-within {
  background: var(--paper-2);
  border-radius: 999px;
}
.availability-divider {
  background: var(--rule);
  margin: 4px 0;
  width: 1px;
}
.availability-submit {
  border: none;
  background: var(--accent);
  color: #fff;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  align-self: center;
  margin-left: 4px;
  transition: background .15s ease, transform .12s ease;
}
.availability-submit:hover { background: var(--accent-deep); }
.availability-submit:active { transform: scale(.94); }
.availability-summary {
  position: absolute;
  bottom: -32px;
  left: 0;
  right: 0;
  text-align: center;
  background: transparent;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 16px;
  line-height: 1.35;
}
.availability-summary strong { color: var(--ink); }

/* Sub-mobile fallback : ultra-compact paddings */
@media (max-width: 419px) {
  .availability-card { padding: 4px; }
  .availability-cell { padding: 0 10px; gap: 8px; min-height: 40px; }
  .availability-cell-icon { width: 16px; height: 16px; }
  .availability-cell-value { font-size: 13px; line-height: 1; }
  .availability-divider { margin: 2px 0; }
  .availability-submit { width: 40px; height: 40px; margin-left: 2px; }
}

/* ── Main / sections ───────────────────────────────────────────────── */
.public-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100vw;
}
.public-section {
  padding: 36px 18px;
  min-width: 0;
}
.public-section + .public-section {
  border-top: 1px solid var(--rule);
}
.public-main .public-section-title {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
  display: block;
}
.public-main .public-section-title::after { display: none; }
.public-main .public-section-intro {
  margin: 10px 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.public-footer-brand,
.public-hero-content h1,
.public-subtitle,
.public-main .public-section-title,
.public-main .public-section-intro,
.public-room-card-name,
.public-room-card-meta,
.public-room-card-price-amount,
.public-contact-row,
.confirmation-room-name {
  overflow-wrap: anywhere;
}

/* ── Room cards (mobile) ───────────────────────────────────────────── */
