/* JustHallal Design System */
:root {
  --jh-green-dark: #0B3D2E;
  --jh-emerald: #10B981;
  /* Surface froide (ex-beige) + accent teal sage (ex-or) */
  --jh-beige: #F1F5F3;
  --jh-white: #FFFFFF;
  --jh-black: #1A1A1A;
  --jh-gold: #3E8F7C;
  --jh-gold-light: #A8D0C5;
  --jh-teal: #3E8F7C;
  --jh-mist: #F1F5F3;
  --jh-text-muted: #5C6B64;
  --jh-border: rgba(11, 61, 46, 0.12);
  --jh-shadow-sm: 0 2px 8px rgba(11, 61, 46, 0.08);
  --jh-shadow-md: 0 8px 24px rgba(11, 61, 46, 0.12);
  --jh-shadow-lg: 0 16px 40px rgba(11, 61, 46, 0.16);
  --jh-radius-sm: 0.5rem;
  --jh-radius-md: 0.875rem;
  --jh-radius-lg: 1.25rem;
  --jh-radius-xl: 1.75rem;
  --jh-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --jh-header-h: 4rem;
  --jh-bottom-nav-h: 4.25rem;
  --jh-transition: 0.2s ease;
}

[dir="rtl"] {
  --jh-font: "Segoe UI", "Tahoma", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  font-family: var(--jh-font);
  color: var(--jh-black);
  background: var(--jh-beige);
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--jh-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  line-height: 1.5;
  overflow-x: clip;
}

@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

a {
  color: var(--jh-green-dark);
  text-decoration: none;
  transition: color var(--jh-transition);
}

a:hover { color: var(--jh-emerald); }

img { max-width: 100%; height: auto; }

/* Typography */
.jh-display {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.jh-lead {
  color: var(--jh-text-muted);
  font-size: 1.05rem;
}

/* Header */
.jh-header {
  background: var(--jh-white);
  border-bottom: 1px solid var(--jh-border);
  box-shadow: var(--jh-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: var(--jh-header-h);
}

.jh-header .navbar {
  min-height: var(--jh-header-h);
  padding-block: 0.35rem;
}

.jh-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.jh-header .navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--jh-green-dark) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0;
  flex-shrink: 0;
}

.jh-menu-toggle {
  border: 1.5px solid var(--jh-border);
  border-radius: var(--jh-radius-md);
  background: var(--jh-beige);
  color: var(--jh-green-dark);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.jh-menu-toggle:focus,
.jh-menu-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  outline: none;
}

.jh-menu-toggle i {
  font-size: 1.5rem;
  line-height: 1;
}

.jh-menu-toggle .jh-menu-toggle__close {
  display: none;
}

.jh-menu-toggle[aria-expanded="true"] {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--jh-emerald);
}

.jh-menu-toggle[aria-expanded="true"] .jh-menu-toggle__open {
  display: none;
}

.jh-menu-toggle[aria-expanded="true"] .jh-menu-toggle__close {
  display: inline-block;
}

/* Évite le double effet d’animation Bootstrap (height + reflow) */
@media (max-width: 991.98px) {
  .jh-header #jhNavbar.collapsing {
    height: auto !important;
    transition: none !important;
    overflow: hidden;
  }
}

.jh-header .navbar-collapse {
  background: var(--jh-white);
}

.jh-header__nav {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
}

.jh-header__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.jh-header__user {
  flex-shrink: 0;
}

