/* modern-web-guidance styles for News App */

/* Design Tokens & CSS Variables */
:root {
  /* Font Family */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Harmonious Palette (Light Mode Default) */
  --color-brand-light: hsl(250, 85%, 56%);
  --color-brand-dark: hsl(250, 95%, 66%);
  --color-brand: var(--color-brand-light);

  --color-accent-light: hsl(180, 90%, 40%);
  --color-accent-dark: hsl(180, 100%, 45%);
  --color-accent: var(--color-accent-light);

  --bg-app-light: hsl(220, 25%, 97%);
  --bg-app-dark: hsl(222, 24%, 10%);
  --bg-app: var(--bg-app-light);

  --bg-card-light: hsl(0, 0%, 100%);
  --bg-card-dark: hsl(222, 22%, 15%);
  --bg-card: var(--bg-card-light);

  --border-color-light: hsla(220, 20%, 10%, 0.08);
  --border-color-dark: hsla(0, 0%, 100%, 0.08);
  --border-color: var(--border-color-light);

  --text-primary-light: hsl(220, 30%, 12%);
  --text-primary-dark: hsl(210, 20%, 98%);
  --text-primary: var(--text-primary-light);

  --text-secondary-light: hsl(220, 15%, 45%);
  --text-secondary-dark: hsl(215, 15%, 70%);
  --text-secondary: var(--text-secondary-light);

  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -4px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Glassmorphism values */
  --glass-bg-light: hsla(0, 0%, 100%, 0.7);
  --glass-bg-dark: hsla(222, 22%, 15%, 0.7);
  --glass-bg: var(--glass-bg-light);
  --glass-border-light: hsla(0, 0%, 100%, 0.4);
  --glass-border-dark: hsla(222, 22%, 25%, 0.3);
  --glass-border: var(--glass-border-light);

  /* Scrollbar configuration */
  --scrollbar-thumb: hsl(220, 15%, 80%);
  --scrollbar-track: transparent;

  color-scheme: light dark;
  accent-color: var(--color-brand);
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --color-brand: var(--color-brand-dark);
    --color-accent: var(--color-accent-dark);
    --bg-app: var(--bg-app-dark);
    --bg-card: var(--bg-card-dark);
    --border-color: var(--border-color-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --glass-bg: var(--glass-bg-dark);
    --glass-border: var(--glass-border-dark);
    --scrollbar-thumb: hsl(222, 15%, 30%);
  }
}

