/* ============================================================
   Togo Itinerary Map — [togo_itinerary_map] shortcode styles
   ============================================================ */

/* Map container */
.togo-itinerary-map-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* ---- Numbered day dot marker ---- */
.togo-itin-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f60c09;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.togo-itin-marker:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.togo-itin-marker.clicked {
  transform: scale(1.25);
  background: #c50906;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

/* ---- Popup wrapper ---- */
.togo-itin-popup .maplibregl-popup-content {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  width: 220px;
}

.togo-itin-popup .maplibregl-popup-tip {
  border-top-color: #fff;
}

.togo-itin-popup .maplibregl-popup-close-button {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.togo-itin-popup .maplibregl-popup-close-button:hover {
  background: rgba(0, 0, 0, 0.55);
}

/* ---- Card inside popup — extends .tour-itinerary-item-card ---- */
.togo-itin-popup-card {
  cursor: default;
}

.togo-itin-popup-card .top {
  position: relative;
}

.togo-itin-popup-card .image-wrapper {
  height: 120px;
  overflow: hidden;
}

.togo-itin-popup-card .item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.togo-itin-popup-card .tour-days {
  position: absolute;
  bottom: 6px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.togo-itin-popup-card .tour-themes {
  position: relative;
  bottom: auto;
  left: auto;
  margin-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.togo-itin-popup-card .tour-themes .theme-capsule {
  background-color: #eee;
}

/* Day badge */
.togo-itin-popup-day-badge {
  background: #f60c09;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  line-height: 1.4;
}

.togo-itin-popup-card .theme-capsule {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
  height: auto !important;
}

.togo-itin-popup-card .theme-capsule img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.togo-itin-popup-card .item-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.togo-itin-popup-card .item-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.togo-itin-popup-card .item-cost {
  font-size: 12px;
  margin: 0;
  color: #f60c09;
  font-weight: 600;
}

.togo-itin-popup-card .item-label {
  font-size: 11px;
  margin: 0;
  color: #666;
  font-weight: 400;
}
