/* Booking wizard + checkout */
.book { padding-block: 40px 0; }
.book-head { display: grid; gap: 10px; margin-bottom: 28px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.steps { display: grid; gap: 18px; min-width: 0; }
.book-head .flow { justify-self: start; }
.steps { counter-reset: none; position: relative; }
.steps::before { content: ""; position: absolute; inset-block: 30px; inset-inline-start: 37px; width: 2px; background: linear-gradient(180deg, var(--gold-500), rgba(105, 197, 47, 0.1)); z-index: -1; }
.step { padding: 22px; display: grid; gap: 14px; min-width: 0; transition: box-shadow 0.3s, border-color 0.3s; }
.step:focus-within { border-color: rgba(105, 197, 47, 0.6); box-shadow: 0 0 0 4px rgba(105, 197, 47, 0.12), var(--shadow-lg); }
.step-h { display: flex; align-items: center; gap: 12px; }
.step-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--green-700), var(--green-950)); color: var(--gold-300); font-weight: 700; font-size: 0.95rem; flex: none; box-shadow: 0 0 0 4px rgba(105, 197, 47, 0.18); }

.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.7); cursor: pointer; text-align: start; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.opt:hover { border-color: var(--gold-300); transform: translateY(-1px); }
.opt[aria-checked="true"] { border-color: var(--gold-500); background: var(--gold-100); box-shadow: 0 0 0 3px rgba(105, 197, 47, 0.18); }
.opt strong { display: block; font-weight: 600; }
.opt small { display: block; color: var(--muted); font-size: 0.9rem; }
.opt-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sand-100); color: var(--green-700); flex: none; }
.opt[aria-checked="true"] .opt-icon { background: var(--green-900); color: var(--gold-300); }
.opt-price { margin-inline-start: auto; font-weight: 700; color: var(--green-900); text-align: end; white-space: nowrap; }
.tour-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tour-opt.night .opt-icon { color: #2c650b; }

.date-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.date-more { grid-column: 1 / -1; justify-self: center; border: 0; background: none; color: #2c650b; font-weight: 600; cursor: pointer; min-height: 48px; padding: 6px 18px; text-decoration: underline; text-underline-offset: 4px; }
.date-chip { display: grid; justify-items: center; gap: 0; min-width: 0; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.7); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.date-chip small { font-size: 0.84rem; color: var(--muted); }
.date-chip strong { font-size: 1rem; }
.date-chip .hijri { color: var(--gold-600); max-width: 100%; text-align: center; overflow-wrap: anywhere; line-height: 1.35; }
.date-chip:hover { border-color: var(--gold-300); }
.date-chip[aria-checked="true"] { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.date-chip[aria-checked="true"] small { color: var(--gold-300); }

.prayer-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: var(--sand-50); border: 1px dashed var(--line); }
.hijri-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-800); width: 100%; font-size: 0.9rem; }
.prayer { display: grid; justify-items: center; padding: 4px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); min-width: 64px; }
.prayer small { font-size: 0.84rem; color: var(--muted); }
.prayer b { font-size: 0.9rem; color: var(--green-900); }
.prayer.sunrise { opacity: 0.7; }