.jh-header__username {
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .jh-header__inner {
    flex-wrap: nowrap;
  }

  .jh-header .navbar-collapse {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .jh-header__nav {
    margin-inline: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .jh-header__inner {
    flex-wrap: wrap;
  }

  .jh-header .navbar-brand {
    margin-right: auto;
  }

  .jh-header .navbar-collapse {
    border-top: 1px solid var(--jh-border);
    margin-top: 0.5rem;
    padding: 0.75rem 0 0.5rem;
    flex-basis: 100%;
    width: 100%;
  }

  .jh-header__nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .jh-header__actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

.jh-logo-icon {
  width: 2.1rem;
  height: 2.1rem;
  background: linear-gradient(145deg, #0B3D2E 0%, #127a55 55%, #10B981 100%);
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.jh-logo-svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.jh-nav-link {
  color: var(--jh-black) !important;
  font-weight: 500;
  padding: 0.45rem 0.65rem !important;
  border-radius: var(--jh-radius-sm);
  transition: background var(--jh-transition), color var(--jh-transition);
  white-space: nowrap;
}

.jh-nav-link:hover,
.jh-nav-link.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--jh-green-dark) !important;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .jh-header .jh-nav-link {
    padding: 0.4rem 0.45rem !important;
    font-size: 0.875rem;
  }

  .jh-header__username {
    max-width: 5.5rem;
  }
}

.jh-lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: var(--jh-beige);
  padding: 0.2rem;
  border-radius: var(--jh-radius-md);
}

.jh-lang-btn {
  border: none;
  background: transparent;
  color: var(--jh-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: var(--jh-radius-sm);
  cursor: pointer;
  transition: all var(--jh-transition);
}

.jh-lang-btn:hover,
.jh-lang-btn.active {
  background: var(--jh-white);
  color: var(--jh-green-dark);
  box-shadow: var(--jh-shadow-sm);
}

.jh-btn-primary {
  background: var(--jh-green-dark);
  border-color: var(--jh-green-dark);
  color: var(--jh-white);
  border-radius: var(--jh-radius-md);
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  transition: all var(--jh-transition);
}

.jh-btn-primary:hover {
  background: #094a38;
  border-color: #094a38;
  color: var(--jh-white);
  transform: translateY(-1px);
  box-shadow: var(--jh-shadow-md);
}

.jh-btn-accent {
  background: var(--jh-emerald);
  border-color: var(--jh-emerald);
  color: var(--jh-white);
  border-radius: var(--jh-radius-md);
  font-weight: 600;
}

.jh-btn-accent:hover {
  background: #0d9668;
  border-color: #0d9668;
  color: var(--jh-white);
}

.jh-btn-outline {
  border: 2px solid var(--jh-green-dark);
  color: var(--jh-green-dark);
  background: transparent;
  border-radius: var(--jh-radius-md);
  font-weight: 600;
}

.jh-btn-outline:hover {
  background: var(--jh-green-dark);
  color: var(--jh-white);
}

.jh-btn-gold {
  background: var(--jh-gold);
  border-color: var(--jh-gold);
  color: var(--jh-white);
  border-radius: var(--jh-radius-md);
  font-weight: 600;
}

/* Hero */
.jh-hero {
  position: relative;
  background: linear-gradient(145deg, var(--jh-green-dark) 0%, #0f5240 45%, #126b52 100%);
  color: var(--jh-white);
  border-radius: 0 0 var(--jh-radius-xl) var(--jh-radius-xl);
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}

.jh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(16, 185, 129, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(201, 162, 39, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

.jh-hero .container { position: relative; z-index: 1; }

.jh-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.jh-hero-subtitle {
  opacity: 0.9;
  font-size: 1.05rem;
  max-width: 36rem;
}

.jh-search-bar {
  background: var(--jh-white);
  border-radius: var(--jh-radius-lg);
  padding: 0.5rem;
  box-shadow: var(--jh-shadow-lg);
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.45rem;
  margin-top: 1.75rem;
  width: 100%;
  max-width: none;
}

.jh-search-bar .form-control,
.jh-search-bar .form-select {
  border: none;
  background: var(--jh-beige);
  border-radius: var(--jh-radius-md);
  padding: 0.75rem 1rem;
  color: var(--jh-black);
  min-height: 2.85rem;
}

.jh-search-bar .form-control:focus,
.jh-search-bar .form-select:focus {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
  background: var(--jh-white);
}

.jh-search-input {
  flex: 1 1 auto;
  min-width: 0;
}

.jh-search-radius {
  flex: 0 0 6.5rem;
  width: 6.5rem;
}

.jh-search-bar .jh-gps-btn {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  background: var(--jh-beige);
  border: none;
  color: var(--jh-green-dark);
  border-radius: var(--jh-radius-md);
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--jh-transition);
  white-space: nowrap;
}

.jh-search-bar .jh-gps-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  color: var(--jh-emerald);
  border-style: none;
}

.jh-search-bar .jh-btn-primary {
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: var(--jh-radius-md);
  padding-inline: 1.15rem;
}

@media (max-width: 767.98px) {
  .jh-search-bar {
    flex-wrap: wrap;
  }

  .jh-search-input {
    flex: 1 1 calc(100% - 7.2rem);
  }

  .jh-search-radius {
    flex: 0 0 6.5rem;
  }

  .jh-search-bar .jh-gps-btn {
    flex: 1 1 auto;
  }

  .jh-search-bar .jh-btn-primary {
    flex: 1 1 auto;
  }
}

/* Category chips */
.jh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.jh-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--jh-white);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--jh-transition);
  text-decoration: none;
}

.jh-chip:hover {
  background: var(--jh-white);
  color: var(--jh-green-dark);
  border-color: var(--jh-white);
}

.jh-chip.active {
  background: var(--jh-emerald);
  border-color: var(--jh-emerald);
  color: var(--jh-white);
}

/* Cards */
.jh-card {
  position: relative; /* confine Bootstrap .stretched-link to the card only */
  background: var(--jh-white);
  border-radius: var(--jh-radius-lg);
  border: 1px solid var(--jh-border);
  box-shadow: var(--jh-shadow-sm);
  overflow: hidden;
  transition: transform var(--jh-transition), box-shadow var(--jh-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 0;
}

.jh-card .stretched-link::after {
  /* keep hit area inside the card bounds, not the grid gutters */
  border-radius: inherit;
}

.jh-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--jh-shadow-md);
}

.jh-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--jh-beige);
}

.jh-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jh-card-body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.jh-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--jh-black);
}

.jh-card-meta {
  font-size: 0.85rem;
  color: var(--jh-text-muted);
  margin-bottom: 0.5rem;
}

.jh-card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.65rem;
}

.jh-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--jh-gold);
}

.jh-distance {
  font-size: 0.8rem;
  color: var(--jh-text-muted);
}

