:root{
  --navbar-height: 3.25rem;
  --blue:#1E73E8;
  --blue-dark:#155ab6;
  --orange:#F4A300;
  --yellow:#FFD600;
  --red:#D93025;
  --gray:#555;
  --gray-1:#f8f9fa;
  --gray-2:#e0e0e0;
  --gray-3:#555;
  --text:#1a1a1a;
  --radius:10px;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);background:#fff;overflow:hidden}
a{text-decoration:none}

body.has-navbar-fixed-top {
  padding-top: var(--navbar-height);
}

.navbar.is-fixed-top {
  height: var(--navbar-height);
  min-height: var(--navbar-height);
  z-index: 2000;
}

.wrap{
  display:flex;
  position:relative;
  height:calc(100vh - var(--navbar-height));
  overflow:hidden;
}
#map{
  flex:1 1 auto;
  height:100%;
  min-width:0;
  position:relative;
}
.side{
  width:340px;
  height:100%;
  background:var(--gray-1);
  border-left:1px solid var(--gray-2);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.top{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px;
  border-bottom:1px solid var(--gray-2);
  background:#fff;
}
.top input{
  flex:1;
  padding:6px 10px;
  border:1px solid #ccc;
  border-radius:6px;
  font-size:14px;
  outline:none;
}
.top input:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 1px var(--blue);
}
.chip{
  background:var(--gray-2);
  border-radius:20px;
  padding:4px 10px;
  font-size:13px;
  color:#333;
}

.list{
  flex:1 1 auto;
  overflow-y:auto;
  padding:12px;
  scrollbar-width:thin;
  scrollbar-color:var(--gray-2) transparent;
}
.list::-webkit-scrollbar{width:6px}
.list::-webkit-scrollbar-thumb{background:var(--gray-2);border-radius:3px}

.item{
  border:2px solid var(--blue);
  border-radius:var(--radius);
  background:#fff;
  margin-bottom:12px;
  padding:12px 14px;
  box-shadow:0 1px 2px rgba(0,0,0,0.08);
  transition:transform .1s ease, box-shadow .15s ease;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:90px;
}
.item:hover{
  transform:translateY(-2px);
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.row1{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
}
.name{
  font-weight:600;
  font-size:15px;
  color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.badge{
  min-width:36px;
  text-align:center;
  padding:4px 8px;
  border-radius:6px;
  color:#fff;
  font-weight:600;
  background:var(--blue);
}

.row2{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--gray-3);
  flex-wrap:wrap;
}
.row2 span{
  flex:1;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.btn{
  background:var(--blue);
  color:#fff;
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
}
.btn:hover{background:var(--blue-dark)}

.item.blue .badge{background:var(--blue)}
.item.orange .badge{background:var(--orange)}
.item.red .badge{background:var(--red)}
.item.yellow .badge{background:var(--yellow)}

.empty{
  text-align:center;
  color:#777;
  font-size:14px;
  padding:20px;
}

/* Marqueurs Leaflet */
.marker{
  display:flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:50%;
  border:3px solid #fff;box-shadow:0 0 4px rgba(0,0,0,.3);
  color:#fff;font-weight:700;font-size:15px;line-height:1;
  transform:translate(-50%,-50%);
  user-select:none;
  font-family:Roboto,Arial,sans-serif;
}
.marker span{position:relative;top:-1px}
.marker.blue{background:var(--blue)}
.marker.orange{background:var(--orange)}
.marker.red{background:var(--red)}
.marker.yellow{background:var(--yellow)}
.marker:hover{transform:translate(-50%,-50%) scale(1.12);transition:transform .1s}

@media (max-width:900px){
  .wrap{flex-direction:column}
  #map{height:58%;flex:0 0 58%}
  .side{width:100%;height:42%;flex:0 0 42%}
}

/* logo hack */
.navbar.is-primary .navbar-brand img {
  filter: brightness(0) invert(1);
}

/* language selector */
.navbar-item.i18n:not(.is-active) img {
  filter: grayscale();
}

.navbar-item.i18n.is-active {
  background-color: transparent !important;
}

/* @TODO delete this hack */
.hero.is-primary,
.navbar.is-primary {
  background-color: #0067b1;

  /* rgba(0,0,0,.6) ftw */
}

.hero.has-background {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}

.hero .column.has-background {
  background-color: rgba(0, 103, 177, 0.75);
  padding: 2em;
}

.has-text-shadow {
  text-shadow: 3px 3px 10px #0a0a0a;
}

.is-download {
  margin-top: 1em;
}

section p > a:not(.button) {
  text-decoration: underline !important;
}

.img-logo-round-boarder {
  width: 120px;
  border-radius:10px;
}

.margin-right-30 {
  margin-right: 30px;
}

.width-150 {
  width: 150px;
}

.background-green {
  background-color: #49f1ab;
  border-width: 0;
}


.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-size: 11px;
  line-height: 1.3;
  padding: 2px 6px;
  z-index: 1200;
}

.leaflet-control-attribution a {
  color: #0645ad;
  text-decoration: underline;
}

/* Leaflet popup content */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-popup-content {
  margin: 12px 14px;
}

.iw {
  max-width: 260px;
  line-height: 1.35;
  word-break: break-word;
}

.iw .btn {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  background: #1e73e8;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.map-error {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #555;
  background: #f8f9fa;
  text-align: center;
}

.stale-banner{
  position:absolute;
  top:8px;
  left:12px;
  right:calc(340px + 12px);
  z-index:1100;
  background:#fff3cd; color:#664d03; border:1px solid #ffe69c;
  padding:10px 12px; margin:0; border-radius:8px;
  font-size:14px;
}

@media (max-width:900px){
  .stale-banner{
    right:12px;
    max-height:72px;
    overflow:auto;
  }
}