/* Design System Variables */
:root {
  color-scheme: dark;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-color: #0b0c10;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(15, 15, 20, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 2px;
  --accent-color: #e5c583;
  /* Warm gold tint for classic photo feeling */
  --accent-hover: #f3dca3;
  --transition-speed: 0.4s;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Container & Image */
.fullscreen-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background-color: var(--bg-color);
}

.fullscreen-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% top;
  filter: brightness(1.15);
  animation: subtleZoom 25s ease-out infinite alternate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Ken Burns / Subtle Zoom Animation */
@keyframes subtleZoom {
  0% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1.07);
  }
}

/* Overlay Gradients for Depth and Text Contrast */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.05) 50%,
      rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  transition: opacity var(--transition-speed) ease;
}

/* Content Layout */
.content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5rem 2.5rem 2.5rem 2.5rem;
  transition: opacity var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1),
    transform var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* Control buttons (Toggle UI) */
.ui-toggle-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ui-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.ui-toggle-btn:active {
  transform: translateY(0);
}

/* Hero Title Card */
.main-content {
  max-width: 480px;
  align-self: flex-start;
  margin-block-start: auto;
  margin-block-end: 2rem;
}

.main-content .glass-card {
  padding: 2rem;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: slideUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.subtitle a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.subtitle a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}


/* Premium Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--text-primary);
  color: #000000;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-color);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 25px rgba(229, 197, 131, 0.3);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* Card separator */
.card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.75rem 0;
}

/* Contact Info Styling */
.contact-info {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.contact-info strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}


/* Footer / Extra info */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Floating Clean Canvas Indicator when UI is hidden */
.restore-ui-indicator {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.restore-ui-indicator.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Hidden UI State */
.ui-hidden .content-wrapper {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.ui-hidden .overlay {
  opacity: 0.3;
  /* Keep a minimal hint of gradient or dim completely */
}

/* Responsive adjust */
@media (max-width: 600px) {
  .fullscreen-bg img {
    animation: none;
    filter: none;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
  }

  .logo {
    font-size: 1.85rem;
  }

  .content-wrapper {
    padding: 2.75rem 1.5rem 1.5rem 1.5rem;
  }

  .title {
    font-size: 1.85rem;
  }

  .main-content .glass-card {
    padding: 1.5rem;
  }

  .glass-card {
    padding: 1.75rem;
  }

  .restore-ui-indicator {
    top: 1.5rem;
    right: 1.5rem;
  }
}

/* Dashboard Specific Styles */
.dashboard-page {
  overflow-y: auto !important;
}

.dashboard-wrapper {
  position: relative;
  inline-size: 100%;
  min-block-size: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 3.5rem 2.5rem 2.5rem 2.5rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 2rem;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(var(--glass-blur));
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.dashboard-main {
  flex-grow: 1;
}

.dashboard-title-section {
  margin-block-end: 2.5rem;
}

.dashboard-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.dashboard-subtitle {
  font-size: 1.25rem;
  color: var(--accent-color);
  font-weight: 500;
  margin-block-start: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-block-end: 4rem;
}

@media (min-width: 1024px) {
  .grid-col-span-2 {
    grid-column: span 2;
  }
}

.widget-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.widget-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 1rem;
}

.widget-icon {
  flex-shrink: 0;
}

.widget-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-block-end: 1.5rem;
}

.btn-full-width {
  width: 100%;
  justify-content: center;
  margin-block-start: auto;
}

/* Folder shortcuts styles */
.folder-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-block-end: 2rem;
}

.folder-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
}

.folder-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

/* Calendar event list */
.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-block-end: 2rem;
}

.calendar-event {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(229, 197, 131, 0.1);
  border: 1px solid rgba(229, 197, 131, 0.2);
  border-radius: 8px;
  min-inline-size: 50px;
  block-size: 50px;
}

.event-day {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1.1;
}

.event-month {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-color);
  text-transform: uppercase;
}

.event-details h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-block-end: 0.15rem;
}

.event-details p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Tabs for Itinerary */
.tabs-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.itinerary-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.4rem;
  border-radius: 50px;
  align-self: flex-start;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: var(--text-primary);
  color: #000000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Timeline Layout */
.timeline {
  position: relative;
  padding-inline-start: 1.5rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-inline-start: 0.75rem;
}

.timeline-item {
  position: relative;
}

.timeline-badge {
  position: absolute;
  inset-inline-start: calc(-1.5rem - 13px);
  top: 2px;
  background: var(--accent-color);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  border: 3px solid #111218;
  white-space: nowrap;
}

.timeline-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 1.25rem;
  border-radius: 16px;
  margin-inline-start: 0.5rem;
}

.timeline-panel h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-block-end: 0.5rem;
}

