:root {
  --bg: #070b12;
  --panel: #0f1724;
  --panel-2: #151f30;
  --panel-3: #1c2a3d;
  --text: #eef4ff;
  --muted: #9fb0c8;
  --accent: #4c8dff;
  --accent-2: #35d0ba;
  --border: rgba(255,255,255,.1);
  --shadow: 0 1.5rem 4rem rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.app-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.map-pane {
  position: relative;
  min-height: 100vh;
  background: #101826;
  overflow: hidden;
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.leaflet-container {
  background: #111827;
}

.height-overlay {
  position: absolute;
  z-index: 500;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 2rem));
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: rgba(9, 14, 24, .88);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  text-align: center;
}

.height-label {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
}

.height-value {
  margin-top: .15rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
}

.height-value:has(.height-spinner) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
}

.height-spinner {
  width: .72em;
  height: .72em;
  border-width: .08em;
  color: var(--accent-2);
  flex: 0 0 auto;
}

.place-value,
.weather-value {
  color: var(--muted);
  font-size: .95rem;
}

.weather-value {
  margin-top: .35rem;
  color: #c9d8ef;
}

.location-fab {
  position: absolute;
  z-index: 500;
  left: 1.25rem;
  bottom: 1.25rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.side-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  border-left: 1px solid var(--border);
  background: linear-gradient(180deg, #0d1421 0%, #090d15 100%);
}

.side-header {
  flex: 0 0 auto;
  height: 75px;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 20, 33, .96);
}

.logo-text {
  color: #fff;
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

.logo-text:hover { color: var(--accent-2); }

.side-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.25rem 1.25rem 6rem;
  scrollbar-color: var(--panel-3) transparent;
}

.side-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(9, 13, 21, .96);
  color: var(--muted);
  font-size: .9rem;
}

.footer-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8e6ff;
  text-decoration: underline;
}

.content-card,
.ad-slot {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(21, 31, 48, .86);
  box-shadow: 0 1rem 2rem rgba(0,0,0,.18);
}

.content-card {
  padding: 1.1rem;
}

.content-card h1,
.content-card h2 {
  margin-bottom: .65rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.content-card h1 { font-size: 1.75rem; }
.content-card h2 { font-size: 1.2rem; }
.content-card p { color: var(--muted); }

.search-card .form-control {
  border-color: rgba(255,255,255,.12);
  background: #09101b;
  color: #fff;
}

.search-card .form-control::placeholder { color: #697891; }
.search-card .form-label { color: #c9d8ef; font-weight: 700; }

.search-results {
  margin-top: .75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: #09101b;
}

.search-result-item {
  display: block;
  width: 100%;
  padding: .85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: #eaf1ff;
  text-align: left;
}

.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover { background: rgba(76,141,255,.18); }

.status-message {
  margin-top: .85rem;
  padding: .85rem 1rem;
  border-radius: .9rem;
  background: rgba(255,255,255,.08);
  color: #eaf1ff;
}

.ad-slot,
.inline-ad {
  display: grid;
  place-items: center;
  min-height: 92px;
  color: #8293ad;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.045), rgba(255,255,255,.045) 10px, rgba(255,255,255,.025) 10px, rgba(255,255,255,.025) 20px);
}

.inline-ad {
  margin: 1rem 0;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 1rem;
}

.share-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.share-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem;
}

.share-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 38px;
  padding: .45rem .55rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: rgba(8, 14, 24, .72);
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.share-chip i {
  width: 1em;
  text-align: center;
  color: var(--accent-2);
}

.share-chip:hover {
  background: rgba(76,141,255,.22);
  color: #fff;
}

.share-tile,
.stat-tile {
  min-height: 82px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(8, 14, 24, .72);
  color: #fff;
  text-decoration: none;
}

.share-tile {
  display: grid;
  place-items: center;
  padding: .75rem;
  font-weight: 800;
}

button.share-tile { width: 100%; }
.share-tile:hover { background: rgba(76,141,255,.22); color: #fff; }

.stat-tile {
  padding: .9rem;
}

.stat-tile span {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
}

.stat-tile small {
  color: var(--muted);
}

.recent-table-wrap {
  border-radius: 1rem;
  overflow: hidden;
}

.recent-row { cursor: pointer; }
.recent-row:hover td { color: #fff; }

.info-text p {
  line-height: 1.7;
}

.legal-modal {
  border: 1px solid var(--border);
  background: #0e1624;
  color: #eef4ff;
}

.legal-modal p { color: #bfd0e8; }

@media (max-width: 992px) {
  html,
  body { overflow: auto; }

  .app-shell {
    display: block;
    height: auto;
    overflow: visible;
  }

  .map-pane {
    min-height: 72vh;
  }

  .side-pane {
    height: auto;
    min-height: 100vh;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .side-scroll {
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .share-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .share-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .height-overlay {
    top: .75rem;
    padding: 1rem;
  }

  .location-fab {
    left: .75rem;
    right: .75rem;
    width: calc(100% - 1.5rem);
  }
}


.centerShareButton{
  width: 150px;
  height: 150px;
}
