/**
 * TSD Safari Planner — naked widget skin
 * Designed to sit INSIDE an Elementor olive section.
 * Headings / tribal pattern / Chinese Rocks stay in Elementor.
 * This CSS only styles the interactive form chrome.
 */

/* Dark zebra-print canvas — deliberately different from the home hero photo */
.tsd-planner-backdrop {
  min-height: 70vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  padding: 2.5rem 1.25rem 4rem;
  background-color: #21262a;
  background-image:
    radial-gradient(
      120% 65% at 50% 0%,
      rgba(70, 91, 45, 0.5),
      rgba(33, 38, 42, 0) 62%
    ),
    url("../img/zebra-pattern.png");
  background-repeat: no-repeat, repeat;
  background-position: top center, top center;
  background-size: auto, 360px 360px;
  background-attachment: scroll;
}

@media (max-width: 600px) {
  .tsd-planner-backdrop {
    background-size: auto, 240px 240px;
  }
}

.tsd-planner-backdrop-inner {
  max-width: 1100px;
  margin: 0 auto;
}

#tsd-safari-planner {
  --tsd-olive: #465b2d;
  --tsd-olive-deep: #3a4c25;
  --tsd-yellow: #ffd43d;
  --tsd-ink: #111111;
  --tsd-white: #ffffff;
  --font-display: "Chinese Rocks", Impact, sans-serif;
  --font-body: "Manrope", "Rubik", Arial, sans-serif;
  font-family: var(--font-display);
  color: var(--tsd-white);
  max-width: 100%;
  background: rgba(70, 91, 45, 0.94);
  padding: 1.35rem 1.25rem 1.5rem;
}

#tsd-safari-planner * {
  box-sizing: border-box;
}

#tsd-safari-planner .tsd-step {
  margin-bottom: 0.5rem;
}

#tsd-safari-planner .tsd-step.hidden {
  display: none !important;
}

#tsd-safari-planner .form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

@media (max-width: 700px) {
  #tsd-safari-planner .form-grid {
    grid-template-columns: 1fr;
  }
}

#tsd-safari-planner label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tsd-yellow);
}

#tsd-safari-planner input,
#tsd-safari-planner select,
#tsd-safari-planner textarea {
  border: none;
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  background: var(--tsd-white);
  color: var(--tsd-ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  width: 100%;
}

#tsd-safari-planner .day-edit {
  margin: 0;
  min-width: 0;
}

#tsd-safari-planner .day-edit--head {
  flex: 1 1 220px;
  align-self: center;
  max-width: min(420px, 42vw);
}

#tsd-safari-planner .day-edit label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tsd-yellow);
  font-family: "Chinese Rocks", "Adventure Land", Impact, sans-serif;
  line-height: 1.2;
}

#tsd-safari-planner .day-edit .lodge-label {
  display: block;
  opacity: 0.9;
}

#tsd-safari-planner .day-edit .lodge-select,
#tsd-safari-planner .day-edit select,
#tsd-safari-planner select[data-day-index],
#tsd-safari-planner select.lodge-select {
  margin-top: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 3.1rem !important;
  height: 3.1rem !important;
  padding: 0.55rem 2.4rem 0.55rem 0.85rem !important;
  line-height: 1.2 !important;
  background-color: #465b2d !important;
  color: #ffd43d !important;
  border: 2px solid #ffd43d !important;
  border-radius: 0 !important;
  font-family: "Chinese Rocks", "Adventure Land", Impact, sans-serif !important;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: linear-gradient(45deg, transparent 50%, #ffd43d 50%),
    linear-gradient(135deg, #ffd43d 50%, transparent 50%) !important;
  background-position: calc(100% - 1.1rem) calc(50% - 0.15rem),
    calc(100% - 0.75rem) calc(50% - 0.15rem) !important;
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem !important;
  background-repeat: no-repeat !important;
}

#tsd-safari-planner .day-edit select option {
  background: #465b2d;
  color: #ffd43d;
  padding: 0.65rem;
  font-family: "Chinese Rocks", Impact, sans-serif;
  font-size: 1rem;
  white-space: normal;
}

#tsd-safari-planner .day-mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 46%);
  gap: 0.9rem 1rem;
  align-items: stretch;
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 720px) {
  #tsd-safari-planner .day-mid {
    grid-template-columns: 1fr;
  }
}

#tsd-safari-planner .day-mid-info .date {
  margin-bottom: 0.35rem;
}

#tsd-safari-planner .day-mid-info .route {
  margin: 0 0 0.65rem;
}

#tsd-safari-planner .day-gallery {
  position: relative;
  min-height: 200px;
  border: 2px solid rgba(255, 212, 61, 0.55);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

