/* ============================================================
   ViajeraMente — Shared Stylesheet
   styles.css
   All shared variables, components, and utilities.
   Page-specific styles stay in each file's <style> block.
   ============================================================ */


/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}


/* ── CSS Variables / Design Tokens ── */
:root {
  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-input: #F3F4F6;

  /* Text */
  --text: #0F172A;
  --text-2: #64748B;
  --text-3: #9CA3AF;
  --text-secondary: #64748B; /* alias for --text-2 */
  --text-muted: #9CA3AF;    /* alias for --text-3 */

  /* Borders */
  --border: #E2E8F0;
  --border-2: #CBD5E1;
  --border-focus: #374151;

  /* Accent (blue) */
  --accent: #0EA5E9;
  --accent-light: #E0F2FE;
  --accent-dark: #0284C7;
  --accent-text: #0284C7;   /* alias for --accent-dark */
  --accent-glow: rgba(14, 165, 233, 0.12);

  /* Teal / Green */
  --teal: #10B981;
  --teal-light: #F0FDFA;
  --teal-glow: rgba(16, 185, 129, 0.12);
  --green: #10B981;
  --green-light: #D1FAE5;
  --green-dark: #059669;

  /* Gold */
  --gold: #F59E0B;
  --gold-light: #FEF3C7;
  --gold-dark: #D97706;

  /* Purple */
  --purple: #8B5CF6;

  /* Red */
  --red: #EF4444;
  --red-light: #FEE2E2;

  /* Ranking metals */
  --silver: #94A3B8;
  --silver-light: #F1F5F9;
  --bronze: #CD7F32;
  --bronze-light: #FDF4E7;

  /* Shadows */
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.07);

  /* Border radius */
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sm: 12px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
}


/* ── Base HTML / Body ── */
html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
}

.hidden { display: none !important; }


/* ── Keyframe Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  from { background-position: -400px 0; }
  to   { background-position:  400px 0; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}


/* ── Reveal (scroll animation) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }


/* ======================================================
   NAV — Top navigation bar (fixed, glass effect)
   ====================================================== */
nav:not(.bottom-nav) {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 56px;
  display: flex; align-items: center;
  animation: slideDown 0.4s ease both;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 7px;
  transition: opacity 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo--accent { color: var(--accent); }

.nav-logo-icon { font-size: 1.15rem; }

/* Small dot variant used in some pages */
.nav-logo-dot {
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; padding: 6px 12px; border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-right {
  display: flex; align-items: center; gap: 10px;
}

/* Nav avatar circle */
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--accent);
  text-decoration: none; overflow: hidden;
  transition: border-color 0.2s; flex-shrink: 0; cursor: pointer;
}
.nav-avatar:hover { border-color: var(--accent); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Guest nav state */
#nav-user  { display: none; }
#nav-guest { display: flex; align-items: center; gap: 8px; }

/* Nav auth buttons */
.btn-nav-login {
  font-size: 0.82rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; padding: 6px 12px; border-radius: 8px;
  transition: all 0.2s;
}
.btn-nav-login:hover { color: var(--text); background: var(--bg-soft); }

.btn-nav-signup {
  font-size: 0.82rem; font-weight: 600; color: #fff;
  background: var(--accent); text-decoration: none;
  padding: 7px 14px; border-radius: 100px; transition: all 0.2s;
}
.btn-nav-signup:hover { background: var(--accent-dark); }

/* Nav back link */
.nav-back {
  font-size: 0.85rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; padding: 6px 10px; border-radius: 8px;
  transition: all 0.2s; white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.nav-back:hover { color: var(--text); background: var(--bg-soft); }


/* ── Hamburger button ── */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--text); padding: 4px 6px;
  line-height: 1; border-radius: 8px; transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--bg-soft); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-links     { display: none; }
  #nav-guest     { display: none !important; }
  #nav-user      { display: none !important; }
}


/* ======================================================
   MOBILE MENU OVERLAY
   ====================================================== */
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px);
}
.mobile-menu-overlay.open { display: block; }

.mobile-menu {
  position: absolute; top: 0; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  transform: translateY(-100%); transition: transform 0.25s ease;
}
.mobile-menu-overlay.open .mobile-menu { transform: translateY(0); }

