/**
 * Travel Planner Stylesheet
 * Dedicated sidebar, discovery cards, responsive layout for Kizmio
 */

/* ==========================================================================
   1. Dedicated Travel Planner Unified Sidebar (Wishlist Layout & Styling Parity)
   ========================================================================== */

.tp-sidebar-wrapper {
  position: sticky;
  top: 75px;
  z-index: 10;
}

.kzm-travelplanner-unified-sidebar.country-sidebar-card.country-places-sidebar,
.kzm-travelplanner-unified-sidebar {
  --tp-sidebar-accent: var(--kzm-primary, #0284c7);
  --tp-sidebar-accent-dark: #0369a1;
  --tp-sidebar-accent-light: #0ea5e9;
  --tp-sidebar-accent-soft: rgba(2, 132, 199, 0.08);
  --tp-sidebar-accent-glow: rgba(2, 132, 199, 0.24);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--kzm-border, #e2e8f0) !important;
  border-radius: 16px !important;
  background: var(--kzm-surface, #ffffff) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}

.kzm-travelplanner-sidebar-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--kzm-border, #e2e8f0);
  background: linear-gradient(145deg, #f0f9ff, #ffffff);
}

.kzm-travelplanner-sidebar-identity > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--tp-sidebar-accent), var(--tp-sidebar-accent-dark));
  color: #ffffff;
  box-shadow: 0 8px 18px var(--tp-sidebar-accent-glow);
  font-size: 1.15rem;
}

.kzm-travelplanner-sidebar-identity small,
.kzm-travelplanner-sidebar-identity h2 {
  display: block;
  margin: 0;
}

