/* Back-compat aliases.
 *
 * site.css was written against these shorter names. They now point at the
 * canonical tokens in tokens.css, so changing a token updates site.css too.
 * Prefer the tokens.css names in new code; these exist so the older rules keep
 * working without a mass rename.
 *
 * Do NOT redefine a name that tokens.css already defines with the same
 * meaning. `--cream` is already a token, so aliasing it to `var(--cream)`
 * here would be a self-reference: this sheet loads after tokens.css, so the
 * later rule wins, the property becomes invalid at computed-value time, and
 * every var(--cream) resolves to nothing (transparent). Add an alias only for
 * a name tokens.css does not define. */
:root {
  --gold: var(--gold-500);
  --gold-dark: var(--gold-600);
  --ink: var(--ink-900);
  --ink-soft: var(--ink-700);
  --available: var(--color-available);
  --booked: var(--color-booked);
  --closed: var(--color-closed);
}

/* Base element styles (box-sizing, [hidden], body, headings) live in ui.css,
   which is loaded before this file. This stylesheet starts with components. */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--stone-300);
}

.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
.site-header nav a { margin-left: 1rem; color: var(--ink-soft); text-decoration: none; }

main { max-width: 1080px; margin: 0 auto; padding: 2rem 1.5rem; }

.hero h1 { font-size: 2.5rem; margin: 0 0 .5rem; }

.messages { list-style: none; padding: 0 1.5rem; }
.message { padding: .6rem 1rem; border-radius: .5rem; background: var(--cream); margin: .5rem 0; }

.site-footer { padding: 2rem 1.5rem; color: var(--color-text-faint); font-size: .875rem; }

/* --- Forms & auth --- */
.card {
  max-width: 26rem;
  margin: 2rem auto;
  padding: 1.75rem;
  background: var(--cream, var(--color-bg-cream));
  border: 1px solid var(--gold-400);
  border-radius: .75rem;
}
.card h1 { margin-top: 0; font-size: 1.5rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: .25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input {
  width: 100%;
  box-sizing: border-box;
  padding: .5rem .75rem;
  border: 1px solid var(--stone-500);
  border-radius: .5rem;
  font-size: .95rem;
}
.field input:focus { outline: 2px solid var(--color-brand); outline-offset: 1px; }
.field-error { margin-top: .25rem; color: var(--color-danger-text); font-size: .8rem; }
.btn {
  display: inline-block;
  padding: .6rem 1.4rem;
  border: 0;
  border-radius: 9999px;
  background: var(--color-brand);
  color: var(--paper);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn.secondary { background: transparent; color: var(--ink-soft); border: 1px solid var(--stone-500); }
.form-actions { display: flex; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.form-note { margin-top: 1rem; font-size: .85rem; color: var(--color-text-faint); }
.form-note a { color: var(--color-brand-dark); }
.notice { max-width: 26rem; margin: 2rem auto; text-align: center; }

/* --- Public marketing & catalogue --- */
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .75rem; font-weight: 600; color: var(--gold-dark); margin: 0 0 .5rem; }
.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 42rem; }
.note { color: var(--ink-soft); }
h1 em { font-style: normal; color: var(--gold-dark); }

.section { margin-top: 3.5rem; }
.section h2 { font-size: 1.75rem; margin: .25rem 0 .75rem; }

.button { display: inline-block; padding: .7rem 1.25rem; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; }
.button--ghost { background: transparent; color: var(--ink); border: 1px solid var(--gold-400); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.filters a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--stone-300); text-decoration: none; color: var(--ink-soft); font-size: .875rem; }
.filters a.is-active { background: var(--cream); border-color: var(--gold); color: var(--ink); }

.grid { display: grid; gap: 1.25rem; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--stone-300); border-radius: 1rem; background: var(--paper); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, var(--gold-300), var(--cream)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: italic; color: var(--gold-dark); }
.card__placeholder--serif { font-family: Georgia, serif; font-size: 2rem; }
.card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.05rem; }
.card__eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--color-text-faint); }
.card__meta { margin: 0; font-size: .875rem; color: var(--ink-soft); }
.card__row { margin-top: auto; display: flex; justify-content: space-between; gap: .75rem; padding-top: .75rem; border-top: 1px solid var(--stone-200); font-size: .875rem; font-weight: 600; }
.card__row .is-out { color: var(--color-danger); }
.is-muted { color: var(--color-text-faint); font-weight: 400; }
.is-out { color: var(--color-danger); }
.empty { padding: 3rem; text-align: center; color: var(--color-text-faint); border: 1px dashed var(--gold-400); border-radius: 1rem; }