#tsd-safari-planner .day-gallery.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#tsd-safari-planner .gallery-track {
  position: relative;
  width: 100%;
  height: 210px;
}

#tsd-safari-planner .gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  transition: opacity 0.55s ease;
}

#tsd-safari-planner .gallery-slide.active {
  opacity: 1;
  z-index: 1;
}

#tsd-safari-planner .gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#tsd-safari-planner .gallery-prev,
#tsd-safari-planner .gallery-next {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: #465b2d;
  color: #ffd43d;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

#tsd-safari-planner .gallery-prev {
  left: 0.45rem;
}

#tsd-safari-planner .gallery-next {
  right: 0.45rem;
}

#tsd-safari-planner .gallery-prev:hover,
#tsd-safari-planner .gallery-next:hover {
  background: #3a4c25;
}

#tsd-safari-planner .gallery-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.35rem 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--tsd-yellow);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Chinese Rocks", Impact, sans-serif;
  pointer-events: none;
}

#tsd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 8, 0.92);
  padding: 1.5rem;
}

#tsd-lightbox.open {
  display: flex;
}

#tsd-lightbox .tsd-lightbox-inner {
  position: relative;
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  width: 100%;
}

#tsd-lightbox .tsd-lightbox-img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}

#tsd-lightbox .tsd-lightbox-cap,
#tsd-lightbox .tsd-lightbox-count {
  color: var(--tsd-yellow, #ffd43d);
  font-family: "Chinese Rocks", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.55rem;
}

#tsd-lightbox .tsd-lightbox-count {
  opacity: 0.75;
  font-size: 0.8rem;
}

#tsd-lightbox .tsd-lightbox-close,
#tsd-lightbox .tsd-lightbox-prev,
#tsd-lightbox .tsd-lightbox-next {
  appearance: none;
  border: 2px solid #ffd43d;
  background: #465b2d;
  color: #ffd43d;
  font-family: "Chinese Rocks", Impact, sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
}

#tsd-lightbox .tsd-lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: 0;
  z-index: 2;
}

#tsd-lightbox .tsd-lightbox-prev,
#tsd-lightbox .tsd-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

#tsd-lightbox .tsd-lightbox-prev {
  left: -0.25rem;
}

#tsd-lightbox .tsd-lightbox-next {
  right: -0.25rem;
}

#tsd-safari-planner input:focus,
#tsd-safari-planner select:focus {
  outline: 2px solid var(--tsd-yellow);
  outline-offset: 1px;
}

#tsd-safari-planner .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

#tsd-safari-planner .btn {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 0;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

#tsd-safari-planner .btn-primary {
  background: var(--tsd-yellow);
  color: var(--tsd-ink);
  border-color: var(--tsd-yellow);
}

#tsd-safari-planner .btn-primary:hover {
  background: #ffe06a;
}

#tsd-safari-planner .btn-ghost {
  background: transparent;
  border-color: var(--tsd-yellow);
  color: var(--tsd-white);
}

#tsd-safari-planner .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#tsd-safari-planner .packages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 0.25rem;
  max-height: min(58vh, 560px);
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-color: var(--tsd-yellow) rgba(0, 0, 0, 0.25);
}

#tsd-safari-planner .pkg {
  display: block;
  text-align: left;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.18);
  color: var(--tsd-white);
  cursor: pointer;
  padding: 1rem 1.05rem;
  overflow: hidden;
  font-family: inherit;
  width: 100%;
}

#tsd-safari-planner .pkg:hover,
#tsd-safari-planner .pkg-card.selected .pkg {
  border-color: var(--tsd-yellow);
}

#tsd-safari-planner .pkg-body {
  min-width: 0;
}

@media (max-width: 640px) {
  #tsd-safari-planner .packages {
    max-height: min(52vh, 480px);
  }
}

#tsd-safari-planner .pkg-body .badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tsd-ink);
  background: var(--tsd-yellow);
  padding: 0.28rem 0.5rem;
  margin-bottom: 0.5rem;
}

#tsd-safari-planner .pkg-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--tsd-white);
  font-family: "Chinese Rocks", "Adventure Land", Impact, sans-serif;
}

#tsd-safari-planner .pkg-body .tagline {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

#tsd-safari-planner .pkg-body .meta {
  font-size: 0.9rem;
  color: var(--tsd-yellow);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#tsd-safari-planner .pkg-body .pkg-price {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--tsd-yellow);
  font-family: "Chinese Rocks", "Adventure Land", Impact, sans-serif;
}

#tsd-safari-planner .pkg-body .pkg-price small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#tsd-safari-planner .pkg-body .pkg-summary {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

