/* =========================================================================
   ON3 — booking screen additions: the bot trap, the booking terms, the
   GST rows in the price breakdown, and a fix for the company field.
   ========================================================================= */

/* The field only bots fill (see renderContact). Off-screen, not display:none,
   since some bots skip hidden inputs. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.terms { margin-top: var(--space-3); border: 1px solid var(--border-soft); border-radius: var(--radius-m, 12px); padding: 0 var(--space-3); }
.terms__summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; list-style: none;
  font-size: 0.875rem; font-weight: 600; color: var(--text-secondary);
}
.terms__summary::-webkit-details-marker { display: none; }
.terms__summary::after { content: "+"; margin-left: auto; color: var(--accent-text); font-weight: 600; }
.terms[open] .terms__summary::after { content: "–"; }
.terms__draft {
  padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent-text) 18%, transparent);
  color: var(--accent-text); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.terms__list { margin: 0 0 var(--space-3); padding-left: 1.1rem; display: grid; gap: 6px; font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }

/* The optional company field waits behind its link; a display rule on the
   form's fields was overriding [hidden], so both showed. */
.contact-form [hidden] { display: none !important; }

/* ------------------------------------------------------------- GST
   Itemised lines are ex-GST; then the subtotal, the GST and the total. */
.price-breakdown .price-breakdown__sub { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.price-breakdown .price-breakdown__total { padding-top: 10px; border-top: 1px solid var(--border-soft); font-weight: 600; color: var(--text-primary); }
.config-bar__amount[data-gst]:not([data-gst=""])::after {
  content: " " attr(data-gst); font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0; color: var(--text-muted);
}

/* ------------------------------------------------------------- discount code
   A link under "Your details"; it opens to a field and Apply, and once the
   server accepts a code it becomes one line with Remove. */
.coupon { margin-top: var(--space-3); }
.coupon [hidden] { display: none !important; }
.coupon__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.coupon__row .field { margin: 0; }
.coupon__input { text-transform: uppercase; letter-spacing: 0.06em; }
.coupon__input::placeholder { text-transform: none; letter-spacing: 0; }
/* Lines the button up with the input, under the label. */
.coupon__apply { margin-top: calc(1.25rem + 8px); min-height: 48px; }
.coupon--applied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-m, 12px); border: 1px solid color-mix(in srgb, #8fd0a4 45%, transparent); background: color-mix(in srgb, #8fd0a4 10%, transparent); }
.coupon__applied { margin: 0; font-size: 0.9375rem; color: var(--text-primary); }
.coupon__applied strong { letter-spacing: 0.06em; }
.coupon__applied:focus { outline: none; }
.coupon__remove::after { content: none; }

/* ------------------------------------------------------------- space card
   Top of each space's booking flow: the same facts as the About page (photo, what it's
   for, size, what's included), with extras and layouts folded under one line. */
.space-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start;
  margin: var(--space-3) 0 var(--space-4); padding: 12px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-m, 12px);
}
.space-card__photo { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 8px; }
.space-card__name { margin: 0; font-weight: 600; color: var(--text-primary); }
.space-card__meta { margin: 2px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--text-muted); }
.space-card__inc { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.space-card__inc li {
  padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; line-height: 1.5;
  background: color-mix(in srgb, #8fd0a4 14%, transparent); color: var(--text-secondary);
}
.space-card__inc li::before { content: "✓ "; color: #6fb487; }
.space-card__more { margin-top: 10px; }
.space-card__more summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--accent-text); list-style: none; min-height: 32px; display: flex; align-items: center; }
.space-card__more summary::-webkit-details-marker { display: none; }
.space-card__more summary::after { content: " +"; white-space: pre; }
.space-card__more[open] summary::after { content: " –"; }
.space-card__h { margin: 10px 0 6px; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.space-card__extras, .space-card__layouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.875rem; }
.space-card__extras li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.space-card__layouts li { display: flex; justify-content: space-between; gap: 10px; color: var(--text-secondary); }
.space-card__layouts b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.space-card__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.8125rem; line-height: 1.45; color: var(--text-secondary); }
.space-card__notes li { position: relative; padding-left: 14px; }
.space-card__notes li::before { content: ""; position: absolute; left: 1px; top: 0.6em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-text, #e0a458); }
.space-card__tag { font-size: 0.75rem; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.space-card__tag--ext { background: color-mix(in srgb, var(--accent-text) 16%, transparent); color: var(--accent-text); }
.space-card__tag--arr { border: 1px solid var(--border-soft); color: var(--text-muted); }
.space-card__link { display: inline-block; margin-top: 10px; font-size: 0.875rem; color: var(--accent-text); }
/* The photos run across the top of the card, the text under them. */
.space-card .sg { --sg-r: 8px; color: var(--text-secondary); }
@media (min-width: 640px) {
  .space-card { padding: 14px; }
  .space-card__photo { aspect-ratio: 16 / 9; }
}
