:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #f5f5f7;
  color: #1b1b1f;
}

* {
  box-sizing: border-box;
}

/* ── Bandeau hors-ligne ───────────────────────────────────────────────── */
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: #295852;
  color: #D4E4E0;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.offline-banner[hidden] { display: none; }
.offline-banner.is-visible { transform: translateY(0); }
body.is-offline .site-header { margin-top: 34px; }

/* État désactivé hors-ligne */
.offline-disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
}

.site-header {
  background: #fff;
  color: #295852;
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2ebe6;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-logo {
  width: 300px;
  height: auto;
  display: block;
}

.site-credit {
  font-size: 0.75rem;
  color: #3a3a3a;
  font-weight: 700;
  align-self: flex-end;
}
.site-credit a {
  color: #3a9e8f;
  text-decoration: none;
  font-weight: 700;
}
.site-credit a:hover {
  color: #2d7a6e;
  text-decoration: underline;
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Avatar header ───────────────────────────────────────────────────── */
.header-avatar-btn {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
}

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  overflow: hidden;
}

.header-avatar--guest {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.header-avatar--initials {
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.header-badge-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid transparent;
  overflow: hidden;
}
.header-avatar--initials .header-badge-ring {
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
}
.header-badge-icon {
  position: absolute;
  bottom: -3px;
  right: -5px;
  font-size: 0.75rem;
  line-height: 1;
  background: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  pointer-events: none;
}

/* ── Bouton hamburger ───────────────────────────────────────────────────── */
.hamburger-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.admin-notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  pointer-events: none;
}
.hamburger-btn span:not(.admin-notif-badge) {
  display: block;
  height: 2px;
  background: #295852;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.hamburger-btn[aria-expanded="true"] {
  background: #f1f5f9;
  border-color: #295852;
}
/* Animation croix */
.hamburger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Dropdown menu ───────────────────────────────────────────────────────── */
.hamburger-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.14);
  overflow: hidden;
  z-index: 9999;
  animation: menu-appear 0.15s ease;
}
@keyframes menu-appear {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hamburger-user {
  padding: 0.75rem 1rem 0.6rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}
.hamburger-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #295852;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.hamburger-item:hover {
  background: #f8fafc;
}
.hamburger-item + .hamburger-item {
  border-top: 1px solid #f1f5f9;
}
.hamburger-item--danger {
  color: #b23b3b;
}

a.hamburger-item {
  text-decoration: none;
}

.hamburger-item[hidden] {
  display: none !important;
}

.layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.panel {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.panel h2 {
  margin-top: 0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-top: 0.35rem;
  border-radius: 8px;
  border: 1px solid #c8d5ce;
  font: inherit;
}

textarea {
  resize: vertical;
}

button,
a.button {
  background: #295852;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: inherit;
  line-height: normal;
}

button.secondary,
a.button.secondary {
  background: #fff;
  color: #295852;
  border: 1px solid #c8d5ce;
}

button.danger {
  background: #b23b3b;
}

/* Le chip "Danger" dans la barre de filtre ne doit pas hériter du fond rouge */
.filter-chip.danger {
  background: #f5faf8;
  color: #295852;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.helper {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #4f6560;
}

.helper.error {
  color: #b23b3b;
}

.map-panel {
  grid-column: span 9;
}

.map {
  position: relative;
  height: clamp(420px, 70vh, 720px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d2ddd7;
  background: linear-gradient(135deg, #D4E4E0, #f5faf8);
}

.map-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 1rem;
  align-items: start;
}

.map-header p {
  margin: 0 0 0.5rem;
}

.map-control {
  display: grid;
  gap: 0.4rem;
  max-width: 320px;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #4f6560;
}

.map-control select {
  background: #fff;
}

.map-search {
  display: grid;
  gap: 0.35rem;
}

.map-search label {
  margin-bottom: 0;
}

.map-search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #c8d5ce;
  padding: 0.35rem 0.5rem 0.35rem 0.85rem;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.map-search-field input {
  border: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.map-search-field input:focus {
  outline: none;
}

.map-search-field button {
  background: #295852;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 0;
}


.category-bar {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-chip {
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  border: 1px solid #d2ddd7;
  background: #f5faf8;
  color: #295852;
}

.filter-chip.is-active {
  background: #295852;
  color: #fff;
  border-color: #295852;
}

/* Bouton "+" visible uniquement sur mobile */
.filter-more-btn {
  display: none;
}

/* Priorité absolue : un chip avec l'attribut hidden reste caché même sur mobile */
.filter-chip[hidden] {
  display: none !important;
}

.filter-count {
  opacity: 0.7;
  font-size: 0.85em;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-chip.hygiene.is-active {
  background: #0891b2;
  border-color: #0891b2;
  color: #fff;
}

.legend-chip.danger.is-active {
  background: #fca5a5;
  border-color: #f87171;
  color: #7f1d1d;
}

.legend-chip.transport.is-active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

.legend-chip.sante.is-active {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}

.legend-chip.energie.is-active {
  background: #ca8a04;
  border-color: #ca8a04;
  color: #fff;
}

.legend-chip.interest.is-active {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.stacked label {
  margin-bottom: 0.75rem;
}

.points-list {
  display: grid;
  gap: 0.4rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.load-more-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  margin-top: 0.25rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #295852;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
}

.load-more-btn:hover {
  background: #e2e8f0;
}

.point-card.is-highlighted {
  border: 2px solid #295852;
  box-shadow: 0 10px 20px rgba(31, 53, 87, 0.18);
}

.point-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.poi-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1f2937;
}

.poi-badge.recent {
  background: #dcfce7;
  color: #166534;
}

.poi-badge.old {
  background: #fef3c7;
  color: #92400e;
}

.poi-badge.stale {
  background: #fee2e2;
  color: #b91c1c;
}

.poi-badge.none {
  background: #e2e8f0;
  color: #475569;
}

.account-points {
  display: grid;
  gap: 0.75rem;
}

.list-panel {
  grid-column: span 3;
  align-self: start;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.list-panel h2 {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.point-card {
  border: 1px solid #dde6e1;
  border-radius: 10px;
  padding: 0.4rem 0.5rem;
  background: #fdfdfd;
}

.card-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  cursor: pointer;
}

.card-type-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  color: #fff;
}

.card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-head h3 {
  margin: 0;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.card-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #576d66;
}

.card-type-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-stars {
  font-size: 0.72rem;
  white-space: nowrap;
  color: #64748b;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-meta {
  font-size: 0.72rem;
  color: #94a3b8;
}

.card-see-btn {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: none;
  background: #295852;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-see-btn:hover {
  background: #347a6e;
}

.point-meta {
  font-size: 0.85rem;
  color: #576d66;
  margin: 0.2rem 0;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  margin: 0.75rem 0;
}

.member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.avatar-img {
  object-fit: cover;
}

/* ── Badges rando ──────────────────────────────────────────────────────────── */
.avatar-badge-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.avatar-badge-ring {
  display: inline-flex;
  border-radius: 50%;
  border: 2.5px solid transparent;
  padding: 1px;
}
.avatar-badge-ring .comment-avatar,
.avatar-badge-ring .member-avatar {
  margin: 0;
}
.avatar-badge-icon {
  position: absolute;
  bottom: -3px;
  right: -5px;
  font-size: 0.85rem;
  line-height: 1;
  background: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  pointer-events: none;
}
/* Carte membre : badge plus petit (avatar déjà grand) */
.member-card .avatar-badge-icon {
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  bottom: -2px;
  right: -4px;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,119,6,0.4); }
  50% { box-shadow: 0 0 8px 3px rgba(217,119,6,0.5); }
}

.member-shared {
  font-size: 0.8rem;
  color: #94a3b8;
}

.member-name {
  font-size: 0.85rem;
  color: #295852;
}

.member-since {
  font-size: 0.8rem;
  color: #94a3b8;
}

.member-stat {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

/* Notifications */
.notif-item {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.notif-item:last-child { border-bottom: none; }

.notif-unread {
  background: #f0faf7;
  border-left: 3px solid #347a6e;
}

.notif-message {
  font-size: 0.88rem;
  color: #295852;
  line-height: 1.4;
}

.notif-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.notif-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.notif-goto,
.notif-mark-read {
  font-size: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  color: #347a6e;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

.vote-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  margin: 0.75rem 0;
}

.vote-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.vote-buttons {
  display: flex;
  gap: 0.4rem;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  font-size: 0.9rem;
  color: #295852;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.vote-btn:hover.vote-up {
  background: #f0fdf4;
  border-color: #86efac;
}

.vote-btn:hover.vote-down {
  background: #fef2f2;
  border-color: #fca5a5;
}

.vote-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.point-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: #295852;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.point-details {
  display: grid;
  gap: 0.75rem;
}

.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.detail-title-row h3 {
  margin: 0;
  flex: 1;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 20px;
  padding: 0.3rem 0.7rem;
  flex-shrink: 0;
}

.rating-badge-score {
  font-weight: 800;
  font-size: 1.05rem;
  color: #92400e;
}

.rating-badge-stars {
  display: inline-flex;
  gap: 0.05rem;
}

.rating-badge-stars .star {
  font-size: 1.15rem;
}

.rating-badge-count {
  font-size: 0.72rem;
  color: #92400e;
  opacity: 0.7;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.rating-stars {
  display: inline-flex;
  gap: 0.1rem;
}

.star {
  color: #cbd5e1;
  font-size: 1rem;
}

.star.is-filled {
  color: #f59e0b;
}

.rating-score {
  font-weight: 700;
  color: #295852;
}

.rating-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0;
}

.rating-field {
  border: 0;
  padding: 0;
  margin: 0 0 0.75rem;
}

.rating-field legend {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.2rem;
  align-items: center;
}

.rating-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-input label {
  font-size: 1.6rem;
  color: #9DD4C8;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #f5b301;
}

.rating-input input:checked ~ label {
  color: #f5b301;
}

.poi-marker {
  background: transparent;
  border: none;
}

.poi-marker.is-highlighted .poi-marker-icon {
  transform: scale(1.1);
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.poi-marker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 1.5rem;
  background: #fff;
  border-radius: 50%;
  border: 2px solid rgba(31, 53, 87, 0.2);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.2);
}

/* ── Cluster markers ──────────────────────────────────────────────────────── */
.custom-cluster-wrap {
  background: transparent !important;
  border: none !important;
}
.custom-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.custom-cluster:hover {
  transform: scale(1.12);
}
.custom-cluster span {
  line-height: 1;
}

.nearby-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nearby-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.nearby-card[hidden] {
  display: none;
}

.nearby-card:hover {
  background: #f0faf7;
  border-color: #9DD4C8;
}

.nearby-icon { font-size: 1.4rem; flex-shrink: 0; }

.nearby-info { flex: 1; min-width: 0; }

.nearby-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.nearby-name {
  font-size: 0.88rem;
  color: #295852;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-rating {
  font-size: 0.75rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.nearby-meta {
  font-size: 0.78rem;
  color: #64748b;
}

.nearby-show-more {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: none;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #347a6e;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.nearby-show-more:hover {
  background: #f0faf7;
  border-color: #9DD4C8;
}

.dialog-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.poi-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  background: #f8fafc;
  border-radius: 14px;
  padding: 0.75rem;
}

.carousel-photo {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  display: block;
}

.carousel-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.carousel-nav {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #295852;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.carousel-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-count {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  color: #4f6560;
}

.photo-preview {
  width: 100%;
  max-height: min(70vh, 720px);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #dde6e1;
}

.photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.photo-preview-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dde6e1;
}

.leaflet-control-layers label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.leaflet-control-layers label input {
  margin: 0;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #edf5f2;
  font-size: 0.8rem;
  margin-right: 0.35rem;
}

.comments {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-bubble {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
  background: #edf5f2;
  border-radius: 0 12px 12px 12px;
  padding: 0.6rem 0.85rem;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.comment-author {
  font-size: 0.85rem;
  color: #295852;
}

.comment-body {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.45;
  margin: 0.15rem 0 0;
}

.comment-time {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.3rem;
  display: block;
}

.comment-form-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.75rem;
}

.comment-form-section h4 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.comment-form-section textarea {
  width: 100%;
  box-sizing: border-box;
}

.rating-input-lg label {
  font-size: 2rem;
}

.site-footer {
  background: #1a3d38;
  color: #cbd5e1;
  padding: 2.5rem 2rem 1.5rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-about h2 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.footer-about p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
  max-width: 800px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a5c50;
}

.footer-col h3 {
  color: #e2e8f0;
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  font-size: 0.82rem;
  color: #94a3b8;
  padding: 0.15rem 0;
}

.footer-col li strong {
  color: #cbd5e1;
}

.footer-col p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 0.5rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #2a5c50;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
  text-decoration: underline;
}

/* ── Formulaire contact ──────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem 1.5rem 1.5rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a3d38;
}
.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid #c8d5ce;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #347a6e;
  box-shadow: 0 0 0 2px rgba(52, 122, 110, 0.15);
}
.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-form button[type="submit"] {
  align-self: flex-end;
  padding: 0.55rem 1.5rem;
  background: #295852;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button[type="submit"]:hover {
  background: #347a6e;
}
.contact-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.contact-status {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.84rem;
  text-align: center;
}
.contact-status.success {
  background: #d1fae5;
  color: #065f46;
}
.contact-status.error {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 720px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .offline-banner { font-size: 0.72rem; padding: 0.35rem 0.75rem; }
  body.is-offline .site-header { margin-top: 30px; }
}

.auth-dialog,
.modal-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 860px;
  width: min(90vw, 860px);
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.3);
}

.auth-dialog::backdrop,
.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid #e2ebe6;
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.2rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#details-header-rating {
  flex-shrink: 0;
}

#details-header-rating .rating-badge {
  margin: 0;
}

.icon-button {
  background: transparent;
  color: #295852;
  border: 1px solid #d2ddd7;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.auth-dialog-content {
  padding: 1.25rem 1.5rem 1.5rem;
  display: grid;
  gap: 1.5rem;
}

.auth-provider {
  background: #f5faf8;
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

/* ── Boutons de connexion sociale ──────────────────────────────────────── */
.social-login-buttons {
  display: grid;
  gap: 0.5rem;
}

.social-login-btn {
  display: flex;
  width: 100%;
  padding: 0.7rem 1rem;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.15s;
}
.social-login-btn:hover { opacity: 0.88; }
.social-login-btn:disabled { background: #9e9e9e !important; cursor: not-allowed; opacity: 0.6; }

.social-login-icon { flex-shrink: 0; }
.social-login-message:empty { display: none; }

.google-btn    { background: #4285f4; }
.facebook-btn  { background: #1877f2; }

.auth-forms {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.auth-forms form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (max-width: 720px) {
  .auth-dialog {
    max-height: 90dvh;
    overflow-y: auto;
  }
  .auth-dialog-content {
    padding: 1rem;
    gap: 1rem;
  }
  .auth-provider {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  .auth-forms {
    gap: 0.75rem;
  }
  .auth-forms h3 {
    margin: 0;
    font-size: 1rem;
  }
  .auth-forms input {
    padding: 0.5rem;
  }
}

@media (max-width: 1100px) {
  .map-panel,
  .list-panel {
    grid-column: 1 / -1;
  }

  .map-header {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 720px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Layout : colonne unique, padding réduit */
  .layout {
    grid-template-columns: 1fr;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  /* Header */
  .site-header {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
  }
  .site-logo {
    width: 160px;
  }

  /* Map panel et list panel : pleine largeur sur mobile */
  .map-panel,
  .list-panel {
    grid-column: 1 / -1;
  }

  .map-panel {
    padding: 0;
    margin: 0 -0.75rem;
    border-radius: 0;
    box-shadow: none;
  }

  .list-panel {
    position: static;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 -0.75rem;
    padding: 1.5rem 0.75rem;
  }

  /* Zone de contrôles au-dessus de la carte */
  .map-header-new {
    padding: 0.4rem 0.75rem;
  }

  /* Controls : colonne (GR+import sur 1 ligne, search dessous) */
  .controls-row {
    flex-direction: column;
    gap: 0.3rem;
    align-items: stretch;
  }

  /* GR control : select + lien import côte à côte sur mobile */
  .gr-control {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
  }

  /* gr-select-row prend l'espace disponible (select + toggle éventuellement) */
  .gr-select-row {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .gr-control select {
    width: 100%;
  }

  /* Lien import GPX compact sur la même ligne */
  .gr-control .gpx-link {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.78rem;
  }

  /* Formulaire de recherche dans le header : largeur adaptée au mobile */
  #map-search-form:hover,
  #map-search-form:focus-within {
    width: min(240px, calc(100vw - 8rem));
  }

  /* Carte pleine largeur, coins droits */
  .map {
    height: clamp(320px, 55vh, 520px);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* Barre de catégories pleine largeur */
  .category-bar {
    border-radius: 0;
    margin: 0.5rem 0 0;
    padding: 0 0.75rem 0.5rem;
  }

  /* Chips légèrement plus compacts sur mobile */
  .filter-chip {
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
  }

  /* Masquer les chips 4+ par défaut sur mobile */
  .category-bar .filter-chip:nth-child(n+4) {
    display: none;
  }

  /* Afficher tous les chips quand la barre est étendue */
  .category-bar.is-expanded .filter-chip:nth-child(n+4) {
    display: inline-flex;
  }

  /* Bouton "+" / "−" sur mobile */
  .filter-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    border: 1.5px dashed #94a3b8;
    background: transparent;
    color: #295852;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
  }


  /* Texte d'attribution cartographique plus petit */
  .leaflet-control-attribution {
    font-size: 7px !important;
  }
}

/* Styles pour l'import GPX */
.gpx-upload-label {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: #295852;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

.gpx-upload-label:hover {
  background: #295852;
}

.gpx-upload-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Ligne POI (points d'eau + toilettes côte à côte) */
.poi-toggles-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 720px) {
  .poi-toggles-row {
    gap: 0.25rem;
    max-height: 4.5rem;
    overflow: hidden;
  }
  .poi-toggles-row label {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
}


.poi-load-msgs {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* Toggles POI — style commun compact */
.water-points-toggle,
.toilet-points-toggle,
.shower-points-toggle,
.vues-points-toggle,
.webcam-points-toggle,
.weather-points-toggle,
.lodging-points-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
  user-select: none;
  white-space: nowrap;
}

.water-points-toggle[hidden],
.toilet-points-toggle[hidden],
.shower-points-toggle[hidden],
.vues-points-toggle[hidden],
.webcam-points-toggle[hidden],
.weather-points-toggle[hidden],
.lodging-points-toggle[hidden] {
  display: none;
}

.water-points-toggle {
  background: #f0faf7;
  color: #295852;
  border: 1px solid #9DD4C8;
}

.water-points-toggle:hover {
  background: #D4E4E0;
  border-color: #9DD4C8;
}

.toilet-points-toggle {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.toilet-points-toggle:hover {
  background: #ccfbf1;
  border-color: #5eead4;
}

.shower-points-toggle {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.shower-points-toggle:hover {
  background: #cffafe;
  border-color: #67e8f9;
}

.vues-points-toggle {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.vues-points-toggle:hover {
  background: #fef3c7;
  border-color: #fcd34d;
}

.webcam-points-toggle {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.webcam-points-toggle:hover {
  background: #f3e8ff;
  border-color: #c4b5fd;
}

.water-points-toggle input[type="checkbox"],
.toilet-points-toggle input[type="checkbox"],
.shower-points-toggle input[type="checkbox"],
.vues-points-toggle input[type="checkbox"],
.webcam-points-toggle input[type="checkbox"],
.weather-points-toggle input[type="checkbox"],
.lodging-points-toggle input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.water-points-toggle label,
.toilet-points-toggle label,
.shower-points-toggle label,
.vues-points-toggle label,
.webcam-points-toggle label,
.weather-points-toggle label,
.lodging-points-toggle label {
  cursor: pointer;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.water-load-msg {
  margin: 0;
  font-size: 0.75rem;
  color: #295852;
}

.water-load-msg[hidden] {
  display: none;
}

button.small {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.info-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.info-card.highlight {
  background: linear-gradient(135deg, #295852 0%, #347a6e 100%);
  border-color: #295852;
  color: white;
}

.info-card.highlight .info-label {
  color: rgba(255, 255, 255, 0.9);
}

.info-card.highlight .info-value {
  color: white;
}

.info-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
  min-width: 0;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3d38;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .point-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.water-info h4 {
  margin: 0 0 0.75rem 0;
  color: #295852;
  font-size: 1rem;
}

.water-fields {
  display: grid;
  gap: 0.5rem;
}

.water-field {
  font-size: 0.9rem;
  padding: 0.4rem;
  background: white;
  border-radius: 6px;
}

.water-field strong {
  color: #295852;
  margin-right: 0.5rem;
}

#water-fields {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 1rem;
  background: #f0faf7;
  border: 1px solid #9DD4C8;
  border-radius: 8px;
}

#water-fields label {
  margin-bottom: 0;
}

/* Champs spécifiques — styles communs */
#water-specific-fields,
#bivouac-specific-fields,
#shelter-specific-fields,
#food-specific-fields,
#hygiene-specific-fields,
#danger-specific-fields,
#transport-specific-fields,
#sante-specific-fields,
#energie-specific-fields,
#interest-specific-fields {
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

#water-specific-fields h4,
#bivouac-specific-fields h4,
#shelter-specific-fields h4,
#food-specific-fields h4,
#hygiene-specific-fields h4,
#danger-specific-fields h4,
#transport-specific-fields h4,
#sante-specific-fields h4,
#energie-specific-fields h4,
#interest-specific-fields h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

#water-specific-fields label,
#bivouac-specific-fields label,
#shelter-specific-fields label,
#food-specific-fields label,
#hygiene-specific-fields label,
#danger-specific-fields label,
#transport-specific-fields label,
#sante-specific-fields label,
#energie-specific-fields label,
#interest-specific-fields label {
  margin-bottom: 0.75rem;
}

/* Point d'eau — bleu */
#water-specific-fields {
  background: linear-gradient(135deg, #f0faf7 0%, #D4E4E0 100%);
  border: 2px solid #4a9e8e;
}

/* Bivouac — vert */
#bivouac-specific-fields {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #10b981;
}

#bivouac-specific-fields h4 {
  color: #047857;
}

/* Abri — ambre */
#shelter-specific-fields {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
}

#shelter-specific-fields h4 {
  color: #b45309;
}

/* Nourriture — rouge/orange */
#food-specific-fields {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #ef4444;
}

#food-specific-fields h4 {
  color: #b91c1c;
}

/* Hygiène — cyan */
#hygiene-specific-fields {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  border: 2px solid #06b6d4;
}

#hygiene-specific-fields h4 {
  color: #0e7490;
}

/* Point d'intérêt — teal/nature */
#interest-specific-fields {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 2px solid #14b8a6;
}

#interest-specific-fields h4 {
  color: #0f766e;
}

/* Énergie — jaune/ambre */
#energie-specific-fields {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 2px solid #eab308;
}

#energie-specific-fields h4 {
  color: #a16207;
}

/* Santé — rouge médical */
#sante-specific-fields {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 2px solid #f43f5e;
}

#sante-specific-fields h4 {
  color: #be123c;
}

/* Transport — violet */
#transport-specific-fields {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 2px solid #8b5cf6;
}

