/* ============================================
   GBT Finder — EMS Corporate Identity
   ============================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'TransBold_EMS';
  src: url('../fonts/TransBold_EMS.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* EMS CI Colors */
  --accent:        #e6437b;
  --accent-dark:   #da291c;
  --accent-light:  #fce8ef;
  --accent-mid:    #f9d0df;
  --secondary:     #da291c;
  --bg:            #ffffff;
  --white:         #ffffff;
  --black:         #000000;
  --text:          #000000;
  --mid:           #5a5a5a;
  --subtle:        #9e9e9e;
  --border:        #e5e5e5;
  --border-mid:    #d0d0d0;
  --gold-bg:       #fef7e6;
  --gold-text:     #92530a;

  /* Legacy variable mappings (used by class names throughout) */
  --primary:       #e6437b;
  --primary-dark:  #da291c;
  --primary-light: #fce8ef;

  /* Tier colors */
  --tier-standard:    #7ea7d0;
  --tier-standard-bg: #edf3fa;
  --tier-gold:        #d4960a;
  --tier-gold-bg:     #fef7e6;
  --tier-platinum:    #e6437b;
  --tier-platinum-bg: #fce8ef;
  --tier-platinum-gradient: linear-gradient(135deg, #e6437b, #c0325e);
  --tier-platinum-glow: 0 0 20px rgba(230,67,123,0.3);

  /* Semantic */
  --success:    #10B981;
  --success-bg: #D1FAE5;
  --danger:     #EF4444;
  --danger-bg:  #FEE2E2;
  --warning:    #F59E0B;

  /* Neutrals */
  --neutral-50:  #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d0d0d0;
  --neutral-400: #9e9e9e;
  --neutral-500: #5a5a5a;
  --neutral-600: #424242;
  --neutral-700: #333333;
  --neutral-800: #1a1a1a;
  --neutral-900: #000000;

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:     0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.10);
  --shadow-xl:     0 20px 50px rgba(0,0,0,0.12);
  --shadow-2xl:    0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-accent: 0 8px 32px rgba(230,67,123,0.20);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition:      0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font: 'Roboto', sans-serif;
  --font-heading: 'TransBold_EMS', 'Roboto', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; display: block; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.25rem; border-radius: 2rem;
  font-weight: 500; border: none; cursor: pointer;
  transition: all var(--transition);
  line-height: 1.4; font-size: .875rem; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(230, 67, 123, 0.25);
}
.btn-primary:hover {
  background: var(--secondary);
  box-shadow: 0 4px 16px rgba(218, 41, 28, 0.30);
}

.btn-outline {
  background: transparent; border: 1.5px solid var(--border); color: var(--neutral-700);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-light);
}

.btn-white {
  background: #fff; color: var(--text); border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { box-shadow: var(--shadow-md); border-color: var(--border-mid); }

.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; color: var(--mid); padding: .5rem .75rem; }
.btn-ghost:hover { background: var(--neutral-100); color: var(--text); }