#tsd-safari-planner .pkg-card {
  display: flex;
  flex-direction: column;
}

#tsd-safari-planner .pkg-card .pkg {
  flex: 1;
  width: 100%;
}

#tsd-safari-planner .pkg-pdf {
  display: block;
  text-align: center;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--tsd-yellow);
  border-top: 0;
  color: var(--tsd-yellow);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

#tsd-safari-planner .pkg-pdf:hover {
  background: var(--tsd-yellow);
  color: var(--tsd-ink);
}

/* ---------- Itinerary preview modal ---------- */

#tsd-safari-planner .itin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.78);
  padding: 2vh 2vw;
}

#tsd-safari-planner .itin-modal.open {
  display: block;
}

#tsd-safari-planner .itin-modal-inner {
  position: relative;
  max-width: 680px;
  height: 96vh;
  margin: 0 auto;
  background: #fff;
}

#tsd-safari-planner .itin-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

#tsd-safari-planner .itin-modal-close {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid var(--tsd-yellow);
  background: var(--tsd-ink);
  color: var(--tsd-yellow);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

#tsd-safari-planner .start-alt {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.75);
}

#tsd-safari-planner .start-alt a {
  color: var(--tsd-yellow);
  text-decoration: underline;
}

#tsd-safari-planner .step-intro {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- AI bar ---------- */

#tsd-safari-planner .ai-bar {
  border: 2px solid var(--tsd-yellow);
  background: rgba(0, 0, 0, 0.22);
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 1.1rem;
}

#tsd-safari-planner .ai-label {
  display: block;
  font-family: "Chinese Rocks", "Adventure Land", Impact, sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--tsd-yellow);
  margin-bottom: 0.5rem;
}

#tsd-safari-planner .ai-bar textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--tsd-ink);
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.2);
  resize: vertical;
}

#tsd-safari-planner .ai-bar .btn {
  margin-top: 0.7rem;
}

#tsd-safari-planner .ai-hint {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Day timeline ---------- */

#tsd-safari-planner .timeline-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

#tsd-safari-planner .timeline-head h3 {
  margin: 0;
  font-family: "Chinese Rocks", "Adventure Land", Impact, sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--tsd-white);
}

#tsd-safari-planner .timeline-price {
  text-align: right;
  font-family: "Chinese Rocks", "Adventure Land", Impact, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--tsd-yellow);
}

#tsd-safari-planner .timeline-price small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
}

#tsd-safari-planner .timeline {
  max-height: min(56vh, 460px);
  overflow-y: auto;
  padding-right: 0.3rem;
  scrollbar-color: var(--tsd-yellow) rgba(0, 0, 0, 0.25);
}

#tsd-safari-planner .tl-day {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.75rem 0.9rem;
}

#tsd-safari-planner .tl-day.locked {
  border-style: dashed;
  border-color: rgba(255, 212, 61, 0.55);
}

#tsd-safari-planner .tl-num {
  min-width: 4.5rem;
  font-family: "Chinese Rocks", "Adventure Land", Impact, sans-serif;
  font-size: 1.3rem;
  color: var(--tsd-yellow);
  text-transform: uppercase;
}

#tsd-safari-planner .tl-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

#tsd-safari-planner .tl-body strong {
  font-size: 1.15rem;
  color: var(--tsd-white);
}

#tsd-safari-planner .tl-note {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

#tsd-safari-planner .tl-balloon {
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

#tsd-safari-planner .tl-balloon input {
  width: auto;
  padding: 0;
}

#tsd-safari-planner .tl-lock {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 212, 61, 0.85);
}

#tsd-safari-planner .tl-remove {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--tsd-white);
  font-size: 1.2rem;
  line-height: 1;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
}

#tsd-safari-planner .tl-remove:hover {
  border-color: var(--tsd-yellow);
  color: var(--tsd-yellow);
}

#tsd-safari-planner .tl-add {
  padding: 0.35rem 0;
}

#tsd-safari-planner .tl-add-btn {
  border: 2px dashed rgba(255, 255, 255, 0.35);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  width: 100%;
}

#tsd-safari-planner .tl-add-btn:hover,
#tsd-safari-planner .tl-add-btn.open {
  border-color: var(--tsd-yellow);
  color: var(--tsd-yellow);
}

#tsd-safari-planner .chip-picker {
  margin-top: 0.6rem;
  border: 2px solid var(--tsd-yellow);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.85rem;
  display: grid;
  gap: 0.85rem;
}

#tsd-safari-planner .chip-group-title {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.45rem;
}

#tsd-safari-planner .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#tsd-safari-planner .chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tsd-white);
  font-family: inherit;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  text-align: left;
}

#tsd-safari-planner .chip strong {
  font-size: 1rem;
}