/* Badges */
.badge-open,
.badge-closed,
.badge-soon,
.badge-verified,
.badge-unknown {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-open { background: rgba(16, 185, 129, 0.15); color: #047857; }
.badge-closed { background: rgba(239, 68, 68, 0.12); color: #B91C1C; }
.badge-soon { background: rgba(201, 162, 39, 0.18); color: #92680F; }
.badge-verified { background: rgba(11, 61, 46, 0.1); color: var(--jh-green-dark); }
.badge-unknown { background: rgba(92, 107, 100, 0.12); color: var(--jh-text-muted); }

.jh-badge-featured {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--jh-gold);
  color: var(--jh-white);
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
}

[dir="rtl"] .jh-badge-featured { left: auto; right: 0.65rem; }

.jh-fav-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--jh-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--jh-shadow-sm);
  transition: all var(--jh-transition);
}

[dir="rtl"] .jh-fav-btn { right: auto; left: 0.65rem; }

.jh-fav-btn:hover,
.jh-fav-btn.active { color: #EF4444; }

/* Map */
.jh-map {
  width: 100%;
  height: 320px;
  border-radius: var(--jh-radius-lg);
  overflow: hidden;
  border: 1px solid var(--jh-border);
  box-shadow: var(--jh-shadow-sm);
  z-index: 1;
}

@media (min-width: 768px) {
  .jh-map { height: 420px; }
}

.jh-map-lg { height: min(50vh, 320px); }

@media (min-width: 768px) {
  .jh-map-lg { height: 480px; }
}

.jh-map-recenter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 500;
  background: var(--jh-white);
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius-md);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--jh-green-dark);
  box-shadow: var(--jh-shadow-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

[dir="rtl"] .jh-map-recenter { right: auto; left: 1rem; }

.jh-map-wrapper {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.jh-map-wrapper .jh-map,
.jh-map-wrapper .leaflet-container {
  max-width: 100%;
}

/* Marqueurs carte — mini commerce */
.jh-map-marker {
  background: transparent !important;
  border: none !important;
}

.jh-map-pin {
  position: relative;
  width: 120px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 3px 6px rgba(11, 61, 46, 0.35));
}

.jh-map-pin__label {
  margin-top: 2px;
  max-width: 112px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 61, 46, 0.12);
  color: #0B3D2E;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.jh-map-pin__badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0B3D2E 0%, #0f5c42 100%);
  border: 2.5px solid #3E8F7C;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  overflow: hidden;
}

.jh-map-pin__badge .bi-shop {
  line-height: 1;
}

.jh-map-pin__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jh-map-pin__point {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #3E8F7C;
  margin-top: -2px;
}

.jh-map-popup-wrap .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(11, 61, 46, 0.18);
  border: 1px solid rgba(11, 61, 46, 0.08);
  padding: 0;
}

.jh-map-popup-wrap .leaflet-popup-content {
  margin: 10px 12px;
  min-width: 200px;
}

.jh-map-popup {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.jh-map-popup__thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #F1F5F3;
}

.jh-map-popup__thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B3D2E;
  font-size: 1.35rem;
  border: 1px solid rgba(11, 61, 46, 0.12);
}

.jh-map-popup__title {
  display: block;
  font-size: 0.95rem;
  color: #0B3D2E;
  line-height: 1.25;
}

.jh-map-popup__meta {
  font-size: 0.78rem;
  color: #5c6b63;
  margin-top: 0.15rem;
}

.jh-map-popup__rating {
  color: #3E8F7C;
  font-weight: 600;
}

.jh-map-popup__link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0B3D2E;
  text-decoration: none;
}

.jh-map-popup__link:hover {
  color: #10B981;
  text-decoration: underline;
}

/* Bottom nav (mobile) */
.jh-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--jh-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  background: var(--jh-white);
  border-top: 1px solid var(--jh-border);
  box-shadow: 0 -4px 16px rgba(11, 61, 46, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  z-index: 1040;
  padding-top: 0.35rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 992px) {
  .jh-bottom-nav { display: none; }
}

.jh-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--jh-text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: var(--jh-radius-sm);
  transition: color var(--jh-transition);
  text-decoration: none;
  min-width: 3.5rem;
}

.jh-bottom-nav a i { font-size: 1.25rem; }

.jh-bottom-nav a:hover,
.jh-bottom-nav a.active {
  color: var(--jh-emerald);
}

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, #e8e4dc 25%, #f5f2eb 50%, #e8e4dc 75%);
  background-size: 200% 100%;
  animation: jh-skeleton 1.4s ease infinite;
  border-radius: var(--jh-radius-sm);
}

@keyframes jh-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 280px;
  border-radius: var(--jh-radius-lg);
}

.skeleton-text { height: 1rem; margin-bottom: 0.5rem; }
.skeleton-text-sm { height: 0.75rem; width: 60%; }

/* Sections */
.jh-section {
  padding: 2.5rem 0;
}

.jh-section-title {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--jh-green-dark);
  margin-bottom: 1.25rem;
}

.jh-page-header {
  padding: 2rem 0 1.5rem;
}

.jh-page-header h1 {
  font-weight: 800;
  color: var(--jh-green-dark);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

/* Explore layout */
.jh-explore-layout {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
}

.jh-explore-layout > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 992px) {
  .jh-explore-layout {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  }
}

.jh-filters-panel {
  background: var(--jh-white);
  border-radius: var(--jh-radius-lg);
  border: 1px solid var(--jh-border);
  padding: 1.25rem;
  box-shadow: var(--jh-shadow-sm);
}

.jh-filters-panel .form-check-label {
  font-size: 0.9rem;
}

.jh-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
  min-width: 0;
}