.btn-sm { padding: .4rem .875rem; font-size: .8125rem; border-radius: 2rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; height: 48px; border-radius: 2rem; }
.btn-xl { padding: 1rem 2rem; font-size: 1.0625rem; height: 56px; border-radius: 2rem; }
.btn-icon { padding: .625rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-pill { border-radius: var(--radius-full); }

/* Button loading state */
.btn.loading { pointer-events: none; opacity: 0.8; }
.btn.loading::after {
  content: ''; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .75rem; border-radius: var(--radius-full); font-size: .75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge-standard { background: var(--tier-standard); color: #fff; }
.badge-gold {
  background: var(--tier-gold); color: #fff;
}
.badge-platinum {
  background: var(--tier-platinum); color: #fff;
}
.badge-active { background: var(--success-bg); color: #065F46; }
.badge-inactive { background: var(--danger-bg); color: #991B1B; }
.badge-new { background: var(--accent-light); color: var(--accent); }
.badge-sent { background: var(--success-bg); color: #065F46; }

/* Badge large variant for profile */
.badge-lg {
  padding: .375rem 1rem; font-size: .8125rem;
}

/* Tier badges (used by app.js) */
.tier-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .625rem; border-radius: var(--radius-full); font-size: .6875rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.tier-badge-standard { background: var(--tier-standard); color: #fff; }
.tier-badge-gold { background: var(--tier-gold); color: #fff; }
.tier-badge-platinum { background: var(--tier-platinum); color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden; transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-mid); }
.card-body { padding: 1.25rem; }

/* Glass card effect */
.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 500; font-size: .875rem; margin-bottom: .5rem; color: var(--neutral-700); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .625rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  transition: all var(--transition);
  font-size: .9375rem;
}
.form-input:hover, .form-select:hover, .form-textarea:hover {
  border-color: var(--border-mid);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 67, 123, 0.1);
}
.form-input::placeholder { color: var(--subtle); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-checkbox { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; cursor: pointer; }
.form-checkbox input { margin-top: .25rem; accent-color: var(--accent); }
.form-error { color: var(--danger); font-size: .8125rem; margin-top: .25rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem 1rem; text-align: left; font-size: .875rem; }
th {
  font-weight: 500; color: var(--mid);
  background: var(--neutral-50); position: sticky; top: 0;
  border-bottom: 2px solid var(--border);
}
td { border-bottom: 1px solid var(--neutral-100); }
tr:hover td { background: var(--neutral-50); }
tr:nth-child(even) td { background: rgba(250, 250, 250, 0.5); }
tr:nth-child(even):hover td { background: var(--neutral-50); }

/* ---------- Tabs ---------- */
.tabs {
  display: flex; gap: .25rem; margin-bottom: 1.5rem;
  background: var(--neutral-100); border-radius: var(--radius-md); padding: .25rem;
  overflow-x: auto;
}
.tab-btn {
  padding: .5rem 1.25rem; border: none; background: none; cursor: pointer;
  font-weight: 500; color: var(--mid); font-size: .875rem;
  border-radius: var(--radius-sm); white-space: nowrap;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--text); background: #fff;
  box-shadow: var(--shadow-sm);
}
.tab-panel { display: none; animation: fadeIn 0.3s ease; }
.tab-panel.active { display: block; }

/* ---------- Toast ---------- */
.toast-container {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 10000;
  display: flex; flex-direction: column; gap: .75rem; pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: .875rem 1.5rem; border-radius: var(--radius-md);
  background: var(--neutral-800); color: #fff;
  font-size: .875rem; font-weight: 500;
  box-shadow: var(--shadow-xl);
  animation: slideInRight .4s var(--transition-spring);
  max-width: 400px;
  display: flex; align-items: center; gap: .75rem;
  backdrop-filter: blur(12px);
}
.toast::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.toast.success, .toast-success { background: #065F46; }
.toast.success::before, .toast-success::before { background: #34D399; }
.toast.error, .toast-error { background: #991B1B; }
.toast.error::before, .toast-error::before { background: #F87171; }
.toast-info { background: var(--neutral-800); }
.toast-info::before { background: var(--accent); }
.toast.fade-out { animation: toastOut .3s ease forwards; }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(30px); } }

/* ---------- Modal / Callback Modal ---------- */
.callback-modal,
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.callback-modal.active,
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 8999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative; background: #fff;
  border-radius: var(--radius-lg); padding: 0;
  max-width: 520px; width: 90%; max-height: 90vh;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.3s ease;
  overflow: hidden;
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-heading); font-size: 1.125rem;
}
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-end; gap: .75rem;
}

.lightbox-content {
  position: relative; max-width: 90vw; max-height: 90vh;
  animation: scaleIn 0.3s ease;
}
.lightbox-content img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2xl);
}
.lightbox-caption {
  color: rgba(255,255,255,0.8); text-align: center;
  margin-top: 1rem; font-size: .9375rem; font-weight: 500;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed; background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.2); transform: scale(1.05);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

/* ---------- Toggle Switch ---------- */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--neutral-300); border-radius: 24px;
  cursor: pointer; transition: background var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-slider { background: var(--success); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }


/* ============================================
   LANDING PAGE — NAV
   ============================================ */

.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: all var(--transition-slow);
  background: transparent;
}
.landing-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: .75rem 1.5rem;
}
.landing-nav .nav-logo {
  display: flex; align-items: center; gap: .625rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem;
  color: var(--text);
  transition: color var(--transition);
}
.landing-nav.scrolled .nav-logo { color: var(--text); }
.landing-nav .nav-links {
  display: flex; align-items: center; gap: .5rem;
}
.landing-nav .nav-links a {
  color: var(--mid);
  font-weight: 500; font-size: .875rem;
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.landing-nav.scrolled .nav-links a { color: var(--mid); }
.landing-nav .nav-links a:hover { background: var(--accent-light); color: var(--accent); }
.landing-nav.scrolled .nav-links a:hover { background: var(--accent-light); color: var(--accent); }


/* ============================================
   LANDING PAGE — HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

/* Subtle pink blob gradients */
.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(230, 67, 123, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(249, 208, 223, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 740px;
  animation: fadeInUp 0.8s ease;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 500; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.25rem; font-weight: 700;
  color: var(--text); line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero .hero-subtitle {
  font-size: 1.25rem; color: var(--mid);
  font-weight: 300; line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 560px; margin-left: auto; margin-right: auto;
}

/* Hero search bar */
.hero-search {
  display: flex; align-items: center; gap: .75rem;
  max-width: 580px; margin: 0 auto 2rem;
  position: relative;
}
.hero-search-input-wrap {
  flex: 1; position: relative;
}
.hero-search-input-wrap .search-icon-hero {
  position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%);
  color: var(--subtle); pointer-events: none;
}
.hero-search input,
#hero-search-input {
  width: 100%; height: 56px;
  padding: 0 1.25rem 0 3.25rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text); font-size: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.hero-search input::placeholder { color: var(--subtle); }
.hero-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 67, 123, 0.1), var(--shadow-md);
}

