/**
 * components.css — the reusable pieces every page in the handoff builds
 * from: buttons, eyebrows, pills, cards, chips, form fields, accordions and
 * the dark "band" sections.
 */

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t),
              box-shadow var(--t), transform var(--t);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

.btn--primary {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 0 26px -6px rgba(224, 163, 37, .85);
}
.btn--primary:hover:not([disabled]) {
  background: var(--gold-bright);
  color: var(--gold-ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 44px -10px rgba(240, 177, 58, 1);
}

.btn--maroon {
  background: var(--maroon-600);
  color: var(--on-dark);
  box-shadow: 0 0 26px -8px rgba(107, 30, 47, .85);
}
.btn--maroon:hover:not([disabled]) {
  background: var(--maroon-800);
  color: var(--on-dark);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--maroon-800);
  color: var(--on-dark);
}
.btn--dark:hover:not([disabled]) {
  background: var(--maroon-600);
  color: var(--on-dark);
  transform: translateY(-2px);
}

.btn--green {
  background: var(--green-800);
  color: var(--green-ink);
  box-shadow: 0 0 26px -10px rgba(31, 64, 59, .9);
}
.btn--green:hover:not([disabled]) {
  background: var(--green-600);
  color: var(--green-ink);
  transform: translateY(-2px);
}

/* Outline on cream */
.btn--outline {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-3);
  font-weight: 600;
}
.btn--outline:hover:not([disabled]) {
  border-color: var(--maroon-600);
  color: var(--maroon-600);
}

/* Outline on maroon/green */
.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 248, 240, .5);
  color: var(--on-dark);
  font-weight: 600;
}
.btn--ghost-light:hover:not([disabled]) {
  background: rgba(255, 248, 240, .14);
  border-color: var(--gold);
  color: var(--on-dark);
}

.btn--sm { padding: 9px 16px; min-height: 42px; font-size: 13.5px; }
.btn--lg { padding: 16px clamp(20px, 3vw, 28px); min-height: 54px; font-size: clamp(15px, 1.7vw, 16.5px); }
.btn--block { width: 100%; }

.btn__spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2.5px solid rgba(59, 29, 5, .28);
  border-top-color: var(--gold-ink);
  animation: om-spin 700ms linear infinite;
}

/* Plain text link with a leading/trailing arrow. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--maroon-600);
}
.link-arrow svg { width: 15px; height: 15px; flex-shrink: 0; }
.link-arrow--gold { color: var(--gold-soft); }
.link-arrow--gold:hover { color: var(--gold-bright); }

/* ================= SECTION FURNITURE ================= */
.section { padding-block: clamp(44px, 6.5vw, 72px); }
.section--tight { padding-block: clamp(32px, 5vw, 52px); }
.section--band-cream { background: var(--cream-2); border-block: 1px solid var(--line-warm); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--amber); }
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(224, 163, 37, .9);
  animation: om-halo 3.4s ease-in-out infinite;
}
.eyebrow--gold { color: var(--gold-deep); }

/* Solid gold pill used as a hero/section tag. */
.pill-gold {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: var(--glow-gold);
}
.pill-gold svg { width: 14px; height: 14px; flex-shrink: 0; }
.pill-gold--float { animation: om-float 6s ease-in-out infinite; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(20px, 3vw, 40px);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(22px, 3vw, 30px);
}
.section-head h2 {
  flex: 1 1 380px;
  min-width: 0;
  font-size: clamp(25px, 4.2vw, 34px);
}
.section-head p {
  flex: 1 1 320px;
  min-width: 0;
  font-size: clamp(14.5px, 1.6vw, 15.5px);
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 54ch;
}
.section-head__meta { font-size: 13.5px; color: var(--ink-5); }

.lede {
  font-size: clamp(14.5px, 1.6vw, 15.5px);
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 56ch;
}

/* ================= DARK BANDS ================= */
.band-maroon {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--maroon-900), var(--maroon-800) 55%, var(--maroon-700));
  color: var(--on-dark);
}
.band-maroon-flat {
  position: relative;
  overflow: hidden;
  background: var(--maroon-800);
  color: var(--on-dark);
}
.band-green {
  position: relative;
  overflow: hidden;
  background: var(--green-900);
  color: var(--green-ink);
}
.band-rose {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--maroon-800), var(--maroon-600) 60%, var(--maroon-500));
  color: var(--on-dark);
}

/* Decorative radial bloom placed inside a band. */
.bloom {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(224, 163, 37, .28), rgba(224, 163, 37, 0) 65%);
  animation: om-bloom 12s ease-in-out infinite;
}
.bloom--top-centre { left: 50%; top: -32vh; width: 72vw; height: 72vw; transform: translateX(-50%); }
.bloom--top-left { left: -8vw; top: -24vh; width: 56vw; height: 56vw; }
.bloom--top-right { right: -14vw; top: -20vh; width: 52vw; height: 52vw; }
.bloom--bottom-left { left: -14vw; bottom: -24vh; width: 52vw; height: 52vw; }

.dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(224, 163, 37, .2) 1.6px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(120deg, rgba(0, 0, 0, .5), transparent 55%);
          mask-image: linear-gradient(120deg, rgba(0, 0, 0, .5), transparent 55%);
}

.band-inner { position: relative; }

/* ================= CARDS ================= */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: border-color var(--t-slow), box-shadow var(--t-slow), transform var(--t-slow);
}
.card--pad { padding: clamp(20px, 3vw, 28px); }
.card--lift:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 14px 40px -16px rgba(224, 163, 37, .85);
}
.card--panel {
  border-color: #ece2cf;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 23px);
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}
.card-title svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--amber); }
.card-hint {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--ink-5);
  line-height: 1.55;
}