.tiles { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tiles li { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border-radius: 1rem; background: var(--cream); }
.tiles strong { font-family: Georgia, serif; font-size: 1.5rem; color: var(--gold-dark); }

/* --- How it works + delivery --- */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.steps li {
  padding: 1.5rem;
  border: 1px solid var(--gold-400);
  border-radius: 1rem;
  background: var(--paper);
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--gold-400);
  color: var(--gold-dark);
  font-family: Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
}
.steps h3 { margin: .75rem 0 0; font-family: Georgia, serif; font-size: 1.05rem; }
.steps p { margin: .5rem 0 0; font-size: .9rem; line-height: 1.6; color: var(--ink-600); }
.how-contact {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--cream);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.how-contact__label { margin: 0; font-weight: 600; }
.how-contact p { margin: .35rem 0 0; font-size: .9rem; line-height: 1.6; color: var(--ink-600); }

/* --- Rental detail --- */
/* Two-column layout mirroring the Next.js page: a flexible content column and
   a fixed 360px hiring sidebar that sticks below the floating nav. */
.rental-detail { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .rental-detail { grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; } }
.rental-detail__main { min-width: 0; }
.rental-detail__back { display: inline-block; font-size: .875rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: color .15s ease; }
.rental-detail__back:hover { color: var(--gold-dark); }
.rental-detail__intro { margin-top: 2rem; }
.rental-detail__title { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; letter-spacing: -.01em; margin: .75rem 0 0; color: var(--ink); }
.rental-detail__about { margin-top: 2rem; }
.rental-detail__about h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.5rem; letter-spacing: -.01em; margin: 0 0 1rem; color: var(--ink); }
.rental-detail__cover { width: 100%; border-radius: 1rem; aspect-ratio: 4/3; object-fit: cover; position: static; }

/* Photo gallery: one large 21:9 stage plus selectable thumbnails. All stage
   images are stacked; only .is-active is shown, so the swap needs no reflow. */
.rental-gallery { margin-top: 1.5rem; }
.rental-gallery__stage { position: relative; width: 100%; aspect-ratio: 21/9; overflow: hidden; border-radius: 1.5rem; background: var(--cream); }
.rental-gallery__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.rental-gallery__image.is-active { display: block; }
.rental-gallery__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 6vw, 3.5rem); font-style: italic; font-weight: 600; color: rgba(168, 135, 30, .7); background: linear-gradient(135deg, var(--gold-400), var(--cream), rgba(200, 169, 81, .4)); }
.rental-gallery__thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.rental-gallery__thumb { position: relative; width: 7rem; height: 5rem; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: .75rem; background: none; cursor: pointer; opacity: .7; transition: opacity .15s ease, border-color .15s ease; }
.rental-gallery__thumb:hover { opacity: 1; }
.rental-gallery__thumb.is-active { border-color: var(--gold); opacity: 1; }
.rental-gallery__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Sticky hiring sidebar. */
.rental-detail__aside { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 1024px) { .rental-detail__aside { position: sticky; top: 6rem; align-self: start; } }
.hire-card { padding: 1.5rem; border: 1px solid rgba(231, 217, 173, .7); border-radius: 1rem; background: var(--paper); box-shadow: 0 1px 2px rgba(27, 22, 13, .06); }
.hire-card--muted { background: var(--cream); box-shadow: none; }
.hire-card__eyebrow { margin: 0 0 1.25rem; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
.hire-card--muted .hire-card__eyebrow { margin-bottom: .5rem; }
.booking-cta { margin-top: 0; }
.thumbnails { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.thumbnails img { width: 72px; height: 72px; object-fit: cover; border-radius: .5rem; }
.price { font-size: 1.5rem; font-weight: 700; }
.price span { font-size: 1rem; font-weight: 400; color: var(--color-text-faint); }
.badge { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .8rem; }
.badge--out { background: var(--color-danger-soft); color: var(--color-danger); }
.h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.options { list-style: none; padding: 0; }
.options li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--stone-200); }
.prose { line-height: 1.7; color: var(--ink-soft); max-width: 40rem; }
.prose--wide { max-width: 46rem; }
.prose h2 { color: var(--ink); }
.panel { margin: 2rem 0; padding: 1.5rem; border: 1px solid var(--stone-300); border-radius: 1rem; background: var(--cream); }
.checklist { list-style: none; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.checklist li::before { content: "✦ "; color: var(--gold); }
.booking-cta { margin-top: 2rem; }

/* --- Events --- */
.event-detail__image { width: 100%; border-radius: 1rem; margin: 1rem 0; }
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .75rem; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--stone-300); margin-top: 4rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.site-footer__brand { font-weight: 700; color: var(--ink); }
.site-footer a { color: var(--ink-soft); }
.site-footer__social a { margin-right: .75rem; }
.site-footer__copy { color: var(--color-text-faint); font-size: .8rem; }