/* Explicit Custom Class-based Theme overrides (pinned themes) */
:root[data-theme="light"] {
  --color-brand: var(--color-brand-light);
  --color-accent: var(--color-accent-light);
  --bg-app: var(--bg-app-light);
  --bg-card: var(--bg-card-light);
  --border-color: var(--border-color-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --glass-bg: var(--glass-bg-light);
  --glass-border: var(--glass-border-light);
  --scrollbar-thumb: hsl(220, 15%, 80%);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --color-brand: var(--color-brand-dark);
  --color-accent: var(--color-accent-dark);
  --bg-app: var(--bg-app-dark);
  --bg-card: var(--bg-card-dark);
  --border-color: var(--border-color-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --glass-bg: var(--glass-bg-dark);
  --glass-border: var(--glass-border-dark);
  --scrollbar-thumb: hsl(222, 15%, 30%);
  color-scheme: dark;
}

/* Basic Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbars styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover {
  opacity: 0.8;
}

/* Layout Utilities */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Custom Buttons with vibrant gradients & micro-animations */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  color: #fff;
  box-shadow: 0 4px 12px hsla(250, 85%, 60%, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px hsla(250, 85%, 60%, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: var(--bg-app);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}
.btn-outline:active {
  transform: translateY(0);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-icon:hover {
  transform: scale(1.05);
  background-color: var(--border-color);
}

/* Glassmorphic elements */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* Top Nav Bar */
header {
  position: sticky;
  top: 0;
  z-index: 1100;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px hsla(250, 85%, 60%, 0.3);
}

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

/* Main Hero Landing Page */
#landing-view {
  padding: 40px 0 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  text-align: center;
  max-width: 800px;
  margin: 60px auto 80px auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: hsla(250, 85%, 60%, 0.1);
  color: var(--color-brand);
  border: 1px solid hsla(250, 85%, 60%, 0.2);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary), var(--color-brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  margin-top: 40px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-brand), var(--color-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: hsla(250, 85%, 60%, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Auth Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.modal-header h2 {
  font-size: 28px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

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

.input-container svg {
  position: absolute;
  left: 16px;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px hsla(250, 85%, 60%, 0.15);
}

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 10px;
}

.auth-toggle-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.auth-toggle-text a {
  font-weight: 600;
  color: var(--color-brand);
}

/* Help Modal Customizations */
.help-modal-card {
  max-width: 580px !important;
  padding: 32px !important;
}

.help-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.help-tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.help-tab-btn:hover {
  color: var(--text-primary);
  background-color: var(--border-color);
}

.help-tab-btn.active {
  color: var(--color-brand);
  background-color: hsla(250, 85%, 60%, 0.1);
}

.help-tab-content-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Tab scrollbar styling */
.help-tab-content-container::-webkit-scrollbar {
  width: 6px;
}
.help-tab-content-container::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
.help-tab-content-container::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
}

.help-tab-panel {
  display: none;
}

.help-tab-panel.active {
  display: block;
  animation: fadeInHelp 0.25s ease forwards;
}

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

.help-tab-intro {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Feature Tab Styles */
.help-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-feature-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background-color: hsla(220, 20%, 10%, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .help-feature-item {
  background-color: hsla(0, 0%, 100%, 0.02);
}

.help-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: hsla(250, 85%, 60%, 0.1);
  color: var(--color-brand);
  flex-shrink: 0;
}

.help-feature-details h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}

.help-feature-details p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Shortcuts Tab Styles */
.help-shortcut-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.help-shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  background-color: hsla(220, 20%, 10%, 0.01);
}

:root[data-theme="dark"] .help-shortcut-row {
  background-color: hsla(0, 0%, 100%, 0.01);
}

.help-shortcut-row:last-child {
  border-bottom: none;
}

.help-shortcut-desc {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.help-shortcut-keys {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shortcut-or {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

kbd {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-bottom: 2.5px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

/* Gestures Tab Styles */
.help-gesture-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-gesture-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background-color: hsla(220, 20%, 10%, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .help-gesture-item {
  background-color: hsla(0, 0%, 100%, 0.02);
}

.help-gesture-graphic {
  width: 60px;
  height: 60px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.help-gesture-details h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}

.help-gesture-details p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Dashboard View Styles */
#dashboard-view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  position: relative;
}

.dashboard-nav {
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-card);
  padding: 0 24px;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-full);
  border: none;
  background-color: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.active {
  background-color: hsla(250, 85%, 60%, 0.1);
  color: var(--color-brand);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}

/* Dashboard Panel & News View Split Container */
.dashboard-content {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dashboard-content.active {
  display: flex;
}

/* Global News panel with Map & Story List */
.split-view {
  display: flex;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.news-sidebar {
  width: 440px;
  border-right: 1px solid var(--border-color);
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  position: relative;
  z-index: 10;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.last-updated-badge {
  font-size: 11px;
  color: var(--text-secondary);
}

.news-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

/* Beautiful Premium News Cards */
.news-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand);
}

.news-card.highlighted {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px var(--color-brand), var(--shadow-md);
}

.card-image-container {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background-color: var(--bg-app);
  position: relative;
  border-top-left-radius: calc(var(--radius-md) - 1px);
  border-top-right-radius: calc(var(--radius-md) - 1px);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .card-image {
  transform: scale(1.05);
}

.card-source-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: auto;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
}

.card-source {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand);
  letter-spacing: 0.5px;
}

.card-meta .location-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-accent);
  font-weight: 600;
}

.news-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 6px;
  word-wrap: break-word;
}

.news-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 8px;
  word-wrap: break-word;
}

/* Map area */
.map-container {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
}

/* Custom styles for Leaflet elements to look Premium */
.leaflet-popup-content-wrapper {
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0;
  font-family: var(--font-body);
}

.leaflet-popup-tip {
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Premium custom close button overlay - floating and elegant */
.leaflet-popup-close-button {
  color: #ffffff !important;
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  line-height: 26px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  top: 10px !important;
  right: 10px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-close-button:hover {
  color: #ffffff !important;
  background: rgba(15, 23, 42, 0.8) !important;
  transform: scale(1.08);
}

/* Beautiful responsive map-popup-card */
.map-popup-card {
  width: 260px; /* default on small screens */
  overflow: hidden;
  border-radius: var(--radius-md);
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-popup-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-popup-card:hover .map-popup-img {
  transform: scale(1.05);
}

.map-popup-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-popup-body h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--text-primary);
}

.map-popup-body p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-popup-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand);
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
  width: fit-content;
}

.map-popup-link:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.map-popup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/* Tablet screens: Map Popups get larger */
@media (min-width: 768px) {
  .map-popup-card {
    width: 340px;
  }
  
  .map-popup-img {
    height: 140px;
  }
  
  .map-popup-body {
    padding: 16px;
    gap: 10px;
  }
  
  .map-popup-body h4 {
    font-size: 16px;
  }
  
  .map-popup-body p {
    font-size: 12.5px;
  }
}

/* Large Screens: Map Popups get even more generous in size */
@media (min-width: 1200px) {
  .map-popup-card {
    width: 400px;
  }
  
  .map-popup-img {
    height: 180px;
  }
  
  .map-popup-body {
    padding: 20px;
    gap: 12px;
  }
  
  .map-popup-body h4 {
    font-size: 18px;
  }
  
  .map-popup-body p {
    font-size: 13.5px;
  }
}

/* Curated RSS feeds Tab Styles */
.custom-feeds-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.feeds-sidebar {
  width: 320px;
  border-right: 1px solid var(--border-color);
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feed-form-panel {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.feed-form-panel h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.feed-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-form input,
.feed-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-app);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}

.feed-form input:focus,
.feed-form textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}