/* Round/rounded-square icon chip. Colourway set by a data attribute so the
   three accent families stay consistent across pages. */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  box-shadow: 0 0 24px -8px rgba(224, 163, 37, .85);
}
.icon-chip svg { width: 20px; height: 20px; }
.icon-chip[data-tone="maroon"] { background: var(--maroon-tint); color: var(--maroon-800); box-shadow: var(--glow-maroon); }
.icon-chip[data-tone="green"] { background: var(--green-tint); color: var(--green-800); box-shadow: var(--glow-green); }
.icon-chip[data-tone="violet"] { background: #e5e2ef; color: #3b3660; box-shadow: 0 0 24px -8px rgba(59, 54, 96, .65); }
.icon-chip[data-tone="stone"] { background: #ece7de; color: #4a4438; box-shadow: 0 0 24px -10px rgba(74, 68, 56, .6); }
.icon-chip[data-tone="on-dark"] {
  background: rgba(224, 163, 37, .16);
  color: var(--gold);
  border: 1px solid rgba(224, 163, 37, .4);
  box-shadow: 0 0 28px -6px rgba(224, 163, 37, .8);
}
.icon-chip--round { border-radius: 50%; }
.icon-chip--sm { width: 36px; height: 36px; border-radius: 11px; }
.icon-chip--sm svg { width: 17px; height: 17px; }
.icon-chip--lg { width: 52px; height: 52px; border-radius: 16px; }
.icon-chip--lg svg { width: 26px; height: 26px; }

/* ================= CHIPS / FILTERS ================= */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  min-height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
}
.chip--on-dark {
  border-color: rgba(238, 246, 242, .22);
  background: rgba(255, 253, 248, .07);
  color: rgba(238, 246, 242, .82);
}
.chip--on-maroon {
  border-color: rgba(255, 248, 240, .32);
  background: rgba(255, 248, 240, .08);
  color: var(--on-dark);
}
.chip--on-maroon:hover {
  background: rgba(224, 163, 37, .22);
  border-color: var(--gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(224, 163, 37, .12);
  border: 1px solid rgba(224, 163, 37, .32);
  color: #f4dcae;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--ink-5);
  white-space: nowrap;
}
.price {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--green-800);
  white-space: nowrap;
}
.price--on-dark { color: var(--gold-soft); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-4);
}
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row svg { width: 14px; height: 14px; flex-shrink: 0; color: #a89e8c; }

/* ================= FORMS ================= */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.field__label .req { color: var(--error); }
.field__label .opt {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-6);
}
.field__hint { font-size: 12px; color: var(--ink-5); line-height: 1.45; }
.field__error {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--error);
  line-height: 1.3;
}
.field__error[hidden] { display: none; }

.input, .select, .textarea {
  width: 100%;
  padding: 13px 15px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea {
  min-height: 96px;
  line-height: 1.55;
  resize: vertical;
  font-family: inherit;
}
.select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8272' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.field[data-invalid="true"] .input,
.field[data-invalid="true"] .select,
.field[data-invalid="true"] .textarea {
  border-color: var(--error);
  background: #fdf6f4;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.field-grid--wide { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field-grid .field--full { grid-column: 1 / -1; }

.form-error {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.form-error[hidden] { display: none; }

/* Number stepper (guest count) */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-warm);
}
.stepper button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: var(--surface);
  color: var(--maroon-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.stepper button:hover { background: var(--gold-tint); }
.stepper button svg { width: 17px; height: 17px; }
.stepper input {
  width: 74px;
  text-align: center;
  padding: 10px 4px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #ece2cf;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 16px;
}

/* Address autocomplete dropdown (shared with the booking + pandit forms) */
.autocomplete-wrap { position: relative; }
.autocomplete-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  position: absolute;
  z-index: 20;
  inset-inline: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 44px -24px rgba(74, 21, 33, .6);
  max-height: 260px;
  overflow-y: auto;
}
.autocomplete-list li {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  cursor: pointer;
}
.autocomplete-list li:hover,
.autocomplete-list li.is-active { background: var(--surface-warm); }

/* ================= ACCORDION ================= */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion__item {
  background: var(--surface);
  border: 1px solid #e8dcc9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px -14px rgba(36, 31, 26, .5);
  transition: border-color var(--t-slow), box-shadow var(--t-slow);
}
.accordion__item[data-open="true"] {
  border-color: var(--gold);
  box-shadow: 0 10px 34px -18px rgba(201, 116, 26, .85), var(--glow-gold-soft);
}
.accordion__trigger {
  width: 100%;
  min-height: 56px;
  padding: 19px clamp(16px, 2.6vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: clamp(15.5px, 1.8vw, 16.5px);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.accordion__trigger svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink-5);
  transition: transform var(--t);
}
.accordion__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion__panel { display: none; }
.accordion__panel[data-open="true"] { display: block; animation: om-expand var(--t-slow) ease both; }
.accordion__panel p {
  margin: 0;
  padding: 0 clamp(16px, 2.6vw, 22px) 22px;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.65;
  max-width: 68ch;
}

/* ================= MISC ================= */
.assurance {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 248, 240, .8);
}
.assurance svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 20px;
}
.check-list span {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink);
}
.check-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--green-600); }

.empty-state {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  text-align: center;
}
.empty-state p { margin: 0 0 16px; font-size: 15px; color: var(--ink-3); line-height: 1.6; }
.empty-state--on-dark { border-color: rgba(238, 246, 242, .3); }
.empty-state--on-dark p { color: rgba(238, 246, 242, .78); }

.is-hidden { display: none !important; }
