/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: #0f172a;
  background-color: #f8fafc;
  min-height: 100vh;
}

.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Shared Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Common Header Styles */
.header,
.detail-header {
  color: #fff;
  position: relative;
  overflow: hidden;
}

.header {
  background: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.35)), url("h2.jpg") center/cover no-repeat;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e2e8f0;
  min-height: 160px;
}

.detail-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(139, 92, 246, 0.85) 50%, rgba(236, 72, 153, 0.9) 100%), url("h2.jpg") center/cover no-repeat;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.detail-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.header .container,
.detail-header .container {
  position: relative;
  z-index: 2;
}

.header .container {
  padding: 1.2rem 1rem;
}

.header-title,
.header-subtitle,
.detail-title,
.detail-subtitle {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-title,
.detail-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header-title {
  font-size: 2.5rem;
}

.detail-title {
  font-size: 2.75rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
}

.header-subtitle {
  font-size: 1.25rem;
}

.detail-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.subtitle-separator {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

/* Main Layout */
.main {
  padding: 2rem 0;
}

.detail-page {
  min-height: 100vh;
  padding-bottom: 2rem;
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

.content-grid,
.detail-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.full-width {
  grid-column: 1 / -1;
}

/* Shared Badge Styles */
.month-badge,
.vacation-type,
.cost-badge,
.location-badge,
.duration-badge,
.copy-link-btn,
.view-details-btn,
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.month-badge,
.location-badge,
.duration-badge {
  padding: 0.5rem 1rem;
}

.back-button {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

/* Badge Gradient Backgrounds */
.month-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
  padding: 0.25rem 0.625rem;
}

.location-badge {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0369a1;
  border-color: #7dd3fc;
}

.duration-badge {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #334155;
  border-color: #cbd5e1;
}

.copy-link-btn {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #6b21a8;
  border-color: #c4b5fd;
  cursor: pointer;
}

.view-details-btn {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-color: #93c5fd;
  text-decoration: none;
}

/* Badge Pseudo-elements */
.location-badge::before,
.vacation-type::before,
.cost-badge::before,
.copy-link-btn::before,
.view-details-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  z-index: 1;
  transition: all 0.3s ease;
}

.location-badge::before {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.vacation-type::before {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
}

.vacation-type.family::before {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #93c5fd;
}

.vacation-type.couple::before {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  border-color: #f9a8d4;
}

.copy-link-btn::before {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.view-details-btn::before {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

/* Cost Badge Variants */
.cost-badge {
  position: relative;
  overflow: hidden;
}

.cost-badge::before {
  border-radius: 9999px;
  z-index: 1;
}

.cost-low::before {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #86efac;
}

.cost-medium::before {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fcd34d;
}

.cost-high::before {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #fca5a5;
}

.cost-low { color: #15803d; }
.cost-medium { color: #a16207; }
.cost-high { color: #dc2626; }

/* Badge Content Z-index */
.location-badge .location-icon,
.location-badge .location-text,
.vacation-type .type-icon,
.vacation-type .type-label,
.cost-badge .cost-icon,
.cost-badge .cost-amount,
.copy-link-btn .copy-icon,
.copy-link-btn .copy-text,
.view-details-btn .view-icon,
.view-details-btn .view-text {
  position: relative;
  z-index: 2;
}

/* Hover Effects - Unified */
.month-badge:hover,
.vacation-type:hover,
.cost-badge:hover,
.location-badge:hover,
.duration-badge:hover,
.copy-link-btn:hover,
.view-details-btn:hover,
.back-button:hover,
.relevant-link:hover,
.timeline-card[data-stub]:hover {
  transform: translateY(-2px);
}

.month-badge:hover,
.vacation-type:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cost-badge:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.location-badge:hover {
  box-shadow: 0 4px 8px rgba(3, 105, 161, 0.2);
  border-color: #38bdf8;
}

.location-badge:hover::before {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.duration-badge:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-color: #94a3b8;
}

.duration-badge:hover::before {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.back-button:hover {
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.vacation-type.family:hover::before {
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
  border-color: #60a5fa;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.vacation-type.couple:hover::before {
  background: linear-gradient(135deg, #fbcfe8 0%, #f9a8d4 100%);
  border-color: #ec4899;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.cost-low:hover::before {
  background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
  border-color: #4ade80;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.cost-medium:hover::before {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.cost-high:hover::before {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.copy-link-btn:hover {
  box-shadow: 0 4px 8px rgba(107, 33, 168, 0.2);
}

.copy-link-btn:hover::before {
  background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
}

.copy-link-btn.copied {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #86efac;
  color: #15803d;
}

.copy-link-btn.copied::before {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.view-details-btn:hover {
  box-shadow: 0 4px 8px rgba(30, 64, 175, 0.2);
}

.view-details-btn:hover::before {
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
}

.vacation-type:hover .type-icon {
  transform: scale(1.1);
}

/* Badge Icons */
.month-icon,
.location-icon,
.cost-icon,
.copy-icon,
.view-icon,
.back-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.month-icon {
  width: 0.875rem;
  height: 0.875rem;
  stroke: currentColor;
  stroke-width: 2;
}

.location-icon {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  filter: drop-shadow(0 1px 2px rgba(3, 105, 161, 0.2));
}

.cost-icon,
.copy-icon,
.view-icon,
.back-icon {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
}

.cost-icon {
  width: 1.1rem;
  height: 1.1rem;
  font-weight: bold;
}

.duration-badge::before {
  content: "⏱️";
  font-size: 0.875rem;
}

/* Badge Text */
.month-text,
.type-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.vacation-type.family .type-label {
  color: #1e40af;
}

.vacation-type.couple .type-label {
  color: #be185d;
}

.location-text {
  font-weight: 600;
  color: #0369a1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Timeline Styles */
.timeline-section {
  position: relative;
}

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
}

.filter-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-icon {
  color: #475569;
}

.year-filter {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background-color: white;
  color: #374151;
  outline: none;
  transition: all 0.2s;
}

.year-filter:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.timeline-container {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #3b82f6;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.timeline-dot {
  position: absolute;
  left: 1.5rem;
  width: 1rem;
  height: 1rem;
  background-color: #3b82f6;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.timeline-dot.timeline-number {
  background: #fff;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  font-weight: bold;
  font-size: 1.1rem;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0.7rem;
  top: 0.1rem;
}

/* Card Styles - Shared */
.timeline-card,
.detail-info-card,
.map-container {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-card {
  margin-left: 4rem;
  width: 100%;
  border-radius: 0.5rem;
}

.detail-info-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.detail-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-card:hover,
.map-container:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.detail-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.1), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

.detail-info-card:hover::before {
  opacity: 1;
}

.timeline-card[data-stub] {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card[data-stub]:hover {
  box-shadow: 0 8px 16px -1px rgba(0, 0, 0, 0.15);
}

/* Card Content */
.card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-main {
  flex: 1;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  flex: 1;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-bottom: 0.25rem;
}

.card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 1px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.timeline-card:hover .card-title::after {
  width: 4rem;
  opacity: 1;
}

.card-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.badge-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  min-width: 120px;
}

.badge-group .month-badge,
.badge-group .vacation-type,
.badge-group .cost-badge {
  width: 100%;
  justify-content: center;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Info Grid (Detail Page) */
.info-section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.01em;
}

.info-section-title svg {
  color: #3b82f6;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.info-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem;
  background: rgba(248, 250, 252, 0.5);
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(203, 213, 225, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.info-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.info-label::before {
  content: "•";
  color: #3b82f6;
  font-size: 1rem;
  font-weight: bold;
}

.info-value {
  font-size: 1.25rem;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Map Styles */
.map-section {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.map-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.map-interactive,
.detail-map-container {
  position: relative;
  background-color: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.map-interactive {
  height: 20rem;
}

.detail-map-container {
  height: 24rem;
  border: 2px solid #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.detail-map-container:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.vacation-map {
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
}

.map-legend {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 0.375rem;
  padding: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-icon {
  font-size: 0.875rem;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legend-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.custom-div-icon {
  background: transparent !important;
  border: none !important;
}

.custom-marker {
  transition: transform 0.2s ease-in-out;
}

.custom-marker:hover {
  transform: scale(1.1);
}

/* Stats */
.stats-container {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.stat-label {
  font-size: 0.875rem;
  color: #475569;
}

.stat-value {
  font-weight: 600;
  color: #0f172a;
}

/* Links Section */
.relevant-links-section,
.detail-links-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.detail-links-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px dashed #e2e8f0;
}

.relevant-links-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #475569;
}

.relevant-links-header .header-icon {
  width: 1rem;
  height: 1rem;
  color: #3b82f6;
}

.relevant-links-header .header-text {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #334155;
}

.relevant-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.relevant-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 0.5rem;
  color: #0369a1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.relevant-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.relevant-link:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(3, 105, 161, 0.2);
  border-color: #38bdf8;
}

.relevant-link:hover::before {
  opacity: 1;
}

.relevant-link .link-icon,
.relevant-link .link-text,
.relevant-link .external-icon {
  position: relative;
  z-index: 2;
}

.relevant-link .link-icon {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(3, 105, 161, 0.2));
}

.relevant-link .link-text {
  flex: 1;
  color: #0c4a6e;
  font-weight: 600;
}

.relevant-link .external-icon {
  width: 0.875rem;
  height: 0.875rem;
  min-width: 0.875rem;
  flex-shrink: 0;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.relevant-link:hover .external-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Disclaimer Section */
.disclaimer-section {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
  border: 2px solid #fcd34d;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(252, 211, 77, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.disclaimer-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.1) 10px, rgba(255, 255, 255, 0.1) 20px);
  pointer-events: none;
}

.disclaimer-icon-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.disclaimer-icon {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  color: #d97706;
  margin-top: 0.125rem;
  filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.3));
  animation: pulse 2s ease-in-out infinite;
}

.disclaimer-content {
  flex: 1;
}

.disclaimer-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.disclaimer-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #78350f;
  margin: 0;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Back Button Container */
.back-button-container {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 2px solid #e2e8f0;
  display: flex;
  justify-content: center;
  position: relative;
}

.back-button-container::before {
  content: "✈";
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  background: white;
  padding: 0 1rem;
  color: #3b82f6;
  opacity: 0.7;
}

/* Loading & Error States */
.loading,
.loading-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  color: #475569;
}

.loading-detail {
  flex-direction: column;
  padding: 4rem 0;
  font-size: 1.125rem;
  gap: 1rem;
}

.loading-detail::before {
  content: "✈";
  font-size: 3rem;
  animation: float 2s ease-in-out infinite;
}

.error-detail {
  text-align: center;
  padding: 4rem 2rem;
}

.error-title {
  font-size: 2rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.no-results {
  text-align: center;
  padding: 3rem 0;
  color: #475569;
}

/* Coming Soon Button */
.coming-soon-btn {
  width: 100%;
  margin-top: 1.5rem;
  background-color: #f1f5f9;
  color: #334155;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.coming-soon-btn:hover {
  background-color: #e2e8f0;
}

/* Responsive Design */
@media (min-width: 640px) {
  .timeline-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .card-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .detail-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Mobile & Tablet Breakpoints */
@media (max-width: 1024px) {
  .map-section {
    position: static;
    margin-top: 2rem;
  }

  .map-interactive {
    height: 18rem;
  }
}

@media (max-width: 768px) {
  .detail-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
  }

  .detail-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .detail-subtitle {
    font-size: 1rem;
  }

  .detail-info-card {
    padding: 1.5rem;
  }

  .info-section-title {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .info-item {
    padding: 0.875rem;
  }

  .info-value {
    font-size: 1.125rem;
  }

  .detail-map-container {
    height: 18rem;
  }

  .back-button-container {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .disclaimer-section {
    margin-top: 2rem;
    padding: 1.5rem;
  }

  .disclaimer-icon-wrapper {
    gap: 1rem;
  }

  .disclaimer-icon {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
  }

  .disclaimer-title {
    font-size: 1rem;
  }

  .disclaimer-text {
    font-size: 0.875rem;
    line-height: 1.6;
  }
}

@media (max-width: 640px) {
  .header {
    min-height: 110px;
  }

  .header-title {
    font-size: 1.5rem;
  }

  .header-subtitle {
    font-size: 1rem;
  }

  .header .container {
    padding: 1rem;
  }

  .main {
    padding: 1rem 0;
  }

  .timeline-card {
    margin-left: 3rem;
    padding: 1rem;
    touch-action: manipulation;
  }

  .timeline-dot {
    left: 1rem;
  }

  .timeline-line {
    left: 1.5rem;
  }

  .card-content {
    gap: 0.75rem;
    position: relative;
  }

  .card-header {
    margin-bottom: 0.75rem;
    position: relative;
  }

  .card-details {
    margin-bottom: 0.5rem;
    gap: 0.75rem;
  }

  .badge-group {
    min-width: 110px;
    gap: 0.375rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
  }

  .timeline-title {
    font-size: 1.25rem;
  }

  .filter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .year-filter {
    width: 100%;
    text-align: center;
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
  }

  .map-interactive {
    height: 16rem;
  }

  .map-container {
    padding: 1rem;
  }

  .map-title {
    font-size: 1.125rem;
  }

  .stats-container {
    margin-top: 1rem;
    gap: 0.5rem;
  }

  .stat-item {
    padding: 0.375rem 0;
  }

  .stat-label,
  .stat-value {
    font-size: 0.8rem;
  }

  .relevant-links-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .relevant-links-header {
    margin-bottom: 0.5rem;
  }

  .relevant-links-header .header-text {
    font-size: 0.8rem;
  }

  .relevant-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .relevant-link .link-icon {
    width: 0.875rem;
    height: 0.875rem;
    min-width: 0.875rem;
  }

  .relevant-link .external-icon {
    width: 0.75rem;
    height: 0.75rem;
    min-width: 0.75rem;
  }

  .month-badge,
  .vacation-type,
  .cost-badge,
  .location-badge,
  .duration-badge {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .coming-soon-btn {
    touch-action: manipulation;
    min-height: 44px;
  }

  .card-title {
    font-size: 1.25rem;
    padding-bottom: 0.2rem;
    padding-right: 120px;
  }

  .card-title::after {
    width: 2.5rem;
  }

  .timeline-card:hover .card-title::after {
    width: 3rem;
  }

  .location-badge {
    padding: 0.375rem 0.75rem;
  }

  .location-text {
    font-size: 0.8rem;
  }

  .duration-badge {
    padding: 0.25rem 0.625rem;
    font-size: 0.8rem;
  }

  .duration-badge::before {
    font-size: 0.8rem;
  }

  .cost-badge {
    padding: 0.25rem 0.625rem;
    font-size: 0.8rem;
  }

  .cost-icon {
    width: 1rem;
    height: 1rem;
  }

  .month-icon {
    width: 0.75rem;
    height: 0.75rem;
  }

  .location-icon {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
  }
}

@media (max-width: 600px) {
  .badge-group {
    gap: 0.375rem;
    min-width: 100px;
  }

  .month-badge,
  .vacation-type,
  .cost-badge {
    padding: 0.2rem 0.5rem;
  }

  .month-text,
  .type-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .timeline-card {
    margin-left: 2.5rem;
    padding: 0.875rem;
  }

  .timeline-dot.timeline-number {
    left: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    font-size: 1rem;
  }

  .timeline-line {
    left: 1.25rem;
  }

  .card-title {
    font-size: 1.125rem;
    line-height: 1.4;
    padding-right: 110px;
  }

  .badge-group {
    min-width: 100px;
    gap: 0.25rem;
  }

  .month-badge,
  .vacation-type,
  .cost-badge {
    padding: 0.2rem 0.5rem;
  }

  .month-text,
  .type-label {
    font-size: 0.65rem;
  }

  .location-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
  }

  .duration-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }

  .cost-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }

  .relevant-links-section {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
  }

  .relevant-link {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
  }

  .copy-link-btn,
  .view-details-btn {
    padding: 0.3rem 0.625rem;
    font-size: 0.75rem;
  }

  .copy-icon,
  .view-icon {
    width: 0.875rem;
    height: 0.875rem;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .detail-subtitle {
    font-size: 0.875rem;
  }

  .detail-content {
    gap: 1.5rem;
  }
}