@media (min-width: 992px) {
  .jh-results-list {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.jh-result-item {
  background: var(--jh-white);
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: border-color var(--jh-transition), box-shadow var(--jh-transition);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.jh-result-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--jh-radius-md);
  background: var(--jh-bg-soft, #f3f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--jh-muted, #9ca3af);
}

.jh-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.jh-result-thumb img.is-loaded {
  opacity: 1;
}

.jh-result-item > .d-flex {
  min-width: 0;
  max-width: 100%;
  align-items: stretch;
}

.jh-result-item .flex-grow-1 {
  min-width: 0;
  overflow: hidden;
}

.jh-result-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-inline-end: 0.5rem;
}

.jh-result-item:hover,
.jh-result-item.active {
  border-color: var(--jh-emerald);
  box-shadow: var(--jh-shadow-sm);
}

/* Legacy blocks (admin / business) */
.jh-info-block {
  background: var(--jh-white);
  border-radius: var(--jh-radius-lg);
  border: 1px solid var(--jh-border);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.jh-info-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--jh-green-dark);
  margin-bottom: 0.85rem;
}

.jh-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  background: var(--jh-beige);
  border-radius: 2rem;
  font-size: 0.82rem;
  margin: 0.2rem;
}

.jh-stars { color: var(--jh-gold); }

/* ——— Fiche établissement (pro / épuré) ——— */
.jh-profile {
  --pf-ink: #14201b;
  --pf-muted: #6a756f;
  --pf-line: rgba(20, 32, 27, 0.1);
  --pf-soft: #e8efec;
  --pf-paper: #f1f5f3;
  --pf-forest: #0b3d2e;
  --pf-gold: #3e8f7c;
  font-family: "Outfit", var(--jh-font);
  color: var(--pf-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(16, 185, 129, 0.08), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(62, 143, 124, 0.08), transparent 50%),
    var(--pf-paper);
  padding-bottom: calc(4rem + var(--jh-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  .jh-profile {
    padding-bottom: 4rem;
  }
}

.jh-profile__cover {
  position: relative;
  height: clamp(180px, 28vw, 280px);
  overflow: hidden;
  background: linear-gradient(135deg, #0b3d2e 0%, #164a38 45%, #1a5c44 100%);
}

.jh-profile__cover--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(62, 143, 124, 0.2), transparent 40%);
}

.jh-profile__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.jh-profile__cover-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--pf-paper) 0%, rgba(241, 245, 243, 0.55) 35%, transparent 70%);
}

.jh-profile__shell {
  position: relative;
  margin-top: -4.5rem;
}

.jh-profile__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--pf-muted);
  margin-bottom: 1.25rem;
}

.jh-profile__crumb a { color: var(--pf-forest); font-weight: 500; }
.jh-profile__crumb .is-current { color: var(--pf-ink); font-weight: 500; }

.jh-profile__header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.jh-profile__identity {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  min-width: 0;
}

.jh-profile__logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--pf-line);
  box-shadow: 0 12px 30px rgba(11, 61, 46, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--pf-forest);
  font-size: 2rem;
}

.jh-profile__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jh-profile__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.jh-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(11, 61, 46, 0.06);
  color: var(--pf-forest);
}

.jh-pill--verified {
  background: rgba(16, 185, 129, 0.12);
  color: #0a6b4a;
}

.jh-pill--soft {
  background: rgba(62, 143, 124, 0.14);
  color: #2f6b5d;
}

.jh-pill--status.badge-open,
.jh-pill--status.badge-open24hours { background: rgba(16, 185, 129, 0.14); color: #0a6b4a; }
.jh-pill--status.badge-closed { background: rgba(180, 60, 60, 0.1); color: #9b2c2c; }
.jh-pill--status.badge-soon { background: rgba(62, 143, 124, 0.16); color: #2f6b5d; }

.jh-profile__name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--pf-forest);
  margin: 0 0 0.45rem;
}

.jh-profile__place {
  margin: 0 0 0.75rem;
  color: var(--pf-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.jh-dot { margin: 0 0.25rem; opacity: 0.5; }

.jh-profile__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.jh-profile__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--pf-gold);
  font-size: 0.95rem;
}

.jh-profile__rating strong {
  color: var(--pf-ink);
  margin-left: 0.25rem;
  font-weight: 600;
}

.jh-profile__rating em {
  font-style: normal;
  color: var(--pf-muted);
  font-size: 0.85rem;
  margin-left: 0.15rem;
}

.jh-profile__rating--sm { font-size: 0.85rem; }

.jh-profile__price,
.jh-profile__distance {
  font-size: 0.88rem;
  color: var(--pf-muted);
  font-weight: 500;
}

.jh-profile__tagline {
  margin: 0;
  max-width: 42rem;
  color: var(--pf-ink);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.55;
}

.jh-profile__header-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.jh-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--pf-line);
  background: #fff;
  color: var(--pf-forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.jh-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(11, 61, 46, 0.1);
}

.jh-icon-btn.is-active {
  background: rgba(180, 60, 80, 0.08);
  color: #b03a4a;
  border-color: transparent;
}

