/* ---------------------------------------------------------------------------
   Public site styles.

   Every colour, font and radius comes from CSS custom properties emitted by
   config/theme.php (see App\View::themeCss). Rebranding for another location
   means editing that PHP file - never this stylesheet.
   --------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ph-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ph-ink);
  background: var(--ph-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--ph-accent) 55%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ph-accent); }

h1, h2, h3, h4 { font-family: var(--ph-font-heading); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }

.container { width: min(100% - 2.5rem, var(--ph-max-width)); margin-inline: auto; }
.narrow { max-width: 68ch; margin-inline: auto; }
.center { text-align: center; }
.right  { text-align: right; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; }
.muted  { color: var(--ph-ink-soft); }
.small  { font-size: .875rem; }
.mt-lg  { margin-top: 2.5rem; }
.h-sm   { font-size: 1.25rem; margin-top: 2rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ph-accent); color: var(--ph-accent-ink); padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

.hidden-form { display: none; }
.hp { position: absolute; left: -9999px; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit; font-weight: 500; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 3px; }

.btn--primary { background: var(--ph-accent); color: var(--ph-accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--ph-accent) 85%, #000); }

.btn--outline { border-color: currentColor; background: transparent; }
.btn--outline:hover { background: var(--ph-ink); color: var(--ph-bg); border-color: var(--ph-ink); }

.btn--ghost { border-color: var(--ph-line); background: var(--ph-surface); color: var(--ph-ink); }
.btn--ghost:hover { border-color: var(--ph-accent); color: var(--ph-accent); }
.btn--ghost.is-added { background: var(--ph-accent-soft); border-color: var(--ph-accent); color: var(--ph-accent); }

.btn--sm    { padding: .5rem 1rem; font-size: .9rem; }
.btn--lg    { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

.badge {
  display: inline-grid; place-items: center;
  min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem;
  border-radius: 999px; background: var(--ph-accent-ink); color: var(--ph-accent);
  font-size: .75rem; font-weight: 600;
}

.link-more { text-decoration: none; font-weight: 500; color: var(--ph-accent); white-space: nowrap; }
.link-danger { background: none; border: 0; padding: 0; font: inherit; color: var(--ph-busy); cursor: pointer; text-decoration: underline; }

/* ------------------------------------------------------------------ header */

.topbar {
  position: sticky; top: 0; z-index: 50;
}

.demo-banner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .25rem .6rem;
  padding: .45rem 1rem;
  background: var(--ph-warn);
  color: #1d1703;
  font-size: .85rem; line-height: 1.35; text-align: center;
}
.demo-banner__tag {
  text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700;
  padding: .1rem .45rem; border-radius: 999px;
  background: rgba(0, 0, 0, .22);
}
@media (max-width: 560px) {
  .demo-banner { font-size: .78rem; padding: .35rem .75rem; }
}