.hero-search .btn-locate-hero {
  height: 56px; padding: 0 1.5rem;
  background: var(--accent);
  border: none;
  color: #fff; font-weight: 500; font-size: .875rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; gap: .5rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(230, 67, 123, 0.25);
}
.hero-search .btn-locate-hero:hover {
  background: var(--secondary);
  box-shadow: 0 4px 16px rgba(218, 41, 28, 0.30);
}

/* Trust badges */
.hero-badges {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex; align-items: center; gap: .5rem;
  color: var(--mid);
  font-size: .875rem; font-weight: 400;
}
.hero-badge strong {
  color: var(--text); font-size: 1.125rem; font-weight: 500;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--subtle);
  animation: float 2s ease-in-out infinite;
  cursor: pointer;
  z-index: 2;
}


/* ============================================
   LANDING — HOW IT WORKS
   ============================================ */

.section { padding: 5rem 1.5rem; }
.section-grey { background: var(--neutral-50); }

.section-header {
  text-align: center; max-width: 600px; margin: 0 auto 3rem;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em; margin-bottom: .75rem;
}
.section-header p {
  font-size: 1.0625rem; color: var(--mid); line-height: 1.6; font-weight: 300;
}

.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 900px; margin: 0 auto;
}
.step-card {
  text-align: center; padding: 2rem 1.5rem;
  position: relative;
}
.step-icon {
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(230, 67, 123, 0.2);
}
.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem; font-weight: 700; color: var(--text);
  margin-bottom: .5rem;
}
.step-card p {
  font-size: .9375rem; color: var(--mid); line-height: 1.6; font-weight: 300;
}
.step-number {
  position: absolute; top: 1rem; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}


/* ============================================
   LANDING — TIER EXPLANATION
   ============================================ */

.tiers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 960px; margin: 0 auto;
}
.tier-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 2rem 1.5rem; text-align: center;
  transition: all var(--transition);
  position: relative;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.tier-card.tier-platinum {
  border-color: var(--tier-platinum);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.tier-card.tier-platinum:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-accent);
}
.tier-card.tier-gold { border-color: var(--tier-gold); }
.tier-card.tier-gold:hover { box-shadow: var(--shadow-lg); }

.tier-card-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .25rem .875rem; border-radius: var(--radius-full);
}

.tier-card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.tier-card.tier-standard .tier-card-icon { background: var(--tier-standard-bg); color: var(--tier-standard); }
.tier-card.tier-gold .tier-card-icon { background: var(--tier-gold-bg); color: var(--tier-gold); }
.tier-card.tier-platinum .tier-card-icon { background: var(--tier-platinum-bg); color: var(--tier-platinum); }

