/* ===== Golf booking system — bygger ovenpå styles.css ===== */

.booking-hero {
  position: relative; color: #fff; padding: 64px 0; text-align: center; overflow: hidden;
}
.booking-hero .bg { position: absolute; inset: 0; z-index: 0; }
.booking-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.booking-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(13,13,13,.55), rgba(13,13,13,.72)); }
.booking-hero .wrap { position: relative; z-index: 2; }
.booking-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 10px; }
.booking-hero p { font-size: 1.1rem; opacity: .92; }

/* Provider switcher */
.provider-switch { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 30px auto 0; flex-wrap: wrap; }
.provider-switch .ps-label { font-size: .85rem; font-weight: 600; color: var(--text); }
.ps-tabs { display: inline-flex; background: var(--light); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.ps-tabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--text); transition: background .25s, color .25s;
}
.ps-tabs button.active { background: var(--primary); color: #fff; }
.ps-tabs .mode { font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 10px; background: rgba(0,0,0,.12); }
.ps-tabs button.active .mode { background: rgba(255,255,255,.25); }
.ps-tabs .mode.live { background: var(--green); color: #fff; }

.demo-banner {
  background: #fff7e0; border: 1px solid var(--accent); color: #8a6d12;
  padding: 12px 18px; border-radius: 10px; font-size: .9rem; margin: 24px auto 0;
  display: flex; gap: 10px; align-items: flex-start;
}
.demo-banner svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.demo-banner strong { color: #6b540c; }

/* Step indicator */
.steps { display: flex; justify-content: center; gap: 0; margin: 36px auto 40px; flex-wrap: wrap; }
.step-dot { display: flex; align-items: center; gap: 10px; color: #aaa; font-weight: 600; font-size: .92rem; }
.step-dot .n { width: 30px; height: 30px; border-radius: 50%; background: #e9eaec; color: #999; display: grid; place-items: center; font-size: .85rem; transition: .3s; }
.step-dot.active .n { background: var(--primary); color: #fff; }
.step-dot.done .n { background: var(--green); color: #fff; }
.step-dot.active, .step-dot.done { color: var(--secondary); }
.step-sep { width: 40px; height: 2px; background: #e9eaec; margin: 0 14px; align-self: center; }
@media (max-width: 680px){ .step-dot span { display: none; } .step-sep { width: 20px; margin: 0 6px; } }

.panel { display: none; }
.panel.active { display: block; animation: fadeUp .4s both; }

/* Search form */
.search-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,.07); max-width: 980px; margin: 0 auto;
}
.search-grid { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1fr auto; gap: 16px; align-items: end; }
.fld label { display: block; font-size: .8rem; font-weight: 600; color: var(--secondary); margin-bottom: 6px; }
.fld select, .fld input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: .95rem; background: var(--light); color: var(--secondary); height: 48px;
}
.fld select:focus, .fld input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(95,174,182,.18); }
.search-grid .btn { height: 48px; white-space: nowrap; }
@media (max-width: 860px){ .search-grid { grid-template-columns: 1fr 1fr; } .search-grid .btn { grid-column: 1 / -1; } }

/* Results */
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.results-head h2 { font-size: 1.5rem; }
.results-head .meta { color: var(--text); font-size: .92rem; }
.link-btn { color: var(--primary); font-weight: 600; background: none; display: inline-flex; align-items: center; gap: 6px; }
.link-btn svg { width: 16px; height: 16px; }

.tt-list { display: grid; gap: 12px; max-width: 900px; }
.tt-row {
  display: grid; grid-template-columns: 90px 1fr auto auto; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.tt-row:hover { box-shadow: 0 10px 28px rgba(0,0,0,.09); transform: translateY(-2px); border-color: var(--primary); }
.tt-time { font-size: 1.5rem; font-weight: 700; color: var(--secondary); font-family: var(--font); }
.tt-info .name { font-weight: 600; color: var(--secondary); }
.tt-info .tags { font-size: .82rem; color: var(--text); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.tag { background: var(--light); border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px; font-size: .78rem; }
.tt-price { text-align: right; }
.tt-price .p { font-size: 1.35rem; font-weight: 700; color: var(--primary); }
.tt-price .u { font-size: .75rem; color: var(--text); }
@media (max-width: 680px){
  .tt-row { grid-template-columns: 70px 1fr; row-gap: 12px; }
  .tt-price { text-align: left; grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .tt-row .btn { grid-column: 1 / -1; }
}

/* Course picker cards (optional quick-pick) */
.course-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 26px; }
.course-chip { position: relative; border-radius: 12px; overflow: hidden; height: 110px; cursor: pointer; border: 2px solid transparent; }
.course-chip img { width: 100%; height: 100%; object-fit: cover; }
.course-chip::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
.course-chip span { position: absolute; left: 10px; bottom: 8px; z-index: 2; color: #fff; font-weight: 600; font-size: .85rem; }
.course-chip.sel { border-color: var(--primary); }
@media (max-width: 860px){ .course-strip { grid-template-columns: repeat(2,1fr); } }

/* Step 3: details + summary */
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; max-width: 980px; }
@media (max-width: 860px){ .detail-grid { grid-template-columns: 1fr; } }
.summary {
  background: var(--light); border: 1px solid var(--border); border-radius: 14px; padding: 26px; position: sticky; top: 100px;
}
.summary h3 { font-size: 1.2rem; margin-bottom: 16px; }
.sum-course { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.sum-course img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.sum-course .n { font-weight: 700; color: var(--secondary); }
.sum-course .c { font-size: .85rem; color: var(--text); }
.sum-rows { font-size: .92rem; }
.sum-rows .r { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-rows .r.muted { color: var(--text); }
.sum-divider { border-top: 1px solid var(--border); margin: 12px 0; }
.sum-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; color: var(--secondary); }
.sum-due { display: flex; justify-content: space-between; color: var(--primary); font-weight: 700; margin-top: 6px; }

/* Confirmation */
.confirm { text-align: center; max-width: 620px; margin: 0 auto; }
.confirm .check { width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; font-size: 2.6rem; }
.confirm h2 { font-size: 2rem; margin-bottom: 10px; }
.conf-box { background: var(--light); border: 1px solid var(--border); border-radius: 14px; padding: 26px; margin: 26px 0; text-align: left; }
.conf-no { text-align: center; font-size: 1.4rem; font-weight: 700; color: var(--primary); letter-spacing: .05em; margin-bottom: 18px; }
.conf-box .r { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: .95rem; }
.conf-box .r:last-child { border-bottom: none; }
.conf-box .r span:first-child { color: var(--text); }
.conf-box .r span:last-child { font-weight: 600; color: var(--secondary); }
.confirm .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* loading / empty */
.state { text-align: center; padding: 50px 0; color: var(--text); }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.err-msg { background: #fdecec; border: 1px solid #f5b5b5; color: #a33; padding: 12px 16px; border-radius: 8px; margin-top: 16px; }
.back-top { margin-bottom: 20px; }