.site-header {
  background: color-mix(in srgb, var(--ph-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ph-line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.brand { text-decoration: none; font-family: var(--ph-font-heading); font-size: 1.3rem; font-weight: 600; }
.brand__logo { max-height: 44px; width: auto; }

.nav-toggle {
  margin-left: auto; width: 44px; height: 44px;
  display: none; place-items: center;
  background: none; border: 1px solid var(--ph-line); border-radius: var(--ph-radius-sm); cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ph-ink); position: relative;
}
.nav-toggle__bar::before { top: -6px; position: absolute; }
.nav-toggle__bar::after  { top: 6px;  position: absolute; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; }
.site-nav__list { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { text-decoration: none; font-size: .97rem; }
.site-nav__list a:hover, .site-nav__list a.is-current { color: var(--ph-accent); }
.site-nav__aside { display: flex; align-items: center; gap: 1rem; }

.lang-switch { display: flex; gap: .25rem; font-size: .85rem; }
.lang-switch__item { text-decoration: none; padding: .25rem .45rem; border-radius: var(--ph-radius-sm); color: var(--ph-ink-soft); }
.lang-switch__item.is-active { background: var(--ph-surface-alt); color: var(--ph-ink); font-weight: 600; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; top: var(--ph-header-h); right: 0; left: 0; bottom: auto;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.5rem; background: var(--ph-bg);
    border-bottom: 1px solid var(--ph-line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .site-nav__list a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--ph-line); }
  .site-nav__aside { justify-content: space-between; }
}

/* ------------------------------------------------------------------ flashes */

.flashes { margin-top: 1rem; }
.flash { padding: .8rem 1.1rem; border-radius: var(--ph-radius-sm); margin-bottom: .5rem; font-size: .95rem; }
.flash--ok    { background: color-mix(in srgb, var(--ph-ok) 15%, var(--ph-surface)); border: 1px solid var(--ph-ok); }
.flash--error { background: color-mix(in srgb, var(--ph-busy) 15%, var(--ph-surface)); border: 1px solid var(--ph-busy); }

.notice { padding: 1rem 1.25rem; border-radius: var(--ph-radius-sm); margin-bottom: 1.5rem; }
.notice--error { background: color-mix(in srgb, var(--ph-busy) 12%, var(--ph-surface)); border: 1px solid var(--ph-busy); }
.notice p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 9rem) 0;
  background: var(--ph-surface-alt);
  background-size: cover; background-position: center;
}
.hero--image { color: #fff; }
.hero--image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.6));
}
.hero__inner { position: relative; max-width: 44ch; }
.hero__title { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: .35em; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: 2rem; opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ------------------------------------------------------------------ sections */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--alt { background: var(--ph-surface-alt); }

.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section__title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0; }
.section__lead { max-width: 60ch; color: var(--ph-ink-soft); margin-bottom: 2rem; }

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); background: var(--ph-surface-alt); }
.page-head--image { background-size: cover; background-position: center; color: #fff; position: relative; }
.page-head--image::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.page-head .container { position: relative; }
.page-head__title { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: .2em; }
.page-head__lead { max-width: 62ch; opacity: .9; margin: 0; }

.cta { background: var(--ph-forest); color: #fff; }
.cta .muted { color: rgba(255,255,255,.75); }
.cta .btn--primary { background: #fff; color: var(--ph-forest); }
.cta .btn--primary:hover { background: rgba(255,255,255,.88); }

/* ------------------------------------------------------------------ cards */

.grid { display: grid; gap: 1.5rem; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--dense { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }

.card {
  display: flex; flex-direction: column;
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.09); transform: translateY(-2px); }

.card__media { display: block; aspect-ratio: 4 / 3; background: var(--ph-surface-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder {
  display: block; width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, var(--ph-surface-alt), var(--ph-surface-alt) 12px, var(--ph-bg) 12px, var(--ph-bg) 24px);
}
.card--compact .card__media { aspect-ratio: 16 / 9; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.25rem; }
.card__title { font-size: 1.18rem; margin-bottom: .35rem; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--ph-accent); }
.card__summary { font-size: .94rem; color: var(--ph-ink-soft); margin-bottom: .75rem; }
.card__meta { font-size: .85rem; color: var(--ph-ink-soft); margin-bottom: 1rem; }
.card__meta li + li { margin-top: .15rem; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; flex-wrap: wrap; }

.price { font-family: var(--ph-font-heading); font-size: 1.05rem; font-weight: 600; }

/* ------------------------------------------------------------------ listing detail */

.listing__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
@media (max-width: 900px) { .listing__grid { grid-template-columns: 1fr; gap: 2rem; } }

.crumb { display: inline-block; text-decoration: none; color: var(--ph-ink-soft); font-size: .9rem; margin-bottom: 1rem; }
.crumb:hover { color: var(--ph-accent); }
.listing__title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.listing__summary { font-size: 1.1rem; color: var(--ph-ink-soft); }
.listing__cover { margin: 1.5rem 0; }
.listing__cover img { width: 100%; border-radius: var(--ph-radius); }

.panel {
  position: sticky; top: calc(var(--ph-header-h) + 1rem);
  background: var(--ph-surface); border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius); padding: 1.5rem;
}
.panel + .panel { margin-top: 1.5rem; position: static; }
.panel__price { font-family: var(--ph-font-heading); font-size: 1.5rem; font-weight: 600; margin-bottom: .5rem; }
.panel__facts { font-size: .9rem; color: var(--ph-ink-soft); margin-bottom: 1.25rem; }
.panel .add-form { margin-bottom: .75rem; }
.panel .btn--ghost { width: 100%; }

.addon-list__item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--ph-line); }
.addon-list__item:last-child { border-bottom: 0; }
.addon-list__item a { text-decoration: none; display: block; }
.addon-list__item a:hover { color: var(--ph-accent); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin: 1rem 0 2rem; }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--ph-radius-sm); }