#transport-specific-fields h4 {
  color: #6d28d9;
}

/* Danger — orange */
#danger-specific-fields {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px solid #f97316;
}

#danger-specific-fields h4 {
  color: #c2410c;
}

/* Affichage des infos water dans les détails */
.water-info-box {
  background: linear-gradient(135deg, #f0faf7 0%, #D4E4E0 100%);
  border: 2px solid #4a9e8e;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.water-info-box h4 {
  margin: 0 0 1rem 0;
  color: #295852;
  font-size: 1.1rem;
}

.water-info-grid {
  display: grid;
  gap: 0.5rem;
}

.water-info-item {
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid #4a9e8e;
}

.water-info-item strong {
  color: #295852;
  margin-right: 0.5rem;
}

/* Alignement des contrôles de couches Leaflet */
.leaflet-control-layers label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.leaflet-control-layers input[type="radio"],
.leaflet-control-layers input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}

.leaflet-control-layers-base label,
.leaflet-control-layers-overlays label {
  display: flex;
  align-items: center;
}

/* Planificateur d'étapes */
.trip-planner {
  background: #f8fafc;
  border-top: 2px solid #e2e8f0;
  padding: 2rem 0;
  margin-top: 2rem;
}

.trip-planner .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.trip-planner h2 {
  margin: 0 0 0.5rem 0;
  color: #1a3d38;
}

