/**
 * Golf Cart Booking — widget styles.
 *
 * Light mode only. Tokens are namespaced and fall back to the host site's own
 * custom properties where they exist, so the widget adopts the park's palette
 * instead of imposing its own. Everything is scoped under .gcr* — no bare
 * element selectors that could leak into the page.
 */

.gcr,
.gcr-fleet,
.gcr-rates {
  --gcr-paper:  var(--paper, #FCFCFA);
  --gcr-lift:   #FFFFFF;
  --gcr-ink:    var(--ink, #14140F);
  --gcr-muted:  var(--muted, #6E6A61);
  --gcr-accent: var(--navy, var(--forest, #1F4D2E));
  --gcr-spark:  var(--sage, #C6F032);
  --gcr-line:   rgba(20, 20, 15, .12);
  --gcr-line-2: rgba(20, 20, 15, .07);
  --gcr-warn:   #8A5A00;
  --gcr-err:    #9B2C2C;
  --gcr-radius: 10px;

  color: var(--gcr-ink);
  font-family: inherit;
  box-sizing: border-box;
}
.gcr *, .gcr *::before, .gcr *::after,
.gcr-fleet *, .gcr-rates * { box-sizing: border-box; }

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

.gcr {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--gcr-paper);
  border: 1px solid var(--gcr-line);
  border-radius: var(--gcr-radius);
}

.gcr__head { text-align: center; margin-bottom: 1.75rem; }
.gcr__title { margin: 0 0 .4rem; font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.15; font-weight: 500; }
.gcr__intro { margin: 0; color: var(--gcr-muted); font-size: .95rem; line-height: 1.55; }

.gcr__steps {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  font-size: .82rem;
}
.gcr__step {
  display: flex; align-items: center; gap: .4rem;
  flex: 1 1 8rem; padding: .5rem .6rem;
  color: var(--gcr-muted);
  border-bottom: 2px solid var(--gcr-line-2);
  transition: color .2s, border-color .2s;
}
.gcr__step-n {
  display: grid; place-items: center;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--gcr-line-2); color: var(--gcr-muted);
  font-size: .7rem; font-variant-numeric: tabular-nums;
}
.gcr__step.is-active { color: var(--gcr-ink); border-bottom-color: var(--gcr-accent); }
.gcr__step.is-active .gcr__step-n { background: var(--gcr-accent); color: #fff; }
.gcr__step.is-done .gcr__step-n { background: var(--gcr-accent); color: var(--gcr-spark); }

.gcr__panel { min-height: 12rem; }
.gcr__loading, .gcr__empty { padding: 2.5rem 0; text-align: center; color: var(--gcr-muted); }

.gcr__err {
  margin: 1rem 0 .25rem; padding: .7rem .9rem;
  background: #FDF3F3; border: 1px solid rgba(155, 44, 44, .25);
  border-radius: 8px; color: var(--gcr-err); font-size: .9rem;
}
.gcr__panel > .gcr__err {
  margin: 1rem 0 0;
}
.gcr__panel > .gcr__err + .gcr-actions {
  margin-top: .85rem;
}

/* fields */

.gcr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: .9rem; }
@media (max-width: 33rem) { .gcr-grid { grid-template-columns: 1fr; } }

.gcr-field { display: block; margin-bottom: .9rem; }
.gcr-field > span {
  display: block; margin-bottom: .35rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gcr-muted);
}
.gcr-field input,
.gcr-field textarea {
  width: 100%; padding: .65rem .75rem;
  font: inherit; font-size: .95rem; color: var(--gcr-ink);
  background: var(--gcr-lift);
  border: 1px solid var(--gcr-line); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.gcr-field input:focus,
.gcr-field textarea:focus {
  outline: none;
  border-color: var(--gcr-accent);
  box-shadow: 0 0 0 3px rgba(31, 77, 46, .12);
}
.gcr-field--qty { max-width: 11rem; }
.gcr-field textarea { resize: vertical; min-height: 4.5rem; }

/* cart chooser */

.gcr-types { border: 0; margin: 0 0 1rem; padding: 0; }
.gcr-types legend {
  padding: 0; margin-bottom: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gcr-muted);
}
.gcr-type {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "radio name rate" "radio meta rate";
  gap: 0 .7rem; align-items: center;
  padding: .8rem .9rem; margin-bottom: .5rem;
  background: var(--gcr-lift);
  border: 1px solid var(--gcr-line); border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.gcr-type:hover { border-color: var(--gcr-accent); }
.gcr-type.is-on { border-color: var(--gcr-accent); box-shadow: 0 0 0 2px rgba(31, 77, 46, .12); }
.gcr-type input { grid-area: radio; accent-color: var(--gcr-accent); }
.gcr-type__name { grid-area: name; font-weight: 600; }
.gcr-type__meta { grid-area: meta; font-size: .82rem; color: var(--gcr-muted); }
.gcr-type__rate { grid-area: rate; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Card layout with an optional photo: radio · photo · text · rate (photo may be absent). */
.gcr-type { display: flex; align-items: center; gap: .8rem; }
.gcr-type__pic {
  flex: none; width: 92px; height: 62px; border-radius: 8px; overflow: hidden;
  background: var(--gcr-line);
}
.gcr-type__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gcr-type__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.gcr-type__rate { margin-left: auto; padding-left: .5rem; }
@media (max-width: 33rem) { .gcr-type__pic { width: 72px; height: 52px; } }

/* quote box */

.gcr-quote {
  margin: 1rem 0; padding: .9rem 1rem;
  background: var(--gcr-lift);
  border: 1px solid var(--gcr-line); border-radius: 8px;
  font-size: .95rem;
}
.gcr-quote__row { display: flex; justify-content: space-between; gap: 1rem; padding: .18rem 0; }
.gcr-quote__row--muted { color: var(--gcr-muted); font-size: .88rem; }
.gcr-quote__row strong { font-variant-numeric: tabular-nums; }
.gcr-quote__avail { margin: .5rem 0 0; font-size: .8rem; color: var(--gcr-muted); }
.gcr-quote__wait { color: var(--gcr-muted); }
.gcr-quote__no { color: var(--gcr-warn); }

/* summary + actions */

.gcr-summary {
  position: relative;
  padding: .9rem 1rem; margin-bottom: 1.2rem;
  background: var(--gcr-lift);
  border-left: 3px solid var(--gcr-accent); border-radius: 0 8px 8px 0;
  line-height: 1.5;
}
.gcr-summary__amt {
  display: block; margin-top: .3rem;
  font-size: 1.25rem; font-variant-numeric: tabular-nums;
}

.gcr-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.4rem; }
@media (max-width: 33rem) { .gcr-actions { flex-direction: column-reverse; } }

.gcr-btn {
  appearance: none; cursor: pointer;
  padding: .72rem 1.5rem;
  font: inherit; font-size: .92rem; font-weight: 600; letter-spacing: .02em;
  color: #fff; background: var(--gcr-accent);
  border: 1px solid var(--gcr-accent); border-radius: 999px;
  transition: transform .12s, box-shadow .15s, opacity .15s;
}
.gcr-btn:hover:not(:disabled) { box-shadow: 0 5px 16px rgba(31, 77, 46, .22); transform: translateY(-1px); }
.gcr-btn:disabled { opacity: .55; cursor: default; }
.gcr-btn--ghost { color: var(--gcr-ink); background: transparent; border-color: var(--gcr-line); }
.gcr-btn--ghost:hover:not(:disabled) { border-color: var(--gcr-ink); box-shadow: none; }

/* payment */

.gcr-pay { margin-bottom: .5rem; }
.gcr-pay__frame {
  min-height: 12rem; padding: 1rem;
  background: var(--gcr-lift);
  border: 1px solid var(--gcr-line); border-radius: 8px;
}
.gcr-pay__secure {
  margin: .6rem 0 0; font-size: .8rem; color: var(--gcr-muted); text-align: center;
}

/* confirmation */

.gcr-done { text-align: center; padding: 1.5rem 0; }
.gcr-done__tick {
  width: 3rem; height: 3rem; margin: 0 auto 1rem;
  display: grid; place-items: center;
  background: var(--gcr-accent); color: var(--gcr-spark);
  border-radius: 50%; font-size: 1.5rem;
}
.gcr-done__h { margin: 0 0 .3rem; font-size: 1.4rem; font-weight: 500; }
.gcr-done__ref { margin: 0 0 1.3rem; color: var(--gcr-muted); }
.gcr-done__list {
  display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem;
  max-width: 22rem; margin: 0 auto 1.2rem; text-align: left; font-size: .95rem;
}
.gcr-done__list dt { color: var(--gcr-muted); }
.gcr-done__list dd { margin: 0; font-variant-numeric: tabular-nums; }
.gcr-done__note { margin: 0; font-size: .88rem; color: var(--gcr-muted); }

/* notes */

.gcr-note {
  padding: .8rem 1rem; border-radius: 8px;
  background: var(--gcr-lift); border: 1px solid var(--gcr-line);
  font-size: .92rem; color: var(--gcr-muted);
}
.gcr-note--warn { background: #FFFBF2; border-color: rgba(138, 90, 0, .25); color: var(--gcr-warn); }

/* ---------------------------- fleet / rates ---------------------------- */

.gcr-fleet, .gcr-rates { max-width: 68rem; margin: 0 auto; padding: 1rem 0; }
.gcr-fleet__title, .gcr-rates__title {
  margin: 0 0 1.4rem; text-align: center; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 500;
}

.gcr-fleet__grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.gcr-fleet[data-cols="2"] .gcr-fleet__grid { grid-template-columns: repeat(2, 1fr); }
.gcr-fleet[data-cols="4"] .gcr-fleet__grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 60rem) { .gcr-fleet__grid,
  .gcr-fleet[data-cols="4"] .gcr-fleet__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .gcr-fleet__grid,
  .gcr-fleet[data-cols="2"] .gcr-fleet__grid,
  .gcr-fleet[data-cols="4"] .gcr-fleet__grid { grid-template-columns: 1fr; } }

.gcr-card {
  overflow: hidden;
  background: var(--gcr-lift);
  border: 1px solid var(--gcr-line); border-radius: var(--gcr-radius);
  padding: 0 1.1rem 1.2rem;
  transition: box-shadow .18s, transform .18s;
}
.gcr-card:hover { box-shadow: 0 8px 24px rgba(20, 20, 15, .07); transform: translateY(-2px); }
.gcr-card__bar { height: 4px; margin: 0 -1.1rem 1.1rem; }
.gcr-card__name { margin: 0 0 .2rem; font-size: 1.12rem; font-weight: 600; }
.gcr-card__meta { margin: 0 0 .6rem; font-size: .82rem; color: var(--gcr-muted); text-transform: capitalize; }
.gcr-card__desc { margin: 0 0 .8rem; font-size: .9rem; line-height: 1.55; color: var(--gcr-muted); }
.gcr-card__rate { margin: 0; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.gcr-card__dep { margin: .25rem 0 0; font-size: .8rem; color: var(--gcr-muted); }
.gcr-fleet__loading, .gcr-fleet__empty { grid-column: 1 / -1; text-align: center; color: var(--gcr-muted); padding: 2rem 0; }

.gcr-rates__wrap { overflow-x: auto; }
.gcr-rates__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.gcr-rates__table th, .gcr-rates__table td {
  padding: .75rem .8rem; text-align: left; border-bottom: 1px solid var(--gcr-line-2);
}
.gcr-rates__table thead th {
  font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--gcr-muted);
  border-bottom-color: var(--gcr-line);
}
.gcr-rates__table tbody th { font-weight: 600; }
.gcr-rates__table td:nth-child(3), .gcr-rates__table td:nth-child(4) { font-variant-numeric: tabular-nums; }
.gcr-rates__note { margin: .9rem 0 0; font-size: .84rem; color: var(--gcr-muted); }

/* scrollbars, per house style */
.gcr-rates__wrap::-webkit-scrollbar { height: 8px; }
.gcr-rates__wrap::-webkit-scrollbar-track { background: var(--gcr-line-2); border-radius: 4px; }
.gcr-rates__wrap::-webkit-scrollbar-thumb { background: rgba(20, 20, 15, .22); border-radius: 4px; }
.gcr-rates__wrap::-webkit-scrollbar-thumb:hover { background: rgba(20, 20, 15, .35); }

@media (prefers-reduced-motion: reduce) {
  .gcr-btn, .gcr-card, .gcr-type, .gcr__step { transition: none; }
  .gcr-btn:hover:not(:disabled), .gcr-card:hover { transform: none; }
}

/* ---- rental mode toggle (wizard step 1) ---- */
.gcr-mode{display:inline-flex;background:#EFEAE0;border-radius:999px;padding:4px;margin-bottom:18px;gap:2px;}
.gcr-mode__btn{border:0;background:transparent;font:600 14px/1 inherit;font-family:inherit;padding:10px 22px;border-radius:999px;cursor:pointer;color:#51617A;transition:all .2s ease;}
.gcr-mode__btn.is-on{background:#16335F;color:#FAF6EF;}
.gcr-grid--3{grid-template-columns:1.2fr 1fr .8fr;}
@media (max-width:640px){.gcr-grid--3{grid-template-columns:1fr;}}

/* ---- PayArc hosted fields ---- */
.gcr-pay__fields{display:block;}
.gcr-pay__f{background:#fff;border:1.5px solid #D8D2C6;border-radius:12px;overflow:hidden;margin-top:10px;}
.gcr-pay__f:focus-within{border-color:#16335F;}
.gcr-pay__f iframe{display:block;width:100%;height:46px;border:0;}
.gcr-pay__row{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.gcr-pay__status{min-height:1.2em;font-size:14px;margin:10px 2px 0;}
.gcr-pay__status.status-error{color:#A33B2E;}
.gcr-pay__status.status-success{color:#3F7A4E;}