.tier-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; color: var(--text);
}
.tier-card ul {
  list-style: none; text-align: left; margin-top: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.tier-card ul li {
  font-size: .875rem; color: var(--mid);
  display: flex; align-items: flex-start; gap: .5rem;
}
.tier-card ul li::before {
  content: ''; width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  background: var(--success-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.tier-check {
  color: var(--success); font-size: .75rem; font-weight: 700;
}


/* ============================================
   LANDING — FEATURED CLINICS
   ============================================ */

.featured-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
  max-width: 1100px; margin: 0 auto 2rem;
}
.featured-card {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; cursor: pointer;
  transition: all var(--transition);
  height: 280px;
  box-shadow: var(--shadow-md);
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.featured-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-card:hover .featured-card-img { transform: scale(1.05); }

.featured-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
}
.featured-card-badge { margin-bottom: .5rem; }
.featured-card-body { padding: 1.5rem; }
.featured-card-name {
  font-family: var(--font-heading);
  font-size: 1.125rem; font-weight: 700; color: #fff;
  margin-bottom: .25rem;
}
.featured-card-address {
  font-size: .8125rem; color: rgba(255,255,255,0.7); margin-bottom: .25rem;
}
.featured-card-tier {
  margin-bottom: .5rem;
}
.featured-card-actions {
  display: flex; gap: .5rem; margin-top: .5rem;
}
.featured-card-meta {
  display: flex; align-items: center; gap: .75rem;
  font-size: .8125rem; color: rgba(255,255,255,0.8);
}
.featured-card-meta .stars { color: #FCD34D; }


/* ============================================
   LANDING — FOOTER
   ============================================ */

.site-footer {
  background: var(--black); color: var(--subtle);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; max-width: 1100px; margin: 0 auto 2rem;
}
.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem; color: #fff; font-weight: 700; margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.footer-brand p {
  font-size: .875rem; line-height: 1.7; max-width: 320px; font-weight: 300;
}
.footer-col h4 {
  font-size: .8125rem; color: var(--subtle);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 500;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { color: var(--subtle); font-size: .875rem; transition: color var(--transition); }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem; max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8125rem;
}
.footer-swiss {
  display: flex; align-items: center; gap: .5rem;
}


/* ============================================
   FINDER SECTION (within landing page)
   ============================================ */

.finder-section {
  background: var(--neutral-50);
  padding: 0;
}

.finder-toolbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap;
  position: sticky; top: 0; z-index: 100;
}

.finder-search-inline {
  flex: 1; min-width: 200px; max-width: 400px; position: relative;
}
.finder-search-inline .search-icon-inline {
  position: absolute; left: .875rem; top: 50%; transform: translateY(-50%);
  color: var(--subtle); pointer-events: none;
}
.finder-search-inline input,
#search-input {
  width: 100%; height: 42px;
  padding: 0 1rem 0 2.75rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  font-size: .875rem; background: var(--neutral-50);
  transition: all var(--transition);
}
.finder-search-inline input:focus {
  outline: none; border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(230, 67, 123, 0.1);
}

.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-chip {
  padding: .375rem .875rem; border-radius: var(--radius-full); font-size: .8125rem;
  border: 1.5px solid var(--border); background: #fff; cursor: pointer;
  color: var(--mid); transition: all var(--transition); white-space: nowrap;
  font-weight: 500;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active {
  background: var(--accent); color: #fff; border-color: transparent;
  box-shadow: 0 2px 8px rgba(230, 67, 123, 0.2);
}

.sort-select {
  margin-left: auto; font-size: .8125rem; padding: .375rem .75rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-weight: 500; color: var(--neutral-700);
  cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--accent); }

/* -- Main Finder Layout -- */
.finder-layout {
  display: flex; height: calc(100vh - 60px);
}

/* -- Map -- */
.map-container { flex: 0 0 60%; position: relative; }
#map { width: 100%; height: 100%; }