.planner-controls {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.planner-controls label {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
}

.planner-controls label select {
  margin-top: auto;
}

.planner-controls button,
.planner-controls .export-dropdown-toggle {
  padding: 0.75rem 1.5rem;
  background: #295852;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  transition: background 0.2s;
}
.planner-controls .export-dropdown-toggle {
  background: #4a9e8e;
}

.planner-controls button:hover {
  background: #295852;
}

.planner-controls button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.stages-result {
  margin-top: 2rem;
}

.stages-summary {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #4a9e8e;
  margin-bottom: 1.5rem;
}

.stages-summary h3 {
  margin: 0 0 1rem 0;
  color: #295852;
}

.stages-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.summary-item {
  text-align: center;
}

.summary-item .label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.summary-item .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a3d38;
  margin-top: 0.25rem;
}

.elev-tooltip-wrap {
  position: relative;
  cursor: help;
}

.elev-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a3d38;
  color: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.6;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.elev-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a3d38;
}

.elev-tooltip-wrap:hover .elev-tooltip {
  display: block;
}

.stages-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stages-table table {
  width: 100%;
  border-collapse: collapse;
}

.stages-table thead {
  background: #295852;
  color: white;
}

.stages-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stages-table td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.stages-table tbody tr:hover {
  background: #f8fafc;
}

.stages-table tbody tr:last-child td {
  border-bottom: none;
}

.stages-show-more {
  display: block;
  margin: 1rem auto;
  padding: 0.6rem 1.5rem;
  background: #f1f5f9;
  color: #295852;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.stages-show-more:hover {
  background: #e2e8f0;
}

.day-badge {
  display: inline-block;
  background: #4a9e8e;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

.poi-type-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.poi-type-water {
  background: #9DD4C8;
  color: #295852;
}

.poi-type-bivouac {
  background: #d1fae5;
  color: #047857;
}

.poi-type-supply {
  background: #fde68a;
  color: #92400e;
}

.poi-type-lodging {
  background: #fecaca;
  color: #991b1b;
}

.poi-type-interest {
  background: #e9d5ff;
  color: #6b21a8;
}

.poi-type-shelter {
  background: #fed7aa;
  color: #c2410c;
}

.poi-type-food {
  background: #fbcfe8;
  color: #9f1239;
}

.poi-type-hygiene {
  background: #a5f3fc;
  color: #0e7490;
}

.poi-type-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.poi-type-transport {
  background: #e0e7ff;
  color: #3730a3;
}

.poi-type-sante {
  background: #dcfce7;
  color: #15803d;
}

.poi-type-energie {
  background: #fef9c3;
  color: #a16207;
}

.poi-type-toilet {
  background: #fef3c7;
  color: #92400e;
}

.poi-type-shower {
  background: #e0e7ff;
  color: #3730a3;
}

.poi-type-vue {
  background: #fce7f3;
  color: #9d174d;
}

@media (max-width: 768px) {
  .planner-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .planner-controls label {
    min-width: 100%;
  }
  
  .stages-table {
    overflow-x: auto;
  }
}

/* Map header compact */
.map-instruction-compact {
  font-size: 0.875rem;
  margin: 0 0 0.75rem 0;
  color: #475569;
}

.map-controls-grid {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.map-control-compact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 200px;
}

.control-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.map-control-compact select {
  padding: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
}

.gpx-upload-label-compact {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background: #295852;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}

.gpx-upload-label-compact:hover {
  background: #295852;
}

.clear-gpx-compact {
  padding: 0.5rem;
  margin-top: 0.5rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
}

.clear-gpx-compact:hover {
  background: #dc2626;
}

.map-search-compact {
  flex: 1;
  min-width: 200px;
}

.map-search-field-compact {
  display: flex;
  gap: 0.5rem;
}

.map-search-field-compact input {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.map-search-field-compact button {
  padding: 0.5rem 0.75rem;
  background: #295852;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.map-search-field-compact button:hover {
  background: #295852;
}

@media (max-width: 768px) {
  .map-controls-grid {
    flex-wrap: wrap;
  }
  
  .map-control-compact,
  .map-search-compact {
    flex: 1 1 100%;
  }
}


/* Contrôles map inline - version simplifiée */
.gr-select-inline {
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  min-width: 200px;
  height: 42px;
}

.gpx-upload-label-inline {
  display: inline-block;
  padding: 0.625rem 1rem;
  background: #295852;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
  white-space: nowrap;
  height: 42px;
  line-height: 42px;
  padding: 0 1rem;
}

.gpx-upload-label-inline:hover {
  background: #295852;
}

.clear-gpx-inline {
  padding: 0 0.75rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  height: 42px;
}

.clear-gpx-inline:hover {
  background: #dc2626;
}

.map-search-inline {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.map-search-inline input {
  flex: 1;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  height: 42px;
}

.map-search-inline button {
  padding: 0 0.875rem;
  background: #295852;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-search-inline button:hover {
  background: #295852;
}

/* Ajuster la grille - TOUS sur une ligne */
.map-controls-grid {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: nowrap;
}

/* Map header nouvelle version - simple et efficace */
.map-header-new {
  padding: 0.6rem 1rem;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.map-instruction-pill {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  margin: 0;
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  font-size: 0.78rem;
  color: #374151;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  pointer-events: none;
  transition: opacity 0.3s;
}

.controls-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

/* Select GR */
.controls-row select {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  width: 200px;
  flex-shrink: 0;
}

/* Bouton Import GPX */
.gpx-button {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: #295852;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  height: 100%;
  transition: background 0.2s;
}

.gpx-button:hover {
  background: #295852;
}

/* Bouton effacer */
.clear-gpx-btn {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.clear-gpx-btn:hover {
  background: #dc2626;
}

@media (max-width: 1024px) {
  .controls-row {
    flex-wrap: wrap;
  }
}


/* Groupe GR avec lien en dessous */
.gr-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gr-select-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gr-control select {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  width: 200px;
}

/* Lien GPX souligné */
.gpx-link {
  font-size: 0.75rem;
  color: #295852;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.gpx-link:hover {
  color: #4a9e8e;
}

/* Ajuster les contrôles row */
.controls-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

/* Formulaire de recherche dans le header — même dimensions que le burger */
#map-search-form {
  display: flex;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: white;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.25s ease, box-shadow 0.2s;
}

#map-search-form:hover,
#map-search-form:focus-within {
  width: 240px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
  border-color: #94a3b8;
}

#map-search-form button {
  order: -1;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1.05rem;
  color: #295852;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}

#map-search-form button:hover {
  color: #1a3d38;
}

#map-search-form input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem 0.5rem 0;
  font-size: 0.875rem;
  border: none;
  outline: none;
  background: transparent;
  height: 40px;
  opacity: 0;
  transition: opacity 0.15s ease 0.08s;
}

#map-search-form:hover input,
#map-search-form:focus-within input {
  opacity: 1;
}

/* Détecteur de bivouac */
.bivouac-detector {
  background: #fefce8;
  border-top: 2px solid #fde047;
  padding: 2rem 0;
  margin-top: 2rem;
}

.bivouac-detector .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bivouac-detector h2 {
  margin: 0 0 0.5rem 0;
  color: #854d0e;
}

.detector-controls {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.detector-controls label {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  font-weight: 600;
  color: #78716c;
}

.detector-controls label select {
  margin-top: auto;
}

.detector-controls select {
  padding: 0.5rem;
  border: 1px solid #d6d3d1;
  border-radius: 6px;
  background: white;
  font-size: 0.875rem;
}

.detector-controls button {
  padding: 0.75rem 1.5rem;
  min-width: 220px;
  background: #65a30d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.detector-controls button:hover {
  background: #4d7c0f;
}

#clear-bivouac,
#clear-water {
  background: #dc2626;
}

#clear-bivouac:hover,
#clear-water:hover {
  background: #b91c1c;
}

.bivouac-result {
  margin-top: 2rem;
}

.bivouac-summary {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #a3e635;
  margin-bottom: 1.5rem;
}

