/* ════════════════════════════════════════════════
   CWD BOOKING GUIDE — Compact Step Timeline
   Namespace: .cab-cwd-guide-  (isolated — no conflict with .cab-booking-guide-)
   Breakpoints: 900 / 540 / 480
════════════════════════════════════════════════ */

/* ── wrapper section ── */
.cab-cwd-guide-wrap {
  padding: 40px 16px 50px;
}

/* ── card ── */
.cab-cwd-guide-1 {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 36px 36px 30px;
  box-shadow: 0 2px 0 0 #fcb142 inset, 0 8px 32px rgba(0, 0, 0, .09);
}

/* ── header ── */
.cab-cwd-guide-1__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.cab-cwd-guide-1__head-left {
  flex: 1 1 320px;
}

.cab-cwd-guide-1__eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fcb142;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cab-cwd-guide-1__eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fcb142;
  opacity: .55;
}

.cab-cwd-guide-1__title {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  margin-bottom: 6px;
  margin-top: 0;
}

.cab-cwd-guide-1__sub {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  max-width: 460px;
  margin: 0;
}

/* ── type badge row ── */
.cab-cwd-guide-1__types {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 4px;
}

.cab-cwd-guide-1__type {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.cab-cwd-guide-1__type--daily {
  background: #111;
  color: #fcb142;
}

.cab-cwd-guide-1__type--hourly {
  background: #faf8f4;
  border: 1.5px solid #e8e0d4;
  color: #555;
}

.cab-cwd-guide-1__type-sep {
  font-size: 11px;
  color: #ccc;
  font-weight: 400;
}

/* ── steps grid ── */
.cab-cwd-guide-1__steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 24px;
}

.cab-cwd-guide-1__steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(100% / 14);
  right: calc(100% / 14);
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8e0d4 10%, #e8e0d4 90%, transparent);
  z-index: 0;
}

.cab-cwd-guide-1__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4px;
  position: relative;
  z-index: 1;
}

.cab-cwd-guide-1__step-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #faf8f4;
  border: 2px solid #e8e0d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 9px;
  transition: border-color .2s, background .2s;
  cursor: default;
  position: relative;
}

.cab-cwd-guide-1__step:hover .cab-cwd-guide-1__step-bubble {
  border-color: #fcb142;
  background: #fffaf0;
}

.cab-cwd-guide-1__step-num {
  position: absolute;
  top: 30px;
  right: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fcb142;
  border: 2px solid #fff;
  font-size: 8px;
  font-weight: 800;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cab-cwd-guide-1__step-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 3px;
  line-height: 1.3;
}

.cab-cwd-guide-1__step-hint {
  font-size: 9.5px;
  color: #9a9590;
  line-height: 1.4;
}

/* ── bottom row ── */
.cab-cwd-guide-1__bottom {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 14px;
}

/* use-type cards */
.cab-cwd-guide-1__use-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cab-cwd-guide-1__use-card {
  background: #faf8f4;
  border: 1.5px solid #e8e0d4;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .2s;
  cursor: default;
}

.cab-cwd-guide-1__use-card:hover {
  border-color: #fcb142;
}

.cab-cwd-guide-1__use-card--active {
  border-color: #fcb142;
  background: #fffaf0;
}

.cab-cwd-guide-1__use-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.cab-cwd-guide-1__use-text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}

.cab-cwd-guide-1__use-text span {
  font-size: 11px;
  color: #888;
}

/* intercity route card */
.cab-cwd-guide-1__route-card {
  background: #07090c;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cab-cwd-guide-1__route-card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fcb142;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cab-cwd-guide-1__route-card-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .08);
}

.cab-cwd-guide-1__days {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.cab-cwd-guide-1__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 56px;
}

.cab-cwd-guide-1__day-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 4px;
}