.feeds-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.feeds-list-container h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.feeds-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  transition: all 0.2s ease;
  cursor: pointer;
}

.feed-item-row:hover {
  border-color: var(--color-brand);
  background-color: var(--bg-app);
}

.feed-item-row.active {
  border-color: var(--color-brand);
  background-color: hsla(250, 85%, 60%, 0.05);
}

.feed-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.feed-item-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-item-url {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-delete-feed {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-delete-feed:hover {
  color: hsl(0, 80%, 60%);
  background-color: hsla(0, 80%, 60%, 0.1);
}

.custom-feed-content-area {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.feed-content-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-content-header h2 {
  font-size: 20px;
}

.custom-feed-items-grid {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  min-height: 0;
}

/* Skeleton Loading Shimmer for Cards */
.shimmer-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.shimmer-card {
  height: 320px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shimmer-img {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  background: var(--border-color);
}

.shimmer-line {
  height: 12px;
  background: var(--border-color);
  border-radius: var(--radius-full);
}

.shimmer-line.title {
  width: 80%;
  height: 18px;
}
.shimmer-line.desc-1 {
  width: 100%;
}
.shimmer-line.desc-2 {
  width: 90%;
}
.shimmer-line.desc-3 {
  width: 60%;
}

/* Alert Notification toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-color: hsl(140, 80%, 45%);
}

.toast-error {
  border-color: hsl(0, 80%, 45%);
}

/* Responsive adjustments (medium screens now display full wide layout) */

@media (max-width: 768px) {
  /* Responsive styles for hero section on mobile view */
  .hero {
    margin: 40px auto 40px auto !important;
  }

  .hero h1 {
    font-size: 32px !important;
    line-height: 1.25 !important;
    letter-spacing: -1px !important;
  }

  .hero p {
    font-size: 15px !important;
    margin-bottom: 24px !important;
  }

  /* Responsive styles for features section on mobile view */
  #features-anchor {
    padding-top: 40px !important;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 24px !important;
  }

  /* Responsive styles for section titles and headers on mobile view */
  .section-title-wrapper {
    margin-top: 40px !important;
    margin-bottom: 20px !important;
  }

  .section-title-wrapper h2 {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }

  .section-title-wrapper p {
    font-size: 14px !important;
    margin-top: 8px !important;
  }

  /* Adjust main container padding on mobile view to allow elegant breathing room */
  #landing-view {
    padding: 0 16px 40px 16px !important;
  }

  /* Testimonials responsive adjustments on mobile */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .testimonial-card {
    padding: 20px !important;
  }

  /* Mission responsive adjustments on mobile */
  .mission-section {
    margin-top: 40px !important;
    margin-bottom: 20px !important;
  }

  .mission-section .glass {
    padding: 24px 16px !important;
  }

  .mission-section h2 {
    font-size: 24px !important;
  }

  .mission-section p {
    font-size: 15px !important;
  }

  .landing-map-section {
    margin: 0 !important;
    width: 100% !important;
  }

  /* Make map section take up the whole viewport height minus the header */
  .landing-news-map-section {
    height: calc(100vh - 72px) !important;
    height: calc(100dvh - 72px) !important;
  }

  /* Force layout to put Latest Headlines (sidebar) BELOW the map */
  .split-view {
    flex-direction: column-reverse !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  .news-sidebar {
    width: 100% !important;
    height: 220px !important;
    flex: 0 0 220px !important;
    border-right: none !important;
    border-top: 1px solid var(--border-color) !important;
  }

  .map-container {
    height: calc(100% - 220px) !important;
    flex: 1 !important;
  }

  /* Compact header on mobile */
  .sidebar-header {
    padding: 10px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .sidebar-header h2 {
    font-size: 15px !important;
  }

  .sidebar-header .last-updated-badge {
    display: none !important; /* Hide to save horizontal space */
  }

  /* Show the beautiful navigator controls on mobile */
  .mobile-headlines-nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  #mobile-headline-counter {
    font-size: 12px !important;
    font-weight: 600 !important;
    min-width: 50px !important;
    text-align: center !important;
    color: var(--text-secondary);
  }

  /* Headlines list behavior on mobile (only 1 story visible) */
  .news-list {
    padding: 10px 16px !important;
    overflow: hidden !important;
    height: calc(100% - 45px) !important;
  }

  .news-list .news-card {
    display: none !important; /* Hide all other cards */
  }

  .news-list .news-card.mobile-active {
    display: flex !important; /* Only active card is visible */
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  .news-list .news-card .card-image-container {
    display: none !important; /* Hide card image on mobile to focus on title & description */
  }

  .news-list .news-card .card-content {
    padding: 0 !important;
    gap: 4px !important;
    height: 100% !important;
  }

  .news-list .news-card .card-meta {
    font-size: 10px !important;
  }

  .news-list .news-card h3 {
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    margin: 2px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important; /* allow up to 2 lines */
  }

  .news-list .news-card p {
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .news-list .news-card .map-popup-link {
    font-size: 11px !important;
    margin-top: 2px !important;
    color: var(--color-brand) !important;
  }

  /* Other mobile adjustments */
  .hero h1 {
    font-size: 32px !important;
  }
  .custom-feeds-layout {
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
  }
  .custom-feed-content-area {
    height: 100% !important;
    flex: 1 !important;
    min-height: 0 !important;
  }
}

/* PWA Network Status Badge and Notification Styling */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  user-select: none;
}

.status-badge.online {
  background-color: hsla(140, 80%, 45%, 0.08);
  border-color: hsla(140, 80%, 45%, 0.2);
  color: hsl(140, 80%, 40%);
}

.status-badge.offline {
  background-color: hsla(24, 90%, 50%, 0.08);
  border-color: hsla(24, 90%, 50%, 0.2);
  color: hsl(24, 90%, 48%);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.online .status-dot {
  background-color: hsl(140, 80%, 45%);
  box-shadow: 0 0 8px hsl(140, 80%, 45%);
}

.offline .status-dot {
  background-color: hsl(24, 90%, 50%);
  box-shadow: 0 0 8px hsl(24, 90%, 50%);
}

/* --- PROFILE DROPDOWN STYLES --- */
.profile-dropdown-container {
  position: relative;
  display: inline-block;
}

.profile-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-dropdown-btn:hover {
  background-color: var(--border-color);
  border-color: var(--text-secondary);
}

.profile-dropdown-btn .chevron-icon {
  transition: transform 0.2s ease;
  color: var(--text-secondary);
}

.profile-dropdown-container.open .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}

.profile-dropdown-container.open .dropdown-menu {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background-color: hsla(250, 85%, 60%, 0.1);
  color: var(--color-brand);
}

.dropdown-item.danger {
  color: hsl(0, 85%, 60%);
}

.dropdown-item.danger:hover {
  background-color: hsla(0, 85%, 60%, 0.1);
  color: hsl(0, 85%, 60%);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 4px 0;
}

/* --- PUBLIC EMBEDDED MAP STYLES --- */
.landing-map-section {
  width: 100%;
  max-width: 100%;
  margin: 60px 0 0 0;
  padding: 0;
}

.landing-news-map-section {
  width: 100%;
  height: 800px; /* Taller height */
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.landing-news-map-section #content-global {
  height: 100%;
  width: 100%;
}

#dashboard-news-container {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

#dashboard-news-container:has(#content-global.active) {
  display: flex;
}

#map, #custom-map {
  width: 100%;
  height: 100%;
}

/* Ensure Leaflet Container background color matches app theme in both modes to avoid white top/bottom bars */
#map, #custom-map, .leaflet-container {
  background: var(--bg-app) !important;
}

/* Custom Map Pin Styles */
.custom-map-pin .pin-inner {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

/* Selected marker gets statically highlighted with no animation to save CPU */
.custom-map-pin.pulsating .pin-inner {
  transform: scale(1.3);
  box-shadow: 0 0 12px var(--color-brand);
}

/* Fly-out Sidebar styles for Custom Feeds */
.feeds-sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feeds-sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  /* Show fly-out sidebar menu toggle and close buttons */
  #btn-toggle-feeds-sidebar {
    display: inline-flex !important;
  }
  
  .sidebar-mobile-header {
    display: flex !important;
  }
  
  /* Fly-out menu transform & positions */
  .feeds-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 320px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: var(--bg-card) !important;
    z-index: 1100 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-right: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-xl) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
  }

  .feeds-sidebar.open {
    transform: translateX(0) !important;
  }

  /* Support mobile Custom Feed headlines list style */
  .mobile-custom-headlines-nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
}

