﻿:root {
  color-scheme: dark light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-size: 16px;
  background: #f7f8fb;
  color: #1a1a1a;
}
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  min-height: 100%;
}
body {
  background: linear-gradient(180deg, #ffffff 0%, #eef1f8 100%);
}
button, input, select {
  font: inherit;
}
.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
}
body.embed-mode {
  height: 100vh;
  overflow: hidden;
  background: transparent;
}
body.embed-mode .app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 100%;
  min-height: 0;
  padding: 10px;
}
body.embed-mode .hero {
  border-radius: 14px;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
body.embed-mode .hero h1 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}
body.embed-mode .eyebrow {
  display: none;
}
body.embed-mode .subtitle {
  font-size: 0.95rem;
  max-width: 100%;
}
body.embed-mode .panel {
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
}
body.embed-mode main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.embed-mode .panel-filters,
body.embed-mode .status-bar {
  flex: 0 0 auto;
}
body.embed-mode .panel-map {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
}
body.embed-mode .toolbar {
  gap: 12px;
}
body.embed-mode .field {
  min-width: 180px;
}
body.embed-mode .filter-grid {
  gap: 12px;
  margin-top: 14px;
}
body.embed-mode input[type="search"],
body.embed-mode select {
  padding: 12px 14px;
}
body.embed-mode .count {
  font-size: 0.95rem;
}
body.embed-mode #map {
  height: 100%;
  min-height: 0;
}
body.embed-mode .hero h1,
body.embed-mode .subtitle {
  line-height: 1.2;
}
.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0a3d62 0%, #1e5f8e 100%);
  color: #fff;
  padding: 28px 24px;
  margin-bottom: 20px;
}
.hero-content {
  min-width: 0;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}
.subtitle {
  margin: 0;
  max-width: 720px;
  opacity: 0.92;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.hero-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.hero-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, #17c4d0 0%, #0e9aa7 100%);
  color: #ffffff;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(23, 196, 208, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero-cta a:hover,
.hero-cta a:focus {
  background: linear-gradient(135deg, #17c4d0 0%, #0e9aa7 100%);
  box-shadow: 0 14px 28px rgba(23, 196, 208, 0.36);
  transform: translateY(-2px);
}
.hero-cta a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}
.panel {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(24, 39, 75, 0.08);
  padding: 20px;
  margin-bottom: 20px;
}
.toolbar {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}
.field span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #33415c;
}
input[type="search"], select {
  border: 1px solid #d7dae2;
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #f9fbff;
  color: #12213a;
  font-size: 1rem;
}
input[type="search"]::placeholder {
  color: #6b7280;
  opacity: 1;
}
input[type="search"]:focus,
select:focus {
  border-color: #4f7fff;
  box-shadow: 0 0 0 4px rgba(79, 127, 255, 0.12);
  color: #12213a;
}
select option {
  background: #ffffff;
  color: #12213a;
  padding: 8px;
}
select option:checked {
  background: #4f7fff;
  color: #ffffff;
}
.count {
  margin-left: auto;
  font-weight: 700;
  color: #0f172a;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.panel-map {
  padding: 0;
  overflow: hidden;
}
#map {
  width: 100%;
  min-height: 68vh;
  height: 100%;
}
.leaflet-container {
  width: 100%;
  height: 100%;
}
.nano-marker {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
  transform: rotate(-45deg);
}
.marker-symbol {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
  transform: rotate(45deg);
}
.marker-boutique {
  background: #C0392B;
}
.marker-kiosque {
  background: #1f6e7d;
}
.marker-relais {
  background: #2f4f8d;
}
.map-legend {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(215, 218, 226, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #12213a;
  padding: 10px 12px;
  box-shadow: 0 16px 32px rgba(24, 39, 75, 0.14);
  font-size: 0.88rem;
  font-weight: 700;
}
.map-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.map-legend span {
  width: 1.4em;
  text-align: center;
}
.status-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.status {
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.96rem;
}
.status.info {
  background: #eef5ff;
  color: #1d3d7a;
}
.status.error {
  background: #ffe9e9;
  color: #8f1e1e;
}
.status.hidden {
  display: none;
}
.panel-footer p {
  margin: 0 0 8px;
  color: #5c667a;
}
.panel-footer code {
  background: #f3f6ff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.92rem;
}
.leaflet-popup-content-wrapper {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(33, 54, 92, 0.14);
}
.leaflet-popup-content {
  margin: 8px 10px;
  line-height: 1.35;
  color: #0f172a;
}
.popup-card {
  max-height: 230px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.popup-card::-webkit-scrollbar {
  width: 6px;
}
.popup-card::-webkit-scrollbar-track {
  background: transparent;
}
.popup-card::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.22);
  border-radius: 999px;
}
.popup-title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 700;
}
.popup-image {
  width: 100%;
  max-height: 85px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}
.popup-meta {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}
.popup-meta span {
  display: block;
  font-size: 0.82rem;
}
.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.popup-actions a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
}
body.embed-mode .popup-card {
  max-height: 210px;
}
body.embed-mode .popup-image {
  max-height: 70px;
}
body.embed-mode .leaflet-popup-content {
  margin: 7px 9px;
}
.btn-call {
  background: #eff8ff;
  color: #055d9f;
  border-color: #a5d8ff;
}
.btn-whatsapp {
  background: #e6fff0;
  color: #137d41;
  border-color: #9de7b8;
}
@media (max-width: 860px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 760px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-cta {
    flex: 0 0 280px;
    align-items: flex-start;
  }
  .hero-cta a {
    width: auto;
  }
}
@media (max-width: 720px) {
  .app-shell {
    padding: 14px;
  }
  .hero {
    padding: 22px 18px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .count {
    margin-left: 0;
  }
  body.embed-mode #map {
    min-height: 0;
  }
  .map-legend {
    max-width: calc(100vw - 48px);
    font-size: 0.82rem;
  }
}