/* ------------------------------------------------------------------ */
/* Rental cart + checkout                                              */
/* ------------------------------------------------------------------ */

.nav-cart__badge {
  display: inline-block;
  min-width: 1.25rem;
  padding: .05rem .35rem;
  margin-left: .15rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
}

.cart-page, .checkout-page { padding: 0 1.5rem 3rem; }
.cart-page h1, .checkout-page h1 { margin-top: .25rem; }

/* Keep the cart/checkout column narrower than the full page and centred,
   matching other single-column content pages. */
.cart-page, .checkout-page { max-width: 52rem; margin: 0 auto; }
.cart-page > .eyebrow, .cart-page > h1,
.checkout-page > .eyebrow, .checkout-page > h1 { text-align: center; }
.cart-page > .eyebrow, .checkout-page > .eyebrow { margin-bottom: .25rem; }

.cart-layout, .checkout-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
@media (min-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

.cart-range, .cart-notes {
  padding: 1rem;
  border: 1px solid var(--stone-300);
  border-radius: 1rem;
  background: var(--paper);
  margin-bottom: 1.5rem;
}
.field-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.field-row .field { flex: 1 1 8rem; }
.event-dates { margin: .75rem 0; }
.event-dates__note {
  margin: 0 0 .5rem;
  padding: .6rem .75rem;
  border-radius: .5rem;
  background: var(--cream);
  font-size: .85rem;
  color: var(--ink-600);
}
.field textarea,
.field select {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--stone-500);
  border-radius: .5rem;
  font: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}
.radio { display: flex; align-items: center; gap: .5rem; margin: .35rem 0; }
.checkbox { display: flex; align-items: flex-start; gap: .5rem; margin: .5rem 0; }

.cart-lines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.cart-line {
  display: grid;
  /* One column by default. A three-column row (picture, name, quantity and
     buttons) has no room to breathe on a phone and pushed the page sideways,
     so the image and details sit on one line and the controls wrap underneath
     until there is width for the full row. `minmax(0, 1fr)` and the
     `min-width: 0` on the details column let a long product name wrap instead
     of stretching the grid past the page edge. */
  grid-template-columns: 64px minmax(0, 1fr);
  gap: .75rem 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--stone-300);
  border-radius: 1rem;
  background: var(--paper);
}
.cart-line__body { min-width: 0; }
.cart-line__actions { grid-column: 2; }
@media (min-width: 640px) {
  .cart-line { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 1rem; }
  .cart-line__actions { grid-column: auto; }
}
.cart-line__media { aspect-ratio: 1; border-radius: .75rem; overflow: hidden; background: var(--cream); position: relative; }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-line__body h3 { margin: 0 0 .25rem; font-size: 1rem; }
.cart-line__body a { color: inherit; text-decoration: none; }
.cart-line__actions { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.cart-line__subtotal { margin: 0; font-weight: 700; }
.qty-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.qty-form input { width: 4rem; padding: .4rem; border: 1px solid var(--stone-500); border-radius: .5rem; font: inherit; }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold-dark);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.cart-summary, .checkout-summary {
  align-self: start;
  padding: 1.5rem;
  border: 1px solid var(--stone-300);
  border-radius: 1rem;
  background: var(--cream);
  position: sticky;
  top: 1rem;
}
.cart-summary__row { display: flex; justify-content: space-between; margin: .4rem 0; }
.cart-summary__row--total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--stone-400); padding-top: .5rem; }
.cart-summary .button, .checkout-summary .button { display: block; text-align: center; margin: 1rem 0; }
.cart-clear { text-align: center; }

.checkout-lines { list-style: none; padding: 0; margin: 0 0 .5rem; }
.checkout-lines li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid var(--stone-200); }
.checkout-dates { margin: .5rem 0 0; color: var(--ink-soft); }

.delivery-fields { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--stone-200); }
.delivery-quote { margin-top: .5rem; font-weight: 600; }

