/* ============================================
   DESTINATION PAGE - STYLES
   Hero + Bento Grid layout
   ============================================ */

/* Back Navigation */
.dest-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: all;
  transition: background 0.2s var(--ease);
}

.nav-brand:hover {
  background: rgba(255, 255, 255, 0.2);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  /* FIX 2: dark pill , readable over both light and dark hero images */
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: all;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.back-link:hover {
  background: rgba(0, 0, 0, 0.62);
  transform: translateX(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: var(--primary-700);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-location {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-summary {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  line-height: 1.6;
}

/* Stats Bar */
.stats-bar {
  max-width: 1200px;
  margin: -40px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
  display: grid;
  /* minmax lowered to 120px so 5 cards (coastal cities) fit without overflow */
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  /* FIX: without min-width:0 a flex child cannot shrink below its content size */
  min-width: 0;
  overflow: hidden;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}
.stat-text {
  min-width: 0;   /* same fix, needed on the inner wrapper too */
  overflow: hidden;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.green {
  background: var(--primary-50);
  color: var(--primary-500);
}

.stat-icon.amber {
  background: #FEF3C7;
  color: var(--accent-500);
}

.stat-icon.blue {
  background: #DBEAFE;
  color: #2563EB;
}

.stat-icon.purple {
  background: #F3E8FF;
  color: #7C3AED;
}

.stat-icon.rose {
  background: #FFE4E6;
  color: #E11D48;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  white-space: normal;
  line-height: 1.3;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  /* FIX: prevent long timezone strings from blowing out the card */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Bento Grid */
.bento-grid {
  max-width: 1200px;
  margin: 32px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.bento-card:nth-child(1) { animation-delay: 0.05s; }
.bento-card:nth-child(2) { animation-delay: 0.1s; }
.bento-card:nth-child(3) { animation-delay: 0.15s; }
.bento-card:nth-child(4) { animation-delay: 0.2s; }
.bento-card:nth-child(5) { animation-delay: 0.25s; }
.bento-card:nth-child(6) { animation-delay: 0.3s; }
.bento-card:nth-child(7) { animation-delay: 0.35s; }
.bento-card:nth-child(8) { animation-delay: 0.4s; }
.bento-card:nth-child(9) { animation-delay: 0.45s; }

.bento-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
}

.bento-wide {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 2;
}

.bento-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.bento-header svg {
  color: var(--primary-500);
  flex-shrink: 0;
}

.bento-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bento-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Chart Wrapper */
.chart-wrapper {
  position: relative;
  width: 100%;
  max-height: 300px;
}

.chart-wrapper canvas {
  width: 100% !important;
  max-height: 280px;
}

/* Best Time Month Grid */
.month-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.month-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.2s var(--ease);
}

.month-cell:hover {
  transform: translateY(-2px);
}

.month-cell.perfect {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 1.5px solid #34d399;
  box-shadow: 0 2px 12px rgba(16,185,129,0.2), 0 0 0 2px rgba(16,185,129,0.1);
  transform: scale(1.04);
  position: relative;
  z-index: 1;
}

.month-cell.perfect:hover {
  transform: scale(1.07) translateY(-2px);
}

.month-cell.perfect .month-label {
  color: #065f46;
  font-weight: 700;
}

.month-cell.perfect .month-temp {
  color: #065f46;
}

.month-cell.perfect .month-rain {
  color: #047857;
}

.month-cell.ideal {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
}

.month-cell.good {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
}

.month-cell.poor {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.month-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.month-temp {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.month-rain {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.month-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.month-cell.perfect .month-dot {
  background: #10b981;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.3), 0 0 8px rgba(16,185,129,0.4);
}
.month-cell.ideal .month-dot { background: var(--primary-500); }
.month-cell.good .month-dot { background: var(--accent-500); }
.month-cell.poor .month-dot { background: var(--gray-400); }

.month-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.perfect { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
.legend-dot.ideal { background: var(--primary-500); }
.legend-dot.good { background: var(--accent-500); }
.legend-dot.poor { background: var(--gray-400); }

/* How it works toggle */
.besttime-how-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  margin-top: 10px;
}
.besttime-how-btn:hover { color: var(--primary-600); background: var(--primary-50); }
.besttime-how-btn svg { flex-shrink: 0; }

.besttime-how-panel {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.besttime-how-panel p { margin-bottom: 8px; }
.besttime-how-panel p:last-child { margin-bottom: 0; }

.besttime-how-panel .how-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.besttime-how-panel .how-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

/* Geography List */
.geo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.geo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.geo-item svg {
  color: var(--primary-500);
  flex-shrink: 0;
}

.geo-item .geo-label {
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 4px;
}

/* Activities List */
.activities-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-card {
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-400);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.activity-card:hover {
  background: var(--primary-50);
  border-left-color: var(--primary-500);
}

.activity-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.activity-places {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Travel Tips */
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.tip-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Budget Breakdown */
.budget-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.budget-tier {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.budget-tier.traveler {
  background: var(--gray-50);
}

.budget-tier.comfortable {
  background: var(--primary-50);
  border-color: var(--primary-200);
}

.budget-tier.luxury {
  background: #fffbeb;
  border-color: #fde68a;
}

.budget-tier.luxury .budget-fill {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.budget-tier.luxury .budget-tier-amount {
  color: #b45309;
}

.budget-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.budget-tier-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.budget-tier-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-600);
}

.budget-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.budget-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary-400), var(--primary-500));
  transition: width 0.8s var(--ease);
}

.budget-label-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Similar Destinations */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

@media (min-width: 1200px) {
  .similar-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (min-width: 1600px) {
  .similar-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.similar-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease);
}

.similar-card:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Photo thumbnail */
.similar-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.similar-thumb-gradient {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.similar-thumb-initial {
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-serif, Georgia, serif);
  line-height: 1;
  user-select: none;
}

.similar-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.similar-info {
  flex: 1;
  min-width: 0;
}

.similar-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.similar-country {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.similar-pct {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

/* Similar explain panel */
.bento-header {
  flex-wrap: wrap;
  gap: 8px;
}

.similar-explain {
  margin-left: auto;
  position: relative;
}

.similar-explain-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.similar-explain-btn:hover,
.similar-explain-btn.active {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-700);
}

.similar-explain-btn:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
}

.similar-explain-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, 90vw);
  max-height: 80vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 16px 18px;
  z-index: 100;
}

.similar-explain-intro {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.similar-explain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
  padding: 0;
}

.similar-explain-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sim-factor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.similar-explain-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  line-height: 1.5;
  font-style: italic;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Error State */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

.error-state h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.error-state p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .bento-tall {
    grid-row: span 1;
  }

  .month-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    height: 360px;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-summary {
    font-size: 0.9375rem;
  }

  .stats-bar {
    margin-top: -28px;
    padding: 0 16px;
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid {
    padding: 0 16px;
    gap: 16px;
  }

  .bento-card {
    padding: 20px;
  }

  .month-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .similar-grid {
    grid-template-columns: 1fr;
  }

  .dest-nav {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 300px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .month-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* ── Plan Your Trip CTA ── */
.hero-cta-row {
  margin-top: 20px;
}

.btn-plan-trip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--primary-500);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-plan-trip:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.15) inset;
}

.btn-plan-trip svg:last-child {
  transition: transform 0.2s var(--ease);
}

.btn-plan-trip:hover svg:last-child {
  transform: translateX(3px);
}

.btn-plan-trip:focus-visible {
  outline: 3px solid rgba(255,255,255,0.8);
  outline-offset: 3px;
}

/* ── Sticky Plan Your Trip bar ── */
.sticky-plan-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: 12px 24px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-plan-bar.visible {
  transform: translateY(0);
}

.sticky-plan-bar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sticky-plan-bar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-plan-bar-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.sticky-plan-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(15,81,50,0.3);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.sticky-plan-bar-btn:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,81,50,0.4);
}

.sticky-plan-bar-btn:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .sticky-plan-bar {
    padding: 10px 16px;
  }
  .sticky-plan-bar-info {
    display: none;
  }
  .sticky-plan-bar-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Focus ring for similar-card links */
.similar-card:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
}

/* Focus ring for back-link */
.back-link:focus-visible {
  outline: 3px solid rgba(255,255,255,0.8);
  outline-offset: 3px;
}
/* ── POI language toggle buttons ─────────────────────────────────────────── */
.poi-lang-btn {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-300);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.poi-lang-btn:hover {
  border-color: var(--primary-400);
  color: var(--primary-600);
}
.poi-lang-btn--active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  font-weight: 600;
}
.poi-lang-btn--active:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: #fff;
}

/* ── POI chip ─────────────────────────────────────────────────────────────── */
.poi-chip {
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--primary-100);
  display: inline-block;
}