:root{
  /* Brand (light blue + white) */
  --lm-sky-50:#f0f9ff;
  --lm-sky-100:#e0f2fe;
  --lm-sky-200:#bae6fd;
  --lm-sky-300:#7dd3fc;
  --lm-sky-400:#38bdf8;
  --lm-sky-500:#0ea5e9;
  --lm-sky-600:#0284c7;
  --lm-sky-700:#0369a1;

  --lm-ink:#0b1220;
  --lm-muted:#475569;
  --lm-border:rgba(2,132,199,.14);
  --lm-ring:rgba(14,165,233,.22);
  --lm-glow:rgba(14,165,233,.18);
  --lm-shadow:0 18px 60px rgba(2,132,199,.10), 0 10px 30px rgba(15,23,42,.08);
}

/* Base */
body.lm-public{
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--lm-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(900px circle at 18% 10%, rgba(14,165,233,.16), transparent 55%),
    radial-gradient(900px circle at 82% 15%, rgba(2,132,199,.14), transparent 55%),
    radial-gradient(900px circle at 40% 92%, rgba(56,189,248,.10), transparent 52%),
    linear-gradient(180deg, #fbfdff 0%, #f4faff 40%, #fbfdff 100%);
}

/* Full-page overlay (pattern + noise + animated blobs) */
.lm-page{
  position: relative;
  min-height: 100vh;
}

.lm-page::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(2,132,199,.22) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .08;
}

.lm-page::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .09;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(120deg, rgba(255,255,255,.55), rgba(255,255,255,0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* Sticky / glass navbar */
header.lm-navbar{
  position: sticky;
  top: 0;
  z-index: 50;
  /* More solid header so page content doesn't visually "overlay" while scrolling.
     (Radar rings are handled separately as a fixed overlay.) */
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(2,132,199,.12);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

/* The public header already contains the compact support strip.
   Keep everything as a single sticky header without any offset. */
header.lm-nav{ top: 0; }

/* Scroll progress bar */
.lm-progress{
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--lm-sky-500), var(--lm-sky-700));
  box-shadow: 0 0 0 3px rgba(14,165,233,.10);
}

/* Surfaces (glass cards) */
.lm-surface{
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.82) 100%);
  border: 1px solid rgba(2,132,199,.12);
  box-shadow: 0 14px 50px rgba(2,132,199,.06), 0 2px 10px rgba(15,23,42,.05);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s cubic-bezier(.2,.8,.2,1);
}

.lm-surface.lm-lift:hover{
  transform: translateY(-4px);
  box-shadow: var(--lm-shadow);
}

.lm-surface.lm-shine{
  position: relative;
  overflow: hidden;
}

.lm-surface.lm-shine::before{
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background: radial-gradient(1200px 400px at 10% 10%, rgba(14,165,233,.22), transparent 40%),
              radial-gradient(900px 300px at 90% 15%, rgba(2,132,199,.18), transparent 46%);
  opacity: .35;
}

/* Buttons */
.lm-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 1rem;
  font-weight: 750;
  letter-spacing: -.01em;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}

.lm-btn:active{ transform: translateY(1px) scale(.99); }

.lm-btn-primary{
  color: #fff;
  background: linear-gradient(135deg, var(--lm-sky-500), var(--lm-sky-700));
  box-shadow: 0 16px 40px rgba(14,165,233,.18);
}

.lm-btn-primary:hover{
  box-shadow: 0 18px 55px rgba(14,165,233,.28);
}

.lm-btn-outline{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(2,132,199,.18);
  color: rgba(2, 132, 199, .95);
}

.lm-btn-outline:hover{
  border-color: rgba(2,132,199,.42);
  box-shadow: 0 10px 22px rgba(2,132,199,.12);
  transform: translateY(-1px);
}

.lm-btn-soft{
  background: rgba(224,242,254,.8);
  border: 1px solid rgba(2,132,199,.16);
  color: rgba(3,105,161,.95);
}

