/* ═══════════ انتخابِ گرافیکیِ صندلی — سامانه رزرو اتوبوس عراق ═══════════ */

.sm-wrap { max-width: 1150px; margin: 0 auto; padding: 0 16px 60px; }

/* ── فهرست سرویس‌ها ── */
.sm-trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 26px; }
.sm-trip {
  background: #fffdf8; border: 1.5px solid #e3dcc8; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: .18s; text-align: right;
}
.sm-trip:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11, 61, 46, .13); border-color: #c9a227; }
.sm-trip-img { width: 100%; height: 158px; object-fit: cover; background: #f0ece2; display: block; }
.sm-trip-img.is-placeholder { display: flex; align-items: center; justify-content: center; font-size: 44px; color: #c6bda0; }
.sm-trip-body { padding: 15px 17px 17px; flex: 1; display: flex; flex-direction: column; }
.sm-trip h3 { margin: 0 0 8px; font-size: 17px; color: #8a6d16; line-height: 1.7; }
.sm-trip-meta { font-size: 13.5px; color: #5c6b62; line-height: 2.05; }
.sm-trip-meta b { color: #26302a; }
.sm-trip-foot { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sm-price { font-size: 18px; font-weight: 800; color: #c9a227; }
.sm-price small { font-size: 12.5px; font-weight: 600; color: #7d8a82; }
.sm-free { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #e8f5ee; color: #a9861c; }
.sm-free.is-low { background: #fdf0e2; color: #a6621b; }
.sm-free.is-none { background: #f4e6e4; color: #9d3227; }
.sm-pick {
  display: block; width: 100%; margin-top: 13px; padding: 12px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #8a6d16, #c9a227); color: #f5edd6; font: 700 15px inherit;
  cursor: pointer; transition: .16s;
}
.sm-pick:hover { background: linear-gradient(135deg, #c9a227, #c9a227); }
.sm-pick:disabled { background: #cfcabc; color: #8b8677; cursor: not-allowed; }

/* ── صفحهٔ انتخاب صندلی ── */
.sm-panel { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; margin-top: 26px; align-items: start; }
@media (max-width: 900px) { .sm-panel { grid-template-columns: 1fr; } }

.sm-card { background: #fffdf8; border: 1.5px solid #e3dcc8; border-radius: 20px; padding: 22px; }
.sm-card h2 { margin: 0 0 6px; font-size: 19px; color: #8a6d16; }
.sm-card .sm-sub { font-size: 13.5px; color: #6b7a71; margin: 0 0 16px; line-height: 1.9; }

/* بدنهٔ اتوبوس */
.sm-bus { background: #f6f3ea; border: 2px solid #d9cfae; border-radius: 26px 26px 16px 16px; padding: 16px 14px; display: inline-block; }
.sm-bus-row { display: flex; gap: 7px; margin-bottom: 7px; justify-content: center; }
.sm-seat {
  width: 46px; height: 46px; border-radius: 10px; border: 1.8px solid #cfc4a3; background: #fff;
  font: 700 14px inherit; color: #26302a; cursor: pointer; transition: .13s; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.sm-seat:hover:not(:disabled) { transform: translateY(-2px); border-color: #c9a227; box-shadow: 0 4px 11px rgba(0,0,0,.14); }
.sm-seat.is-picked { background: linear-gradient(135deg, #8a6d16, #c9a227); border-color: #8a6d16; color: #f5edd6; }
.sm-seat.is-taken { background: #ded8cb; border-color: #cbc4b3; color: #9b9484; cursor: not-allowed; }
.sm-seat.is-taken::after { content: "✕"; font-size: 15px; }
.sm-seat.is-taken span { display: none; }
.sm-seat:disabled { cursor: not-allowed; }
.sm-fix { width: 46px; height: 46px; border-radius: 10px; border: 1.6px dashed #ddd3b8; background: transparent;
  font-size: 10.5px; color: #a89c7c; display: flex; align-items: center; justify-content: center; text-align: center; }
.sm-fix.is-driver { background: #2b3a33; border: 1.8px solid #2b3a33; color: #e6c866; font-size: 11px; }
.sm-fix.is-wc { background: #e9eef7; border-color: #7d95c4; color: #2f4a80; }
.sm-fix.is-door { background: #fdf3d8; border-color: #d9b64a; color: #8a6a10; }
.sm-fix.is-blank { border-color: transparent; }

.sm-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #5c6b62; margin: 14px 0 4px; }
.sm-legend i { display: inline-block; width: 15px; height: 15px; border-radius: 5px; vertical-align: -3px; margin-left: 6px; border: 1.6px solid; }

/* ── سبد و فرم مسافران ── */
.sm-basket { position: sticky; top: 16px; }
.sm-chosen { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; min-height: 34px; }
.sm-chip { background: #8a6d16; color: #f5edd6; border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight: 700; }
.sm-chip em { font-style: normal; opacity: .72; font-size: 12px; }
.sm-empty { color: #9aa79f; font-size: 13.5px; }

.sm-timer { font-size: 13px; color: #a6621b; background: #fdf0e2; border-radius: 10px; padding: 8px 13px; margin: 12px 0; display: none; }
.sm-timer.is-on { display: block; }
.sm-timer b { font-variant-numeric: tabular-nums; }

.sm-total { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0;
  padding-top: 14px; border-top: 1.5px dashed #e3dcc8; }
.sm-total .t { font-size: 14px; color: #5c6b62; font-weight: 600; }
.sm-total .v { font-size: 22px; font-weight: 800; color: #c9a227; }

.sm-pax { border: 1.5px solid #e9e2ce; border-radius: 14px; padding: 13px; margin-bottom: 11px; background: #fbf9f3; }
.sm-pax-head { font-size: 13.5px; font-weight: 800; color: #8a6d16; margin-bottom: 9px; }
.sm-field { margin-bottom: 9px; }
.sm-field label { display: block; font-size: 12.5px; font-weight: 700; color: #5c6b62; margin-bottom: 4px; }
.sm-field input, .sm-field select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #ddd3b8;
  font-family: inherit; font-size: 14.5px; background: #fff;
}
.sm-field input:focus, .sm-field select:focus { outline: none; border-color: #c9a227; }
.sm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.sm-submit {
  width: 100%; padding: 14px; border: none; border-radius: 13px; cursor: pointer;
  background: linear-gradient(135deg, #c9a227, #e6c866); color: #2b2410; font: 800 16px inherit; transition: .16s;
}
.sm-submit:hover:not(:disabled) { filter: brightness(1.07); }
.sm-submit:disabled { background: #ddd8c8; color: #8f8a7a; cursor: not-allowed; }

.sm-error { display: none; background: #f6e7e5; color: #9d3227; border-radius: 11px; padding: 11px 14px;
  font-size: 13.5px; margin: 11px 0; line-height: 1.9; }
.sm-error.is-on { display: block; }

.sm-back { display: inline-block; margin-top: 20px; color: #c9a227; font-weight: 700; font-size: 14px; text-decoration: none; }

/* ── پیام موفقیت ── */
.sm-done { text-align: center; padding: 34px 20px; }
.sm-done .check { width: 74px; height: 74px; border-radius: 50%; background: #e8f5ee; color: #c9a227;
  font-size: 38px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.sm-done h3 { font-size: 22px; color: #8a6d16; margin: 0 0 10px; }
.sm-code { display: inline-block; background: #8a6d16; color: #e6c866; border-radius: 12px;
  padding: 11px 22px; font: 800 21px inherit; letter-spacing: 2px; direction: ltr; margin: 12px 0; }
.sm-done p { color: #5c6b62; line-height: 2.05; font-size: 14.5px; max-width: 520px; margin: 8px auto; }

.sm-loading { text-align: center; padding: 46px 20px; color: #7d8a82; font-size: 15px; }