.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.mobile-menu-close {
  background: none; border: none; cursor: pointer; font-size: 1.4rem;
  color: var(--text-2); padding: 4px; border-radius: 6px; transition: color 0.2s;
}
.mobile-menu-close:hover { color: var(--text); }

.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; }

.mobile-menu-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  text-decoration: none; color: var(--text);
  font-size: 1rem; font-weight: 500; transition: background 0.15s;
}
.mobile-menu-link:hover { background: var(--bg-soft); }
.mobile-menu-link .mm-icon { font-size: 1.2rem; width: 28px; text-align: center; }

.mobile-menu-divider { height: 1px; background: var(--border); margin: 10px 0; }

/* Logout button inside mobile menu */
.mobile-menu-logout {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  color: var(--text-muted); font-size: 1rem; font-weight: 500;
  background: none; border: none; cursor: pointer; width: 100%;
  font-family: inherit; transition: background 0.15s, color 0.15s;
}
.mobile-menu-logout:hover { background: var(--bg-soft); color: var(--text); }


/* ======================================================
   SECTION — Standard content wrapper
   ====================================================== */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px; display: block;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.03em; color: var(--text);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 0.95rem; color: var(--text-2); line-height: 1.6;
  max-width: 520px; margin-bottom: 44px;
}

/* Section header with count (list pages) */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; gap: 12px;
}
.section-count {
  font-size: 0.8rem; color: var(--text-3); font-weight: 500;
}


/* ======================================================
   BUTTONS — Shared button styles
   ====================================================== */

/* Primary CTA button (accent filled, pill) */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 600; color: #fff;
  background: var(--accent); border: none; border-radius: 100px;
  padding: 13px 24px; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.22);
}
.btn-primary:active  { transform: translateY(0); box-shadow: none; }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Outline pill button */
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600; color: var(--accent);
  text-decoration: none; padding: 10px 24px; border-radius: 100px;
  border: 1.5px solid var(--accent); background: transparent;
  transition: all 0.2s; cursor: pointer;
}
.btn-outline:hover { background: var(--accent-light); }

/* Hero primary */
.btn-hero-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 100px;
  text-decoration: none; transition: all 0.2s;
  border: 2px solid var(--accent);
  display: inline-flex; align-items: center;
}
.btn-hero-primary:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  transform: translateY(-2px);
}

/* Hero ghost (transparent on dark bg) */
.btn-hero-ghost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  background: transparent; color: #fff;
  padding: 14px 28px; border-radius: 100px;
  text-decoration: none; transition: all 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.55);
  display: inline-flex; align-items: center;
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* CTA main (large, landing) */
.btn-cta-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700;
  background: var(--accent); color: #fff;
  padding: 16px 36px; border-radius: 100px;
  text-decoration: none; transition: all 0.2s;
  display: inline-block; margin-bottom: 16px;
}
.btn-cta-main:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

/* Teal profile CTA */
.btn-profile-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem; font-weight: 700;
  background: var(--teal); color: #fff;
  padding: 14px 28px; border-radius: 100px;
  text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-profile-cta:hover { background: #0D9488; transform: translateY(-2px); }

/* Spinner inside buttons */
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
.btn-primary.loading .btn-spinner { display: inline-block; }
.btn-primary.loading .btn-text    { display: none; }


/* ======================================================
   FORMS — Shared form elements
   ====================================================== */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.8rem; font-weight: 600; color: var(--text);
  margin-bottom: 6px; letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--text);
  background: var(--bg-input);
  border: 1.5px solid transparent;
  border-radius: 11px; outline: none;
  transition: all 0.2s;
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus {
  border-color: var(--border-focus);
  background: var(--bg);
}
.form-group input.error { border-color: var(--red); background: #FEF2F2; }
.form-group .error-msg {
  font-size: 0.75rem; color: var(--red);
  margin-top: 5px; display: none;
}
.form-group .error-msg.visible { display: block; }

/* Auth card (login / signup) */
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 36px;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.5s ease-out both;
}
.auth-card h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem; font-weight: 700; color: var(--text);
  text-align: center; margin-bottom: 6px; letter-spacing: -0.02em;
}
.auth-card .subtitle {
  font-size: 0.88rem; color: var(--text-secondary);
  text-align: center; margin-bottom: 32px; line-height: 1.5;
}

/* Logo inside auth cards */
.logo-top {
  text-align: center; margin-bottom: 32px;
}
.logo-top a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
}
.logo-top .logo-dot {
  width: 9px; height: 9px;
  background: var(--accent); border-radius: 50%;
}