.contract { margin: .75rem 0; padding: .75rem 1rem; border: 1px solid var(--stone-300); border-radius: .75rem; background: var(--paper); }
.contract summary { cursor: pointer; font-weight: 600; }
.contract__body { margin: .75rem 0; max-height: 18rem; overflow: auto; padding-right: .5rem; }
.signature-pad {
  display: block;
  width: 100%;
  max-width: 30rem;
  /* The canvas markup is 500x150. Capping the *displayed* height here (rather
     than relying on the intrinsic ratio) keeps the pad from towering over the
     agreements step and the signing modal; checkout.js reads the live
     getBoundingClientRect() for pointer maths, so it stays accurate at any
     size. aspect-ratio is honoured even for a replaced element. */
  aspect-ratio: 500 / 150;
  height: auto;
  border: 1px dashed var(--stone-500);
  border-radius: .5rem;
  background: var(--paper);
  touch-action: none;
}
.coupon-result { color: var(--gold-dark); font-weight: 600; }

/* Customer rental list/detail helpers. */
.list-plain { list-style: none; margin: 1rem 0; padding: 0; }
.list-plain li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--color-bg-mute); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain a { color: inherit; text-decoration: none; }
.button--danger { background: var(--color-danger-text); color: var(--paper); }
.button--danger:hover { opacity: 0.9; }

/* Merchandise detail, cart switcher and misc shop chrome. */
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: .75rem; }
.breadcrumb a { color: inherit; }
.page-head { margin-bottom: 1.5rem; }
.card__link { display: block; }
.card__title-link { color: inherit; text-decoration: none; }
.card__title-link:hover { text-decoration: underline; }

.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; max-width: 60rem; }
.product-detail__media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, var(--gold-300), var(--cream)); }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail__price { font-size: 1.5rem; font-weight: 700; margin: .25rem 0; }
.product-detail__shipping { color: var(--ink-soft); margin: 0 0 1rem; }
.product-detail__description { margin-bottom: 1.25rem; color: var(--ink-soft); }
.product-detail__cart-link { margin-top: 1rem; font-size: .9rem; }
@media (max-width: 720px) { .product-detail { grid-template-columns: 1fr; } }

.cart-switcher { display: inline-flex; gap: .25rem; padding: .25rem; margin-bottom: 1.25rem; border: 1px solid var(--gold-400); border-radius: 999px; background: var(--paper); }
.cart-switcher__tab { padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.cart-switcher__tab.is-active { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------ */
/* Event portal: dashboard, public page, gallery                       */
/* ------------------------------------------------------------------ */

.event-dash__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.share-link { display: flex; align-items: center; gap: .5rem; padding: .4rem .75rem; border: 1px solid var(--gold-400); border-radius: .5rem; background: var(--cream); font-size: .85rem; }
.share-link__path { color: var(--ink-soft); }

.event-tabs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.5rem 0; padding-bottom: .75rem; border-bottom: 1px solid var(--stone-300); }
.event-tabs__tab { padding: .35rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.event-tabs__tab:hover { background: var(--cream); color: var(--gold-dark); }
.event-tabs__tab.is-active { background: var(--gold); color: var(--paper); }
.event-tabs__preview { margin-left: auto; padding: .35rem .9rem; border: 1px solid var(--gold); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--gold-dark); text-decoration: none; }

.event-facts { display: grid; gap: .75rem; margin: 1rem 0; padding: 1.25rem; border: 1px solid var(--stone-300); border-radius: 1rem; background: var(--paper); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.event-facts dt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-faint); }
.event-facts dd { margin: .25rem 0 0; color: var(--ink-soft); }

.panel--success { background: var(--color-success-soft); border-color: var(--color-success); }
.event-joined { margin: 0; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 600; }

.gallery__item { margin: 0; overflow: hidden; border: 1px solid var(--stone-300); border-radius: .75rem; background: var(--paper); }
.gallery__item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery__item figcaption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem .6rem; font-size: .85rem; }
.gallery__item figcaption a { color: var(--gold-dark); font-weight: 600; }
.gallery__item figcaption form { margin: 0; }

.guest-list { list-style: none; margin: 1rem 0; padding: 0; border: 1px solid var(--stone-300); border-radius: 1rem; background: var(--paper); overflow: hidden; }
.guest-list__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--stone-200); }
.guest-list__row:last-child { border-bottom: 0; }
.guest-list__name { margin: 0; font-weight: 600; }
.guest-list__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.guest-list__actions select { padding: .3rem .5rem; border: 1px solid var(--stone-500); border-radius: .5rem; font: inherit; font-size: .85rem; }
.inline-form { display: inline; margin: 0; }