.map-legend {
  position: absolute; bottom: 1.5rem; left: 1rem; z-index: 800;
  background: #fff; border-radius: var(--radius-md); padding: .75rem 1rem;
  box-shadow: var(--shadow-lg); font-size: .8125rem;
}
.map-legend h4 {
  font-size: .75rem; text-transform: uppercase; color: var(--mid);
  margin-bottom: .5rem; cursor: pointer; display: flex; align-items: center; gap: .35rem;
  font-weight: 500; letter-spacing: .04em;
}
.map-legend h4::after { content: '\25B2'; font-size: .5rem; transition: transform .2s; }
.map-legend.collapsed h4::after { transform: rotate(180deg); }
.legend-items { display: flex; flex-direction: column; gap: .35rem; }
.map-legend.collapsed .legend-items { display: none; }
.legend-item { display: flex; align-items: center; gap: .625rem; font-weight: 500; }
.legend-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1), var(--shadow-sm);
}
.legend-dot.standard { background: var(--tier-standard); }
.legend-dot.gold { background: var(--tier-gold); }
.legend-dot.platinum { background: var(--tier-platinum); }

/* -- Sidebar -- */
.sidebar {
  flex: 0 0 40%; background: #fff;
  border-left: 1px solid var(--border);
  overflow-y: auto; padding: 0;
}
.sidebar-header {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  font-size: .875rem; color: var(--mid); font-weight: 500;
  position: sticky; top: 0; background: #fff; z-index: 10;
}
.sidebar-list { padding: .75rem; display: flex; flex-direction: column; gap: .75rem; }

/* -- Clinic Card in sidebar -- */
.clinic-card {
  display: flex; gap: 1rem; padding: 1rem; border-radius: var(--radius-md);
  border: 1.5px solid var(--border); cursor: pointer;
  transition: all var(--transition); background: #fff;
  position: relative;
}
.clinic-card::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 0 3px 3px 0;
  transition: all var(--transition);
}
.clinic-card[data-tier="platinum"]::before { background: var(--tier-platinum); }
.clinic-card[data-tier="gold"]::before { background: var(--tier-gold); }
.clinic-card[data-tier="standard"]::before { background: var(--tier-standard); }

.clinic-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.clinic-card.highlighted {
  border-color: var(--accent); background: var(--accent-light);
  box-shadow: var(--shadow-md);
}
.clinic-card-active {
  border-color: var(--accent); background: var(--accent-light);
  box-shadow: var(--shadow-md);
}

.clinic-card-photo,
.clinic-card-img {
  width: 88px; height: 88px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: var(--neutral-100); display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 2rem; color: var(--subtle);
}
.clinic-card-photo img,
.clinic-card-img img { width: 100%; height: 100%; object-fit: cover; }

