/* ==========================================================================
   ANADOLU SEYAHATNAMESİ - ULTRA MODERN GLASSMORPHISM CYBER-SUFI THEME
   ========================================================================== */

:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-glass: rgba(15, 23, 42, 0.85);
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-emerald: #10b981;
  --accent-gold: #f59e0b;
  --accent-purple: #a855f7;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 242, 254, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 242, 254, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.5) 0px, transparent 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Glassmorphism Classes */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Header */
header {
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  z-index: 100;
  flex-shrink: 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 40%, #111c35 0%, #050811 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 242, 254, 0.25), inset 0 0 8px rgba(251, 191, 36, 0.2);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.logo-section:hover .logo-icon {
  transform: scale(1.07) rotate(-3deg);
  border-color: #00f2fe;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 242, 254, 0.48), 0 0 18px rgba(251, 191, 36, 0.35);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-progress-group {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.6);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.header-progress-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.header-progress-pct {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-emerald);
}

.mini-progress-bar {
  width: 90px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #04121d;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.btn-outline {
  background: rgba(30, 41, 59, 0.6);
  color: var(--text-primary);
  border-color: var(--border-glass);
}

.btn-outline:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-sound {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.btn-sound.active {
  background: var(--accent-emerald);
  color: #04121d;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* Main Layout Grid */
.main-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
aside.sidebar {
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
}

.sidebar-search-box {
  padding: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.filter-pills {
  display: flex;
  gap: 6px;
  padding: 10px 16px 6px;
  overflow-x: auto;
}

.filter-pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.5);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-pill.active {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.region-filter-wrapper {
  padding: 6px 16px 12px;
}

.region-select {
  width: 100%;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.cities-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* City Item Card */
.city-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.city-item:hover {
  background: rgba(51, 65, 85, 0.7);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateX(3px);
}

.city-item.active {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
}

.city-info-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.city-plate {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.city-name-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.city-region-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.city-status-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.city-status-badge.visited {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.city-status-badge.unvisited {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Viewport */
.content-viewport {
  overflow-y: auto;
  padding: 24px 32px;
  position: relative;
}

/* Dashboard View */
.dashboard-view {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 750px;
  border-left: 3px solid var(--accent-gold);
  padding-left: 14px;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-card-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Regional Breakdown Cards */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.region-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.region-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.region-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.region-card-pct {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-cyan);
}

.region-card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* City Detail View */
.city-detail-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.city-hero {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  border: 1px solid var(--border-glass);
}

.city-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.city-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.city-hero-badges {
  display: flex;
  gap: 8px;
}

.city-hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
}

.detail-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landmarks-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.landmark-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.5);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 1000px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-close-btn:hover {
  color: #ffffff;
}

/* Header Left & Mobile Menu */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  padding: 7px 12px;
}

.sidebar-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-cyan);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 490;
}

.sidebar-backdrop.active {
  display: block;
}

.btn.nav-active {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.14);
  color: var(--accent-cyan);
}

/* Quote Modal */
.quote-modal-content {
  max-width: 580px;
  width: 92%;
}

.quote-modal-body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.quote-modal-text {
  font-size: 1.15rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-gold);
  padding-left: 16px;
  text-align: left;
}

.quote-modal-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-gold);
  text-align: right;
}

.quote-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* Seyyah Rank & Achievements */
.rank-banner {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.85) 60%, rgba(0, 242, 254, 0.1) 100%);
  border-color: rgba(245, 158, 11, 0.28);
}

.rank-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rank-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.18);
  border: 2px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.rank-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fcd34d;
}

.rank-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.rank-next {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.badge-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge-card.unlocked {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(30, 41, 59, 0.75));
}

.badge-card.locked {
  opacity: 0.68;
}

.badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

.badge-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.badge-status-pill.open {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.badge-status-pill.closed {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
}

.badge-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.badge-progress-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* Rich City Detail Extras */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.literary-quotes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.literary-quote-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(15, 23, 42, 0.45);
  border-left: 3px solid var(--accent-purple);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.55;
}

/* City Photo Gallery (2 Images) & Lightbox */
.city-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.city-gallery-grid.single-photo {
  grid-template-columns: 1fr;
}

.gallery-thumb-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: rgba(15, 23, 42, 0.75);
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-thumb-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 28px rgba(0, 242, 254, 0.22);
  transform: translateY(-2px);
}

.gallery-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-thumb-card:hover img {
  transform: scale(1.07);
}

.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 29, 0.05) 35%, rgba(10, 15, 29, 0.88) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 14px;
  gap: 8px;
}

.gallery-thumb-label {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  color: #f8fafc;
}

.gallery-zoom-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.gallery-thumb-card:hover .gallery-zoom-pill {
  background: var(--accent-cyan);
  color: #04121d;
}