/* Card Footer and Social Search Links */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.card-search-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--text-secondary);
  background-color: var(--border-color);
  transition: all 0.2s ease;
  text-decoration: none;
}

.search-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.search-link:hover {
  transform: translateY(-2px);
  color: white !important;
}

.search-link:hover svg {
  transform: scale(1.1);
}

.search-link.search-wiki:hover {
  background-color: #333333; /* Wikipedia dark charcoal */
}

.search-link.search-social:hover {
  background-color: #1da1f2; /* Social media blue (representing X and BlueSky) */
}

.search-link.search-yt:hover {
  background-color: #ff0000; /* YouTube brand red */
}


/* --- PLAY/PAUSE AUTO-PLAY STYLES --- */
.btn-play-pause {
  width: 32px !important;
  height: 32px !important;
  padding: 0;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.btn-play-pause svg {
  transition: transform 0.2s ease;
}

.btn-play-pause:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
  background-color: hsla(250, 85%, 60%, 0.08);
  transform: scale(1.1);
}

.btn-play-pause:hover svg {
  transform: scale(1.1);
}

.btn-play-pause.playing {
  color: var(--color-brand);
  border-color: var(--color-brand);
  background-color: hsla(250, 85%, 60%, 0.12);
  box-shadow: 0 0 0 2px hsla(250, 85%, 60%, 0.2);
}


