/* Itinerary route map – toggle, Leaflet canvas, day strip (redesign tokens from redesign-home.css) */
.rdd-itin-toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 18px;
  background: var(--rd-cream, #FBF7EE); border: 1px solid var(--rd-border, #E8DCC8); border-radius: 999px;
}
.rdd-itin-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--rd-muted, #7A6A55); font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; line-height: 1;
}
.rdd-itin-btn:hover { color: var(--rd-night, #1A1208); }
.rdd-itin-btn.active { background: var(--rd-night, #1A1208); color: var(--rd-sand, #F5EDD8); }

.rdd-itin-map[hidden], .rdd-itin-list[hidden] { display: none !important; }
.rdd-itin-map-canvas {
  width: 100%; height: 480px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--rd-border, #E8DCC8); background: var(--rd-cream, #FBF7EE); z-index: 0;
}
@media (max-width: 767px) { .rdd-itin-map-canvas { height: 360px; } }

/* numbered day pin */
.rdd-itin-pin {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--rd-terra, #C4622D);
  color: var(--rd-terra, #C4622D); display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 13px;
  box-shadow: 0 2px 8px rgba(26,18,8,.25); transition: all .15s;
}
.leaflet-marker-icon:hover .rdd-itin-pin { background: var(--rd-terra, #C4622D); color: #fff; transform: scale(1.08); }

/* transfer-mode badge on the segment midpoint */
.rdd-itin-mode {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--rd-border, #E8DCC8);
  color: var(--rd-night, #1A1208); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(26,18,8,.2);
}
.rdd-itin-mode-air { color: #2F5D8A; }
.rdd-itin-mode-sea { color: #1F7A6D; }
.rdd-itin-mode-ground { color: var(--rd-terra, #C4622D); }

/* popup */
.leaflet-popup-content-wrapper { border-radius: 10px; box-shadow: 0 6px 20px rgba(26,18,8,.18); }
.leaflet-popup-content { margin: 10px 14px; font-family: 'DM Sans', sans-serif; }
.rdd-itin-pop-day { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rd-terra, #C4622D); margin-bottom: 3px; }
.rdd-itin-pop-name { font-size: 14px; font-weight: 600; color: var(--rd-night, #1A1208); line-height: 1.35; }

/* day strip under the map */
.rdd-itin-days {
  display: flex; gap: 8px; margin-top: 14px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: thin;
}
.rdd-itin-dot {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border: 1px solid var(--rd-border, #E8DCC8); border-radius: 999px; background: #fff; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--rd-muted, #7A6A55); transition: all .15s;
  max-width: 220px;
}
.rdd-itin-dot-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--rd-cream, #FBF7EE);
  border: 1px solid var(--rd-border, #E8DCC8); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; color: var(--rd-night, #1A1208);
}
.rdd-itin-dot-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rdd-itin-dot:hover { border-color: var(--rd-terra, #C4622D); color: var(--rd-night, #1A1208); }
.rdd-itin-dot.active { background: var(--rd-terra, #C4622D); border-color: var(--rd-terra, #C4622D); color: #fff; }
.rdd-itin-dot.active .rdd-itin-dot-num { background: #fff; border-color: #fff; color: var(--rd-terra, #C4622D); }