.clinic-card-info,
.clinic-card-body { flex: 1; min-width: 0; }
.clinic-card-badge { margin-bottom: .25rem; }
.clinic-card-name {
  font-family: var(--font-heading);
  font-weight: 700; font-size: .9375rem; margin-bottom: .25rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  color: var(--text);
}
.clinic-card-address {
  font-size: .8125rem; color: var(--mid); margin-bottom: .375rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.clinic-card-meta {
  display: flex; align-items: center; gap: .75rem;
  font-size: .8125rem; color: var(--mid); flex-wrap: wrap;
  margin-bottom: .5rem;
}
.clinic-card-meta .distance { color: var(--accent); font-weight: 500; }
.clinic-card-actions { display: flex; gap: .375rem; flex-wrap: wrap; }

.stars,
.rating-stars { color: #F59E0B; letter-spacing: 1px; font-size: .8125rem; }
.stars .empty { color: var(--neutral-300); }

.open-status { font-weight: 500; font-size: .75rem; display: inline-flex; align-items: center; gap: .25rem; }
.open-status.open { color: var(--success); }
.open-status.open::before {
  content: ''; width: 6px; height: 6px; background: var(--success);
  border-radius: 50%; display: inline-block;
  animation: pulse 2s infinite;
}
.open-status.closed { color: var(--danger); }
.open-status.closed::before {
  content: ''; width: 6px; height: 6px; background: var(--danger);
  border-radius: 50%; display: inline-block;
}

/* Open badge aliases */
.open-badge { font-weight: 500; font-size: .75rem; display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .625rem; border-radius: var(--radius-full); }
.open-badge-open { background: var(--success-bg); color: #065F46; }
.open-badge-closed { background: var(--danger-bg); color: #991B1B; }

/* -- Leaflet Popup -- */
.leaflet-popup-content-wrapper { border-radius: var(--radius-md) !important; padding: 0 !important; box-shadow: var(--shadow-lg) !important; }
.leaflet-popup-content { margin: 0 !important; min-width: 240px; }
.popup-inner { padding: 1rem; }
.popup-inner h3 { font-family: var(--font-heading); font-size: .9375rem; margin-bottom: .375rem; display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.popup-inner p { font-size: .8125rem; color: var(--mid); margin-bottom: .25rem; }
.popup-inner .popup-actions { display: flex; gap: .375rem; margin-top: .75rem; }

/* -- Custom Markers -- */
.marker-standard, .marker-gold, .marker-platinum {
  width: 32px; height: 32px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.marker-standard { background: var(--tier-standard); }
.marker-gold { background: var(--tier-gold); }
.marker-platinum { background: var(--tier-platinum); }
.marker-inner { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: .7rem; }


/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-page { max-width: 960px; margin: 0 auto; padding: 0 1rem 3rem; }

.profile-sticky-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.profile-sticky-header a {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 500; font-size: .875rem; color: var(--neutral-700);
}
.profile-sticky-header a:hover { color: var(--accent); }

.profile-hero-banner {
  position: relative; margin: 0 -1rem;
  height: 320px; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-mid));
}
.profile-hero-banner img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.3;
}
.profile-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem 2rem 2.5rem;
}
.profile-hero-overlay.tier-gold {
  background: linear-gradient(to top, rgba(120, 53, 15, 0.9) 0%, rgba(120, 53, 15, 0.3) 100%);
}
.profile-hero-overlay.tier-platinum {
  background: linear-gradient(to top, rgba(192, 50, 94, 0.9) 0%, rgba(192, 50, 94, 0.3) 100%);
}

.profile-hero-content { position: relative; z-index: 2; }
.profile-hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700; color: #fff;
  margin-bottom: .5rem; letter-spacing: -0.02em;
}
.profile-hero-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.profile-hero-meta .badge-lg { font-size: .8125rem; }
.profile-hero-meta .stars { color: #FCD34D; font-size: .9375rem; }
.profile-hero-meta .rating-text { color: rgba(255,255,255,0.8); font-size: .9375rem; }
.profile-hero-meta .open-status { font-size: .875rem; }
.profile-hero-meta .open-status.open { color: #34D399; }
.profile-hero-meta .open-status.open::before { background: #34D399; }
.profile-hero-meta .open-status.closed { color: #F87171; }
.profile-hero-meta .open-status.closed::before { background: #F87171; }
.profile-next-open { color: rgba(255,255,255,0.6); font-size: .875rem; margin-top: .25rem; }

.profile-content { padding-top: 2rem; }

.profile-section { margin-bottom: 2.5rem; }
.profile-section h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem;
  color: var(--text); letter-spacing: -0.01em;
}

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  font-size: .9375rem; padding: 1rem; border-radius: var(--radius-md);
  background: var(--neutral-50); border: 1px solid var(--border);
  transition: all var(--transition);
}
.contact-item:hover { border-color: var(--border-mid); box-shadow: var(--shadow-sm); }
.contact-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(230, 67, 123, 0.2);
}
.contact-item strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mid); margin-bottom: .125rem; }
.contact-item a { color: var(--text); font-weight: 500; }
.contact-item a:hover { color: var(--accent); }

.hours-table { width: 100%; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.hours-table td { padding: .75rem 1rem; }
.hours-table tr { border-bottom: 1px solid var(--neutral-100); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table tr.today {
  background: var(--accent-light); font-weight: 500;
  position: relative;
}
.hours-table tr.today::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}

.services-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.service-tag {
  padding: .4rem 1rem; background: var(--neutral-100);
  border-radius: var(--radius-full); font-size: .8125rem; color: var(--neutral-700);
  font-weight: 500; border: 1px solid var(--border);
  transition: all var(--transition);
}
.service-tag:hover { background: var(--accent-light); color: var(--accent); border-color: rgba(230,67,123,0.2); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.team-member {
  text-align: center; padding: 1.5rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all var(--transition);
  background: #fff;
}
.team-member:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto .75rem;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 2px 12px rgba(230, 67, 123, 0.2);
}
.team-member:nth-child(2) .team-avatar { background: #8B5CF6; box-shadow: 0 2px 12px rgba(139, 92, 246, 0.2); }
.team-member:nth-child(3) .team-avatar { background: var(--accent-dark); box-shadow: 0 2px 12px rgba(218, 41, 28, 0.2); }
.team-member:nth-child(4) .team-avatar { background: var(--tier-standard); box-shadow: 0 2px 12px rgba(126, 167, 208, 0.2); }
.team-member:nth-child(5) .team-avatar { background: var(--tier-gold); box-shadow: 0 2px 12px rgba(212, 150, 10, 0.2); }
.team-member h4 { font-size: .9375rem; font-weight: 700; color: var(--text); }
.team-member p { font-size: .8125rem; color: var(--mid); margin-top: .25rem; }
.team-sda-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .75rem; color: var(--success); font-weight: 600;
  margin-top: .375rem;
}

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: .75rem;
}
.gallery-item {
  border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; position: relative;
}
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background var(--transition);
}
.gallery-item:hover::after { background: rgba(0,0,0,0.1); }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Callback form card */
.callback-form-card {
  max-width: 540px; background: var(--neutral-50);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9375rem; color: var(--accent); font-weight: 500;
  margin-bottom: 1rem; padding: .5rem 0;
}