.jh-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 991px) {
  .jh-profile__grid { grid-template-columns: 1fr; gap: 2rem; }
  .jh-profile__shell { margin-top: -3rem; }
  .jh-profile__identity { flex-direction: column; }
  .jh-profile__logo { width: 72px; height: 72px; border-radius: 18px; }
  .jh-profile__header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .jh-profile__header-actions {
    align-self: flex-start;
    flex-wrap: wrap;
  }
  .jh-profile__aside {
    position: static;
  }
}

.jh-profile__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 2rem;
}

@media (max-width: 767px) {
  .jh-profile__gallery { grid-template-columns: repeat(2, 1fr); }
}

.jh-profile__gallery figure {
  margin: 0;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pf-soft);
}

.jh-profile__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jh-profile__section {
  padding: 1.75rem 0;
  border-top: 1px solid var(--pf-line);
}

.jh-profile__section:first-of-type { border-top: none; padding-top: 0; }

.jh-profile__section h2,
.jh-profile__section-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pf-forest);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.jh-profile__section p {
  margin: 0;
  color: var(--pf-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 40rem;
}

.jh-profile__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.jh-profile__section-head span {
  font-size: 0.85rem;
  color: var(--pf-muted);
  font-weight: 500;
}

.jh-profile__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.jh-profile__chips li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(11, 61, 46, 0.05);
  color: var(--pf-forest);
  font-size: 0.86rem;
  font-weight: 500;
}

.jh-profile__chips li.is-warn {
  background: rgba(180, 100, 40, 0.1);
  color: #9a5b16;
}

.jh-profile__cert {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(11, 61, 46, 0.04), rgba(62, 143, 124, 0.08));
  border: 1px solid rgba(11, 61, 46, 0.08);
}

.jh-profile__cert-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pf-gold);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.jh-profile__cert strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: var(--pf-ink);
}

.jh-profile__cert p {
  margin: 0;
  font-size: 0.88rem;
  max-width: none;
}

.jh-profile__cert-note {
  margin-top: 0.35rem !important;
  color: #9a5b16 !important;
  font-size: 0.8rem !important;
}

.jh-profile__hours {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 28rem;
}

.jh-profile__hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(20, 32, 27, 0.06);
  font-size: 0.95rem;
}

.jh-profile__hours li span:first-child {
  font-weight: 500;
  color: var(--pf-ink);
}

.jh-profile__hours li span:last-child {
  color: var(--pf-muted);
  font-variant-numeric: tabular-nums;
}

.jh-profile__hours li.is-closed span:last-child {
  color: #9b2c2c;
}

.jh-profile__reviews { display: flex; flex-direction: column; gap: 0; }

.jh-profile__review {
  margin: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(20, 32, 27, 0.06);
}

.jh-profile__review:last-child { border-bottom: none; }

.jh-profile__review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.jh-profile__review time {
  font-size: 0.8rem;
  color: var(--pf-muted);
}

.jh-profile__review > p {
  margin-top: 0.55rem;
  color: var(--pf-ink);
}

.jh-profile__review footer {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--pf-soft);
}

.jh-profile__review footer strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pf-muted);
}

.jh-profile__review footer p {
  margin-top: 0.3rem;
  font-size: 0.92rem;
}

.jh-profile__empty { color: var(--pf-muted); font-size: 0.95rem; }

.jh-profile__aside { position: sticky; top: 5.5rem; }

.jh-profile__panel {
  background: #fff;
  border: 1px solid var(--pf-line);
  border-radius: 22px;
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 18px 40px rgba(11, 61, 46, 0.07);
}

.jh-profile__panel-label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-muted);
}

.jh-profile__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b3d2e, #127a56);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jh-profile__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(11, 61, 46, 0.22);
  color: #fff !important;
}

.jh-profile__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.jh-profile__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.75rem 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--pf-line);
  background: var(--pf-paper);
  color: var(--pf-forest) !important;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.jh-profile__action i { font-size: 1.15rem; }

.jh-profile__action:hover {
  background: rgba(11, 61, 46, 0.05);
  border-color: rgba(11, 61, 46, 0.2);
}

.jh-profile__phone {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--pf-muted);
  font-variant-numeric: tabular-nums;
}

.jh-profile__map {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--pf-line);
}

.jh-profile__map .jh-map {
  height: 200px;
  border-radius: 0;
}

.jh-profile__aside-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
  font-size: 0.82rem;
}

.jh-profile__aside-links a {
  color: var(--pf-forest);
  font-weight: 500;
}

.jh-profile__aside-links a.is-muted {
  color: var(--pf-muted);
}

.jh-profile__social {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--pf-line);
}

.jh-profile__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pf-soft);
  color: var(--pf-forest);
}

/* Footer */
.jh-footer {
  background: var(--jh-green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.jh-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.jh-footer a:hover { color: var(--jh-emerald); }

.jh-footer-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--jh-white);
}

.jh-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Admin / Business sidebar layouts */
.jh-dashboard {
  display: flex;
  min-height: calc(100vh - var(--jh-header-h));
}

.jh-sidebar {
  width: 260px;
  background: var(--jh-green-dark);
  color: var(--jh-white);
  flex-shrink: 0;
  padding: 1.25rem 0;
}