.timeline-panel p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Family Directory Contacts */
.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 1.25rem;
  border-radius: 16px;
}

.contact-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-block-end: 0.25rem;
}

.contact-role {
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-block-end: 0.75rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.contact-link:hover {
  color: var(--accent-color);
}

/* Utilities info lists */
.info-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-block-end: 0.75rem;
  border-block-end: 1px solid rgba(255, 255, 255, 0.05);
  padding-block-end: 0.35rem;
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tips-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.font-mono {
  font-family: monospace;
}

.dashboard-overlay {
  background: rgba(0, 0, 0, 0.5) !important;
}

/* Dashboard Responsive adjust */
@media (max-width: 1024px) {
  .logo {
    font-size: 2.0rem;
  }

  .dashboard-wrapper {
    padding: 2.75rem 1.5rem 1.5rem 1.5rem;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    margin-block-end: 1.5rem;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .dashboard-title {
    font-size: 2.5rem;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .grid-col-span-2 {
    grid-column: span 1;
  }
  .itinerary-tabs {
    flex-wrap: wrap;
    border-radius: 16px;
    align-self: stretch;
  }
  .tab-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}


/* Status Badge Styles */
.badge-tbd {
  background: rgba(229, 197, 131, 0.18);
  border: 1px solid rgba(229, 197, 131, 0.65);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  text-transform: uppercase;
  margin-inline-start: 0.8rem; /* places badge directly next to the title text */
  box-shadow: 0 0 10px rgba(229, 197, 131, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* Password Gate Styles (used on index.html) */
.password-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.password-gate.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.password-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.password-gate.visible .password-card {
  transform: translateY(0);
}

.password-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 1rem;
}

.password-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
}

.password-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-block-end: 1.5rem;
}

.input-group {
  margin-block-end: 1rem;
}

.input-group input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  text-align: center;
}

.input-group input:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(229, 197, 131, 0.15);
}

.error-msg {
  font-size: 0.85rem;
  color: #ff5e5e;
  height: 20px;
  margin-block-end: 1rem;
  font-weight: 500;
}

.password-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.password-actions button, 
.password-actions a,
.password-actions .btn-secondary {
  flex: 1;
  justify-content: center;
}

/* Card Scrim Overlay for TBD state */
.widget-card.scrimmed {
  position: relative;
}

.widget-card.scrimmed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 16, 0.55);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  border-radius: inherit;
  z-index: 5;
  pointer-events: auto; /* blocks clicks on nested links/tabs */
}

/* Ensure the header text and the TBD badge remain readable on top of the scrim! */
.widget-card.scrimmed .widget-header {
  position: relative;
  z-index: 6; /* above the scrim ::after overlay */
}

/* Countdown Banner Styles */


.countdown-container {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 80px);
  gap: 0.75rem;
  text-align: center;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.6rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.countdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(229, 197, 131, 0.15);
  transform: translateY(-2px);
}

.countdown-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-family);
  line-height: 1.2;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-block-start: 0.25rem;
}

/* Mobile responsive for countdown container */
@media (max-width: 1024px) {
  .status-countdown-column .countdown-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Status & Todo Section Styles */
.status-section, .todo-section {
  width: 100%;
  margin-block-end: 2rem;
  padding: 1.75rem 2rem;
}

.status-header, .todo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.status-header h2, .todo-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.status-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.status-text-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.status-countdown-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  align-self: center;
}

.status-countdown-column .countdown-container {
  display: flex;
  gap: 0.75rem;
  margin-block-end: 1rem;
}

.status-countdown-column .countdown-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Mobile responsive for status content */
@media (max-width: 1024px) {
  .status-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .status-countdown-column {
    width: 100%;
    align-self: stretch;
  }
}

.status-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-pill {
  background: rgba(229, 197, 131, 0.1);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Markdown Status Text styling */
#markdown-status-container p {
  color: var(--text-secondary);
  margin-block-end: 1.25rem;
}

/* Markdown Checklist / List styling */
#markdown-todo-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#markdown-todo-container li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

#markdown-todo-container li input[type="checkbox"] {
  accent-color: var(--accent-color);
  cursor: default;
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Strike-through for checked checklist items */
#markdown-todo-container li:has(input[type="checkbox"]:checked) {
  text-decoration: line-through;
  color: var(--text-muted);
}



/* Shared Folder Banner Styles */
.drive-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-block-end: 2rem;
  padding: 1.5rem 2rem;
  width: 100%;
}

.drive-banner-info {
  flex: 1 1 auto;
}

.drive-banner-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 0.5rem;
}

.drive-banner-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.drive-banner-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.drive-banner-action {
  flex: 0 0 auto;
}

.drive-banner-action .btn-primary {
  white-space: nowrap;
}