.bivouac-summary h3 {
  margin: 0 0 1rem 0;
  color: #65a30d;
}

.bivouac-zone-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #65a30d;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.bivouac-zone-card:hover {
  background: #f7fee7;
  transform: translateX(4px);
}

.bivouac-zone-card h4 {
  margin: 0 0 0.5rem 0;
  color: #1a3d38;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bivouac-zone-card .zone-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: #64748b;
}

.bivouac-zone-card .zone-info span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.zone-quality-good {
  border-left-color: #16a34a;
}

.zone-quality-moderate {
  border-left-color: #f59e0b;
}

.zone-quality-fair {
  border-left-color: #eab308;
}

/* Badge de notation au-dessus des marqueurs */
.poi-rating-badge {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  border: 2px solid white;
  z-index: 1000;
}

.poi-marker {
  position: relative;
}

/* Badges de qualité pour les zones bivouac */
.bivouac-quality-good {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

.bivouac-quality-moderate {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.bivouac-quality-fair {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%) !important;
}

.bivouac-marker {
  position: relative;
}

/* Icône tente bivouac */
.bivouac-tent-icon {
  background: #65a30d;
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-size: 1.2rem;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Marqueur point d'eau France */
.water-point-marker {
  position: relative;
}

/* ===========================
   DÉTECTEUR DE POINTS D'EAU
   =========================== */
.water-detector {
  background: #f0faf7;
  border-top: 2px solid #9DD4C8;
  padding: 2rem 0;
  margin-top: 2rem;
}

.water-detector .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.water-detector h2 {
  margin: 0 0 0.5rem 0;
  color: #295852;
}

.water-result {
  margin-top: 2rem;
}

.water-summary {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #9DD4C8;
  margin-bottom: 1.5rem;
}

.water-summary h3 {
  margin: 0 0 0.5rem 0;
  color: #347a6e;
}

.water-summary p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.water-source-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #4a9e8e;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.water-source-card:hover {
  background: #f0faf7;
  transform: translateX(4px);
}

.water-source-card h4 {
  margin: 0 0 0.5rem 0;
  color: #1a3d38;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.water-drops {
  margin-left: auto;
  font-size: 0.9rem;
}

.water-quality-label {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #295852;
  font-style: italic;
}

.water-quality-excellent { border-left-color: #4a9e8e; }
.water-quality-good      { border-left-color: #347a6e; }
.water-quality-moderate  { border-left-color: #6db8a8; }
.water-quality-fair      { border-left-color: #94a3b8; }

/* Badges de qualité eau sur les marqueurs */
.water-quality-badge-excellent { background: linear-gradient(135deg, #4a9e8e 0%, #347a6e 100%) !important; }
.water-quality-badge-good      { background: linear-gradient(135deg, #347a6e 0%, #295852 100%) !important; }
.water-quality-badge-moderate  { background: linear-gradient(135deg, #6db8a8 0%, #4a9e8e 100%) !important; }
.water-quality-badge-fair      { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important; }

.water-marker {
  position: relative;
}

.water-drop-icon {
  background: #4a9e8e;
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-size: 1.2rem;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.water-drop-icon {
  background: linear-gradient(135deg, #4a9e8e 0%, #295852 100%);
  color: white;
  border-radius: 50% 50% 50% 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  box-shadow: 0 3px 8px rgba(3, 105, 161, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  transition: all 0.2s ease;
}

.water-drop-icon svg {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.water-point-marker:hover .water-drop-icon {
  transform: translateX(-50%) rotate(-45deg) scale(1.15);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Animation pulse pour les points d'eau */
@keyframes water-pulse {
  0%, 100% {
    box-shadow: 0 3px 8px rgba(3, 105, 161, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(14, 165, 233, 0.7);
  }
  50% {
    box-shadow: 0 3px 8px rgba(3, 105, 161, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(14, 165, 233, 0);
  }
}

.water-drop-icon {
  animation: water-pulse 2s ease-in-out infinite;
}

/* ── Toilettes publiques ─────────────────────────────────────────────────── */
.toilet-point-marker {
  position: relative;
}

.toilet-drop-icon {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: white;
  border-radius: 50% 50% 50% 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  box-shadow: 0 3px 8px rgba(13, 148, 136, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  transition: all 0.2s ease;
  animation: toilet-pulse 2s ease-in-out infinite;
}

.toilet-emoji {
  font-size: 14px;
  line-height: 1;
  transform: rotate(45deg);
  display: block;
}

.toilet-point-marker:hover .toilet-drop-icon {
  transform: translateX(-50%) rotate(-45deg) scale(1.15);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes toilet-pulse {
  0%, 100% {
    box-shadow: 0 3px 8px rgba(13, 148, 136, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(13, 148, 136, 0.7);
  }
  50% {
    box-shadow: 0 3px 8px rgba(13, 148, 136, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(13, 148, 136, 0);
  }
}

.toilet-load-msg {
  margin: 0;
  font-size: 0.75rem;
  color: #0f766e;
}
.toilet-load-msg[hidden] { display: none; }

/* Marqueur douche publique */
.shower-point-marker {
  position: relative;
}

.shower-drop-icon {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  border-radius: 50% 50% 50% 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  box-shadow: 0 3px 8px rgba(8, 145, 178, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  transition: all 0.2s ease;
}

.shower-emoji {
  font-size: 14px;
  line-height: 1;
  transform: rotate(45deg);
  display: block;
}

.shower-point-marker:hover .shower-drop-icon {
  transform: translateX(-50%) rotate(-45deg) scale(1.15);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shower-load-msg {
  margin: 0;
  font-size: 0.75rem;
  color: #0891b2;
}
.shower-load-msg[hidden] { display: none; }

/* Zone interdite */
.zone-quality-forbidden {
  border-left-color: #dc2626 !important;
  background: #fef2f2 !important;
  opacity: 0.7;
}

.zone-quality-forbidden h4 {
  color: #dc2626 !important;
}

.zone-quality-excellent {
  border-left-color: #10b981;
}

.zone-details {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

/* Badge interdit */
.bivouac-quality-forbidden {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

.bivouac-quality-excellent {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* Lignes cliquables du tableau des étapes */
.stage-row-clickable {
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.stage-row-clickable:hover {
  background-color: #f0faf7 !important;
  transform: scale(1.01);
}

.stage-row-clickable:active {
  transform: scale(0.99);
}

/* Bivouac info box - style vert nature */
.bivouac-info-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.bivouac-info-box h4 {
  margin: 0 0 1rem 0;
  color: #047857;
  font-size: 1.1rem;
}

.bivouac-info-grid {
  display: grid;
  gap: 0.5rem;
}

.bivouac-info-item {
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid #10b981;
}

.bivouac-info-item strong {
  color: #065f46;
  font-weight: 600;
}

/* Shelter info box - style orange/marron */
.shelter-info-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.shelter-info-box h4 {
  margin: 0 0 1rem 0;
  color: #b45309;
  font-size: 1.1rem;
}

.shelter-info-grid {
  display: grid;
  gap: 0.5rem;
}

.shelter-info-item {
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid #f59e0b;
}

.shelter-info-item strong {
  color: #92400e;
  font-weight: 600;
}


/* Food info box - style rouge/orange */
.food-info-box {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.food-info-box h4 {
  margin: 0 0 1rem 0;
  color: #b91c1c;
  font-size: 1.1rem;
}

.food-info-grid {
  display: grid;
  gap: 0.5rem;
}

.food-info-item {
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid #ef4444;
}

.food-info-item strong {
  color: #991b1b;
  font-weight: 600;
}

/* Food info box - style rouge/orange */
.food-info-box {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.food-info-box h4 {
  margin: 0 0 1rem 0;
  color: #b91c1c;
  font-size: 1.1rem;
}

.food-info-grid {
  display: grid;
  gap: 0.5rem;
}

.food-info-item {
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid #ef4444;
}

.food-info-item strong {
  color: #991b1b;
  font-weight: 600;
}

/* Hygiene info box - style cyan/bleu clair */
.hygiene-info-box {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  border: 2px solid #06b6d4;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.hygiene-info-box h4 {
  margin: 0 0 1rem 0;
  color: #0e7490;
  font-size: 1.1rem;
}

.hygiene-info-grid {
  display: grid;
  gap: 0.5rem;
}

.hygiene-info-item {
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid #06b6d4;
}

.hygiene-info-item strong {
  color: #155e75;
  font-weight: 600;
}

/* Danger — popup info box */
.danger-info-box {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px solid #f97316;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.danger-info-box h4 {
  margin: 0 0 1rem 0;
  color: #c2410c;
  font-size: 1.1rem;
}

.danger-info-grid {
  display: grid;
  gap: 0.5rem;
}

.danger-info-item {
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid #f97316;
}

.danger-info-item strong {
  color: #9a3412;
  font-weight: 600;
}

/* Transport — popup info box */
.transport-info-box {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 2px solid #8b5cf6;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.transport-info-box h4 {
  margin: 0 0 1rem 0;
  color: #6d28d9;
  font-size: 1.1rem;
}

.transport-info-grid {
  display: grid;
  gap: 0.5rem;
}

.transport-info-item {
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid #8b5cf6;
}

.transport-info-item strong {
  color: #4c1d95;
  font-weight: 600;
}

/* Santé — popup info box */
.sante-info-box {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 2px solid #f43f5e;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.sante-info-box h4 {
  margin: 0 0 1rem 0;
  color: #be123c;
  font-size: 1.1rem;
}

.sante-info-grid {
  display: grid;
  gap: 0.5rem;
}

.sante-info-item {
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid #f43f5e;
}

.sante-info-item strong {
  color: #9f1239;
  font-weight: 600;
}

/* Énergie — popup info box */
.energie-info-box {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 2px solid #eab308;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.energie-info-box h4 {
  margin: 0 0 1rem 0;
  color: #a16207;
  font-size: 1.1rem;
}

.energie-info-grid {
  display: grid;
  gap: 0.5rem;
}

.energie-info-item {
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid #eab308;
}

.energie-info-item strong {
  color: #78350f;
  font-weight: 600;
}

/* Point d'intérêt — popup info box */
.interest-info-box {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 2px solid #14b8a6;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.interest-info-box h4 {
  margin: 0 0 1rem 0;
  color: #0f766e;
  font-size: 1.1rem;
}

.interest-info-grid {
  display: grid;
  gap: 0.5rem;
}

.interest-info-item {
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid #14b8a6;
}

.interest-info-item strong {
  color: #134e4a;
  font-weight: 600;
}

/* Slope gradient legend */
.slope-legend {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 8px;
  padding: 7px 10px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
}

.slope-legend-title {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: #374151;
}

.slope-legend-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slope-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #374151;
}

.slope-swatch {
  display: inline-block;
  width: 18px;
  height: 5px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── Snow cover legend ──────────────────────────────────────────────────── */
.snow-legend {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 10px 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: auto;
  min-width: 220px;
  max-width: 260px;
  backdrop-filter: blur(6px);
}
.snow-legend-title {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: #2a5c50;
}
.snow-legend-bar {
  width: 100%;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 3px;
}
/* Sentineige : blanc (récent) → bleu foncé (ancien) */
.snow-legend-bar--sentineige {
  background: linear-gradient(to right,
    hsl(0, 0%, 97%),
    hsl(195, 85%, 82%),
    hsl(200, 80%, 70%),
    hsl(210, 70%, 55%),
    hsl(220, 60%, 45%)
  );
}
.snow-legend-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 6px;
}
.snow-legend-source {
  font-size: 9px;
  color: #9ca3af;
  margin-top: 5px;
  line-height: 1.4;
}

/* Notification toast enneigement */
.snow-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 58, 95, 0.92);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10000;
  max-width: 90vw;
  text-align: center;
}
.snow-notification--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Elevation profile chart ─────────────────────────────────────────────── */
.elevation-section {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 12px 16px 10px;
}

.elevation-container {
  max-width: 1400px;
  margin: 0 auto;
}

.elevation-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.elevation-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
  white-space: nowrap;
}

.elevation-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.elev-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 3px 9px;
  min-width: 54px;
}

.elev-stat-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  font-weight: 600;
  line-height: 1.4;
}

.elev-stat-value {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.elevation-chart-wrap {
  position: relative;
  height: 150px;
}

#elevation-chart {
  width: 100% !important;
  height: 100% !important;
  cursor: crosshair;
}

/* ── Panneau stats sélection profil altimétrique ─────────────────────── */
.elev-selection-stats[hidden] { display: none; }
.elev-selection-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0faf7;
  border: 1px solid #9DD4C8;
  border-radius: 8px;
  position: relative;
}

.elev-selection-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0 4px;
}
.elev-selection-close:hover {
  color: #1f2937;
}

.elev-sel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 8px;
  min-width: 54px;
}

.elev-sel-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #347a6e;
  font-weight: 600;
  line-height: 1.4;
}

.elev-sel-value {
  font-size: 12px;
  font-weight: 700;
  color: #2a5c50;
  line-height: 1.3;
}

/* Marqueurs Départ / Arrivée sur la trace */
.track-endpoint-icon { background: none !important; border: none !important; }
.track-endpoint {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  letter-spacing: 0.02em;
  pointer-events: none;
}
.track-endpoint.start {
  background: #16a34a;
  color: white;
}
.track-endpoint.end {
  background: #dc2626;
  color: white;
}
.track-endpoint.loop {
  background: #295852;
  color: white;
}

@media (max-width: 600px) {
  .elevation-section {
    padding: 10px 10px 8px;
  }
  .elevation-chart-wrap {
    height: 120px;
  }
  .elev-stat {
    min-width: 46px;
    padding: 3px 6px;
  }
  .elev-selection-stats {
    gap: 4px 8px;
    padding: 6px 10px;
  }
  .elev-sel-item {
    min-width: 44px;
    padding: 2px 4px;
  }
}


/* ── Toggle "Inverser le sens" du tracé GPX ─────────────────────────────── */
.reverse-gpx-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

/* Empêcher display:inline-flex d'écraser l'attribut hidden */
.reverse-gpx-toggle[hidden] {
  display: none !important;
}
.reverse-gpx-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.reverse-gpx-slider {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  background: #d1d5db;
  border-radius: 18px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.reverse-gpx-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.reverse-gpx-toggle input:checked + .reverse-gpx-slider {
  background: #295852;
}
.reverse-gpx-toggle input:checked + .reverse-gpx-slider::after {
  transform: translateX(16px);
}
.reverse-gpx-text {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.reverse-gpx-toggle input:checked ~ .reverse-gpx-text {
  color: #295852;
}

/* ── Fix alignement contrôle de couches Leaflet ──────────────────────────── */
/* La structure Leaflet est : label > div > input + span                      */
.leaflet-control-layers label {
  display: block;
  font-weight: 400;
  margin-bottom: 0;
}

.leaflet-control-layers label > div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 1px 0;
}

.leaflet-control-layers input[type="radio"],
.leaflet-control-layers input[type="checkbox"] {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  flex-shrink: 0;
  cursor: pointer;
}

.leaflet-control-layers span {
  line-height: 1;
  vertical-align: middle;
  font-size: 0.85rem;
}

/* ── Vue 3D MapLibre ─────────────────────────────────────────────────────── */
.map-3d-container {
  /* Hérite de .map (même hauteur, border-radius, etc.) */
}

.toggle-3d-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-family: inherit;
  line-height: 1;
}

.toggle-3d-btn:hover:not(:disabled) {
  background: #f1f5f9;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
}

.toggle-3d-btn.is-active {
  background: #295852;
  color: white;
  box-shadow: 0 2px 8px rgba(31,53,87,0.35);
}

.toggle-3d-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Retirer le contour Leaflet autour du contrôle bouton 3D */
.leaflet-control:has(> .toggle-3d-btn) {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── Bouton plein écran carte ─────────────────────────────────────────────── */
.map-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-family: inherit;
  line-height: 1;
}
.map-fullscreen-btn:hover {
  background: #f1f5f9;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
}
.map-fullscreen-btn.is-active {
  background: #295852;
  color: white;
  box-shadow: 0 2px 8px rgba(31,53,87,0.35);
}
.leaflet-control:has(> .map-fullscreen-btn) {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Mode plein écran : carte immersive */
.map-panel:fullscreen {
  background: #000;
}
.map-panel:fullscreen .map {
  height: 100vh !important;
  max-height: 100vh;
  border-radius: 0;
}
.map-panel:fullscreen .map-header-new {
  position: absolute;
  bottom: 10px;
  left: 10px;
  top: auto;
  right: auto;
  z-index: 1000;
  pointer-events: none;
  padding: 0;
  background: none;
}
/* Masquer tout sauf les toggles */
.map-panel:fullscreen .map-header-new .gr-control > :not(.poi-toggles-row),
.map-panel:fullscreen .map-header-new .controls-row > :not(.gr-control),
.map-panel:fullscreen .map-header-new .poi-load-msgs,
.map-panel:fullscreen .map-header-new #map-search-message {
  display: none !important;
}
/* Toggles en calque compact, en bas à gauche */
.map-panel:fullscreen .poi-toggles-row {
  pointer-events: auto;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  max-width: 280px;
}
.map-panel:fullscreen .category-bar,
.map-panel:fullscreen .helper,
.map-panel:fullscreen .map-instruction-pill {
  display: none !important;
}

/* iOS fallback plein ecran (pas de Fullscreen API sur iOS) */
.map-panel.css-fullscreen {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #000;
}
.map-panel.css-fullscreen .map {
  height: 100vh !important;
  max-height: 100vh;
  border-radius: 0;
}
.map-panel.css-fullscreen .map-header-new {
  position: absolute;
  bottom: 10px;
  left: 10px;
  top: auto;
  right: auto;
  z-index: 1000;
  pointer-events: none;
  padding: 0;
  background: none;
}
.map-panel.css-fullscreen .map-header-new .gr-control > :not(.poi-toggles-row),
.map-panel.css-fullscreen .map-header-new .controls-row > :not(.gr-control),
.map-panel.css-fullscreen .map-header-new .poi-load-msgs,
.map-panel.css-fullscreen .map-header-new #map-search-message {
  display: none !important;
}
.map-panel.css-fullscreen .poi-toggles-row {
  pointer-events: auto;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  max-width: 280px;
}
.map-panel.css-fullscreen .category-bar,
.map-panel.css-fullscreen .helper,
.map-panel.css-fullscreen .map-instruction-pill {
  display: none !important;
}

/* ── Système de modération ───────────────────────────────────────────────── */

/* Badges de statut modération */
.poi-badge.moderation-status.pending {
  background: #fef9c3;
  color: #713f12;
  border: 1px solid #fde68a;
}
.poi-badge.moderation-status.approved {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.poi-badge.moderation-status.rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Motif de refus / note de modification en attente */
.moderation-reason {
  color: #7c3aed;
  font-style: italic;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* Dialog modération (plus large) */
.moderation-dialog-wide {
  max-width: min(900px, 95vw);
  width: 90vw;
}

.moderation-panel-content {
  display: grid;
  gap: 1rem;
}

.moderation-panel-content h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #295852;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.35rem;
}

/* Carte modération */
.moderation-card {
  border: 1px solid #dde6e1;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  background: #fafbfd;
  display: grid;
  gap: 0.3rem;
}

.moderation-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.moderation-card-header strong {
  font-size: 0.9rem;
}

.report-goto-btn {
  padding: 0.15rem 0.5rem !important;
  font-size: 0.78rem !important;
}

.moderation-type-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.moderation-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.moderation-actions button {
  font-size: 0.82rem;
  padding: 0.3rem 0.65rem;
}

/* Champ motif de refus */
.moderation-rejection-field {
  background: #fff8f0;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.moderation-rejection-field label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
}

.rejection-reason-input {
  padding: 0.35rem 0.5rem;
  border: 1px solid #fdba74;
  border-radius: 6px;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

/* Preview champs POI */
.moderation-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  font-size: 0.82rem;
  margin: 0;
}
.moderation-preview dt {
  font-weight: 600;
  color: #576d66;
  white-space: nowrap;
}
.moderation-preview dd {
  margin: 0;
  color: #1b1b1f;
  word-break: break-word;
}

/* Diff view */
.diff-view {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  overflow-x: auto;
}

.diff-legend {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #295852;
}

.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.diff-table th {
  text-align: left;
  padding: 0.3rem 0.5rem;
  background: #e2e8f0;
  color: #295852;
  font-weight: 600;
}

.diff-table td {
  padding: 0.3rem 0.5rem;
  border-top: 1px solid #e2e8f0;
  vertical-align: top;
}

.diff-field {
  font-weight: 600;
  color: #576d66;
  white-space: nowrap;
}

.diff-old {
  background: #fff1f2;
  color: #9f1239;
  text-decoration: line-through;
  max-width: 220px;
  word-break: break-word;
}

.diff-new {
  background: #f0fdf4;
  color: #166534;
  max-width: 220px;
  word-break: break-word;
}

/* ── Panneau signalements ──────────────────────────────────────────────── */

/* Badge rouge sur le bouton "Signalements" */
/* ── Barre info itinéraire ────────────────────────────────────────────── */
.route-info-bar[hidden] {
  display: none !important;
}

.route-info-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: #D4E4E0;
  border: 1px solid #9DD4C8;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #295852;
  flex-wrap: wrap;
}

.route-info-bar strong {
  font-weight: 700;
}

.route-info-bar button {
  margin-left: auto;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
}

.report-treated-badge {
  font-size: 0.75em;
  font-weight: 600;
  color: #15803d;
  font-style: normal;
}

.report-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  margin-left: 0.3rem;
  vertical-align: middle;
  line-height: 1;
}

/* Ligne motif + actions côte à côte */
.report-reason-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.report-reason-row .moderation-actions {
  flex-shrink: 0;
}

.report-reason {
  margin: 0;
  padding: 0.3rem 0.6rem;
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  font-style: italic;
  color: #78350f;
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
}

/* Carte signalement traitée : légèrement atténuée */
.report-card--resolved {
  opacity: 0.7;
}

/* Section "signalements traités" repliable */
.reports-resolved-section {
  margin-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.reports-resolved-section > summary {
  cursor: pointer;
  font-weight: 600;
  color: #64748b;
  padding: 0.4rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.reports-resolved-section > summary::before {
  content: "▶";
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.reports-resolved-section[open] > summary::before {
  transform: rotate(90deg);
}

/* ── Signalement inline (fiche POI) ─────────────────────────────── */
.report-section {
  border-top: 1px solid #e5e7eb;
  margin-top: 10px;
  padding-top: 6px;
}

.report-toggle {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}
.report-toggle:hover {
  color: #ef4444;
}

.report-collapsible {
  display: none;
  margin-top: 8px;
}
.report-section.open .report-collapsible {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.75rem;
}

.report-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.report-inline-form input {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  background: #fff;
  outline: none;
}
.report-inline-form input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239,68,68,.15);
}
.report-inline-form button {
  padding: 8px 16px;
  font-size: 0.85rem;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}
.report-inline-form button:hover {
  background: #dc2626;
}

.report-list {
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: 0.78rem;
  color: #6b7280;
}

.report-success {
  margin: 6px 0 0;
  padding: 5px 10px;
  font-size: 0.85rem;
  color: #15803d;
  background: #f0fdf4;
  border-radius: 6px;
  animation: reportFadeIn 0.3s ease;
}
@keyframes reportFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Marqueur vues / sommets ──────────────────────────────────── */
.vues-point-marker { position: relative; }
.vues-drop-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-radius: 50% 50% 50% 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  transition: all 0.2s ease;
}
.vues-emoji { font-size: 14px; line-height: 1; transform: rotate(45deg); display: block; }
.vues-point-marker:hover .vues-drop-icon {
  transform: translateX(-50%) rotate(-45deg) scale(1.15);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.vues-load-msg { margin: 0; font-size: 0.75rem; color: #d97706; }
.vues-load-msg[hidden] { display: none; }

/* ── Webcams ────────────────────────────────────────────────────────────── */
.webcam-point-marker { position: relative; }
.webcam-drop-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border-radius: 50% 50% 50% 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
}
.webcam-drop-icon .webcam-emoji {
  transform: rotate(45deg);
  font-size: 0.85rem;
}
.webcam-point-marker:hover .webcam-drop-icon {
  transform: translateX(-50%) rotate(-45deg) scale(1.15);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.webcam-load-msg { margin: 0; font-size: 0.75rem; color: #7c3aed; }
.webcam-load-msg[hidden] { display: none; }

/* ── Toggle météo ────────────────────────────────────────────────────────── */
.weather-points-toggle {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.weather-points-toggle:hover {
  background: #fef3c7;
  border-color: #fcd34d;
}
.weather-load-msg { margin: 0; font-size: 0.75rem; color: #b45309; }
.weather-load-msg[hidden] { display: none; }

/* ===========================
   PRÉVISIONS MÉTÉO
   =========================== */
.weather-forecast {
  background: #fefbf0;
  border-top: 2px solid #fbbf24;
  padding: 2rem 0;
  margin-top: 2rem;
}
.weather-forecast .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.weather-forecast h2 {
  margin: 0 0 0.5rem 0;
  color: #92400e;
}

/* Alerte orages */
.weather-storm-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  color: #991b1b;
  animation: storm-pulse 2s ease-in-out infinite;
}
@keyframes storm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}
.storm-alert-icon { font-size: 2rem; flex-shrink: 0; }
.storm-alert-content ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

/* Contrôles */
.weather-controls {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}
.weather-controls button {
  padding: 0.75rem 1.5rem;
  min-width: 220px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  color: white;
}
.weather-controls button:first-child { background: #f59e0b; }
.weather-controls button:first-child:hover { background: #d97706; }
.weather-controls button:first-child:disabled { background: #d1d5db; cursor: wait; }
.weather-controls button:last-child { background: #dc2626; min-width: auto; }
.weather-controls button:last-child:hover { background: #b91c1c; }

/* Fenêtre optimale */
.weather-recommendation {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.weather-best-days { margin: 0 0 0.75rem; font-size: 1rem; }
.weather-day-scores { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.weather-day-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  min-width: 80px;
  text-align: center;
}
.weather-day-name { font-weight: 600; margin-bottom: 0.25rem; }
.weather-day-badge { font-size: 0.75rem; }
.weather-day-warn { font-size: 1rem; }
.weather-day-excellent { background: #dcfce7; border: 1px solid #86efac; }
.weather-day-bon { background: #fef9c3; border: 1px solid #fde047; }
.weather-day-moyen { background: #ffedd5; border: 1px solid #fdba74; }
.weather-day-mauvais { background: #fee2e2; border: 1px solid #fca5a5; }

/* Onglets jours */
.weather-day-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.weather-tab {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
}
.weather-tab:hover { background: #f9fafb; }
.weather-tab-active {
  background: #295852;
  color: white;
  border-color: #295852;
}

/* Grille de cartes prévisions */
.weather-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.weather-point-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: default;
}
.weather-point-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.weather-point-location { font-size: 0.85rem; color: #374151; margin-bottom: 0.5rem; }
.weather-point-alt { color: #9ca3af; font-size: 0.8rem; }
.weather-point-icon { font-size: 2.5rem; margin: 0.25rem 0; }
.weather-point-label { font-weight: 600; margin-bottom: 0.5rem; color: #1a3d38; font-size: 0.85rem; }
.weather-point-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: #64748b;
  text-align: left;
}

/* Marqueurs carte météo */
.weather-map-marker {
  background: none !important;
  border: none !important;
}
.weather-map-icon {
  background: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 2px solid #fbbf24;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.weather-map-marker:hover .weather-map-icon {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

/* Popup météo */
.weather-popup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}
.weather-popup-table th,
.weather-popup-table td {
  padding: 2px 6px;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
}
.weather-popup-table th { font-weight: 600; color: #6b7280; }

/* ── Toggle hébergements ────────────────────────────────────────────────── */
.lodging-points-toggle {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.lodging-points-toggle:hover {
  background: #dcfce7;
  border-color: #86efac;
}
.lodging-load-msg { margin: 0; font-size: 0.75rem; color: #166534; }
.lodging-load-msg[hidden] { display: none; }

.lodging-progress {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}
.lodging-progress[hidden] { display: none; }
.lodging-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #295852, #4a9e8e);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ===========================
   HÉBERGEMENTS
   =========================== */
.lodging-search {
  background: #f0fdf4;
  border-top: 2px solid #86efac;
  padding: 2rem 0;
}
.lodging-search .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.lodging-search h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: #14532d;
}
.lodging-controls {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.lodging-controls button {
  padding: 0.75rem 1.5rem;
  min-width: 220px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
}
.lodging-controls button:disabled {
  opacity: 0.7;
  cursor: wait;
}
.lodging-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: lodging-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.3rem;
}
@keyframes lodging-spin {
  to { transform: rotate(360deg); }
}
.lodging-controls button:first-child {
  background: #22c55e;
  color: white;
}
.lodging-controls button:first-child:hover {
  background: #16a34a;
}
.lodging-controls button:last-child {
  background: #fee2e2;
  color: #dc2626;
}
.lodging-controls button:last-child:hover {
  background: #fecaca;
}
.lodging-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.lodging-filters label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.lodging-filters input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}
.lodging-summary {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: white;
  border-radius: 6px;
  border-left: 3px solid #22c55e;
}
.lodging-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.lodging-show-more-wrap {
  text-align: center;
  margin-top: 1.25rem;
}
.lodging-show-more {
  padding: 0.6rem 1.5rem;
  background: white;
  color: #166534;
  border: 2px solid #86efac;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lodging-show-more:hover {
  background: #f0fdf4;
  border-color: #22c55e;
}
.lodging-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem 1.3rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lodging-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.lodging-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.lodging-card-header .lodging-type-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.lodging-card-header .lodging-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1f2937;
  line-height: 1.2;
}
.lodging-card-info {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: #4b5563;
}
.lodging-card-info li {
  padding: 0.3rem 0;
}
.lodging-card-info a {
  color: #295852;
  text-decoration: none;
}
.lodging-card-info a:hover {
  text-decoration: underline;
}
.lodging-card-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lodging-card-actions .booking-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: #22c55e;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}
.lodging-card-actions .booking-link:hover {
  background: #16a34a;
}
.lodging-card-actions .website-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s;
}
.lodging-card-actions .website-link:hover {
  background: #e5e7eb;
}
.lodging-no-aid {
  font-size: 0.75rem;
  color: #9ca3af;
  font-style: italic;
  margin-top: 0.5rem;
}
/* Marqueurs carte hébergements */
.lodging-map-marker {
  background: none !important;
  border: none !important;
}
.lodging-map-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 2px solid #22c55e;
  cursor: pointer;
  transition: transform 0.2s;
}
.lodging-map-icon:hover {
  transform: scale(1.15);
}
/* Popup hébergements */
.lodging-popup-content {
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 250px;
}
.lodging-popup-content .popup-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.lodging-popup-content .popup-type {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
}
.lodging-popup-content .popup-info {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.4rem;
}
.lodging-popup-content a {
  color: #22c55e;
  font-weight: 600;
  text-decoration: none;
}
.lodging-popup-content a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .lodging-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .lodging-card {
    padding: 0.75rem;
  }
  .lodging-card-actions {
    flex-direction: column;
  }
  .lodging-card-actions .booking-link,
  .lodging-card-actions .website-link {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .lodging-filters {
    gap: 0.5rem;
  }
  .lodging-controls {
    flex-direction: column;
  }
  .lodging-controls button {
    width: 100%;
  }
}

/* ── Dropdown export étapes ─────────────────────────────────────────── */
.export-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}
.export-dropdown .export-dropdown-toggle {
  height: 100%;
  box-sizing: border-box;
}
.export-dropdown-toggle {
  padding: 0.75rem 1.5rem;
  min-width: 220px;
  background: #4a9e8e;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  transition: background 0.2s;
  white-space: nowrap;
}
.export-dropdown-toggle:hover {
  background: #347a6e;
}
.export-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.14);
  overflow: hidden;
  z-index: 100;
}
.export-dropdown-menu[hidden] {
  display: none;
}
.export-dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: transparent;
  border: none;
  color: #295852;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.export-dropdown-menu button:hover {
  background: #f1f5f9;
}
.export-dropdown-menu button + button {
  border-top: 1px solid #f1f5f9;
}
@media (max-width: 600px) {
  .export-dropdown-menu {
    left: auto;
    right: 0;
    min-width: 200px;
  }
  .export-dropdown-toggle {
    min-width: auto;
    width: 100%;
  }
}