/* ============================================
   MYEMS PORTAL
   ============================================ */
.portal-layout { display: flex; min-height: 100vh; }
.portal-sidebar {
  width: 260px; background: var(--black); color: #fff;
  padding: 1.5rem 1rem; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.portal-sidebar-brand {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: #fff;
  margin-bottom: 2rem; padding: .25rem .5rem;
}
.portal-sidebar-brand svg { opacity: 0.9; }
.portal-nav { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.portal-nav a {
  display: flex; align-items: center; gap: .625rem;
  padding: .625rem .75rem; border-radius: var(--radius-sm);
  color: var(--subtle); font-size: .875rem; font-weight: 500;
  transition: all var(--transition);
}
.portal-nav a:hover, .portal-nav a.active {
  background: rgba(255,255,255,0.08); color: #fff; text-decoration: none;
}
.portal-nav a svg { opacity: 0.6; }
.portal-nav a:hover svg, .portal-nav a.active svg { opacity: 1; }
.portal-content { flex: 1; padding: 2rem 2.5rem; overflow-y: auto; background: var(--neutral-50); }

.portal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.portal-header h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em;
}

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.25rem; position: relative; overflow: hidden;
  transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.stat-card:nth-child(1)::before { background: var(--accent); }
.stat-card:nth-child(2)::before { background: var(--tier-platinum); }
.stat-card:nth-child(3)::before { background: var(--tier-gold); }
.stat-card:nth-child(4)::before { background: var(--tier-standard); }
.stat-card:nth-child(5)::before { background: var(--success); }
.stat-card .stat-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--neutral-50); display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem; font-size: 1.25rem;
}
.stat-card .stat-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-card .stat-label { font-size: .8125rem; color: var(--mid); margin-top: .25rem; font-weight: 400; }

.completion-bar { width: 100%; height: 8px; background: var(--neutral-200); border-radius: 4px; margin-top: .5rem; overflow: hidden; }
.completion-bar-fill {
  height: 100%; background: var(--accent); border-radius: 4px;
  transition: width .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.completion-bar-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

/* -- Tag Input -- */
.tag-input-wrap {
  display: flex; flex-wrap: wrap; gap: .375rem; padding: .5rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; min-height: 48px; align-items: center;
  transition: all var(--transition);
}
.tag-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230,67,123,.1); }
.tag-item {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .625rem; background: var(--accent-light); color: var(--accent);
  border-radius: var(--radius-full); font-size: .8125rem; font-weight: 500;
}
.tag-item button { background: none; border: none; cursor: pointer; color: var(--accent); font-size: 1rem; line-height: 1; padding: 0; opacity: 0.6; }
.tag-item button:hover { opacity: 1; }
.tag-input { border: none; outline: none; flex: 1; min-width: 120px; padding: .25rem .375rem; font-size: .875rem; }

