/* Reusable Shared Component Styles for Vietnam 2027 Travel App */

/* Navigation Tabs */
.wl-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-shrink: 0;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  white-space: nowrap;
}

.wl-nav-tab.active {
  color: #0f766e;
  border-bottom: 2.5px solid #0f766e;
  font-weight: 700;
}

.wl-nav-tab:not(.active) {
  color: #64748b;
  border-bottom: 2.5px solid transparent;
}

.wl-nav-tab:hover:not(.active) {
  color: #0f766e;
}

/* Day Filter Chips */
.day-chip {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
}

.day-chip.active {
  background-color: #0f766e;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
}

.day-chip:not(.active) {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.day-chip:hover:not(.active) {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

/* Map Markers & Pins */
#map {
  height: 100%;
  width: 100%;
  z-index: 10;
  border-radius: 1rem;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  font-family: inherit;
}

.custom-map-pin {
  background: #0f766e;
  color: white;
  font-weight: 800;
  font-size: 11px;
  border-radius: 9999px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.custom-map-pin.highlighted {
  background: #f59e0b !important;
  transform: scale(1.3);
  z-index: 1000 !important;
}

.route-connector {
  border-left: 2px dashed #cbd5e1;
  margin-left: 17px;
  padding-left: 24px;
}

/* Code & PNR Masked Badges */
.masked-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  cursor: pointer;
  user-select: all;
  transition: all 0.15s ease;
}

.masked-code:hover {
  background-color: #334155;
  color: #fef08a;
}

/* Animation Utilities */
@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(15, 118, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

.pulse-highlight, .highlight-card {
  animation: highlightPulse 2s ease-out;
  border-color: #0f766e !important;
}