/* Lightbox Modal */
.lightbox-overlay {
  background: rgba(5, 10, 20, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1200;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 82vw;
  max-height: 86vh;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
}

.lightbox-caption {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  text-align: center;
}

.lightbox-close-btn {
  position: fixed;
  top: 20px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--border-glass);
  color: #f8fafc;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1210;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: scale(1.06);
}

.lightbox-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--border-glass);
  color: #f8fafc;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.lightbox-nav-btn.hidden {
  display: none;
}

/* Spiritual Figures & 5-Day Plan Lists */
.spiritual-figures-list,
.five-day-plan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spiritual-figure-item {
  font-size: 0.89rem;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-left: 3px solid var(--accent-emerald);
  padding: 11px 15px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  line-height: 1.6;
}

.spiritual-figure-item strong {
  color: #6ee7b7;
}

.five-day-plan-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.89rem;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-left: 3px solid var(--accent-gold);
  padding: 11px 15px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  line-height: 1.6;
}

.five-day-plan-item strong {
  color: #fcd34d;
}

.plan-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fcd34d;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.neighbor-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 10px;
}

.neighbor-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.neighbor-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.85);
}

.neighbor-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

.neighbor-card-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.city-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Route Planner SVG Map & Stop Cards */
.route-svg-card {
  padding: 18px 20px;
}

.route-svg-map {
  width: 100%;
  height: auto;
  max-height: 310px;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.9), rgba(7, 11, 22, 0.95));
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.route-stop-card {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.route-summary-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.route-summary-pill {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1180px) {
  .header-progress-label {
    display: none;
  }
  .btn-label {
    display: none;
  }
  header {
    padding: 10px 16px;
  }
}

@media (max-width: 960px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .main-layout {
    grid-template-columns: 1fr;
  }
  aside.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    z-index: 500;
    background: var(--bg-secondary);
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.75);
  }
  aside.sidebar.mobile-open {
    transform: translateX(0);
  }
  .sidebar-mobile-header {
    display: flex;
  }
  .header-progress-group {
    display: none;
  }
  .content-viewport {
    padding: 18px 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .city-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .logo-text p {
    display: none;
  }
  .logo-text h1 {
    font-size: 0.95rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .city-hero {
    height: 210px;
    padding: 18px;
  }
  .city-hero-title {
    font-size: 1.65rem;
  }
  .lightbox-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}


/* ==========================================================================
   V3 UPGRADES: LIGHT THEME, HERO BACKDROP, MEGA GALLERY, FAVORITES & TOASTS
   ========================================================================== */

body.light-theme {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.92);
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-emerald: #059669;
  --accent-gold: #d97706;
  --accent-purple: #7c3aed;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-glass: rgba(15, 23, 42, 0.12);
  --border-glow: rgba(2, 132, 199, 0.35);
  --shadow-subtle: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 8px 25px rgba(2, 132, 199, 0.15);
  background-image:
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(5, 150, 105, 0.08) 0px, transparent 50%);
}

body.light-theme aside.sidebar {
  background: rgba(255, 255, 255, 0.85);
}

body.light-theme .search-input,
body.light-theme .region-select,
body.light-theme .city-item,
body.light-theme .btn-outline,
body.light-theme .header-progress-group,
body.light-theme .landmark-item,
body.light-theme .neighbor-card,
body.light-theme .literary-quote-item {
  background: rgba(241, 245, 249, 0.85);
  color: var(--text-primary);
}

body.light-theme .city-plate {
  background: #e2e8f0;
  color: #0f172a;
}

body.light-theme .logo-text h1 {
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Visual Hero Banner Backdrop */
.hero-banner-visual {
  background-image: linear-gradient(115deg, rgba(6, 12, 24, 0.92) 0%, rgba(15, 23, 42, 0.82) 55%, rgba(6, 18, 34, 0.72) 100%), url('assets/banner.jpg');
  background-size: cover;
  background-position: center;
  border-color: rgba(0, 242, 254, 0.25);
}

.hero-banner-visual h2 {
  background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-banner-visual .hero-quote {
  color: #e2e8f0;
}

/* Sidebar Selects Row & Mini Thumbs */
.sidebar-selects-row {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 8px;
}

.sort-select {
  font-size: 0.78rem;
  padding: 8px 6px;
}

.city-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.city-right-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fav-dot {
  color: #f59e0b;
  font-size: 0.85rem;
}

.btn-fav-active {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: rgba(245, 158, 11, 0.55) !important;
  color: #fbbf24 !important;
}

/* Mega Photo Gallery View (162 Photos) */
.gallery-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mega-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.mega-gallery-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.mega-gallery-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.8);
}

.mega-gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.mega-gallery-card:hover .mega-gallery-img-wrap img {
  transform: scale(1.06);
}

.mega-gallery-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.mega-gallery-badge.visited {
  background: rgba(16, 185, 129, 0.85);
  color: #04121d;
}