/* The three zones always in view (they wrap instead of scrolling sideways) */
.zone-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--sand-100); border-radius: 26px; width: fit-content; max-width: 100%; }
.zone-tab { flex: 1 1 auto; min-height: 48px; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.zone-tab[aria-selected="true"] { background: #fff; color: var(--green-900); box-shadow: var(--shadow); }
.hotel-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zone-hint { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.slot { display: grid; gap: 2px; text-align: start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.7); cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.slot:hover:not([disabled]) { border-color: var(--gold-300); transform: translateY(-1px); }
.slot[aria-checked="true"] { border-color: var(--gold-500); background: var(--gold-100); box-shadow: 0 0 0 3px rgba(105, 197, 47, 0.18); }
.slot[disabled] { opacity: 0.5; cursor: not-allowed; }
.slot-k { font-size: 0.84rem; color: var(--muted); }
.slot strong { font-size: 1.35rem; color: var(--green-900); line-height: 1.3; }
.slot-sub { font-size: 0.9rem; color: var(--muted); }
.slot-crowd { font-size: 0.87rem; color: var(--green-700); }
.slot-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.slot-badges:empty { display: none; }
.empty { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px; border-radius: var(--radius-sm); background: var(--sand-50); color: var(--muted); }
.skeleton { height: 72px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--sand-100), var(--sand-50), var(--sand-100)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; grid-column: 1 / -1; }
@keyframes shimmer { to { background-position: -200% 0; } }

.party { display: grid; gap: 10px; margin-bottom: 10px; }
.party-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.6); }
.party-who strong { display: block; font-size: 1.05rem; color: var(--green-900); }
.party-who small { color: var(--muted); font-size: 0.9rem; }
.party-price { font-weight: 700; color: var(--green-900); white-space: nowrap; }
.party-price small { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-inline-start: 4px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper output { font-size: 1.5rem; font-weight: 700; min-width: 28px; text-align: center; color: var(--green-900); }
@media (max-width: 520px) {
  .party-row { grid-template-columns: 1fr auto; }
  .party-row { gap: 6px 10px; padding: 10px 12px; }
  .party-price { grid-column: 1; grid-row: 2; white-space: normal; }
  .stepper { grid-column: 2; grid-row: 1 / span 2; gap: 6px; }
}
.round { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.4rem; cursor: pointer; transition: border-color 0.2s; }
.round:hover:not([disabled]) { border-color: var(--gold-500); }
.round[disabled] { opacity: 0.4; cursor: not-allowed; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-grid .full { grid-column: 1 / -1; }

.summary { position: sticky; top: 96px; padding: 22px; display: grid; gap: 14px; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: inset 0 1px 0 #fff, var(--shadow-lg); }
.summary::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--gold-300), var(--gold-500), var(--green-500)); }
.sum-list { margin: 0; display: grid; gap: 10px; }
.sum-list > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--sand-100); }
.sum-list dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.sum-list dd { margin: 0; text-align: end; font-weight: 600; }
.sum-list dd small { display: block; font-weight: 400; color: var(--muted); font-size: 0.87rem; }
.muted { color: var(--muted); font-weight: 400; }
.route-note { display: flex; gap: 6px; font-size: 0.9rem; color: var(--green-700); background: var(--green-100); padding: 8px 10px; border-radius: 10px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.sum-total strong { font-size: 1.6rem; color: var(--green-900); }
.secure { text-align: center; }

/* Checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; padding-block: 40px 0; }
.checkout > .flow { grid-column: 1 / -1; justify-self: start; margin: 0; }
.pay-card { padding: 26px; display: grid; gap: 18px; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: inset 0 1px 0 #fff, var(--shadow-lg); }
.hold { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--sky); color: #fff; }
.hold strong { color: var(--gold-300); font-size: 1.2rem; margin-inline-start: auto; }
.hold.late strong { color: #ffb4a8; }
.methods { display: flex; flex-wrap: wrap; gap: 8px; }
.method { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 0.93rem; background: #fff; }
.applepay { width: 100%; min-height: 50px; border-radius: 12px; border: 0; background: #000; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0.45; cursor: not-allowed; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.93rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.card-form .full { grid-column: 1 / -1; }
.test-cards { border: 1px dashed var(--gold-500); background: var(--gold-100); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 10px; }
.test-cards .row { display: flex; flex-wrap: wrap; gap: 6px; }
.test-cards button { border: 1px solid var(--gold-500); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; cursor: pointer; }
.test-cards button.bad { border-color: #e2aaa3; color: var(--danger); }
.mysr-form { min-height: 200px; }
.done-box { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 24px; }
.trip-card { overflow: hidden; }
.trip-card .scene { width: 100%; height: 150px; }
.trip-photo { aspect-ratio: 16 / 9; max-height: 220px; width: 100%; overflow: hidden; }
.trip-photo .scene { height: 100%; }
.trip-body { padding: 20px 22px; display: grid; gap: 12px; }

@media (max-width: 960px) {
  .book-grid, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .tour-options, .hotel-list, .contact-grid { grid-template-columns: 1fr; }
  .date-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-form { grid-template-columns: 1fr 1fr; }
  .card-form .cvc { grid-column: 1 / -1; }
  .step, .pay-card { padding: 18px; }
}

/* Progress you can see: a finished step shows a tick, a missing one is ringed with its message inside */
.step.done .step-n { background: linear-gradient(160deg, #86d653, var(--gold-500)); color: transparent; position: relative; }
.step.done .step-n::before { content: ""; position: absolute; width: 12px; height: 7px; border: solid var(--green-950); border-width: 0 0 2.5px 2.5px; transform: translateY(-2px) rotate(-45deg); }
.step-n { transition: background 0.3s; }
.step.need { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(200, 60, 45, 0.12), var(--shadow-lg); }
.step-err { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); font-weight: 600; font-size: 0.95rem; }
.step-err .icon { flex: none; }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(200, 60, 45, 0.15); }
@media (prefers-reduced-motion: no-preference) { .step-err { animation: shake 0.4s var(--ease); } }
@keyframes shake { 25% { transform: translateX(4px); } 75% { transform: translateX(-4px); } }

@media (max-width: 560px) {
  /* Days as a swipeable strip: each day keeps room for its Hijri date */
  .date-strip { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -18px; padding: 2px 18px 6px; scroll-padding-inline: 18px; }
  .date-strip::-webkit-scrollbar { display: none; }
  .date-chip { flex: 0 0 88px; scroll-snap-align: start; padding: 10px 6px; }
  .date-more { flex: 0 0 auto; align-self: center; }
}