#tsd-safari-planner .chip small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

#tsd-safari-planner .chip:hover {
  border-color: var(--tsd-yellow);
  background: var(--tsd-yellow);
  color: var(--tsd-ink);
}

#tsd-safari-planner .chip:hover small {
  color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 640px) {
  #tsd-safari-planner .tl-day {
    flex-wrap: wrap;
  }
  #tsd-safari-planner .tl-num {
    min-width: auto;
  }
  #tsd-safari-planner .chip {
    width: 100%;
  }
}

#tsd-safari-planner .trip-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  #tsd-safari-planner .trip-layout {
    grid-template-columns: 1fr;
  }
}

#tsd-safari-planner .days {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

#tsd-safari-planner .day {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 1rem;
}

#tsd-safari-planner .day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  flex-wrap: wrap;
}

#tsd-safari-planner .day-head h3 {
  margin: 0;
  flex: 0 1 auto;
  max-width: min(100%, 34ch);
  /* Match / beat page title "CUSTOMIZE YOUR SAFARI" */
  font-size: clamp(28px, 4.2vw, 48px) !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  font-family: "Chinese Rocks", "Adventure Land", Impact, sans-serif !important;
}

@media (max-width: 720px) {
  #tsd-safari-planner .day-edit--head {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }

  #tsd-safari-planner .day-head h3 {
    flex: 1 1 auto;
  }

  #tsd-safari-planner .day-cost {
    margin-left: auto;
  }
}

#tsd-safari-planner .day-head .date {
  font-size: 1.1rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.35rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-family: "Manrope", "Rubik", Arial, sans-serif;
}

#tsd-safari-planner .day .route {
  margin: 0.55rem 0 0.65rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  overflow: visible;
}

#tsd-safari-planner .day .route strong {
  display: inline-block;
  padding: 0.15em 0;
  line-height: 1.55;
  font-size: 1.05em;
  color: var(--tsd-yellow);
  font-family: "Chinese Rocks", "Adventure Land", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#tsd-safari-planner .day-cost {
  font-size: clamp(36px, 5.5vw, 56px) !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  color: #ffd43d !important;
  white-space: nowrap;
  font-family: "Chinese Rocks", "Adventure Land", Impact, sans-serif !important;
}

#tsd-safari-planner .details {
  margin-top: 0.55rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

#tsd-safari-planner .details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--tsd-yellow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

#tsd-safari-planner .details ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

#tsd-safari-planner .summary-card {
  position: sticky;
  top: 1rem;
  background: #1e1e1e;
  border: 2px solid var(--tsd-yellow);
  padding: 1.05rem;
}

#tsd-safari-planner .summary-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tsd-yellow);
  font-family: "Chinese Rocks", "Adventure Land", Impact, sans-serif;
}

#tsd-safari-planner .summary-card .total {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--tsd-white);
  margin: 0.4rem 0 0.1rem;
  font-family: "Chinese Rocks", Impact, sans-serif;
}

#tsd-safari-planner .summary-card .per-label {
  margin: 0;
  font-size: 0.95rem;
  color: var(--tsd-yellow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Chinese Rocks", Impact, sans-serif;
}

#tsd-safari-planner .summary-card .group-total {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Manrope", "Rubik", Arial, sans-serif;
}

#tsd-safari-planner .summary-card .note {
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.7rem 0 1rem;
}

#tsd-safari-planner .summary-card .btn {
  width: 100%;
  text-align: center;
}

#tsd-safari-planner .summary-card .btn-ghost {
  margin-top: 0.5rem;
}

#tsd-safari-planner .email-gate {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

#tsd-safari-planner .check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.5rem;
  text-transform: none;
  letter-spacing: normal;
}

#tsd-safari-planner .check input {
  width: auto;
  padding: 0;
}

#tsd-safari-planner .itin-preview {
  margin-top: 1rem;
}

#tsd-safari-planner .itin-preview h3 {
  text-transform: uppercase;
  color: var(--tsd-yellow);
  margin: 0 0 0.65rem;
  font-family: "Chinese Rocks", Impact, sans-serif;
}

#tsd-safari-planner .itin-preview pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.22);
  color: var(--tsd-white);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-height: 320px;
  overflow: auto;
}

#tsd-planner-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #111;
  color: #fff;
  border: 2px solid #ffd43d;
  padding: 0.85rem 1.2rem;
  font-size: 0.88rem;
  z-index: 99999;
  transition: transform 0.35s ease;
  max-width: min(92vw, 420px);
  text-align: center;
  font-family: "Rubik", Arial, sans-serif;
}

#tsd-planner-toast.show {
  transform: translateX(-50%) translateY(0);
}