/* ------------------------------------------------------------------ rich text */

.rte { max-width: 70ch; }
.rte h2 { font-size: 1.5rem; margin-top: 2rem; }
.rte h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.rte ul, .rte ol { padding-left: 1.25rem; }
.rte li { margin-bottom: .35rem; }
.rte img { border-radius: var(--ph-radius-sm); margin: 1.25rem 0; }
.rte blockquote {
  margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--ph-accent); color: var(--ph-ink-soft); font-style: italic;
}
.rte table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.rte th, .rte td { border: 1px solid var(--ph-line); padding: .55rem .75rem; text-align: left; }
.rte iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--ph-radius-sm); }
.rte--lead { font-size: 1.08rem; color: var(--ph-ink-soft); margin-bottom: 2rem; }
.rte--muted { color: var(--ph-ink-soft); font-size: .95rem; }

/* ------------------------------------------------------------------ calendar */

.calendar { margin: 1.5rem 0; }
.calendar__nav { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.calendar__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.cal { width: 100%; border-collapse: collapse; background: var(--ph-surface); border: 1px solid var(--ph-line); border-radius: var(--ph-radius-sm); overflow: hidden; }
.cal__caption { font-family: var(--ph-font-heading); font-weight: 600; padding: .75rem; background: var(--ph-surface-alt); caption-side: top; }
.cal th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ph-ink-soft); font-weight: 500; padding: .5rem 0; }
.cal td { text-align: center; padding: 0; }
.cal__num { display: grid; place-items: center; width: 100%; aspect-ratio: 1; font-size: .88rem; font-variant-numeric: tabular-nums; }
.cal__pad { background: transparent; }
.cal__day.is-busy .cal__num { background: color-mix(in srgb, var(--ph-busy) 22%, var(--ph-surface)); color: var(--ph-busy); font-weight: 600; text-decoration: line-through; }
.cal__day.is-past .cal__num { color: color-mix(in srgb, var(--ph-ink-soft) 45%, transparent); }
.cal__day.is-today .cal__num { outline: 2px solid var(--ph-accent); outline-offset: -3px; border-radius: 50%; }

.calendar__legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; font-size: .85rem; color: var(--ph-ink-soft); }
.calendar__legend li { display: flex; align-items: center; gap: .4rem; }
.swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--ph-line); display: inline-block; }
.swatch--free { background: var(--ph-surface); }
.swatch--busy { background: color-mix(in srgb, var(--ph-busy) 22%, var(--ph-surface)); border-color: var(--ph-busy); }
.swatch--past { background: var(--ph-surface-alt); }

/* ------------------------------------------------------------------ forms */

.field { display: block; margin-bottom: 1.1rem; }
.field__label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: .35rem; }
.field__error { display: block; color: var(--ph-busy); font-size: .85rem; margin-top: .3rem; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--ph-busy); }
.req { color: var(--ph-busy); }

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], input[type=password], input[type=url], textarea, select {
  width: 100%; padding: .7rem .85rem;
  font: inherit; font-size: .97rem; color: inherit;
  background: var(--ph-surface);
  border: 1px solid var(--ph-line); border-radius: var(--ph-radius-sm);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ph-accent); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }

.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 1.25rem; }

.fieldset { border: 1px solid var(--ph-line); border-radius: var(--ph-radius); padding: 1.5rem; margin: 0 0 1.75rem; background: var(--ph-surface); }
.fieldset__legend { padding: 0 .5rem; font-family: var(--ph-font-heading); font-weight: 600; font-size: 1.15rem; }

.filter { margin-bottom: 2rem; max-width: 380px; }

.request { max-width: 860px; margin-inline: auto; }
.request__submit { text-align: center; }
.qty { width: 5rem; }