/* Divider inside auth */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-muted); font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Link below auth card */
.auth-switch {
  text-align: center; margin-top: 20px;
  font-size: 0.85rem; color: var(--text-secondary);
}
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }


/* ======================================================
   DESTINATION CARDS (guias.html, index.html)
   ====================================================== */
.dest-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
  color: inherit;
  cursor: pointer;
}
.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Image thumbnail inside dest-card (index.html simple version) */
.dest-img {
  width: 100%; height: 140px;
  object-fit: cover; display: block;
}

.dest-info {
  padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}

.dest-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text);
}
.dest-desc  { font-size: 0.78rem; color: var(--text-2); line-height: 1.5; flex: 1; }
.dest-cta   { font-size: 0.75rem; font-weight: 600; color: var(--accent); margin-top: 4px; }

.dest-more-wrap { text-align: center; }
.btn-dest-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600; color: var(--accent);
  text-decoration: none; padding: 10px 24px; border-radius: 100px;
  border: 1.5px solid var(--accent); transition: all 0.2s;
}
.btn-dest-more:hover { background: var(--accent-light); }

/* Full dest-grid for index */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}


/* ======================================================
   FILTER PILLS (guias.html, fechas.html)
   ====================================================== */
.filter-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 0.78rem; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: all 0.2s; user-select: none;
  white-space: nowrap; font-family: 'Inter', sans-serif; line-height: 1;
}
.filter-pill:hover { border-color: var(--text-3); color: var(--text); }
.filter-pill.active {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light); font-weight: 600;
}

.filter-group {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 10px;
}
.filter-group-label {
  font-size: 0.65rem; font-weight: 700; color: var(--text-3);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 10px; display: block;
}
.filters-row {
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}

.btn-clear {
  display: none; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 100px;
  border: 1.5px solid transparent; background: none;
  font-size: 0.78rem; font-weight: 500; color: var(--text-3);
  cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif;
  white-space: nowrap; flex-shrink: 0;
}
.btn-clear:hover  { color: var(--text-2); }
.btn-clear.visible { display: inline-flex; }

/* Filters divider */
.filters-divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; max-width: 760px;
  margin-left: auto; margin-right: auto;
}
.filters-divider-line  { flex: 1; height: 1px; background: var(--border); }
.filters-divider-text  {
  font-size: 0.7rem; font-weight: 600; color: var(--text-3);
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}


/* ======================================================
   SEARCH INPUT
   ====================================================== */
.search-wrap {
  max-width: 540px; margin: 0 auto 24px;
  position: relative;
}
.search-wrap svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}
#search-input {
  width: 100%; padding: 14px 18px 14px 46px;
  border: 1.5px solid var(--border); border-radius: 100px;
  background: var(--bg); color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}
#search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1), var(--shadow);
}
#search-input::placeholder { color: var(--text-3); }


/* ======================================================
   SKELETON LOADERS
   ====================================================== */
.skeleton-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.skeleton-photo {
  height: 210px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite linear;
}
.skeleton-body  { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line  {
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 72px 24px;
}
.empty-icon  { font-size: 2.8rem; margin-bottom: 14px; }
.empty-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-desc  { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; }


/* ======================================================
   FOOTER
   ====================================================== */
footer {
  background: #0F172A;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 32px;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.footer-brand-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: #fff;
  text-decoration: none; display: flex; align-items: center; gap: 7px;
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 0.82rem; line-height: 1.6; color: rgba(255, 255, 255, 0.5);
  max-width: 240px;
}
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6);
  text-decoration: none; margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 0.78rem; color: rgba(255, 255, 255, 0.3); }

/* Social links (footer) */
.social-links { display: flex; gap: 14px; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5); transition: all 0.2s;
}
.social-link:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }


/* ======================================================
   HERO (index.html — full-screen image hero)
   ====================================================== */
.hero {
  position: relative;
  height: 100dvh; min-height: 600px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 56px 24px 60px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.45); }
.hero-content {
  position: relative; z-index: 2; max-width: 760px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
  color: #fff; margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 1.1rem; color: rgba(255, 255, 255, 0.88); line-height: 1.6;
  max-width: 520px; margin: 0 auto 36px;
}
.hero-btns {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-bottom: 20px;
}
.hero-login-hint { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }
.hero-login-hint a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline; text-underline-offset: 2px;
}
.hero-login-hint a:hover { color: #fff; }

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .btn-hero-primary, .btn-hero-ghost { padding: 12px 20px; font-size: 0.88rem; }
}