@media (max-width: 991px) {
  .jh-sidebar {
    position: fixed;
    left: -280px;
    top: var(--jh-header-h);
    bottom: 0;
    z-index: 1020;
    width: 260px;
    transition: left var(--jh-transition);
    overflow-y: auto;
    box-shadow: 8px 0 24px rgba(11, 61, 46, 0.25);
  }

  .jh-sidebar.open { left: 0; }

  [dir="rtl"] .jh-sidebar {
    left: auto;
    right: -280px;
    box-shadow: -8px 0 24px rgba(11, 61, 46, 0.25);
  }

  [dir="rtl"] .jh-sidebar.open { right: 0; }

  .jh-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--jh-header-h);
    background: rgba(11, 61, 46, 0.45);
    z-index: 1015;
  }

  .jh-sidebar-backdrop.is-visible {
    display: block;
  }
}

.jh-sidebar-brand {
  padding: 0 1.25rem 1.25rem;
  font-weight: 800;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.75rem;
}

.jh-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--jh-transition);
}

.jh-sidebar-nav a:hover,
.jh-sidebar-nav a.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--jh-white);
}

.jh-dashboard-content {
  flex: 1;
  padding: 1.5rem;
  background: var(--jh-beige);
  overflow-x: auto;
}

.jh-stat-card {
  background: var(--jh-white);
  border-radius: var(--jh-radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--jh-border);
  box-shadow: var(--jh-shadow-sm);
}

.jh-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--jh-green-dark);
}

.jh-stat-card .stat-label {
  color: var(--jh-text-muted);
  font-size: 0.85rem;
}

.jh-table-card {
  background: var(--jh-white);
  border-radius: var(--jh-radius-lg);
  border: 1px solid var(--jh-border);
  overflow: hidden;
}

.jh-table-card .table { margin-bottom: 0; }

.jh-table-card .table th {
  background: var(--jh-beige);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--jh-green-dark);
  border-bottom: 1px solid var(--jh-border);
}

/* Alerts & forms */
.jh-alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
  border-radius: var(--jh-radius-md);
  padding: 0.85rem 1rem;
}

.jh-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #B91C1C;
  border-radius: var(--jh-radius-md);
  padding: 0.85rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--jh-emerald);
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.2);
}

/* RTL support */
[dir="rtl"] .jh-search-bar { flex-direction: row-reverse; }
[dir="rtl"] .jh-card-footer-row { flex-direction: row-reverse; }
[dir="rtl"] .jh-bottom-nav { flex-direction: row-reverse; }
[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end { text-align: left !important; }
[dir="rtl"] .ms-auto { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .me-auto { margin-left: auto !important; margin-right: 0 !important; }

/* Leaflet overrides */
.leaflet-container { font-family: var(--jh-font); }
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(16, 185, 129, 0.25);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: var(--jh-green-dark);
  color: var(--jh-white);
}

/* Utility */
.jh-main { padding-bottom: 1.5rem; }

.jh-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--jh-text-muted);
}

.jh-empty-state i {
  font-size: 3rem;
  color: var(--jh-emerald);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.jh-price-range {
  color: var(--jh-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.jh-pagination .page-link {
  color: var(--jh-green-dark);
  border-radius: var(--jh-radius-sm);
  margin: 0 0.15rem;
}

.jh-pagination .page-item.active .page-link {
  background: var(--jh-green-dark);
  border-color: var(--jh-green-dark);
}

/* Content pages */
.jh-content-page {
  background: var(--jh-white);
  border-radius: var(--jh-radius-xl);
  padding: 2rem;
  border: 1px solid var(--jh-border);
  box-shadow: var(--jh-shadow-sm);
}

.jh-faq-item {
  border-bottom: 1px solid var(--jh-border);
  padding: 1rem 0;
}

.jh-faq-item:last-child { border-bottom: none; }

.jh-status-code {
  text-align: center;
  padding: 4rem 1rem;
}

.jh-status-code .code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--jh-green-dark);
  line-height: 1;
}

/* ========== Auth (login / register) ========== */
.jh-auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--jh-mist, #f1f5f3);
  font-family: "Outfit", var(--jh-font), system-ui, sans-serif;
}

.jh-auth {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1fr);
  min-height: 100vh;
}

.jh-auth__visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(16, 185, 129, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(62, 143, 124, 0.4), transparent 50%),
    linear-gradient(165deg, #06281e 0%, #0b3d2e 45%, #0f4a38 100%);
  color: #fff;
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.jh-auth__visual-inner {
  position: relative;
  z-index: 2;
  max-width: 26rem;
}

.jh-auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.jh-auth__brand .jh-logo-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.jh-auth__brand .jh-logo-svg {
  width: 1.45rem;
  height: 1.45rem;
}

.jh-auth__headline {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.75rem;
}

.jh-auth__perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jh-auth__perks li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.jh-auth__perks i {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #6ee7b7;
  font-size: 0.9rem;
}

.jh-auth__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

.jh-auth__orb--1 {
  width: 18rem;
  height: 18rem;
  background: rgba(16, 185, 129, 0.35);
  top: -4rem;
  right: -3rem;
}

.jh-auth__orb--2 {
  width: 14rem;
  height: 14rem;
  background: rgba(62, 143, 124, 0.3);
  bottom: 10%;
  left: -4rem;
}

.jh-auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  position: relative;
  background:
    linear-gradient(180deg, rgba(241, 245, 243, 0.95), #fff 40%),
    #fff;
}

.jh-auth__back {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jh-text-muted, #64748b);
  text-decoration: none;
  transition: color 0.15s;
}

.jh-auth__back:hover { color: var(--jh-green-dark); }

.jh-auth__card {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}

.jh-auth__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jh-teal, #3e8f7c);
  margin: 0 0 0.5rem;
}