.picker { margin-top: 1.25rem; border-top: 1px solid var(--ph-line); padding-top: 1rem; }
.picker summary { cursor: pointer; font-weight: 500; }
.picker__body { margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.picker__title { font-size: 1rem; margin-bottom: .5rem; }
.picker__row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--ph-line); font-size: .92rem; }
.picker__row .small { display: block; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .7rem .5rem; border-bottom: 1px solid var(--ph-line); text-align: left; vertical-align: middle; }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ph-ink-soft); font-weight: 500; }
.table tfoot th, .table tfoot td { border-bottom: 0; padding-top: 1rem; }
.table--cart a { text-decoration: none; }
.table--cart a:hover { color: var(--ph-accent); }

@media (max-width: 640px) {
  .table--cart thead { display: none; }
  .table--cart tr { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding: .75rem 0; border-bottom: 1px solid var(--ph-line); }
  .table--cart td { border: 0; padding: 0; }
  .table--cart tfoot tr { grid-template-columns: 1fr auto; }
}

/* ------------------------------------------------------------------ contact + confirm */

.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.contact__list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; margin: 1.5rem 0 2rem; }
.contact__list dt { font-weight: 600; }
.contact__list dd { margin: 0; }
.contact__map iframe { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--ph-radius); }

.confirm__mark {
  width: 72px; height: 72px; margin: 0 auto 1.5rem;
  display: grid; place-items: center; font-size: 2rem;
  border-radius: 50%; background: var(--ph-ok); color: #fff;
}
.lead { font-size: 1.1rem; color: var(--ph-ink-soft); }
.ref { font-family: var(--ph-font-heading); font-size: 1.1rem; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--ph-forest); color: rgba(255,255,255,.85); margin-top: 0; padding-top: 3.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 780px) { .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer__name { font-family: var(--ph-font-heading); font-size: 1.3rem; color: #fff; margin-bottom: .5rem; }
.site-footer__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); margin-bottom: .75rem; }
.site-footer .plain li { margin-bottom: .4rem; }
.site-footer .muted, .site-footer .rte--muted { color: rgba(255,255,255,.7); }
.social { display: flex; gap: 1rem; margin-top: 1rem; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.15); padding: 1.25rem 0; font-size: .85rem; color: rgba(255,255,255,.6); }

@media print {
  .site-header, .site-footer, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* ------------------------------------------------------------------ request: pinned dates */

/* The dates drive every price and every availability answer on this page, so
   they lead the form and stay in view while the visitor scrolls the basket.

   --ph-header-h must clear the sticky site header or the pinned block slides
   underneath it. The header's real height depends on the brand name wrapping
   and the nav, so site.js measures it and overwrites this; the value here is
   only a fallback for a no-JS visitor. */
:root { --ph-header-h: 104px; }

.fieldset--dates {
  position: sticky;
  top: calc(var(--ph-header-h) + .5rem);
  z-index: 20;
  transition: box-shadow .18s, border-color .18s;
}
.fieldset--dates.is-pinned {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  border-color: var(--ph-accent);
}
.fieldset--dates .field { margin-bottom: .5rem; }

/* On a phone the three date fields stack, so pinning them would swallow the
   screen - and the on-screen keyboard takes most of what is left. Short
   desktop windows have the same problem. */
@media (max-height: 560px), (max-width: 560px) {
  .fieldset--dates { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .fieldset--dates { transition: none; }
}

/* ------------------------------------------------------------------ conflict warning */

.notice--warn {
  background: color-mix(in srgb, var(--ph-warn) 14%, var(--ph-surface));
  border: 1px solid var(--ph-warn);
}
.conflict { margin: .75rem 0 0; }
.conflict__lead { margin-bottom: .5rem; }
.conflict__list { margin: 0 0 .5rem; }
.conflict__list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem;
  padding: .25rem 0;
}
.conflict__name { font-weight: 600; }
.conflict__dates { color: var(--ph-ink-soft); font-size: .9rem; }
.conflict__link { font-size: .9rem; white-space: nowrap; }
.conflict p:last-child { margin-bottom: 0; }