/* Mobile responsive for drive banner */
@media (max-width: 1024px) {
  .drive-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .drive-banner-action .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Hyperlink styling inside markdown containers */
#markdown-status-container a,
#markdown-todo-container a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed rgba(229, 197, 131, 0.4);
  transition: all 0.2s ease;
}

#markdown-status-container a:hover,
#markdown-todo-container a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Horizontal Crawl Ticker */
horizontal-crawl,
.horizontal-crawl {
  position: absolute;
  top: 0;
  left: -10px;
  width: calc(100% + 20px);
  overflow: hidden;
  background: rgba(15, 15, 20, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 0;
  z-index: 5;
  display: block;
}

.crawl-track {
  display: flex;
  width: max-content;
}

.crawl-group {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  animation: crawl 20s linear infinite;
  white-space: nowrap;
}

.crawl-group span {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-family: 'Outfit', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

.crawl-group .separator {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

@media (max-width: 600px) {
  horizontal-crawl,
  .horizontal-crawl {
    padding: 0.45rem 0;
  }
  
  .crawl-group span {
    font-size: 0.85rem;
  }
  
  .crawl-group {
    gap: 2rem;
    padding-right: 2rem;
  }
}

/* Cities Map Page Specific Styles */
.cities-wrapper {
  position: relative;
  inline-size: 100%;
  min-block-size: 100vh;
  height: 100vh;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 3.25rem 2rem 1.25rem 2rem;
  gap: 1rem;
  overflow: hidden;
}

.cities-header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cities-title-group h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cities-title-group p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Category Filter Tabs */
.city-filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.city-filter-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.25s ease;
}

.city-filter-btn:hover {
  border-color: rgba(229, 197, 131, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.city-filter-btn.active {
  background: rgba(229, 197, 131, 0.18);
  border-color: var(--accent-color);
  color: var(--accent-color);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(229, 197, 131, 0.15);
}

/* Main Map & Cards Split Layout */
.cities-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  flex: 1;
  min-height: 380px;
  height: calc(100vh - 275px);
  align-items: stretch;
}

@media (max-width: 992px) {
  .cities-layout-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }
}

/* Map Wrapper */
.cities-map-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  height: 100%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

#cities-map {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background-color: #0b0c10;
  z-index: 1;
}

/* Leaflet Custom Styling */
.leaflet-container {
  font-family: var(--font-family) !important;
  background: #e8ecef !important;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-control-zoom a {
  background-color: rgba(20, 22, 30, 0.85) !important;
  color: var(--accent-color) !important;
  border-color: var(--glass-border) !important;
  backdrop-filter: blur(8px);
}

.leaflet-control-zoom a:hover {
  background-color: rgba(35, 38, 50, 0.95) !important;
  color: #ffffff !important;
}

.leaflet-popup-content-wrapper {
  background: rgba(18, 20, 28, 0.92) !important;
  color: #ffffff !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
  padding: 0.25rem !important;
}

.leaflet-popup-tip {
  background: rgba(18, 20, 28, 0.92) !important;
  border: 1px solid var(--glass-border) !important;
}

.custom-popup-content {
  padding: 0.5rem;
  max-width: 240px;
}

.custom-popup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.custom-popup-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.custom-popup-hangul {
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 600;
  background: rgba(229, 197, 131, 0.12);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.custom-popup-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.custom-popup-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.custom-popup-btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
  border: 1px solid rgba(229, 197, 131, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.custom-popup-btn:hover {
  background: var(--accent-color);
  color: #0b0c10;
}

/* Custom Callout System for Map Pins & Labels */
.custom-leaflet-marker {
  overflow: visible !important;
}

.city-callout-wrapper {
  position: relative;
  width: 20px;
  height: 20px;
}

/* Callout Center Pin Dot */
.callout-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 14px rgba(229, 197, 131, 0.8);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.callout-pin-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-color);
  animation: pulsePin 2.2s infinite ease-out;
}

@keyframes pulsePin {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.callout-pin-dot.special-capital {
  background: #ff4747;
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 71, 71, 0.9);
}

.callout-pin-dot.special-capital::after {
  border-color: #ff4747;
}

.callout-pin-dot.north-korea {
  background: #627b8f;
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(98, 123, 143, 0.7);
}

.callout-pin-dot.north-korea::after {
  border-color: #627b8f;
}

/* Callout Pill Label */
.callout-pill {
  position: absolute;
  white-space: nowrap;
  background: rgba(14, 16, 24, 0.92);
  color: #ffffff;
  border: 1px solid rgba(229, 197, 131, 0.45);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4;
  pointer-events: auto;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.callout-pill .pill-hangul {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.72rem;
  background: rgba(229, 197, 131, 0.12);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
}

.callout-pill:hover {
  background: var(--accent-color);
  color: #0b0c10;
  border-color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.callout-pill:hover .pill-hangul {
  color: #0b0c10;
  background: rgba(0, 0, 0, 0.15);
}

/* Callout Leader Line (Connector Arm) */
.callout-line {
  position: absolute;
  background: rgba(229, 197, 131, 0.75);
  height: 1.5px;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

/* Callout Directional Offsets & Angles */

/* Top-Right (e.g. Seoul, Gyeongju, Gangneung, Hamhung) */
.dir-top-right .callout-pill {
  left: 32px;
  bottom: 20px;
}
.dir-top-right .callout-line {
  width: 28px;
  top: 6px;
  left: 8px;
  transform-origin: left center;
  transform: rotate(-38deg);
}

/* Top-Left (e.g. Pyongyang, Daegu) */
.dir-top-left .callout-pill {
  right: 32px;
  bottom: 20px;
}
.dir-top-left .callout-line {
  width: 28px;
  top: 6px;
  right: 8px;
  transform-origin: right center;
  transform: rotate(38deg);
}

/* Left (e.g. Incheon, Jeonju, Sejong) */
.dir-left .callout-pill {
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
}
.dir-left .callout-line {
  width: 20px;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

/* Right (e.g. Ulsan, Daejeon) */
.dir-right .callout-pill {
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
}
.dir-right .callout-line {
  width: 20px;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
}

/* Bottom-Right (e.g. Suwon, Busan, Jeju) */
.dir-bottom-right .callout-pill {
  left: 32px;
  top: 20px;
}
.dir-bottom-right .callout-line {
  width: 28px;
  bottom: 6px;
  left: 8px;
  transform-origin: left center;
  transform: rotate(38deg);
}

/* Bottom-Left (e.g. Gwangju) */
.dir-bottom-left .callout-pill {
  right: 32px;
  top: 20px;
}
.dir-bottom-left .callout-line {
  width: 28px;
  bottom: 6px;
  right: 8px;
  transform-origin: right center;
  transform: rotate(-38deg);
}

/* City Cards Sidebar List */
.cities-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  max-height: calc(100vh - 275px);
  overflow-y: auto;
  padding-right: 0.3rem;
}

@media (max-width: 992px) {
  .cities-sidebar {
    max-height: 540px;
  }
}

.cities-sidebar::-webkit-scrollbar {
  width: 6px;
}

.cities-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

.cities-sidebar::-webkit-scrollbar-thumb {
  background: rgba(229, 197, 131, 0.3);
  border-radius: 3px;
}

.cities-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

.city-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  position: relative;
}

.city-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 197, 131, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: rgba(22, 24, 34, 0.55);
}

.city-card.active-selected {
  border-color: var(--accent-color);
  background: rgba(229, 197, 131, 0.08);
  box-shadow: 0 0 16px rgba(229, 197, 131, 0.15);
}

.city-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.city-card-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.city-name-en {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.city-name-kr {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color);
}

.city-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.city-badge.capital {
  background: rgba(255, 94, 94, 0.18);
  color: #ff8888;
  border-color: rgba(255, 94, 94, 0.3);
}

.city-badge.metropolitan {
  background: rgba(229, 197, 131, 0.15);
  color: var(--accent-color);
  border-color: rgba(229, 197, 131, 0.3);
}

.city-badge.historic {
  background: rgba(150, 110, 220, 0.18);
  color: #c4a1ff;
  border-color: rgba(150, 110, 220, 0.3);
}

.city-badge.special {
  background: rgba(60, 180, 220, 0.18);
  color: #7cd8ff;
  border-color: rgba(60, 180, 220, 0.3);
}

.city-badge.island {
  background: rgba(40, 190, 170, 0.18);
  color: #5ce1cd;
  border-color: rgba(40, 190, 170, 0.35);
}

.city-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.city-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
  margin-top: 0.2rem;
}

.city-card-highlights {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.city-tag-pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.focus-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.78rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.focus-map-btn:hover {
  color: #ffffff;
}

/* City Info Drawer / Detail Modal */
.city-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.city-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.city-modal-card {
  background: rgba(18, 20, 28, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.city-modal-overlay.active .city-modal-card {
  transform: translateY(0);
}

.city-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.city-modal-close:hover {
  background: rgba(255, 94, 94, 0.3);
}

.modal-header-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.modal-header-row h2 {
  font-size: 1.8rem;
  color: #ffffff;
}

.modal-header-hangul {
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: 700;
}

.modal-city-type {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.modal-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.modal-body-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.modal-attractions-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.attraction-pill {
  background: rgba(229, 197, 131, 0.12);
  border: 1px solid rgba(229, 197, 131, 0.25);
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
}