.event-detail__hero { position: relative; margin: 1rem 0 1.5rem; aspect-ratio: 21/9; overflow: hidden; border-radius: 1.5rem; background: linear-gradient(135deg, var(--gold-300), var(--cream)); display: flex; align-items: center; justify-content: center; }
.event-detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.event-detail__hero-placeholder { font-family: Georgia, serif; font-size: 4rem; font-weight: 600; color: rgba(168, 135, 30, .6); }
.event-detail__image { width: 100%; border-radius: 1rem; margin: 1rem 0; }
.event-counts { margin: 1rem 0; }
.event-settings .field { display: block; margin-bottom: 1rem; }
.event-settings .field span { display: block; margin-bottom: .25rem; font-weight: 600; }
.event-settings .field input,
.event-settings .field textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--stone-500); border-radius: .5rem; font: inherit; }

/* ------------------------------------------------------------------ */
/* Floating site navigation                                            */
/* ------------------------------------------------------------------ */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  pointer-events: none;
}
.site-nav__row {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem 0;
}
@media (min-width: 640px) { .site-nav__row { padding-left: 1.5rem; padding-right: 1.5rem; } }
.site-nav__wordmark {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--gold-400);
  border-radius: 999px;
  background: rgba(250, 246, 238, .9);
  box-shadow: 0 1px 2px rgba(27, 22, 13, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease;
}
.site-nav__wordmark:hover { background: var(--cream); }
.site-nav__wordmark--compact { width: 2.75rem; padding: 0; justify-content: center; align-items: center; font-size: 1.125rem; }
@media (min-width: 640px) {
  .site-nav__wordmark { font-size: 1.25rem; }
  .site-nav__wordmark--compact { font-size: 1.125rem; }
}
.site-nav__gold { font-style: italic; color: var(--gold); }