.jh-auth__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--jh-green-dark);
  margin: 0 0 0.4rem;
}

.jh-auth__lead {
  color: var(--jh-text-muted, #64748b);
  margin: 0 0 1.75rem;
  font-size: 0.98rem;
}

.jh-auth__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jh-auth__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.jh-auth__errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.jh-auth__errors:empty { display: none; }

.jh-auth__errors ul { margin: 0; padding-left: 1.1rem; }

.jh-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.jh-field > label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--jh-green-dark);
  letter-spacing: 0.01em;
}

.jh-field__control {
  position: relative;
}

.jh-field__control > i {
  position: absolute;
  inset-inline-start: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--jh-teal, #3e8f7c);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
}

.jh-field .form-control,
.jh-field .form-select,
.jh-form-section .form-control,
.jh-form-section .form-select {
  border: 1.5px solid #d5e0db;
  border-radius: 0.75rem;
  padding: 0.7rem 0.95rem;
  font-size: 0.95rem;
  background: #fafcfb;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

/* Après le shorthand padding — sinon l’icône mange le placeholder */
.jh-field__control > .form-control {
  padding-inline-start: 2.85rem;
}

.jh-field .form-control:focus,
.jh-field .form-select:focus,
.jh-form-section .form-control:focus,
.jh-form-section .form-select:focus {
  border-color: var(--jh-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  background: #fff;
  outline: none;
}

.jh-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.jh-auth__link {
  color: var(--jh-teal, #3e8f7c);
  font-weight: 600;
  text-decoration: none;
}

.jh-auth__link:hover { text-decoration: underline; }

.jh-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
  margin: 0;
  font-weight: 500;
  color: var(--jh-text, #1a1a1a);
}

.jh-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--jh-green-dark);
}

.jh-auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #0b3d2e 0%, #127a55 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 61, 46, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}

.jh-auth__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 61, 46, 0.34);
  color: #fff;
}

.jh-auth__submit:active { transform: translateY(0); }

.jh-auth__switch {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--jh-text-muted, #64748b);
}

.jh-auth__switch a {
  color: var(--jh-green-dark);
  font-weight: 700;
  text-decoration: none;
}

.jh-auth__switch a:hover { text-decoration: underline; }

.jh-auth__choice {
  display: block;
  cursor: pointer;
  margin: 0.25rem 0 0;
}

.jh-auth__choice > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.jh-auth__choice-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border: 1.5px solid #d5e0db;
  border-radius: 0.85rem;
  background: #fafcfb;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.jh-auth__choice-box strong {
  font-size: 0.95rem;
  color: var(--jh-green-dark);
  font-weight: 600;
}

.jh-auth__choice-box em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--jh-text-muted, #64748b);
}

.jh-auth__choice > input:checked + .jh-auth__choice-box {
  border-color: var(--jh-emerald);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

@media (max-width: 900px) {
  .jh-auth { grid-template-columns: 1fr; }
  .jh-auth__visual {
    min-height: 220px;
    padding: 1.75rem 1.5rem;
    justify-content: flex-end;
  }
  .jh-auth__headline { font-size: 1.55rem; margin-bottom: 1rem; }
  .jh-auth__perks { display: none; }
  .jh-auth__panel { padding: 3.5rem 1.25rem 2rem; }
  .jh-auth__back { left: 1.25rem; }
  .jh-auth__grid2 { grid-template-columns: 1fr; }
}

/* ========== Form pages (add / edit establishment) ========== */
.jh-form-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}

.jh-form-page__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding: 1.75rem 1.85rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(16, 185, 129, 0.14), transparent 55%),
    linear-gradient(135deg, #0b3d2e 0%, #145c45 100%);
  color: #fff;
}

.jh-form-page__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6ee7b7;
  margin: 0 0 0.4rem;
}

.jh-form-page__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  color: #fff;
}

.jh-form-page__lead {
  margin: 0;
  max-width: 34rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.jh-form-page__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.jh-form-page__steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jh-form-page__steps li span {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.jh-form-page__steps li.is-active {
  color: #fff;
  font-weight: 600;
}

.jh-form-page__steps li.is-active span {
  background: var(--jh-emerald);
  border-color: var(--jh-emerald);
  color: #06281e;
}

.jh-form-page__hero .jh-btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.jh-form-page__hero .jh-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.jh-form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.5rem;
  align-items: start;
}

.jh-form-shell__main {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.jh-form-section {
  background: #fff;
  border: 1px solid #dfe8e3;
  border-radius: 1.1rem;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 1px 0 rgba(11, 61, 46, 0.04);
}

.jh-form-section__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid #e8f0ec;
}

.jh-form-section__num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--jh-teal, #3e8f7c);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

.jh-form-section__head h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--jh-green-dark);
  margin: 0 0 0.15rem;
  letter-spacing: -0.02em;
}

.jh-form-section__head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--jh-text-muted, #64748b);
}

.jh-form-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jh-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid #d5e0db;
  border-radius: 999px;
  background: #fafcfb;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.jh-toggle input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--jh-green-dark);
  margin: 0;
}