.lm-btn-soft:hover{
  background: rgba(224,242,254,1);
  transform: translateY(-1px);
}

.lm-btn-glow::after{
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background: radial-gradient(60% 120% at 50% 50%, rgba(14,165,233,.32), transparent 60%);
  opacity: 0;
  z-index: -1;
  transition: opacity .28s ease;
}

.lm-btn-glow:hover::after{ opacity: 1; }

/* Inputs */
.lm-field{
  transition: box-shadow .18s ease, border-color .18s ease;
}

.lm-field:focus{
  outline: none;
  box-shadow: 0 0 0 5px var(--lm-ring);
  border-color: rgba(2,132,199,.45);
}

/* Chips */
.lm-chip{
  border: 1px solid rgba(2,132,199,.18);
  background: rgba(240,249,255,.78);
}

/* Hero title (descender fix + subtle animation) */
.lm-hero-title{
  line-height: 1.1;
  padding-bottom: .18em; /* prevents "y" descender from clipping */
  overflow: visible;
}

.lm-hero-title .lm-hero-line{ display:block; }

.lm-hero-title .lm-hero-line{
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  filter: blur(8px);
}

.lm-hero-title.is-visible .lm-hero-line{
  animation: lm-hero-in .85s cubic-bezier(.2,.8,.2,1) forwards;
}

.lm-hero-title.is-visible .lm-hero-line--2{
  animation-delay: .16s;
}

.lm-hero-quick{
  position: relative;
  display: inline-block;
  padding-bottom: .1em;
  background-size: 200% 100%;
}

.lm-hero-quick::after{
  content: "";
  position: absolute;
  left: -.06em;
  right: -.06em;
  bottom: .14em;
  height: .34em;
  border-radius: 9999px;
  background: rgba(14,165,233,.18);
  z-index: -1;
  transform: scaleX(.2);
  transform-origin: left;
  opacity: 0;
}

.lm-hero-title.is-visible .lm-hero-quick::after{
  animation: lm-hero-underline .9s cubic-bezier(.2,.8,.2,1) .55s forwards;
}

.lm-hero-title.is-visible .lm-hero-quick{
  animation: lm-hero-shimmer 3.8s ease-in-out 1.1s infinite;
}

@keyframes lm-hero-in{
  to{ opacity:1; transform: translate3d(0,0,0); filter: blur(0); }
}

@keyframes lm-hero-underline{
  to{ opacity:1; transform: scaleX(1); }
}

@keyframes lm-hero-shimmer{
  0%,100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}

/* Floating shapes (optional markup) */
@keyframes lm-float{
  0%,100%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(0,-10px,0); }
}

.lm-float{ animation: lm-float 4.5s ease-in-out infinite; }

@keyframes lm-drift{
  0%{ transform: translate3d(-10px,0,0) scale(1); }
  50%{ transform: translate3d(10px,-10px,0) scale(1.04); }
  100%{ transform: translate3d(-10px,0,0) scale(1); }
}

.lm-blob{
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 9999px;
  filter: blur(30px);
  opacity: .45;
  pointer-events: none;
  animation: lm-drift 10s ease-in-out infinite;
}

.lm-blob.one{ background: rgba(14,165,233,.22); top: -90px; left: -120px; }
.lm-blob.two{ background: rgba(2,132,199,.18); top: -120px; right: -140px; animation-duration: 12s; }
.lm-blob.three{ background: rgba(56,189,248,.14); bottom: -140px; left: 20%; animation-duration: 14s; }

/* Better pagination links (Tailwind default is ok, we just soften it) */
nav[role="navigation"] .relative.inline-flex.items-center{
  border-radius: 12px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .lm-surface, .lm-btn{ transition: none !important; }
  .lm-float, .lm-blob{ animation: none !important; }
  .lm-hero-title .lm-hero-line{ opacity: 1 !important; transform: none !important; filter: none !important; }
  .lm-hero-quick::after{ display:none !important; }
  .lm-hero-quick{ animation: none !important; }
}