.cab-cwd-guide-1__day-node {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(252, 177, 66, .12);
  border: 1px solid rgba(252, 177, 66, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.cab-cwd-guide-1__day-node--end {
  background: rgba(239, 68, 68, .1);
  border-color: rgba(239, 68, 68, .3);
}

.cab-cwd-guide-1__day-city {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}

.cab-cwd-guide-1__day-arrow {
  font-size: 11px;
  color: rgba(255, 255, 255, .2);
  flex-shrink: 0;
  padding: 0 2px;
  margin-top: -6px;
}

.cab-cwd-guide-1__route-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.cab-cwd-guide-1__route-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .38);
  display: flex;
  align-items: center;
  gap: 5px;
}

.cab-cwd-guide-1__route-badge strong {
  color: #fcb142;
  font-weight: 700;
}

/* ── responsive ── */
@media (max-width: 900px) {
  .cab-cwd-guide-1 {
    padding: 24px 20px 22px;
  }

  .cab-cwd-guide-1__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .cab-cwd-guide-1__steps::before {
    display: none;
  }

  .cab-cwd-guide-1__bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .cab-cwd-guide-1__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cab-cwd-guide-1__head {
    flex-direction: column;
  }

  .cab-cwd-guide-1__step {
    flex-direction: row;
    text-align: left;
    gap: 10px;
  }

  .cab-cwd-guide-1__step-bubble {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .cab-cwd-guide-1__step-num {
    top: 30px;
    right: -2px;
  }

  .cab-cwd-guide-1__steps::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .cab-cwd-guide-wrap {
    padding: 28px 12px 36px;
  }

  .cab-cwd-guide-1 {
    padding: 20px 16px 18px;
  }

  .cab-cwd-guide-1__type {
    padding: 6px 10px;
    font-size: 10.5px;
  }
}

/* ── RTL (Arabic) ── */
[dir="rtl"] .cab-cwd-guide-1__eyebrow,
html[lang="ar"] .cab-cwd-guide-1__eyebrow {
  flex-direction: row-reverse;
}

[dir="rtl"] .cab-cwd-guide-1__eyebrow::before,
html[lang="ar"] .cab-cwd-guide-1__eyebrow::before {
  display: none;
}

[dir="rtl"] .cab-cwd-guide-1__eyebrow::after,
html[lang="ar"] .cab-cwd-guide-1__eyebrow::after {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fcb142;
  opacity: .55;
}

[dir="rtl"] .cab-cwd-guide-1__head,
html[lang="ar"] .cab-cwd-guide-1__head {
  flex-direction: row-reverse;
}

[dir="rtl"] .cab-cwd-guide-1__step,
html[lang="ar"] .cab-cwd-guide-1__step {
  text-align: right;
}

[dir="rtl"] .cab-cwd-guide-1__use-card,
html[lang="ar"] .cab-cwd-guide-1__use-card {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .cab-cwd-guide-1__route-card-label,
html[lang="ar"] .cab-cwd-guide-1__route-card-label {
  flex-direction: row-reverse;
}

[dir="rtl"] .cab-cwd-guide-1__route-meta,
html[lang="ar"] .cab-cwd-guide-1__route-meta {
  flex-direction: row-reverse;
}

.cab-cwd-guide-1--rtl .cab-cwd-guide-1__eyebrow {
  flex-direction: row-reverse;
}

.cab-cwd-guide-1--rtl .cab-cwd-guide-1__eyebrow::before {
  display: none;
}

.cab-cwd-guide-1--rtl .cab-cwd-guide-1__eyebrow::after {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fcb142;
  opacity: .55;
}

.cab-cwd-guide-1--rtl .cab-cwd-guide-1__head {
  flex-direction: row-reverse;
}

.cab-cwd-guide-1--rtl .cab-cwd-guide-1__step {
  text-align: right;
}

.cab-cwd-guide-1--rtl .cab-cwd-guide-1__use-card {
  flex-direction: row-reverse;
  text-align: right;
}

.cab-cwd-guide-1--rtl .cab-cwd-guide-1__route-card-label {
  flex-direction: row-reverse;
}

.cab-cwd-guide-1--rtl .cab-cwd-guide-1__route-meta {
  flex-direction: row-reverse;
}