.site-nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: .25rem;
  height: 2.75rem;
  padding: .25rem;
  border: 1px solid var(--gold-400);
  border-radius: 999px;
  background: rgba(250, 246, 238, .9);
  box-shadow: 0 1px 2px rgba(27, 22, 13, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.site-nav__icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.site-nav__icon-link:hover { background: rgba(231, 217, 173, .5); color: var(--gold-dark); }
.site-nav__icon-link svg { width: 1.25rem; height: 1.25rem; }
.site-nav__icon-close { display: none; }
.site-nav__icon-link[aria-expanded="true"] .site-nav__icon-open { display: none; }
.site-nav__icon-link[aria-expanded="true"] .site-nav__icon-close { display: block; }

.site-nav__badge {
  position: absolute;
  top: -.125rem;
  right: -.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 .25rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--paper);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.site-nav__menu-root { position: relative; }
.site-nav__panel {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  z-index: 50;
  width: 16rem;
  max-height: calc(100dvh - 6rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .5rem;
  border: 1px solid var(--gold-400);
  border-radius: 1rem;
  background: var(--cream);
  box-shadow: 0 20px 25px -5px rgba(27, 22, 13, .25);
}
.site-nav__links { display: flex; flex-direction: column; gap: .125rem; }
.site-nav__links a {
  padding: .75rem;
  border-radius: .75rem;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.site-nav__links a:hover { background: rgba(231, 217, 173, .5); color: var(--gold-dark); }
.site-nav__auth { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--gold-400); }
.site-nav__auth-primary,
.site-nav__auth-ghost {
  display: block;
  box-sizing: border-box;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.site-nav__auth-primary { background: var(--gold); color: var(--paper); border: 0; }
.site-nav__auth-primary:hover { background: var(--gold-dark); }
.site-nav__auth-ghost { background: transparent; color: var(--gold-dark); border: 1px solid var(--gold); font-family: inherit; }
.site-nav__auth-ghost:hover { background: rgba(231, 217, 173, .5); }
.site-nav__auth-row { display: flex; gap: .5rem; }
.site-nav__auth-row > * { flex: 1; }
.site-nav__logout { margin: 0; }

body.nav-open { overflow: hidden; }
body.contract-modal-locked { overflow: hidden; }

/* ------------------------------------------------------------------ */
/* Checkout wizard                                                     */
/* ------------------------------------------------------------------ */

main { padding-top: 4.5rem; }

.wizard { padding: 0 1.5rem 3rem; }

.wizard-progress {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .wizard-progress { gap: 1.25rem; } }
.wizard-progress li { display: flex; flex-direction: column; align-items: center; }
.wizard-dot {
  display: block;
  width: .625rem;
  height: .625rem;
  border-radius: 999px;
  background: rgba(200, 169, 81, .45);
  transition: background .3s ease, box-shadow .3s ease;
}
.wizard-dot.is-active { background: var(--gold); box-shadow: 0 0 0 4px rgba(200, 169, 81, .2); }
.wizard-dot.is-passed { background: var(--gold-dark); }
.wizard-dot-label {
  position: absolute;
  top: 1rem;
  white-space: nowrap;
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gold-dark);
}
.wizard-error {
  margin: 1rem 0 0;
  padding: .5rem .75rem;
  border-radius: .5rem;
  background: var(--color-danger-soft);
  color: var(--color-danger);
  font-size: .875rem;
}
.wizard-panels { position: relative; margin: 2rem 0 0; }
.wizard-step { animation: none; }
.wizard-step:not([hidden]) { animation: step-in-forward .28s ease-out both; }
@keyframes step-in-forward {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.wizard-btn {
  padding: .6rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.wizard-btn--back { background: transparent; color: var(--gold-dark); border: 1px solid var(--gold); }
.wizard-btn--back:hover { background: rgba(231, 217, 173, .5); }
.wizard-btn--next { margin-left: auto; background: var(--gold); color: var(--paper); }
.wizard-btn--next:hover { background: var(--gold-dark); }
.wizard-btn:disabled { cursor: not-allowed; opacity: .6; }

.wizard-hint { margin: .5rem 0 0; text-align: center; font-size: .75rem; color: var(--color-text-faint); }

.mode-toggle { display: inline-flex; padding: .25rem; border: 1px solid var(--gold-400); border-radius: 999px; background: rgba(250, 246, 238, .5); }
.mode-toggle button {
  padding: .35rem 1rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.mode-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--paper); box-shadow: 0 1px 2px rgba(27, 22, 13, .12); }
.selected-range { margin: .75rem 0 0; font-size: .875rem; color: var(--ink-soft); }
.selected-range strong { color: var(--ink); }
.dates-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .dates-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.days-note { margin-top: .75rem; font-size: .875rem; color: var(--color-success); }
.days-note--error { padding: .5rem .75rem; border-radius: .5rem; background: var(--color-danger-soft); color: var(--color-danger); }

.order-summary-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: .5rem 1rem;
  border: 1px solid var(--gold-400);
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 2px rgba(27, 22, 13, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.order-summary-bar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; font-size: .875rem; }
.order-summary-bar__dates { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink); }
.order-summary-bar__count { flex-shrink: 0; color: var(--color-text-faint); }
.order-summary-bar__count strong { color: var(--ink); }
.order-summary-bar__spacer { height: 3rem; }
[data-contract-modal-open] .order-summary-bar { display: none; }

/* ------------------------------------------------------------------ */
/* Contract modal                                                      */
/* ------------------------------------------------------------------ */

.contract-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 640px) { .contract-modal { align-items: center; padding: 1rem; } }
.contract-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(27, 22, 13, .4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: default;
}
.contract-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 85dvh;
  overflow: hidden;
  border: 1px solid var(--gold-400);
  border-radius: 1rem 1rem 0 0;
  background: var(--cream);
  box-shadow: 0 25px 50px -12px rgba(27, 22, 13, .4);
}
@media (min-width: 640px) {
  .contract-modal__panel { max-width: 32rem; max-height: 80dvh; border-radius: 1rem; }
}
.contract-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--gold-400);
}
.contract-modal__title { margin: 0; font-family: Georgia, serif; font-size: 1rem; font-weight: 600; color: var(--ink); }
.contract-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.contract-modal__close:hover { background: rgba(231, 217, 173, .5); color: var(--gold-dark); }
.contract-modal__close svg { width: 1.25rem; height: 1.25rem; }
.contract-modal__body { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; }
.contract-modal__footer { padding: .75rem 1rem; border-top: 1px solid var(--gold-400); }

