/* combine.css — Tour merge: 2 аяллыг нэгтгэх хуудас */
[hidden] { display: none !important; }

.cb-hero { padding: 64px 0 56px; background: linear-gradient(135deg, #3d2a12, #6b4a1f 45%, var(--altai-forest)); color: #fff; }
.cb-eyebrow { display: block; margin-bottom: 14px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #F0C58A; }
.cb-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.cb-hero h1 em { font-style: italic; color: #F0C58A; }
.cb-hero p { max-width: 720px; margin-top: 16px; color: rgba(255, 255, 255, 0.88); }

.cb-main { padding: 40px 0 80px; background: var(--ivory); }
.cb-steps { list-style: none; display: grid; gap: 20px; }
.cb-step { padding: 22px 24px; background: #fff; border: 1px solid #e6e8df; border-radius: 16px; box-shadow: 0 8px 24px rgba(31, 35, 35, 0.05); }
.cb-step-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.cb-step-head > b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--altai-forest); color: #fff; }
.cb-step-head h2 { margin: 0; font-size: 1.35rem; }
.cb-step-head p { color: #5b6360; font-size: 0.95rem; }

.cb-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cb-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 700; color: #3e4743; }
.cb-field small { font-weight: 400; color: #6b726f; }
.cb-field input, .cb-field select, .cb-field textarea, .cb-search {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #dcdfd4; border-radius: 10px; background: #fff;
  font: inherit; font-size: 0.95rem; font-weight: 400; color: var(--charcoal);
}
.cb-hint { margin-top: 10px; font-size: 0.9rem; color: #8a5a17; }
.cb-hint:empty { display: none; }
.cb-search { margin-bottom: 14px; }

/* Аялал 2-ын сонголтууд */
.cb-cands { display: grid; gap: 12px; }
.cb-cand { display: grid; grid-template-columns: 180px 1fr; border: 1px solid #e6e8df; border-radius: 14px; overflow: hidden; }
.cb-cand.is-chosen { border-color: var(--altai-forest); box-shadow: 0 0 0 2px var(--altai-forest) inset; }
.cb-cand-img { background: #dfe5da; min-height: 130px; }
.cb-cand-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-cand-body { padding: 14px 18px; }
.cb-cand-body h3 { font-size: 1.15rem; }
.cb-cand-meta { font-size: 0.9rem; color: #5b6360; margin: 2px 0 10px; }
.cb-cand-meta a { color: var(--altai-forest); }
.cb-cand-dates { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-date {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 12px; border: 1px solid #dcdfd4; border-radius: 10px; background: #fff; cursor: pointer;
  font: inherit; font-size: 0.88rem; color: var(--charcoal); text-align: left;
}
.cb-date small { font-size: 0.76rem; color: #6b726f; }
.cb-date.is-perfect small { color: var(--altai-forest); font-weight: 700; }
.cb-date:hover { border-color: var(--altai-forest); }
.cb-date.is-on { background: var(--altai-forest); border-color: var(--altai-forest); color: #fff; }
.cb-date.is-on small { color: rgba(255, 255, 255, 0.85); }
.cb-empty { padding: 18px; text-align: center; color: #5b6360; list-style: none; }

/* Нэгтгэсэн itinerary */
.cb-timeline { display: flex; gap: 3px; margin-bottom: 18px; border-radius: 10px; overflow: hidden; }
.cb-bar { min-width: 56px; padding: 8px 10px; color: #fff; font-size: 0.8rem; line-height: 1.25; overflow: hidden; }
.cb-bar b, .cb-bar small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-bar.is-part1 { background: var(--altai-forest); }
.cb-bar.is-part2 { background: #8a5a17; }
.cb-bar.is-gap { background: #e3e6dd; color: #4c5450; }
.cb-days { list-style: none; display: grid; gap: 8px; }
.cb-part { margin-top: 10px; padding: 8px 0; font-weight: 700; color: var(--charcoal); }
.cb-part span { display: inline-block; margin-right: 10px; padding: 2px 10px; border-radius: 999px; color: #fff; font-size: 0.78rem; }
.cb-part.is-part1 span { background: var(--altai-forest); }
.cb-part.is-part2 span { background: #8a5a17; }
.cb-day details, .cb-free { border: 1px solid #e6e8df; border-radius: 12px; background: #fff; }
.cb-day.is-part1 details { border-left: 4px solid var(--altai-forest); }
.cb-day.is-part2 details { border-left: 4px solid #8a5a17; }
.cb-day summary, .cb-free { display: flex; gap: 16px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.cb-free { cursor: default; background: #f6f7f2; border-style: dashed; }
.cb-day summary::-webkit-details-marker { display: none; }
.cb-day-num { flex: none; width: 110px; font-weight: 700; color: var(--altai-forest); }
.is-part2 .cb-day-num { color: #8a5a17; }
.cb-day-num small, .cb-day-title small { display: block; font-weight: 400; font-size: 0.78rem; color: #6b726f; }
.cb-day-title { font-weight: 700; }
.cb-day-body { padding: 0 16px 14px 142px; font-size: 0.95rem; color: #3e4743; }
.cb-day-body p + p, .cb-day-body ul { margin-top: 8px; }
.cb-day-body ul { padding-left: 18px; }
.cb-day-info { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0 !important; }
.cb-day-info li { padding: 3px 10px; border-radius: 999px; background: var(--ivory); font-size: 0.8rem; }

/* Захиалга */
.cb-book { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cb-wide { grid-column: 1 / -1; }
.cb-stepper { display: flex; border: 1px solid #dcdfd4; border-radius: 10px; overflow: hidden; max-width: 220px; }
.cb-stepper button { width: 46px; border: 0; background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--altai-forest); }
.cb-stepper input { border: 0 !important; text-align: center; border-radius: 0 !important; -moz-appearance: textfield; }
.cb-price { grid-row: span 2; padding: 14px 16px; border-radius: 12px; background: var(--altai-forest); color: #fff; font-size: 0.9rem; }
.cb-price div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.cb-price .cb-total { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 1rem; }
.cb-price p { margin-top: 8px; font-size: 0.8rem; opacity: 0.85; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-done { padding: 12px 14px; border-radius: 10px; background: #e3f1e6; color: var(--altai-forest); }
.cb-error { padding: 12px 14px; border-radius: 10px; background: #fbe9e7; color: #9b2c1f; }

@media (max-width: 760px) {
  .cb-pick, .cb-book { grid-template-columns: 1fr; }
  .cb-price { grid-row: auto; }
  .cb-cand { grid-template-columns: 1fr; }
  .cb-cand-img { min-height: 0; aspect-ratio: 16 / 6; }
  .cb-day-num { width: 86px; }
  .cb-day-body { padding-left: 16px; }
  .cb-step { padding: 18px 16px; }
}