.mega-gallery-badge.unvisited {
  background: rgba(15, 23, 42, 0.8);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.mega-gallery-card-meta {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.mega-gallery-city-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mega-gallery-city-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  border: 1px solid rgba(0, 242, 254, 0.4);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.25s ease forwards;
}

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

/* ==========================================================================
   GLOBAL ACCESSIBILITY (:focus-visible), CUSTOM SCROLLBARS & @media print
   ========================================================================== */

/* Keyboard Focus-Visible Accessibility Rings */
:is(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"]),
  [role="button"]
):focus-visible {
  outline: 2px solid var(--accent-cyan, #00f2fe);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.22);
}

body.light-theme :is(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"]),
  [role="button"]
):focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

/* Refined Custom Scrollbars (WebKit & Standard) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.25);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.55);
  background-clip: content-box;
}

body.light-theme * {
  scrollbar-color: rgba(15, 23, 42, 0.25) transparent;
}

body.light-theme ::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
}

body.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.24);
  background-clip: content-box;
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 132, 199, 0.5);
  background-clip: content-box;
}

/* Clean PDF / Paper Print Layout (@media print) */
@media print {
  @page {
    margin: 14mm 12mm;
  }

  html,
  body {
    background: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    font-size: 11pt !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Hide non-printable navigation, chrome, modals, and floating widgets */
  header,
  aside,
  .sidebar,
  #sidebar,
  .sidebar-backdrop,
  nav.module-nav-strip,
  .module-nav-strip,
  #mnav-dropdown-portal,
  .modal,
  .modal-overlay,
  .lightbox-overlay,
  .toast-container,
  #toast-container,
  #seyyah-quick-dock,
  #seyyah-back-to-top,
  #seyyah-mobile-scroll-top,
  .seyyah-back-to-top,
  .sc-orb-btn,
  .sc-drawer,
  .ambient-popover,
  .mobile-menu-btn,
  .header-actions,
  .bl-confetti-layer,
  .no-print {
    display: none !important;
  }

  .app-container,
  .main-layout,
  .content-viewport,
  #viewport-content {
    display: block !important;
    position: static !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
  }

  /* Ensure dark-on-white readability across cards, heroes, and studio modules */
  .glass,
  .glass-card,
  .detail-card,
  .stat-card,
  .hero-banner,
  .hero-banner-visual,
  .bl-hero,
  .bl-card,
  .bl-add-card,
  .bl-controls,
  .bl-cat-breakdown,
  .bp-hero,
  .bp-card,
  .bp-savings-card,
  .packing-hero,
  .packing-telemetry,
  .packing-optimizer,
  .packing-cat-card,
  .compare-card,
  .compare-telemetry,
  .compare-summary-banner,
  .mzp-hero,
  .mzp-section,
  .mzp-bento-card,
  .mzp-dossier-card {
    background: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6,
  p, li, span, strong, td, th, blockquote, code {
    color: #0f172a !important;
    text-shadow: none !important;
  }

  .compare-hero-title,
  .city-hero h1,
  .city-hero h2 {
    color: #0f172a !important;
  }

  .compare-hero-overlay {
    display: none !important;
  }

  img,
  svg {
    max-width: 100% !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  a {
    color: #0369a1 !important;
    text-decoration: underline !important;
  }
}


/* =========================================================================
   WAVE 11: VISUAL ENRICHMENT — 7-REGION CARDS, NOMAD MEDIA & STUDIO BANNERS
   ========================================================================= */
.region-card.region-card-has-visual {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.region-card-visual-wrap {
  position: relative;
  width: 100%;
  height: 118px;
  overflow: hidden;
  background: #0b1222;
}

.region-card-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.region-card.region-card-has-visual:hover .region-card-visual-img {
  transform: scale(1.07);
}

.region-card-visual-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 29, 0.1) 0%, rgba(10, 15, 29, 0.72) 100%);
  pointer-events: none;
}

.region-card-visual-pct {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(10, 15, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.region-card-content {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nomad-discipline-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: center;
}

.nomad-discipline-media {
  width: 100%;
  height: 168px;
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.nomad-discipline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.nomad-discipline-card:hover .nomad-discipline-media img {
  transform: scale(1.05);
}

.seyyah-studio-visual-banner {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.65);
}

.seyyah-studio-visual-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seyyah-studio-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 15, 29, 0.88) 0%, rgba(10, 15, 29, 0.45) 58%, rgba(10, 15, 29, 0.22) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
}

.seyyah-studio-visual-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 4px;
}

.seyyah-studio-visual-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.seyyah-studio-visual-sub {
  font-size: 0.84rem;
  color: #e2e8f0;
  margin-top: 3px;
  max-width: 620px;
}

body.light-theme .seyyah-studio-visual-banner {
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.22);
}

@media (max-width: 760px) {
  .nomad-discipline-grid {
    grid-template-columns: 1fr;
  }
  .nomad-discipline-media {
    height: 160px;
  }
  .seyyah-studio-visual-banner {
    height: 156px;
  }
}