/* -- Social Link Row -- */
.social-row { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.social-row select, .social-row input { font-size: .875rem; }
.social-row select { width: 140px; }
.social-row input { flex: 1; }

/* -- Gallery Upload -- */
.gallery-upload-zone {
  border: 2px dashed var(--border-mid); border-radius: var(--radius-lg);
  padding: 2.5rem; text-align: center; cursor: pointer; color: var(--subtle);
  transition: all var(--transition);
  background: var(--neutral-50);
  font-weight: 400;
}
.gallery-upload-zone:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light);
}
.gallery-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: .75rem; margin-top: 1rem; }
.gallery-preview-item { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-preview-item .delete-btn {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px;
  background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 50%;
  cursor: pointer; font-size: .8rem; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: all var(--transition);
}
.gallery-preview-item .delete-btn:hover { background: var(--danger); }


/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-header {
  background: var(--black); color: #fff; padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-md);
}
.admin-header h1 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; display: flex; align-items: center; gap: .625rem; }
.admin-body { padding: 2rem; max-width: 1280px; margin: 0 auto; }


/* ============================================
   LOGIN SCREENS
   ============================================ */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 50%, #fff0f5 100%);
  padding: 1.5rem;
}
.login-card {
  background: #fff; padding: 2.5rem; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); width: 100%; max-width: 420px;
  border: 1px solid var(--border);
}
.login-card h1 {
  font-family: var(--font-heading);
  text-align: center; margin-bottom: .5rem; font-size: 1.75rem;
  font-weight: 700; letter-spacing: -0.02em;
}
.login-logo {
  display: flex; justify-content: center; margin-bottom: 1.5rem;
}


/* ============================================
   MOBILE BOTTOM SHEET
   ============================================ */
.bottom-sheet {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: #fff; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12); max-height: 70vh;
  transition: transform .3s ease;
}
.bottom-sheet .drag-handle {
  width: 40px; height: 4px; background: var(--neutral-300); border-radius: 2px;
  margin: .625rem auto; cursor: grab;
}
.bottom-sheet-content { overflow-y: auto; padding: 0 .75rem .75rem; max-height: calc(70vh - 20px); }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1023px) {
  .hero h1 { font-size: 2.5rem; }

  .finder-layout { flex-direction: column; }
  .map-container { flex: 1; height: 100%; }
  .sidebar { display: none; }
  .bottom-sheet { display: block; }

  .steps-grid { gap: 1.5rem; }
  .tiers-grid { gap: 1rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  .portal-sidebar { width: 64px; padding: 1rem .5rem; }
  .portal-sidebar-brand span, .portal-nav span { display: none; }
  .portal-content { padding: 1.5rem; }
}

@media (max-width: 767px) {
  .hero { min-height: auto; padding: 7rem 1rem 4rem; }
  .hero h1 { font-size: 2rem; }
  .hero .hero-subtitle { font-size: 1rem; }

  .hero-search { flex-direction: column; }
  .hero-search .btn-locate-hero { width: 100%; justify-content: center; }

  .hero-badges { flex-direction: column; gap: 1rem; }

  .section { padding: 3rem 1rem; }
  .section-header h2 { font-size: 1.5rem; }

  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tiers-grid { grid-template-columns: 1fr; }
  .tier-card.tier-platinum { transform: none; }
  .tier-card.tier-platinum:hover { transform: translateY(-4px); }

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

  .finder-toolbar { padding: .5rem .75rem; }
  .finder-search-inline { min-width: 0; max-width: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }

  .profile-hero-banner { height: 240px; }
  .profile-hero-content h1 { font-size: 1.5rem; }
  .profile-page { padding: 0 .75rem 2rem; }

  .admin-body { padding: 1rem; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }

  .portal-layout { flex-direction: column; }
  .portal-sidebar {
    width: 100%; flex-direction: row; padding: .75rem 1rem;
    display: flex; align-items: center; gap: 1rem;
  }
  .portal-sidebar-brand { margin-bottom: 0; }
  .portal-sidebar-brand span { display: inline; }
  .portal-nav { flex-direction: row; overflow-x: auto; }
  .portal-nav span { display: inline; }
  .portal-content { padding: 1rem; }

  .landing-nav .nav-links a span { display: none; }
}

@media (max-width: 374px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-search input { height: 48px; font-size: .9375rem; }
}

/* ---------- Leaflet fix ---------- */
.leaflet-container { font-family: var(--font) !important; }

/* -- Bounce animation for markers -- */
@keyframes markerBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.marker-bounce {
  animation: markerBounce .5s ease 2;
}

/* -- Print hide -- */
@media print {
  .landing-nav, .finder-toolbar, .bottom-sheet, .map-legend, .site-footer,
  .hero, .section { display: none; }
}