/* ======================================================
   CTA SECTION (index.html bottom CTA)
   ====================================================== */
.cta-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 80px 24px;
  text-align: center;
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.04em; color: var(--text);
  margin-bottom: 14px;
}
.cta-desc {
  font-size: 0.95rem; color: var(--text-2); line-height: 1.6;
  margin-bottom: 32px;
}
.cta-login-hint {
  font-size: 0.82rem; color: var(--text-3);
  display: block; margin-bottom: 44px;
}
.cta-login-hint a { color: var(--accent); text-decoration: none; }
.cta-login-hint a:hover { text-decoration: underline; }
.cta-perks {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 24px;
}
.cta-perk {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-2);
}
.cta-perk-icon { font-size: 1rem; }


/* ======================================================
   HUB SECTION (index.html feature cards)
   ====================================================== */
.hub-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hub-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .hub-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.hub-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px 24px;
  text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.hub-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--hub-color, var(--accent));
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hub-icon  { font-size: 2rem; line-height: 1; margin-bottom: 2px; }
.hub-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
}
.hub-desc  { font-size: 0.82rem; color: var(--text-2); line-height: 1.5; flex: 1; }
.hub-cta   { font-size: 0.8rem; font-weight: 600; color: var(--hub-color, var(--accent)); margin-top: 4px; }


/* ======================================================
   PROFILE FEATURE SECTION (index.html dark section)
   ====================================================== */
.profile-section { background: #151820; padding: 80px 24px; }
.profile-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
@media (max-width: 768px) {
  .profile-inner { grid-template-columns: 1fr; gap: 40px; }
}

.profile-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 10px; display: block;
}
.profile-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
  color: #fff; margin-bottom: 14px;
}
.profile-subtitle {
  font-size: 0.95rem; color: rgba(255, 255, 255, 0.6); line-height: 1.6;
  margin-bottom: 32px;
}
.profile-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.profile-feature  { display: flex; align-items: flex-start; gap: 14px; }

.pf-icon {
  font-size: 1.3rem; flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.pf-body  { flex: 1; }
.pf-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 3px;
}
.pf-desc  { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); line-height: 1.5; }

/* Profile visual card (dark mock) */
.profile-visual { position: relative; }
.profile-map-card {
  background: #1E2330;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; padding: 28px; overflow: hidden;
}
.pmc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.pmc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem; font-weight: 700; color: #fff;
}
.pmc-badge {
  font-size: 0.68rem; font-weight: 700;
  background: rgba(16, 185, 129, 0.15); color: var(--teal);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px; border-radius: 100px;
}
.pmc-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 20px;
}
.pmc-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px; padding: 14px 12px; text-align: center;
}
.pmc-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; font-weight: 800; color: #fff; display: block;
}
.pmc-stat-label {
  font-size: 0.68rem; color: rgba(255, 255, 255, 0.4);
  margin-top: 2px; display: block;
}
.pmc-pins { display: flex; flex-wrap: wrap; gap: 8px; }
.pmc-pin {
  font-size: 0.75rem; font-weight: 500; color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 11px; border-radius: 100px;
}
.pmc-pin.highlight { color: var(--teal); border-color: rgba(16, 185, 129, 0.3); }


/* ======================================================
   VIBE PILLS (guias.html card tags)
   ====================================================== */
.vibe-pill {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 100px;
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 0.68rem; color: var(--text-2); font-weight: 500;
}


/* ======================================================
   PAGE HEADER (ranking.html, generic)
   ====================================================== */
.page-header {
  text-align: center; padding: 48px 16px 32px;
}
.page-header-icon { font-size: 3rem; margin-bottom: 12px; }
.page-header h1 {
  font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 8px;
}
.page-header p {
  font-size: 0.9rem; color: var(--text-2); max-width: 400px; margin: 0 auto;
}
@media (max-width: 480px) {
  .page-header { padding: 32px 8px 24px; }
  .page-header h1 { font-size: 1.6rem; }
}