.contract-prompt { padding: 1rem; border: 1px solid var(--gold-400); border-radius: .75rem; background: rgba(231, 217, 173, .2); text-align: center; }
.contract-card { margin: 0 0 1rem; border: 1px solid var(--stone-400); border-radius: .75rem; background: var(--paper); overflow: hidden; }
.contract-card__title { margin: 0; padding: .75rem 1rem; font-size: .875rem; font-weight: 600; color: var(--ink); }
.contract-card__body { padding: .75rem 1rem; }
.contract-card__body--scroll { max-height: 16rem; overflow-y: auto; border-top: 1px solid var(--stone-400); }
.contract-card__sign { padding: .75rem 1rem; border-top: 1px solid var(--stone-400); }
.sign-all { padding: .75rem 1rem; border: 1px solid var(--gold-400); border-radius: .75rem; background: rgba(231, 217, 173, .2); }
.sign-all__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.contract-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .75rem; }
.inline-link { background: none; border: 0; padding: 0; color: var(--gold-dark); font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Event details modal (one question per screen)                       */
/* ------------------------------------------------------------------ */

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 640px) { .event-modal { align-items: center; padding: 1rem; } }
.event-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 90dvh;
  overflow: hidden;
  border: 1px solid var(--gold-400);
  border-radius: 1rem 1rem 0 0;
  background: var(--paper);
  box-shadow: 0 25px 50px -12px rgba(27, 22, 13, .4);
}
@media (min-width: 640px) {
  .event-modal__panel { max-width: 34rem; max-height: 82dvh; border-radius: 1rem; }
}
.event-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.25rem .5rem;
}
.event-modal__progress {
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.event-modal__body { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .5rem 1.25rem 1.25rem; }
.event-modal__error {
  margin: 0 0 .75rem;
  padding: .5rem .7rem;
  border-radius: .5rem;
  background: var(--color-danger-soft);
  border: 1px solid var(--color-danger-bg);
  color: var(--color-danger-text);
  font-size: .82rem;
  font-weight: 600;
}
.event-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1.25rem 1.25rem;
}

.event-question__title {
  margin: 0 0 .4rem;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
}
.event-question__hint { margin: 0 0 1.25rem; font-size: .9rem; color: var(--color-text-faint); line-height: 1.4; }

.event-choices { display: grid; gap: .6rem; margin-bottom: .5rem; }
.event-choice {
  display: grid;
  gap: .15rem;
  width: 100%;
  padding: .85rem 1rem;
  text-align: left;
  border: 1px solid var(--stone-400);
  border-radius: .75rem;
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.event-choice:hover { border-color: var(--gold); }
.event-choice[aria-pressed="true"] { border-color: var(--gold); background: rgba(200, 169, 81, .12); box-shadow: inset 0 0 0 1px var(--gold); }
.event-choice[disabled] { opacity: .5; cursor: not-allowed; }
.event-choice strong { font-size: .95rem; }
.event-choice span { font-size: .8rem; color: var(--color-text-faint); line-height: 1.35; }

.event-summary { margin: 1rem 0 .4rem; display: grid; gap: .1rem; }
.event-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(231, 217, 173, .6);
}
.event-summary__row dt { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-faint); }
.event-summary__row dd { margin: 0; font-size: .9rem; font-weight: 600; color: var(--ink); text-align: right; }
.event-summary .muted { color: var(--color-text-faint); font-weight: 400; }
/* Each value is a button: it reads as the value but edits the detail in place. */
.event-summary__edit {
  border: 0; background: none; padding: .15rem .35rem; margin: -.15rem -.35rem;
  font: inherit; font-weight: 600; color: var(--ink); text-align: right;
  border-radius: 6px; cursor: pointer;
}
.event-summary__edit:hover { background: rgba(231, 217, 173, .45); }
.event-summary__edit:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.event-summary__edit::after {
  content: "✎"; margin-left: .45rem; font-weight: 400;
  color: var(--color-text-faint); font-size: .8rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Messages sit before <main>, so give them the same clearance as the fixed
   navigation bar. */
body > .messages { padding-top: 4.75rem; }

/* --- Availability calendar (mirrors availability-calendar.tsx) ---------- */
.calendar-wrap { margin-top: 1rem; }
.calendar-wrap .h4 { margin: 0 0 .2rem; font-size: .95rem; }

.availability-calendar {
  margin-top: .5rem;
  border: 1px solid var(--stone-400);
  border-radius: .75rem;
  background: var(--paper);
  padding: .65rem;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.calendar-label { margin: 0; font-size: .85rem; font-weight: 600; }
.calendar-nav {
  border: 0;
  background: none;
  padding: .15rem .5rem;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink-soft);
  border-radius: .5rem;
  cursor: pointer;
}
.calendar-nav:hover:not(:disabled) { background: var(--cream); }
.calendar-nav:disabled { opacity: .3; cursor: default; }

.calendar-grid {
  margin-top: .4rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .25rem;
  text-align: center;
}
.calendar-grid.is-loading { opacity: .5; }

.calendar-weekday {
  font-size: .6rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.calendar-grid [data-calendar-day] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .2rem 0;
  border: 0;
  background: none;
  border-radius: .5rem;
  cursor: pointer;
}
.calendar-grid [data-calendar-day]:disabled { cursor: default; }
.calendar-grid [data-calendar-day]:not(:disabled):hover { background: var(--cream); }

.calendar-day-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--ink-soft);
}
.calendar-day-number.is-selected {
  background: var(--gold);
  color: var(--paper);
  font-weight: 600;
}
.calendar-day-number.is-past { color: var(--ink-300); }