/* Lightweight reveal animation (no heavy libs) */
.lm-reveal{
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.lm-reveal.is-in{
  opacity: 1;
  transform: translate3d(0,0,0);
}

/* Back-to-top */
.lm-btt{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(2,132,199,.18);
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 30px rgba(2,132,199,.14);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 60;
}
.lm-btt span{ font-weight: 900; color: rgba(2,132,199,.95); }
.lm-btt.is-visible{
  opacity: 1;
  transform: translate3d(0,0,0);
  pointer-events: auto;
}
.lm-btt:hover{
  transform: translate3d(0,-2px,0);
}

/* Home: nearby list */
.lm-near-item{
  border-color: rgba(2,132,199,.12);
}
.lm-near-item:hover{
  border-color: rgba(2,132,199,.22);
  box-shadow: 0 16px 40px rgba(2,132,199,.08);
}

/* Loading state (location button) */
button.is-loading{
  position: relative;
  opacity: .92;
}
button.is-loading::after{
  content:"";
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,.7);
  border-top-color: rgba(255,255,255,0);
  margin-left: .6rem;
  display: inline-block;
  vertical-align: middle;
  animation: lm-spin .9s linear infinite;
}
@keyframes lm-spin{ to{ transform: rotate(360deg); } }


/* Hero radar pulse (bigger, stronger, under text) */
.lm-radar{
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background: rgba(14,165,233,1);
  box-shadow:
    0 0 0 10px rgba(14,165,233,.14),
    0 0 38px rgba(2,132,199,.28);
}
.lm-radar::before,
.lm-radar::after{
  content:"";
  position: absolute;
  border-radius: 9999px;
  border: 5px solid rgba(14,165,233,.42);
  box-shadow: 0 0 0 1px rgba(14,165,233,.12), 0 0 60px rgba(2,132,199,.22);
  opacity: 0;
  transform: scale(.35);
  animation: lm-radar-pulse 2.35s ease-out infinite;
  inset: -70px;
}
.lm-radar::after{
  inset: -115px;
  border-color: rgba(14,165,233,.25);
  animation-delay: 1.12s;
}
@keyframes lm-radar-pulse{
  0%   { opacity: 0; transform: scale(.22); }
  12%  { opacity: .92; }
  70%  { opacity: .24; }
  100% { opacity: 0; transform: scale(2.05); }
}

/* Hide the in-chip radar visuals when the JS fixed overlay is active.
   We keep the element in the DOM as an "anchor" to calculate the overlay position. */
.lm-radar.lm-radar-hidden{ opacity: 0 !important; }

/* Fixed radar overlay (keeps rings above the sticky navbar without lifting the whole hero section) */
.lm-radar-fixed{
  position: fixed;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 80; /* above navbar (50) + progress (60) */
  background: transparent;
}
.lm-radar-fixed::before,
.lm-radar-fixed::after{
  content:"";
  position: absolute;
  border-radius: 9999px;
  border: 5px solid rgba(14,165,233,.42);
  box-shadow: 0 0 0 1px rgba(14,165,233,.12), 0 0 60px rgba(2,132,199,.22);
  opacity: 0;
  transform: scale(.35);
  animation: lm-radar-pulse 2.35s ease-out infinite;
  inset: -70px;
}
.lm-radar-fixed::after{
  inset: -115px;
  border-color: rgba(14,165,233,.25);
  animation-delay: 1.12s;
}

@media (prefers-reduced-motion: reduce){
  .lm-radar::before,
  .lm-radar::after,
  .lm-radar-fixed::before,
  .lm-radar-fixed::after{ animation: none !important; display: none !important; }
}
body.lm-lite .lm-radar{ display:none !important; }