/* --- MAP ONLY PAGE /MAP LAYOUTS --- */
body.map-only-page .hero {
  display: none !important;
}

body.map-only-page #features-anchor {
  display: none !important;
}

body.map-only-page .section-title-wrapper,
body.map-only-page .landing-preview-section,
body.map-only-page .testimonials-section,
body.map-only-page .mission-section {
  display: none !important;
}

body.map-only-page #landing-view {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.map-only-page .landing-map-section {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

body.map-only-page .landing-news-map-section {
  height: calc(100vh - 72px) !important;
  height: calc(100dvh - 72px) !important;
  border: none !important;
  box-shadow: none !important;
}


/* --- LANDING PAGE SCREENSHOT MOCKUP & TESTIMONIALS STYLES --- */

/* Landing Preview Container */
.landing-preview-section {
  width: 100%;
  margin-top: 40px;
}

.news-preview-mockup {
  display: flex;
  flex-direction: row;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .news-preview-mockup {
    flex-direction: column;
    height: auto;
  }
}

/* Mockup Sidebar */
.mockup-sidebar {
  width: 320px;
  background: var(--bg-app);
  border-right: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: hidden;
}

@media (max-width: 768px) {
  .mockup-sidebar {
    width: 100%;
    height: auto;
  }
}

.mockup-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.mockup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mockup-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand);
}

.mockup-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand);
  background: hsla(250, 85%, 60%, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
}

.mockup-headline {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.mockup-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Mockup Map Canvas */
.mockup-map {
  flex: 1;
  background: var(--bg-card);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.mockup-map-svg {
  width: 100%;
  height: 100%;
  opacity: 0.12;
  color: var(--text-primary);
}

/* Pulsing Glowing Dot Map Markers */
.mockup-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-brand);
  box-shadow: 0 0 0 var(--color-brand);
  animation: pulse-marker 2s infinite;
  cursor: pointer;
}

.mockup-marker::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-brand);
  top: -6px;
  left: -6px;
  opacity: 0;
  animation: pulse-marker-ring 2s infinite;
}

.marker-london { top: 38%; left: 46%; background: #4f46e5; }
.marker-london::after { border-color: #4f46e5; }

.marker-ny { top: 42%; left: 28%; background: #f59e0b; }
.marker-ny::after { border-color: #f59e0b; }

.marker-tokyo { top: 48%; left: 82%; background: #10b981; }
.marker-tokyo::after { border-color: #10b981; }

@keyframes pulse-marker {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

@keyframes pulse-marker-ring {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Testimonials Layout */
.testimonials-section {
  width: 100%;
  margin-top: 40px;
  margin-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.testimonial-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-user h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.testimonial-user span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Hide live map section on normal landing page, but show on map-only-page */
.landing-map-section {
  display: none !important;
}
body.map-only-page .landing-map-section {
  display: block !important;
}