.jh-toggle:has(input:checked) {
  border-color: var(--jh-emerald);
  background: rgba(16, 185, 129, 0.1);
  color: var(--jh-green-dark);
}

/* GPS bouton — uniquement dans les formulaires établissement */
.jh-form-section .jh-gps-btn,
.jh-form-page .jh-gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1.5px dashed var(--jh-teal, #3e8f7c);
  border-radius: 0.75rem;
  background: rgba(16, 185, 129, 0.06);
  color: var(--jh-green-dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
  justify-content: center;
}

.jh-form-section .jh-gps-btn:hover,
.jh-form-page .jh-gps-btn:hover {
  background: rgba(16, 185, 129, 0.14);
  border-style: solid;
}

.jh-hours-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.jh-hours-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  background: #f7faf8;
}

.jh-hours-row strong {
  font-size: 0.82rem;
  color: var(--jh-green-dark);
}

.jh-form-shell__aside {
  position: sticky;
  top: 5.5rem;
}

.jh-form-aside-card {
  background: #fff;
  border: 1px solid #dfe8e3;
  border-radius: 1.1rem;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 12px 32px rgba(11, 61, 46, 0.08);
}

.jh-form-aside-card h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--jh-green-dark);
  margin: 0 0 0.85rem;
}

.jh-form-aside-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--jh-text, #1a1a1a);
}

.jh-form-aside-card ul i {
  color: var(--jh-emerald);
  margin-right: 0.35rem;
}

.jh-form-aside-card__note {
  font-size: 0.8rem;
  color: var(--jh-text-muted, #64748b);
  margin: 0 0 1.1rem;
  line-height: 1.45;
}

.jh-form-aside-card .jh-auth__submit {
  margin-top: 0;
}

.jh-form-aside-card__cancel {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jh-text-muted, #64748b);
  text-decoration: none;
}

.jh-form-aside-card__cancel:hover { color: var(--jh-green-dark); }

@media (max-width: 900px) {
  .jh-form-shell { grid-template-columns: 1fr; }
  .jh-form-shell__aside { position: static; order: -1; }
  .jh-form-page { padding-inline: 0.75rem; }
  .jh-form-section { padding: 1rem; }
  .jh-form-page__hero { padding: 1.25rem 1.15rem; }
  .jh-hours-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .jh-hours-row strong { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .jh-hours-row {
    grid-template-columns: 1fr;
  }
}

/* ========== Responsive global polish ========== */
@media (max-width: 767.98px) {
  .jh-hero {
    padding: 1.75rem 0 2.25rem;
  }

  .jh-hero h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .jh-hero-subtitle {
    font-size: 0.95rem;
  }

  .jh-section {
    padding: 1.5rem 0;
  }

  .jh-section-title {
    font-size: 1.25rem;
  }

  .jh-page-header {
    padding: 1.25rem 0 1rem;
  }

  .jh-content-page {
    padding: 1.15rem;
    border-radius: var(--jh-radius-lg);
  }

  .jh-status-code .code {
    font-size: clamp(3rem, 18vw, 6rem);
  }

  .jh-dashboard-content {
    padding: 1rem;
  }

  .jh-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    scrollbar-width: thin;
  }

  .jh-chip {
    flex: 0 0 auto;
  }

  .leaflet-popup-content {
    min-width: 0 !important;
    max-width: min(240px, 70vw);
  }
}

@media (max-width: 575.98px) {
  .jh-bottom-nav a {
    min-width: 0;
    padding: 0.25rem 0.2rem;
    font-size: 0.62rem;
  }

  .jh-bottom-nav a i {
    font-size: 1.15rem;
  }

  .jh-search-radius {
    flex: 0 0 5.5rem;
    width: 5.5rem;
  }
}

/* Explore filters toggle (mobile) */
.jh-filters-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1.5px solid var(--jh-border);
  background: var(--jh-beige);
  color: var(--jh-green-dark);
  border-radius: var(--jh-radius-md);
  padding: 0.7rem 0.95rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

@media (max-width: 991.98px) {
  .jh-filters-toggle {
    display: inline-flex;
  }

  .jh-filters-panel > h2.jh-filters-desktop-title {
    display: none;
  }
}

@media (min-width: 992px) {
  #jh-filters-body.collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }
}

/* Auth responsive + RTL */
.jh-auth {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

[dir="rtl"] .jh-auth__back {
  left: auto;
  right: 1.75rem;
}

@media (max-width: 900px) {
  [dir="rtl"] .jh-auth__back {
    right: 1.25rem;
  }

  .jh-auth-lang {
    top: 0.65rem !important;
    inset-inline-end: 0.65rem;
  }

  .jh-auth__panel {
    padding-top: 4rem;
  }
}

[dir="rtl"] .jh-auth__errors ul {
  padding-right: 1.1rem;
  padding-left: 0;
}

[dir="rtl"] .jh-form-aside-card ul i {
  margin-right: 0;
  margin-left: 0.35rem;
}

[dir="rtl"] .jh-search-bar {
  flex-direction: row;
}

body.jh-sidebar-open {
  overflow: hidden;
}

/* Tables overflow safety */
.jh-content-page .table-responsive,
.table-responsive {
  -webkit-overflow-scrolling: touch;
}

#jh-nearby-section .d-flex {
  flex-wrap: wrap;
  gap: 0.75rem;
}