.calendar-dot {
  display: block;
  width: .375rem;
  height: .375rem;
  border-radius: 999px;
}
.calendar-dot.is-available, .calendar-legend .is-available { background: var(--available); }
.calendar-dot.is-booked, .calendar-legend .is-booked { background: var(--booked); }
.calendar-dot.is-blocked, .calendar-legend .is-blocked { background: var(--closed); }
.calendar-dot.is-unknown { background: var(--color-border-strong); }

.calendar-legend {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  font-size: .65rem;
  color: var(--color-text-muted);
}
.calendar-legend span { display: inline-flex; align-items: center; gap: .25rem; }
.calendar-legend i { display: inline-block; }

/* Rental detail extras: calendar heading/hint plus range-end emphasis. */
.calendar-eyebrow {
  margin: 0 0 .1rem;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.calendar-nav-group { display: flex; gap: .15rem; }
.calendar-hint {
  margin: .5rem 0 0;
  font-size: .7rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  text-align: center;
}
.calendar-day-number.is-range-end { box-shadow: inset 0 0 0 2px var(--gold-dark); }

/* --- Rental detail: option tiles + hire-length icons ------------------- */
/* A fieldset group (Size / Hire length). Reset the browser's default boxed
   border and legend notch, then style the legend like a normal field label. */
.field--group {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field--group legend {
  /* Browsers don't support margin on legend; use padding-bottom instead. */
  padding: 0 0 .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.option-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding: .5rem;
  border-radius: .85rem;
  background: var(--cream);
}
.option-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-height: 4.25rem;
  padding: .7rem .6rem .6rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(27, 22, 13, .05);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.option-tile:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(27, 22, 13, .08);
}
.option-tile.is-active {
  border-color: var(--gold);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--gold), 0 4px 10px rgba(200, 169, 81, .18);
}
.option-tile input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.option-tile__label {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
  white-space: nowrap;
}
.option-tile__price {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-dark);
  line-height: 1.2;
}
/* Put the "/ day" suffix on its own line so a narrow tile never breaks the
   price number away from its unit mid-value. */
.option-tile__price span { display: block; font-weight: 400; color: var(--color-text-faint); }
/* Check badge marks the chosen tile without shifting its layout. */
.option-tile.is-active::after,
.mode-icon.is-active::after {
  content: "";
  position: absolute;
  top: -.35rem;
  right: -.35rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--gold-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7.5'/%3E%3C/svg%3E") center / .62rem no-repeat;
  box-shadow: 0 1px 3px rgba(27, 22, 13, .25);
}

.mode-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding: .5rem;
  border-radius: .85rem;
  background: var(--cream);
}
.mode-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .9rem .6rem .8rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(27, 22, 13, .05);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.mode-icon:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(27, 22, 13, .08);
}
.mode-icon.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 4px 10px rgba(200, 169, 81, .18);
}
.mode-icon input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mode-icon__glyph {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold-dark);
  transition: background .15s ease, color .15s ease;
}
.mode-icon.is-active .mode-icon__glyph { background: var(--gold); color: var(--paper); }
.mode-icon__glyph svg { width: 1.35rem; height: 1.35rem; display: block; }
.mode-icon__label { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); }
.mode-icon__hint { display: block; font-size: .7rem; color: var(--color-text-faint); line-height: 1.25; }
.mode-note { margin: .6rem 0 0; font-size: .78rem; color: var(--color-text-faint); line-height: 1.4; }
.mode-note--notice {
  padding: .5rem .7rem;
  border-radius: .5rem;
  background: var(--gold-50);
  border: 1px solid var(--gold-400);
  color: var(--gold-dark);
  font-weight: 600;
}

/* Hidden date inputs are driven by the calendar; the summary shows the pick. */
.date-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin: 1rem 0 0;
  padding: .6rem .75rem;
  border-radius: .6rem;
  background: var(--cream);
  font-size: .85rem;
}

/* In-place confirmation for "Add to cart". The add posts with fetch() and
   never navigates, so this line is the only feedback the customer gets. */
.add-status {
  margin: .75rem 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-success);
}
.add-status--error { color: var(--color-danger); }
.add-status[hidden] { display: none; }
.date-summary__label { font-weight: 600; color: var(--ink-soft); }
.date-summary__value { color: var(--ink); font-weight: 600; }
.date-summary__value:empty { color: var(--color-text-faint); font-weight: 400; }

@media (max-width: 720px) {
  .availability-calendar { padding: .5rem; }
  .calendar-grid { gap: .15rem; }
}