.kzm-travelplanner-sidebar-identity small {
  color: var(--tp-sidebar-accent);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.kzm-travelplanner-sidebar-identity h2 {
  color: var(--kzm-text, #1e293b);
  font-size: 1.08rem;
  font-weight: 850;
}

.kzm-travelplanner-sidebar-heading {
  padding: 0 4px 8px;
}

.kzm-travelplanner-sidebar-heading > span {
  color: var(--tp-sidebar-accent);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.kzm-travelplanner-sidebar-heading h3 {
  margin: 2px 0 0;
  color: var(--kzm-text, #1e293b);
  font-size: .88rem;
  font-weight: 800;
}

.kzm-travelplanner-sidebar-grid {
  display: grid;
  gap: 7px;
}

.kzm-travelplanner-sidebar-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--kzm-border, #e2e8f0);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--kzm-text, #1e293b) !important;
  text-align: left;
  text-decoration: none !important;
  transition: .18s ease;
}

.kzm-travelplanner-sidebar-pill:hover,
.kzm-travelplanner-sidebar-pill.is-active {
  border-color: var(--tp-sidebar-accent);
  background: var(--tp-sidebar-accent-soft);
  color: var(--tp-sidebar-accent-dark) !important;
  transform: translateY(-1px);
}

.kzm-travelplanner-sidebar-pill__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  background: #ffffff;
  color: var(--tp-sidebar-accent);
}

.kzm-travelplanner-sidebar-pill:hover .kzm-travelplanner-sidebar-pill__icon,
.kzm-travelplanner-sidebar-pill.is-active .kzm-travelplanner-sidebar-pill__icon {
  background: var(--tp-sidebar-accent);
  color: #ffffff;
}

.kzm-travelplanner-sidebar-pill__copy {
  min-width: 0;
  flex: 1;
}

.kzm-travelplanner-sidebar-pill__copy strong,
.kzm-travelplanner-sidebar-pill__copy small {
  display: block;
  overflow: hidden;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kzm-travelplanner-sidebar-pill__copy strong {
  font-size: .79rem;
  font-weight: 800;
}

.kzm-travelplanner-sidebar-pill__copy small {
  color: var(--kzm-muted, #64748b);
  font-size: .67rem;
}

.kzm-travelplanner-sidebar-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--tp-sidebar-accent);
  color: #ffffff;
  font-size: .65rem;
}

.kzm-travelplanner-sidebar-pill--create {
  border-color: var(--tp-sidebar-accent);
  background: linear-gradient(135deg, var(--tp-sidebar-accent), var(--tp-sidebar-accent-dark));
  color: #ffffff !important;
}

.kzm-travelplanner-sidebar-pill--create .kzm-travelplanner-sidebar-pill__icon {
  background: #ffffff;
  color: var(--tp-sidebar-accent);
}

.kzm-travelplanner-sidebar-pill--create .kzm-travelplanner-sidebar-pill__copy small {
  color: #e0f2fe;
}

.kzm-travelplanner-sidebar-pill--create:hover {
  background: var(--tp-sidebar-accent-dark);
  color: #ffffff !important;
}

.kzm-travelplanner-filter-form {
  display: grid;
  gap: 10px;
  padding-top: 0;
}

.kzm-travelplanner-filter-search {
  display: grid;
  gap: 7px;
  padding: 0 2px 2px;
}

.kzm-travelplanner-filter-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--kzm-text, #1e293b);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.25;
  text-transform: uppercase;
}

.kzm-travelplanner-filter-title i {
  width: 14px;
  color: var(--tp-sidebar-accent);
  text-align: center;
}

.kzm-travelplanner-search-field {
  position: relative;
}

.kzm-travelplanner-search-field > i {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 2;
  color: #94a3b8;
  font-size: 12px;
  pointer-events: none;
  transform: translateY(-50%);
}

.kzm-travelplanner-filter-form .kzm-travelplanner-search-field .form-control {
  padding-left: 34px;
  background: var(--kzm-surface, #ffffff);
}

.kzm-travelplanner-filter-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--kzm-border, #e2e8f0);
  border-radius: 12px;
  background: var(--kzm-surface, #ffffff);
}

.kzm-travelplanner-filter-card .kzm-travelplanner-filter-title {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--kzm-border, #edf0f4);
}

.kzm-travelplanner-filter-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.kzm-travelplanner-filter-field > label,
.kzm-travelplanner-filter-field__label > label {
  margin: 0;
  color: var(--kzm-muted, #64748b);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.3;
}

.kzm-travelplanner-filter-form .form-control,
.kzm-travelplanner-filter-form .form-select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 5px 12px;
  border: 1px solid var(--kzm-border, #e2e8f0);
  border-radius: 9px;
  background-color: var(--kzm-surface-soft, #f8fafc);
  color: var(--kzm-text, #1e293b);
  font-size: 12.5px;
  box-shadow: none;
}

.kzm-travelplanner-filter-form .form-control:focus,
.kzm-travelplanner-filter-form .form-select:focus {
  border-color: var(--tp-sidebar-accent);
  background-color: var(--kzm-surface, #ffffff);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .12);
}

.kzm-travelplanner-filter-switch {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: 1px 0 0;
  padding-top: 5px;
  border-top: 1px solid var(--kzm-border, #edf0f4);
}

.kzm-travelplanner-filter-switch .form-check-input {
  flex: 0 0 auto;
  margin-top: 0;
}

.kzm-travelplanner-filter-switch .form-check-input:checked {
  background-color: var(--tp-sidebar-accent);
  border-color: var(--tp-sidebar-accent);
}

.kzm-travelplanner-filter-switch .form-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--kzm-text, #1e293b);
  font-size: 11.5px;
  font-weight: 650;
}

.kzm-travelplanner-filter-switch .form-check-label i {
  color: var(--tp-sidebar-accent);
}

.kzm-travelplanner-filter-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-top: 1px;
}

.kzm-travelplanner-filter-actions .btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.2;
}

.kzm-travelplanner-filter-apply {
  border: 1px solid var(--tp-sidebar-accent);
  background: linear-gradient(135deg, var(--tp-sidebar-accent), var(--tp-sidebar-accent-dark));
  color: #ffffff;
}

.kzm-travelplanner-filter-apply:hover,
.kzm-travelplanner-filter-apply:focus {
  background: var(--tp-sidebar-accent-dark);
  color: #ffffff;
}

.kzm-travelplanner-filter-clear {
  border: 1px solid var(--kzm-border, #e2e8f0);
  background: var(--kzm-surface, #ffffff);
  color: var(--kzm-muted, #64748b);
}

.kzm-travelplanner-filter-clear:hover,
.kzm-travelplanner-filter-clear:focus {
  border-color: var(--tp-sidebar-accent);
  color: var(--tp-sidebar-accent);
}

/* Night mode styling for Travel Planner unified sidebar */
body.night-mode .kzm-travelplanner-unified-sidebar.country-sidebar-card.country-places-sidebar,
body.night-mode .kzm-travelplanner-unified-sidebar {
  border-color: var(--kzm-border, #334155) !important;
  background: var(--kzm-surface, #1e293b) !important;
}

body.night-mode .kzm-travelplanner-sidebar-identity,
body.night-mode .kzm-travelplanner-filter-card,
body.night-mode .kzm-travelplanner-filter-form .kzm-travelplanner-search-field .form-control,
body.night-mode .kzm-travelplanner-filter-clear {
  border-color: var(--kzm-border, #334155);
  background: var(--kzm-surface, #1e293b);
}

body.night-mode .kzm-travelplanner-sidebar-identity h2,
body.night-mode .kzm-travelplanner-sidebar-heading h3,
body.night-mode .kzm-travelplanner-filter-title,
body.night-mode .kzm-travelplanner-sidebar-pill {
  color: var(--kzm-text, #f1f5f9) !important;
}

body.night-mode .kzm-travelplanner-sidebar-pill {
  border-color: var(--kzm-border, #334155);
  background: var(--kzm-surface-soft, #0f172a);
}

body.night-mode .kzm-travelplanner-sidebar-pill__icon {
  background: #1e293b;
}

body.night-mode .kzm-travelplanner-filter-form .form-control,
body.night-mode .kzm-travelplanner-filter-form .form-select {
  border-color: var(--kzm-border, #334155);
  background-color: var(--kzm-surface-soft, #0f172a);
  color: var(--kzm-text, #f1f5f9);
}

body.night-mode .kzm-travelplanner-filter-switch .form-check-label {
  color: var(--kzm-text, #f1f5f9);
}

@media (max-width: 767.98px) {
  .kzm-travelplanner-unified-sidebar.country-sidebar-card.country-places-sidebar {
    margin: 0;
    box-shadow: none !important;
  }

  .kzm-travelplanner-filter-form .form-control,
  .kzm-travelplanner-filter-form .form-select,
  .kzm-travelplanner-filter-actions .btn {
    min-height: 42px;
  }
}

@media (max-width: 359.98px) {
  .kzm-travelplanner-filter-actions {
    grid-template-columns: 1fr;
  }
}

/* Checklist Items in Sidebar */
.tp-checklist-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tp-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.tp-checklist-item:last-child {
  border-bottom: none;
}

.tp-checklist-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.tp-checklist-content strong {
  font-size: 0.85rem;
  color: #1e293b;
}

/* Tips Card */
.tp-tips-card {
  background: #fffdf5;
  border-color: #fef3c7 !important;
}

.tp-tips-list {
  list-style: none;
  padding-left: 0;
}

.tp-tips-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.tp-tips-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f59e0b;
  font-weight: bold;
}

/* Needs Attention Banner */
.tp-attention-card {
  background: #fffbeb;
  border-left: 4px solid #f59e0b !important;
}

.tp-quick-stat strong {
  color: #0f172a;
}

/* ==========================================================================
   2. Modern Travel Planner Hero Banner Component
   ========================================================================== */

.tp-hero-section {
  position: relative;
  background: radial-gradient(120% 120% at 85% 10%, rgba(8, 124, 167, 0.28) 0%, rgba(15, 23, 42, 0) 60%),
              radial-gradient(100% 100% at 10% 90%, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0) 50%),
              linear-gradient(135deg, #07192d 0%, #0a2544 45%, #083358 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 38px 40px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(7, 25, 45, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 26px;
}

.tp-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.7;
}

.tp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Left Column */
.tp-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #38bdf8;
  backdrop-filter: blur(8px);
  margin-bottom: 14px;
}

.tp-hero-badge i {
  color: #f59e0b;
}

.tp-hero-title {
  font-size: 2.35rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 12px;
}

.tp-hero-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 50%, #fcd34d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tp-hero-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 520px;
  margin: 0 0 20px;
}

.tp-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tp-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.tp-hero-pill i {
  color: #38bdf8;
  font-size: 11px;
}

.tp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.tp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 750;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
}

.tp-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.5);
  color: #ffffff !important;
}

.tp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.tp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Right Column: Stylized Journey Composition */
.tp-hero-right {
  position: relative;
}

.tp-journey-canvas {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tp-journey-tags-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.tp-journey-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

.tp-journey-tag--subtle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

/* Route Waypoints Track */
.tp-route-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  position: relative;
}

.tp-waypoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.tp-waypoint__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-bottom: 5px;
}

.tp-waypoint__dot.is-start {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.tp-waypoint__dot.is-transit {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.tp-waypoint__dot.is-destination {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.tp-waypoint__info strong {
  display: block;
  font-size: 12px;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.1;
}

.tp-waypoint__info small {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.tp-flight-vector {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 6px;
  margin-top: -14px;
}

.tp-flight-line {
  width: 100%;
  height: 2px;
  border-top: 2px dashed rgba(56, 189, 248, 0.5);
  margin-bottom: 2px;
}

.tp-flight-plane {
  font-size: 11px;
  color: #38bdf8;
  transform: rotate(45deg);
}

/* Floating Itinerary Snippet */
.tp-itinerary-preview-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
}

.tp-itinerary-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 750;
  color: #ffffff;
}

.tp-itinerary-preview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-itinerary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 10px;
  border-radius: 8px;
}

.tp-itinerary-time {
  font-weight: 700;
  color: #f59e0b;
  font-size: 10.5px;
  white-space: nowrap;
}

.tp-itinerary-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-itinerary-detail strong {
  font-weight: 600;
}

/* ==========================================================================
   3. Travel Plan Cards & Grid
   ========================================================================== */

.tp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.tp-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(14, 165, 233, 0.3);
}

.tp-card-cover {
  height: 145px;
  background-size: cover;
  background-position: center;
  background-color: #0284c7;
  background-image: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.tp-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 65%);
}

.tp-card-badge {
  position: relative;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tp-card-type-badge {
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  backdrop-filter: blur(4px);
}

.tp-contrib-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.tp-card-body {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tp-card-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tp-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.tp-card-username {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
  text-decoration: none;
}

.tp-card-username:hover {
  color: #0284c7;
}

.tp-card-user-sub {
  font-size: 0.74rem;
  color: #64748b;
}

.tp-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.tp-card-destination {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tp-card-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tp-card-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-progress-bar-bg {
  background: #e2e8f0;
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  margin: 6px 0;
}

.tp-progress-bar-fill {
  background: linear-gradient(90deg, #0284c7 0%, #10b981 100%);
  height: 100%;
  border-radius: 20px;
  transition: width 0.6s ease;
}

.tp-card-footer {
  margin-top: auto;
  border-color: #f1f5f9 !important;
}

/* ==========================================================================
   4. Plan Detail Page
   ========================================================================== */

.tp-detail-header-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 24px;
}

.tp-detail-cover {
  min-height: 250px;
  background-size: cover;
  background-position: center;
  background-color: #0284c7;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.tp-detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.6) 100%);
}

.tp-detail-cover-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.tp-detail-content-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  padding: 24px;
  margin-bottom: 20px;
}

/* Supporters List */
.tp-supporter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.tp-supporter-item:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.tp-supporter-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   5. Empty States & Dashboard Stats
   ========================================================================== */

.tp-empty-state {
  text-align: center;
  padding: 48px 20px;
  background: #ffffff;
  border-radius: 18px;
  border: 2px dashed #cbd5e1;
  margin: 20px 0;
}

.tp-empty-icon {
  font-size: 2.8rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.tp-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.tp-empty-desc {
  font-size: 0.9rem;
  color: #64748b;
  max-width: 440px;
  margin: 0 auto 18px auto;
  line-height: 1.5;
}

/* Dashboard Metric Cards */
.tp-stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 14px;
}

.tp-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.tp-stat-icon.primary { background: #e0f2fe; color: #0284c7; }
.tp-stat-icon.success { background: #dcfce7; color: #10b981; }
.tp-stat-icon.warning { background: #fef3c7; color: #f59e0b; }
.tp-stat-icon.purple  { background: #ede9fe; color: #8b5cf6; }

/* ==========================================================================
   6. Sidebar Matching Colored Scrollbar & Mobile Offcanvas
   ========================================================================== */

/* ==========================================================================
   Sidebar Matching Colored Scrollbar & Mobile Offcanvas
   ========================================================================== */

.travelplanner-sidebar-backdrop,
.tp-sidebar-backdrop,
.plugin-sidebar-backdrop {
  display: none;
}

.kizmio-travelplanner-page .sg-offcanvas-sidebar,
.tp-shell .sg-offcanvas-sidebar,
.tp-sidebar-wrapper,
.places-detail-sidebar,
.places-sidebar-v2 {
  scrollbar-width: thin;
  scrollbar-color: #0284c7 transparent;
}
.kizmio-travelplanner-page .sg-offcanvas-sidebar::-webkit-scrollbar,
.tp-shell .sg-offcanvas-sidebar::-webkit-scrollbar,
.tp-sidebar-wrapper::-webkit-scrollbar,
.places-detail-sidebar::-webkit-scrollbar,
.places-sidebar-v2::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.kizmio-travelplanner-page .sg-offcanvas-sidebar::-webkit-scrollbar-track,
.tp-shell .sg-offcanvas-sidebar::-webkit-scrollbar-track,
.tp-sidebar-wrapper::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}
.kizmio-travelplanner-page .sg-offcanvas-sidebar::-webkit-scrollbar-thumb,
.tp-shell .sg-offcanvas-sidebar::-webkit-scrollbar-thumb,
.tp-sidebar-wrapper::-webkit-scrollbar-thumb {
  background: #0284c7;
  border-radius: 999px;
}
.kizmio-travelplanner-page .sg-offcanvas-sidebar::-webkit-scrollbar-thumb:hover,
.tp-shell .sg-offcanvas-sidebar::-webkit-scrollbar-thumb:hover,
.tp-sidebar-wrapper::-webkit-scrollbar-thumb:hover {
  background: #0369a1;
}

@media (max-width: 991.98px) {
  .tp-hero-section {
    padding: 28px 22px;
    border-radius: 20px;
    margin-bottom: 20px;
  }
  .tp-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tp-hero-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 767.98px) {
  .tp-sidebar-wrapper {
    position: static;
  }
  .tp-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tp-hero-section {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .tp-hero-title {
    font-size: 1.6rem;
  }
  .tp-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .tp-btn-primary,
  .tp-btn-secondary {
    width: 100%;
  }
  .tp-route-track {
    padding: 10px 8px;
  }
  .tp-waypoint__info strong {
    font-size: 11.5px;
  }
  .tp-waypoint__info small {
    display: none;
  }
  .tp-detail-cover {
    min-height: 200px;
    padding: 18px;
  }

  /* Robust Offcanvas promotion above hero and stacking contexts (Places Pattern) */
  .kizmio-travelplanner-page.sg-offcanvas,
  .tp-shell.sg-offcanvas {
    overflow: visible !important;
  }

  .kizmio-travelplanner-page.sg-offcanvas.active,
  .tp-shell.sg-offcanvas.active {
    position: relative !important;
    z-index: 1000000 !important;
    isolation: isolate;
    overflow: visible !important;
    min-height: max-content !important;
  }

  .kizmio-travelplanner-page.sg-offcanvas .sg-offcanvas-sidebar,
  .tp-shell.sg-offcanvas .sg-offcanvas-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    display: block !important;
    width: min(88vw, 340px) !important;
    max-width: 88vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 14px 12px 80px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: var(--kzm-surface, #fff) !important;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.3) !important;
    z-index: 2 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    scrollbar-width: thin;
    scrollbar-color: #0284c7 transparent;
    transform: translateX(-105%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .kizmio-travelplanner-page.sg-offcanvas.active .sg-offcanvas-sidebar,
  .tp-shell.sg-offcanvas.active .sg-offcanvas-sidebar {
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }

  .kizmio-travelplanner-page.sg-offcanvas.active .sg-offcanvas-sidebar *,
  .tp-shell.sg-offcanvas.active .sg-offcanvas-sidebar * {
    pointer-events: auto;
  }

  .kizmio-travelplanner-page .sg-offcanvas-sidebar::-webkit-scrollbar,
  .tp-shell .sg-offcanvas-sidebar::-webkit-scrollbar {
    width: 5px;
  }

  .kizmio-travelplanner-page .sg-offcanvas-sidebar::-webkit-scrollbar-track,
  .tp-shell .sg-offcanvas-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }

  .kizmio-travelplanner-page .sg-offcanvas-sidebar::-webkit-scrollbar-thumb,
  .tp-shell .sg-offcanvas-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #0284c7;
  }

  .kizmio-travelplanner-page .sg-offcanvas-sidebar::-webkit-scrollbar-thumb:hover,
  .tp-shell .sg-offcanvas-sidebar::-webkit-scrollbar-thumb:hover {
    background: #0369a1;
  }

  .kizmio-travelplanner-page.sg-offcanvas .sg-offcanvas-mainbar,
  .kizmio-travelplanner-page.sg-offcanvas.active .sg-offcanvas-mainbar,
  .tp-shell.sg-offcanvas .sg-offcanvas-mainbar,
  .tp-shell.sg-offcanvas.active .sg-offcanvas-mainbar {
    position: static !important;
    left: 0 !important;
    width: 100% !important;
  }

  .kizmio-travelplanner-page.sg-offcanvas .travelplanner-sidebar-backdrop,
  .kizmio-travelplanner-page.sg-offcanvas .tp-sidebar-backdrop,
  .kizmio-travelplanner-page.sg-offcanvas .plugin-sidebar-backdrop,
  .tp-shell.sg-offcanvas .travelplanner-sidebar-backdrop,
  .tp-shell.sg-offcanvas .tp-sidebar-backdrop,
  .tp-shell.sg-offcanvas .plugin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1;
    background: rgba(15, 23, 42, 0.55);
    pointer-events: auto;
  }

  .kizmio-travelplanner-page.sg-offcanvas.active .travelplanner-sidebar-backdrop,
  .kizmio-travelplanner-page.sg-offcanvas.active .tp-sidebar-backdrop,
  .kizmio-travelplanner-page.sg-offcanvas.active .plugin-sidebar-backdrop,
  .tp-shell.sg-offcanvas.active .travelplanner-sidebar-backdrop,
  .tp-shell.sg-offcanvas.active .tp-sidebar-backdrop,
  .tp-shell.sg-offcanvas.active .plugin-sidebar-backdrop {
    display: block;
  }

  .kizmio-travelplanner-page .places-detail-sidebar,
  .kizmio-travelplanner-page .places-sidebar-v2,
  .tp-shell .places-detail-sidebar,
  .tp-shell .places-sidebar-v2 {
    position: static;
    max-height: none;
  }
}

@media (max-width: 480px) {
  .tp-card-avatar {
    width: 36px;
    height: 36px;
  }
  .tp-stat-card {
    padding: 14px;
    gap: 10px;
  }
  .tp-stat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
}

/* Places Category Card Sidebar Layout for Travel Planner */
.tp-detail-sidebar,
.places-detail-sidebar {
  overflow: hidden;
  border: 1px solid #e5ecf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(18,42,73,.06);
  margin-bottom: 20px;
}
.places-detail-sidebar__identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 16px;
  border-bottom: 1px solid #edf1f5;
  background: linear-gradient(135deg, #f7fafc, #fff);
}
.places-detail-sidebar__identity > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 16px;
}
.places-detail-sidebar__identity small {
  display: block;
  color: #8996a5;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.places-detail-sidebar__identity h2 {
  overflow: hidden;
  margin: 2px 0 0;
  color: #152941;
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.places-detail-sidebar__categories {
  padding: 16px 13px;
}
.places-category-strip__head--sidebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 12px;
}
.places-category-strip__head--sidebar span {
  display: block;
  color: #0284c7;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.places-category-strip__head--sidebar h3 {
  margin: 3px 0 0;
  color: #172b44;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}
.places-category-sidebar-grid {
  display: grid;
  gap: 8px;
}
.places-category-pill--sidebar {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #e7edf4;
  border-radius: 13px;
  background: #f9fbfd;
  color: #172b44;
  text-decoration: none !important;
  transition: transform .2s, border-color .2s, background-color .2s, box-shadow .2s;
}
.places-category-pill--sidebar:hover,
.places-category-pill--sidebar.is-active {
  border-color: rgba(2, 132, 199, .4);
  background: #f0f9ff;
  color: #0284c7;
  transform: translateY(-2px);
}
.places-category-pill--sidebar.is-active {
  box-shadow: inset 0 0 0 1px rgba(2, 132, 199, .18);
}
.places-category-pill--sidebar .places-category-pill__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 15px;
  transition: background-color .2s, color .2s;
}
.places-category-pill--sidebar:hover .places-category-pill__icon,
.places-category-pill--sidebar.is-active .places-category-pill__icon {
  background: #0284c7;
  color: #fff;
}
.places-category-pill__copy {
  min-width: 0;
  flex: 1;
}
.places-category-pill--sidebar strong,
.places-category-pill--sidebar small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.places-category-pill--sidebar strong {
  max-width: none;
  color: #172b44;
  font-size: 11px;
  font-weight: 800;
}
.places-category-pill--sidebar:hover strong,
.places-category-pill--sidebar.is-active strong {
  color: #0284c7;
}
.places-category-pill--sidebar small {
  margin-top: 2px;
  color: #8793a2;
  font-size: 9px;
  font-weight: 600;
}
.places-sidebar-v2 {
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #e6edf4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(16,38,68,.06);
}
.places-sidebar-v2__heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px;
  border-bottom: 1px solid #edf1f5;
}
.places-sidebar-v2__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #0284c7, #0ea5e9);
  color: #fff;
  box-shadow: 0 7px 16px rgba(2,132,199,.2);
}
.places-sidebar-v2__heading h2 {
  margin: 0;
  color: #13263e;
  font-size: 15px;
  font-weight: 850;
}
.places-sidebar-v2__heading p {
  margin: 2px 0 0;
  color: #8a97a6;
  font-size: 10px;
}
.places-sidebar-v2__section {
  padding: 17px 18px;
  border-bottom: 1px solid #edf1f5;
}
.places-sidebar-v2__section h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: #6b798b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.places-sidebar-v2__section h3 i {
  color: #0284c7;
}
.places-discovery-form label:not(.places-sort-radio) {
  margin: 9px 0 5px;
  color: #45566b;
  font-size: 10px;
  font-weight: 750;
}
.places-discovery-form .form-select {
  min-height: 39px;
  border-color: #dfe6ed;
  border-radius: 9px;
  color: #263b54;
  font-size: 12px;
}
.places-discovery-form .form-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2,132,199,.12);
}
.places-sidebar-v2__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding: 17px 18px;
}
.places-filter-apply {
  border-radius: 10px;
  background: #0284c7;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border: 0;
  padding: 8px 14px;
}
.places-filter-apply:hover {
  background: #0369a1;
  color: #fff;
}
.places-filter-reset {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: #68788c;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.places-filter-reset:hover {
  color: #0284c7;
}
.places-community-entry {
  display: block;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(2, 132, 199, .18);
  border-radius: 16px;
  background: linear-gradient(145deg, #f0f9ff, #e0f2fe);
  color: #172b44;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.places-community-entry:hover {
  border-color: rgba(2, 132, 199, .4);
  color: #172b44;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 132, 199, .11);
}
.places-community-entry__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0284c7;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.places-community-entry > strong {
  display: block;
  margin: 5px 0 6px;
  font-size: 14px;
  font-weight: 850;
}
.places-community-entry > small {
  display: block;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}
.places-community-entry__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: #0284c7;
  font-size: 10px;
  font-weight: 850;
}