/* Lite mode (auto on low memory / save-data) */
body.lm-lite .lm-page::before,
body.lm-lite .lm-page::after,
body.lm-lite .lm-blob {
  display: none !important;
}
body.lm-lite .lm-surface {
  backdrop-filter: none !important;
}
body.lm-lite .lm-btn-glow {
  box-shadow: none !important;
}

/* Mobile performance tweaks */
@media (max-width: 640px) {
  .lm-surface {
    backdrop-filter: none;
  }
  .lm-page::before,
  .lm-page::after {
    opacity: 0.35;
  }
}

/* Nav links (modern pill) */
.lm-navlink{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .30rem .48rem;
  border-radius: 9999px;
  font-weight: 750;
  color: rgba(15,23,42,.82);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.lm-navlink:hover{
  background: rgba(14,165,233,.10);
  color: rgba(3,105,161,1);
  transform: translateY(-0.5px);
  box-shadow: 0 8px 18px rgba(2,132,199,.10);
}
.lm-navlink::after{
  content:"";
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  border-radius: 9999px;
  background: rgba(2,132,199,.55);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.lm-navlink:hover::after{ transform: scaleX(1); }

.lm-navlink-mobile{
  padding: .6rem .75rem;
  border-radius: 1rem;
  font-weight: 750;
  color: rgba(15,23,42,.86);
  transition: background .18s ease, transform .18s ease;
}
.lm-navlink-mobile:hover{
  background: rgba(14,165,233,.10);
  transform: translateX(2px);
}



/* SweetAlert2 Theme (global) */
.swal2-container{ z-index: 99999 !important; }
.swal2-popup{
  border-radius: 18px !important;
  box-shadow: 0 20px 70px rgba(15,23,42,.18) !important;
  padding: 22px 22px 18px !important;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}
.swal2-title{
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: rgba(15,23,42,.92) !important;
}
.swal2-html-container{
  font-size: .98rem !important;
  color: rgba(51,65,85,.92) !important;
  line-height: 1.55 !important;
}
.swal2-actions{ gap: .6rem !important; }
.swal2-styled{
  border-radius: 12px !important;
  padding: .68rem 1.05rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
.swal2-styled.swal2-confirm{
  background: rgba(14,165,233,1) !important;
}
.swal2-styled.swal2-cancel{
  background: rgba(100,116,139,1) !important;
}
.swal2-styled:focus{ box-shadow: 0 0 0 3px rgba(14,165,233,.28) !important; }

/* Toast look */
.swal2-toast{
  border-radius: 14px !important;
  padding: .65rem .85rem !important;
  box-shadow: 0 18px 50px rgba(15,23,42,.16) !important;
}
.swal2-toast .swal2-title{
  font-size: .95rem !important;
  font-weight: 800 !important;
}
.swal2-toast .swal2-html-container{ font-size: .9rem !important; }

/* Backdrop blur disabled (some browsers show a "blur strip" artifact) */
.swal2-backdrop-show{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ------------------------------
   Performance (speed / smoothness)
   - Auto-enabled via JS (body.lm-lite) on slow networks / low-memory devices
   - Also applied on small screens by default
--------------------------------- */
@media (max-width: 768px){
  /* Animated blobs + noise overlay are pretty but expensive on mobile GPUs */
  .lm-blob{ display:none !important; }
  .lm-page::after{ display:none !important; }
  /* Reduce expensive backdrop blur */
  .lm-navbar{ backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* Lite mode (auto) */
body.lm-lite .lm-blob{ display:none !important; }
body.lm-lite .lm-page::after{ display:none !important; }
body.lm-lite .lm-navbar{ backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.lm-lite .lm-surface{
  transition: none !important;
  box-shadow: 0 10px 28px rgba(15,23,42,.06) !important;
}

/* Skip rendering offscreen heavy sections */
footer{
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}


/* LM blur artifact fix (some browsers render backdrop-filter with strange smears) */
.lm-nav, .lm-surface, .lm-chip{ -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