/* ======================================================
   CHIPS / BADGES (shared small label elements)
   ====================================================== */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-2);
}
.chip-accent { background: var(--accent-light); color: var(--accent-dark); border-color: transparent; }
.chip-green  { background: var(--green-light);  color: #059669; border-color: transparent; }
.chip-gold   { background: var(--gold-light);   color: var(--gold-dark); border-color: transparent; }

/* Dot pulsing badge */
.pulse-dot {
  width: 5px; height: 5px; border-radius: 50%;
  display: inline-block; animation: pulse 2s ease infinite;
}
.pulse-dot-accent { background: var(--accent); }
.pulse-dot-gold   { background: var(--gold); }


/* ======================================================
   UTILITY CLASSES
   ====================================================== */

/* Layout */
.container {
  max-width: 1080px; margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-wrap {
  max-width: 900px; margin: 0 auto; padding: 0 0 80px;
}

/* Flexbox helpers */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }

/* Text helpers */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-3); }
.text-success { color: var(--green); }
.text-danger  { color: var(--red); }
.text-center  { text-align: center; }
.font-sg      { font-family: 'Space Grotesk', sans-serif; }

/* Spacing helpers */
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mt-8  { margin-top: 8px; }
.mb-8  { margin-bottom: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* Display helpers */
.d-none   { display: none; }
.d-block  { display: block; }
.d-flex   { display: flex; }
.d-grid   { display: grid; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* Active nav link */
.nav-link-active {
  color: var(--accent);
  font-weight: 600;
}

/* External reference link (small pill-style) */
.ref-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .78rem; color: #3B82F6; text-decoration: none;
  padding: 3px 8px; border: 1px solid #BFDBFE; border-radius: 6px;
  transition: background .15s;
}
.ref-link:hover { background: #EFF6FF; }

/* Cards */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card-sm {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
}


/* ======================================================
   AFFILIATE CARDS & BOOKING BAR (destino.html)
   ====================================================== */

/* ── Contextual affiliate card ── */
.affiliate-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; margin: 24px 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.affiliate-card:hover { box-shadow: var(--shadow-md); }

.affiliate-card-icon {
  font-size: 1.6rem; flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
}
.affiliate-card-icon.skyscanner { background: #E8F4FD; }
.affiliate-card-icon.booking    { background: #E6EDF5; }
.affiliate-card-icon.activities { background: #E6F9EE; }
.affiliate-card-icon.insurance  { background: #FFF3E6; }
.affiliate-card-icon.planner    { background: var(--accent-light); }

.affiliate-card-body { flex: 1; min-width: 0; }

.affiliate-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.affiliate-card-desc {
  font-size: 0.82rem; color: var(--text-2);
  line-height: 1.5; margin-bottom: 12px;
}

.affiliate-card-btns {
  display: flex; flex-wrap: wrap; gap: 8px;
}

/* ── Affiliate buttons (brand-colored) ── */
.affiliate-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px;
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; color: #fff;
  transition: opacity 0.2s, transform 0.15s;
  border: none; cursor: pointer;
}
.affiliate-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.affiliate-btn-skyscanner {
  background: #0770E3;
  box-shadow: 0 2px 8px rgba(7, 112, 227, 0.2);
}
.affiliate-btn-booking {
  background: #003580;
  box-shadow: 0 2px 8px rgba(0, 53, 128, 0.2);
}
.affiliate-btn-getyourguide {
  background: #FF5533;
  box-shadow: 0 2px 8px rgba(255, 85, 51, 0.2);
}
.affiliate-btn-civitatis {
  background: #00A651;
  box-shadow: 0 2px 8px rgba(0, 166, 81, 0.2);
}
.affiliate-btn-iati {
  background: #E8590C;
  box-shadow: 0 2px 8px rgba(232, 89, 12, 0.2);
}
.affiliate-btn-planner {
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

/* ── Planner CTA banner ── */
.planner-cta-banner {
  margin: 32px 0;
  padding: 28px 24px;
  background: linear-gradient(135deg, #E0F2FE 0%, #F0FDFA 100%);
  border: 1.5px solid #BAE6FD;
  border-radius: 16px;
  text-align: center;
}
.planner-cta-banner-icon { font-size: 2rem; margin-bottom: 10px; }
.planner-cta-banner h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.planner-cta-banner p {
  font-size: 0.88rem; color: var(--text-2);
  line-height: 1.6; margin-bottom: 18px;
  max-width: 420px; margin-left: auto; margin-right: auto;
}
.planner-cta-banner .affiliate-btn {
  font-size: 0.92rem; padding: 12px 28px;
  border-radius: 100px;
}

/* ── Sticky bottom booking bar ── */
.affiliate-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 150;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  animation: slideUpBar 0.4s ease both;
  transform: translateY(100%);
}
.affiliate-bar.visible { transform: translateY(0); }

@keyframes slideUpBar {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.affiliate-bar-inner {
  display: flex; align-items: center; gap: 10px;
  max-width: 700px; width: 100%;
  justify-content: center;
}

.affiliate-bar .affiliate-btn {
  flex: 1; max-width: 200px;
  justify-content: center;
  padding: 10px 14px;
  font-size: 0.8rem;
  border-radius: 10px;
  white-space: nowrap;
}

/* On mobile with bottom-nav: shift bar up */
@media (max-width: 700px) {
  .affiliate-bar { bottom: 60px; padding: 8px 10px; }
  .affiliate-bar .affiliate-btn {
    padding: 9px 10px; font-size: 0.75rem;
    max-width: none; flex: 1;
  }
  .affiliate-bar .affiliate-btn .ab-label-long { display: none; }
  .affiliate-bar .affiliate-btn .ab-label-short { display: inline; }
}
@media (min-width: 701px) {
  .affiliate-bar .affiliate-btn .ab-label-short { display: none; }
}

/* Hide bar until page loads destination data */
.affiliate-bar[data-ready="false"] { display: none; }

/* Affiliate disclosure tiny text */
.affiliate-disclosure {
  font-size: 0.7rem; color: var(--text-3);
  text-align: center; margin-top: 6px;
  font-style: italic;
}


/* ======================================================
   GEO-TIPS — Crowdsourced travel tips on the map
   ====================================================== */

/* Floating action button */
.geo-tip-fab {
  position: fixed;
  bottom: 100px;
  right: 16px;
  z-index: 500;
  height: 48px;
  padding: 0 18px;
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.geo-tip-fab:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(14, 165, 233, 0.4); }
.geo-tip-fab:active { transform: scale(0.96); }
.geo-tip-fab.active { background: #EF4444; }
.geo-tip-fab.active:hover { background: #DC2626; }

/* Filter bar */
.geo-tip-filter-bar {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s;
}
.geo-tip-filter-bar.visible { pointer-events: all; opacity: 1; transform: translateY(0); }
.geo-tip-filter-bar::-webkit-scrollbar { display: none; }

.geo-tip-filter-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  user-select: none;
}
.geo-tip-filter-chip:hover { background: rgba(15, 23, 42, 0.95); color: #fff; }
.geo-tip-filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Tip popup */
.geo-tip-popup {
  padding: 14px 16px;
  min-width: 200px;
  max-width: 280px;
}
.geo-tip-popup-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 4px;
}
.geo-tip-popup-title {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
  line-height: 1.3;
}
.geo-tip-popup-desc {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 10px;
  word-break: break-word;
}
.geo-tip-popup-author {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-bottom: 8px;
}
.geo-tip-popup-author strong { color: #475569; font-weight: 600; }

/* Vote buttons */
.geo-tip-vote {
  display: flex;
  align-items: center;
  gap: 4px;
}
.geo-tip-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.geo-tip-vote-btn:hover { border-color: #CBD5E1; background: #F1F5F9; }
.geo-tip-vote-btn.voted-up { background: #E0F2FE; border-color: var(--accent); color: var(--accent); }
.geo-tip-vote-btn.voted-down { background: #FEE2E2; border-color: #EF4444; color: #EF4444; }
.geo-tip-vote-score {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  min-width: 20px;
  text-align: center;
}
.geo-tip-popup-delete {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #EF4444;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}
.geo-tip-popup-delete:hover { text-decoration: underline; }

/* Form overlay */
.geo-tip-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.geo-tip-form-overlay.open { opacity: 1; pointer-events: all; }

.geo-tip-form {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 24px 20px max(24px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
}
.geo-tip-form-overlay.open .geo-tip-form { transform: translateY(0); }

.geo-tip-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.geo-tip-form-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F172A;
}
.geo-tip-form-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.geo-tip-form-close:hover { background: #E2E8F0; }

/* Category grid */
.geo-tip-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.geo-tip-cat-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px;
  border-radius: 12px;
  border: 2px solid #E2E8F0;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.geo-tip-cat-option:hover { border-color: #CBD5E1; background: #F1F5F9; }
.geo-tip-cat-option.selected { border-color: var(--accent); background: #E0F2FE; }
.geo-tip-cat-option .cat-emoji { font-size: 1.3rem; line-height: 1; }
.geo-tip-cat-option .cat-label { font-size: 0.62rem; font-weight: 600; color: #64748B; line-height: 1.2; }
.geo-tip-cat-option.selected .cat-label { color: var(--accent); }

.geo-tip-form-field { margin-bottom: 14px; }
.geo-tip-form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.geo-tip-form-field input,
.geo-tip-form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: #0F172A;
  background: #F8FAFC;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.geo-tip-form-field input:focus,
.geo-tip-form-field textarea:focus { border-color: var(--accent); background: #fff; }
.geo-tip-form-field .char-count { font-size: 0.68rem; color: #94A3B8; text-align: right; margin-top: 3px; }

.geo-tip-form-submit {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.geo-tip-form-submit:hover { background: var(--accent-dark); }
.geo-tip-form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Marker cluster overrides for geo-tips */
.geo-tip-cluster {
  background: rgba(14, 165, 233, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.geo-tip-cluster div {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  .geo-tip-category-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .geo-tip-cat-option { padding: 8px 2px; }
  .geo-tip-cat-option .cat-emoji { font-size: 1.1rem; }
  .geo-tip-fab { bottom: 80px; right: 12px; height: 44px; padding: 0 14px; font-size: 0.82rem; }
}


/* ======================================================
   BOTTOM NAV — Mobile tab bar (injected by nav.js)
   ====================================================== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  height: 60px;
  display: none; /* shown via media query */
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body.has-bottom-nav { padding-bottom: 60px; }
}

.bottom-nav .tab {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-3);
  font-size: 0.65rem; font-weight: 500;
  padding: 6px 12px;
  border-radius: 10px;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav .tab:hover { color: var(--text-2); }
.bottom-nav .tab.active { color: var(--accent); font-weight: 600; }

.bottom-nav .tab-ic {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.bottom-nav .tab-ic svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}


/* ======================================================
   LEGAL PAGES — Basic layout for privacy, terms, etc.
   ====================================================== */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}
.legal-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem; font-weight: 800;
  color: var(--text); margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.legal-page .legal-updated {
  font-size: 0.82rem; color: var(--text-3);
  margin-bottom: 32px;
}
.legal-page h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin-top: 32px; margin-bottom: 12px;
}
.legal-page p, .legal-page li {
  font-size: 0.9rem; color: var(--text-2);
  line-height: 1.7; margin-bottom: 12px;
}
.legal-page ul, .legal-page ol {
  padding-left: 24px; margin-bottom: 16px;
}
.legal-page a {
  color: var(--accent); text-decoration: none;
}
.legal-page a:hover { text-decoration: underline; }


/* ======================================================
   CONTACT FORM — Consistent with auth cards
   ====================================================== */
.contact-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}
.contact-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem; font-weight: 800;
  color: var(--text); margin-bottom: 8px;
}
.contact-page .subtitle {
  font-size: 0.9rem; color: var(--text-2);
  margin-bottom: 32px; line-height: 1.6;
}
.contact-form {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}


/* ======================================================
   DISCOVER — Social map discovery page shared utilities
   ====================================================== */

/* Full viewport map container */
.discover-map {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* Sliding side/bottom panel */
.discover-panel {
  position: fixed;
  z-index: 400;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.35s cubic-bezier(0.32, 0, 0.67, 0);
}
.discover-panel.open {
  transition-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
}

/* Story popup enhancement for Leaflet */
.story-popup {
  padding: 16px;
  min-width: 240px;
  max-width: 300px;
  color: #fff;
}

/* Story card component */
.story-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.story-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

/* Traveler card component */
.traveler-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.traveler-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

/* "X% similar" match badge */
.match-badge {
  background: rgba(16,185,129,0.15);
  color: #10B981;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16,185,129,0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

/* View toggle buttons */
.discover-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 3px;
}
.discover-toggle button.active {
  background: var(--accent);
  color: #fff;
}

/* Search overlay input */
.discover-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s;
}
.discover-search input:focus {
  background: rgba(255,255,255,0.14);
  border-color: var(--accent);
}
