@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

:root {
  --bg: #184D5A;
  --panel: #1f6474;
  --card: #225d6c;
  --text: #E8E7CC;
  --muted: #c9d5cb;
  --brand: #81BADB;
  --brand2: #E8E7CC;
  --accent: #81BADB;
  --danger: #ff4d6d;
  --ok: #35d07f;
  --stroke: rgba(255, 255, 255, .10);
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --radius: 16px;
  --radius2: 22px;
  --max: 1100px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #fff;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(129, 186, 219, .36), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(232, 231, 204, .20), transparent 55%),
    radial-gradient(900px 500px at 80% 80%, rgba(129, 186, 219, .22), transparent 60%),
    var(--bg);
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}

h1,
h2,
h3,
.hero__content h1,
.stack h1,
.search-stats h2,
.dash-section-header h2 {
  font-family: "Poppins", "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  letter-spacing: .01em;
  color: var(--text);
  font-weight: 800;
}

/* Boutons: conserver leurs couleurs propres */
.btn,
.btn * {
  color: inherit;
}

/* Onglets/menu du haut: conserver la couleur d'origine */
.topbar,
.topbar * {
  color: var(--text);
}

a {
  color: inherit
}

p {
  color: #fff;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(24, 77, 90, .78);
  border-bottom: 1px solid var(--stroke);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nav-actions-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none
}

.brand__logo {
  height: 48px;
  display: block;
  border-radius: 14px;
  filter: drop-shadow(0 4px 12px rgba(129, 186, 219, 0.38));
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.25s ease;
}

.brand:hover .brand__logo {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 16px rgba(232, 231, 204, 0.45));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  cursor: pointer;
  transition: background .2s;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, .1);
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  margin: 0 auto;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-user-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  padding-left: 20px;
  border-left: 1px solid var(--stroke);
}

.nav__admin {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  opacity: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__admin:hover {
  opacity: 0.9;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  border-radius: 50%;
  line-height: 1;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  border-bottom: 1px solid var(--stroke);
}

.admin-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}

.admin-tab:hover {
  color: var(--text);
}

.admin-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

.admin-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  border-radius: 50%;
  line-height: 1;
}

.btn--logout {
  padding: 6px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Menu hamburger : tout écran < 992px (mobile + tablette) */
@media (max-width: 991px) {
  .topbar .nav-toggle {
    display: flex !important;
    margin-left: 0;
  }
  .nav-actions-wrap {
    margin-left: auto;
  }
  .topbar__inner {
    flex-wrap: wrap;
  }
  .topbar .nav {
    display: none !important;
    flex-basis: 100%;
    order: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    border-top: 1px solid var(--stroke);
    margin-top: 8px;
  }
  .topbar .nav.is-open {
    display: flex !important;
  }
  .nav .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-user-block {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav a,
  .nav .nav__form {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 4px;
  }
  .nav .nav__form {
    width: 100%;
  }
  .nav a:hover {
    background: rgba(255, 255, 255, .06);
  }
  .nav .btn {
    width: 100%;
    justify-content: center;
  }
  .nav__sep {
    display: none;
  }
  .nav__user {
    padding: 12px 16px;
    margin-bottom: 4px;
  }
}

@media (min-width: 992px) {
  .nav .nav__form {
    margin: 0;
  }
}

.nav a {
  opacity: .92;
  text-decoration: none
}

.nav a:hover {
  opacity: 1
}

.nav__sep {
  width: 1px;
  height: 20px;
  background: var(--stroke)
}

.nav__user {
  font-weight: 650;
  opacity: .95
}

.nav__form {
  margin: 0
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(129, 186, 219, .55);
  background: linear-gradient(135deg, rgba(129, 186, 219, .95), rgba(232, 231, 204, .92));
  color: #184D5A;
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(129, 186, 219, .30);
  transition: transform 0.2s, filter 0.2s;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn:hover {
  filter: brightness(1.05)
}

.btn--ghost {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.btn--block {
  width: 100%
}

.btn--danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn--danger:hover {
  filter: brightness(1.1);
}

.card {
  background: rgba(24, 77, 90, .62);
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card__title {
  margin: 0 0 10px
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 22px;
  padding: 26px 0 8px;
}

.hero__content h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  margin: 8px 0 10px;
}

.lead {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.5;
  max-width: 52ch
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 30px
}

.feature h3 {
  margin: 6px 0 6px
}

.feature p {
  margin: 0;
  color: #fff;
  line-height: 1.45
}

.form {
  display: grid;
  gap: 12px
}

.field {
  display: grid;
  gap: 6px
}

.field span {
  color: var(--muted);
  font-size: .92rem
}

/* Véhicules adaptés : une option par ligne, mise en page simple */
.field--vehicle-types {
  gap: 8px;
}
.field--vehicle-types .vehicle-types-checkboxes {
  margin-top: 4px;
}
.field--vehicle-types .vehicle-type-option {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}
.field--vehicle-types .vehicle-type-option input {
  margin-right: 10px;
  vertical-align: middle;
}
.field--vehicle-types .vehicle-type-option span {
  color: inherit;
  font-size: 1rem;
  vertical-align: middle;
}

/* Borne de recharge : visible sur mobile, texte pas rejeté à droite */
.checkbox-row--charging {
  margin: 10px 0;
  width: 100%;
}
.checkbox-row__label {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
}
.checkbox-row__label input {
  flex-shrink: 0;
  margin-top: 2px;
}
.checkbox-row__label span {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
@media (max-width: 480px) {
  .checkbox-row__label {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .checkbox-row__label span {
    order: 2;
  }
  .checkbox-row__label input {
    order: 1;
  }
}

/* Page détail parking : icônes types de véhicules (accepté = normal, non accepté = barré) */
.vehicle-type-icon-item--disabled img {
  opacity: 0.55;
}
.vehicle-type-icon-item--disabled span {
  text-decoration: line-through;
  opacity: 0.7;
}

.avail-time {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.avail-time select {
  flex: 1;
  min-width: 3.5em;
  font-size: 0.95rem;
  padding: 8px 6px;
}

.phone-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.phone-input-row .phone-country-select {
  width: auto;
  min-width: 0;
  max-width: 200px;
  flex: 0 0 auto;
}
.phone-input-row .phone-number-input {
  flex: 1;
  min-width: 0;
}

/* Bloc date + heure recherche (barre flottante) */
.search-datetime {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 140px;
}
.search-datetime__date-row {
  width: 100%;
}
.search-datetime__date-row input {
  width: 100%;
  min-width: 0;
  font-size: 0.9rem;
}
.search-datetime__time-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.search-datetime__time-row select {
  min-width: 3.2em;
  width: auto;
  font-size: 0.95rem;
  padding: 4px 6px;
  font-weight: 600;
}
.search-datetime__time-sep {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-bar-floating .search-datetime__time-sep {
  color: #6b7280;
}
.search-bar-floating .search-datetime__date-row input,
.search-bar-floating .search-datetime__time-row select {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111827;
}
.search-bar-floating .search-datetime__time-row select {
  padding: 6px 8px;
}

/* Horloge à cartes (flip) – Début / Départ dynamiques */
.search-datetime--live {
  flex: 1 1 160px;
}
.flip-clock {
  display: flex;
  align-items: center;
  gap: 2px;
}
.flip-clock__sep {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--muted);
  margin: 0 1px;
}
.search-bar-floating .flip-clock__sep {
  color: #6b7280;
}
.flip-card {
  perspective: 120px;
  width: 2.2em;
  height: 1.6em;
  display: inline-flex;
}
.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
.flip-card__inner.flip {
  transform: rotateX(-180deg);
}
.flip-card__face {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.search-bar-floating .flip-card__face {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.08);
}
.flip-card__face--back {
  transform: rotateX(180deg);
}
.flip-card__digit {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  color: #0b1020;
}
.search-bar-floating .flip-card__digit {
  color: #111827;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(7, 10, 20, .55);
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(129, 186, 219, .6)
}

.grid {
  display: grid;
  gap: 12px
}

.grid--2 {
  grid-template-columns: 1fr 1fr
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid--2 {
  grid-template-columns: 1fr 1fr;
}

.grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 600px) {

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

.stack {
  max-width: 560px;
  margin: 18px auto 40px;
  display: grid;
  gap: 12px
}

.stack h1 {
  margin: 0 0 6px
}

.flash {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .04);
}

.flash--success {
  border-color: rgba(53, 208, 127, .45)
}

.flash--error {
  border-color: rgba(255, 77, 109, .55)
}

.flash--info {
  border-color: rgba(129, 186, 219, .45)
}

.muted {
  color: var(--muted)
}

.tiny {
  font-size: .88rem
}

.footer {
  border-top: 1px solid var(--stroke);
  background: rgba(24, 77, 90, .55);
  margin-top: 40px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 22px;
}

.footer__refresh-btn {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  cursor: pointer;
  opacity: .9;
}
.footer__refresh-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .1);
  opacity: 1;
}
.footer__refresh-btn:disabled {
  cursor: default;
  opacity: .6;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr
  }

  .features {
    grid-template-columns: 1fr
  }

  .grid--2,
  .grid--4 {
    grid-template-columns: 1fr
  }

  .search-page {
    grid-template-columns: 1fr !important
  }

  .search-map {
    height: 300px !important;
    position: relative !important;
    top: 0 !important
  }
}

/* ----- Mobile-first tweaks for search layout & inputs ----- */
@media (max-width: 900px) {
  /* Map visible en premier sur mobile,
     puis la liste des résultats en dessous */
  .search-page {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .search-map {
    order: 1;
    height: 320px !important;
    min-height: 320px;
    border-left: none;
    border-top: 1px solid var(--stroke);
    margin-top: 8px;
  }
  #map {
    min-height: 320px;
  }

  .search-results {
    order: 2;
    padding: 18px;
  }
}

@media (max-width: 650px) {
  /* Barre de recherche plus lisible sur petit écran */
  .search-bar-floating {
    max-width: 100%;
    margin: 0 16px 18px;
    padding: 14px 14px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    gap: 8px;
  }

  .search-bar-floating .divider {
    display: none;
  }

  .search-bar-floating .field {
    width: 100%;
  }

  .search-bar-floating input,
  .search-bar-floating select {
    font-size: 1rem;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .search-bar-floating .field span {
    font-size: 0.8rem;
  }

  /* Boutons pleine largeur pour être faciles à cliquer */
  .search-bar-floating .btn,
  .search-bar-floating .btn.btn--circle {
    width: 100%;
    border-radius: 999px;
  }
}

/* Search Page Enhancements */
.search-page {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 1fr);
  gap: 0;
  height: calc(100vh - 73px);
  min-height: 400px;
  margin-top: 0;
}

.search-results {
  padding: 24px;
  overflow-y: auto;
  background: rgba(24, 77, 90, .3);
}

.search-map {
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  min-height: 320px;
  z-index: 5;
  border-left: 1px solid var(--stroke);
  background: #e8ecef;
}
#map {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.search-stats {
  margin-bottom: 20px
}

.search-stats h2 {
  margin: 0;
  font-size: 1.4rem
}

.search-bar-floating {
  background: #ffffff;
  color: #0b1020;
  border-radius: 28px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  max-width: 980px;
  margin: 0 auto 24px;
}
.search-bar-floating .divider {
  align-self: stretch;
  min-height: 44px;
}

.search-bar-floating .field {
  display: block;
  gap: 0
}

.search-bar-floating .field span {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
  font-size: 0.75rem;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.5px
}

.search-bar-floating input {
  background: transparent;
  border: none;
  padding: 2px 0;
  border-radius: 0;
  font-size: 0.95rem;
  color: #0b1020;
  width: 100%;
  min-width: 0;
}

.search-bar-floating input::placeholder {
  color: #9ca3af;
}

/* Période compacte (date début -> date fin) */
.search-range-compact .search-range-compact__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-range-compact .search-range-compact__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  padding: 6px 10px;
}
.search-range-compact .search-range-compact__icon {
  color: #184D5A;
  opacity: .85;
  font-size: 1.05rem;
  line-height: 1;
}
.search-range-compact .search-range-compact__item input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  color: #0b1020;
  font-size: 0.95rem;
}
.search-range-compact .search-range-compact__arrow {
  color: #184D5A;
  font-size: 1.35rem;
  font-weight: 800;
  opacity: .85;
}
@media (max-width: 860px) {
  .search-range-compact .search-range-compact__row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .search-range-compact .search-range-compact__arrow {
    display: none;
  }
}

/* Home: période avec calendrier + menu heure (15 min) */
.home-period-picker .home-period-picker__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-period-picker .home-period-picker__item {
  flex: 1;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  padding: 6px 10px;
}
.home-period-picker .home-period-picker__icon {
  color: #184D5A;
  font-size: 1rem;
  opacity: .85;
}
.home-period-picker input[type="date"],
.home-period-picker select {
  border: none !important;
  background: transparent !important;
  color: #0b1020 !important;
  padding: 0 !important;
  min-width: 0;
  width: auto;
  font-size: 0.95rem;
}
.home-period-picker input[type="date"] {
  max-width: 122px;
}
.home-period-picker select {
  max-width: 84px;
}
.home-period-picker .home-period-picker__arrow {
  color: #184D5A;
  font-size: 1.25rem;
  font-weight: 800;
}
@media (max-width: 860px) {
  .home-period-picker .home-period-picker__row {
    flex-direction: column;
    align-items: stretch;
  }
  .home-period-picker .home-period-picker__arrow {
    display: none;
  }
}

/* meilleure lisibilité du sélecteur de distance dans le fond blanc */
.search-bar-floating select[name="radius"] {
  color: #111827 !important;
}

/* forcer un texte clair dans les propositions d'adresse */
.search-bar-floating .autocomplete-results,
.autocomplete-results {
  color: var(--text);
}

.search-bar-floating .autocomplete-item,
.autocomplete-item {
  color: var(--text);
}

.search-bar-floating .autocomplete-item .detail,
.autocomplete-item .detail {
  color: var(--muted);
}

.search-bar-floating .divider {
  width: 1px;
  height: 32px;
  background: var(--stroke)
}

.parking-card-modern {
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  margin-bottom: 16px;
}

.parking-card-modern:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.autocomplete-container {
  position: relative;
  overflow: visible;
}

.search-bar-floating {
  overflow: visible;
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-width: 100%;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  z-index: 9999;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: var(--shadow);
  margin-top: 8px;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.autocomplete-item:hover {
  background: rgba(255, 255, 255, .05)
}

.autocomplete-item .label {
  font-weight: 600;
  font-size: .9rem
}

.autocomplete-item .detail {
  font-size: .75rem;
  color: var(--muted)
}

/* Airbnb-style Map Markers */
.airbnb-price-marker {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #222;
  border: 1px solid #ddd;
  font-size: 13px;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  cursor: pointer;
  white-space: nowrap;
  padding: 0 10px;
}

.airbnb-price-marker:hover,
.airbnb-price-marker.is-active {
  background: #222;
  color: white !important;
  border-color: #222;
  transform: scale(1.1);
  z-index: 1000 !important;
}

.airbnb-price-marker span {
  color: inherit;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 6px;
}

.leaflet-popup-tip {
  background: white;
}

/* POI Styles */
.poi-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
}

.poi-marker--restaurant {
  border-color: #4caf50;
  color: #4caf50;
}

.poi-marker--supermarket {
  border-color: #2196f3;
  color: #2196f3;
}

.poi-marker--fuel {
  border-color: #ff9800;
  color: #ff9800;
}

.poi-marker:hover,
.poi-marker.is-active {
  transform: scale(1.15);
  z-index: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Survol liste ↔ carte : anneau pulsé pour identifier le POI */
.poi-marker.is-hover {
  transform: scale(1.25);
  z-index: 1000;
  box-shadow: 0 0 0 4px rgba(129, 186, 219, 0.5), 0 0 0 8px rgba(129, 186, 219, 0.25), 0 4px 20px rgba(0, 0, 0, 0.35);
  animation: poi-hover-pulse 1s ease-in-out infinite;
}

@keyframes poi-hover-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(129, 186, 219, 0.5), 0 0 0 8px rgba(129, 186, 219, 0.25), 0 4px 20px rgba(0, 0, 0, 0.35); }
  50%  { box-shadow: 0 0 0 6px rgba(129, 186, 219, 0.6), 0 0 0 12px rgba(129, 186, 219, 0.2), 0 4px 24px rgba(0, 0, 0, 0.4); }
}

.nearby-item.is-hover {
  background: rgba(129, 186, 219, 0.08);
  border-color: rgba(129, 186, 219, 0.4);
}

.nearby-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--stroke);
}

.poi-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.poi-filter-btn {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.poi-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.poi-filter-btn.active {
  border-color: var(--brand);
  background: rgba(129, 186, 219, 0.2);
  color: var(--brand2);
}

.nearby-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
  font-size: 0.9rem;
  border: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.nearby-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nearby-item.is-active {
  border-color: var(--brand);
  background: rgba(129, 186, 219, 0.12);
}

.nearby-item__main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.nearby-item__icon {
  font-size: 1.4rem;
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nearby-item__icon img {
  width: 24px;
  height: 24px;
}

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

.nearby-item__title {
  font-weight: 700;
  font-size: 0.95rem;
}

.nearby-item__cuisine {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand2);
  margin-top: 2px;
  margin-bottom: 2px;
}

.nearby-item__subtitle {
  margin-top: 2px;
}

.poi-rating {
  margin-top: 4px;
  font-size: 0.8rem;
  min-height: 1.2em;
}

.poi-rating--filled .poi-rating__stars {
  color: #f5b041;
  letter-spacing: 0.05em;
}

.poi-rating--filled .star-half {
  display: inline-block;
  width: 0.5em;
  overflow: hidden;
  vertical-align: text-bottom;
}

.poi-rating--filled .poi-rating__score {
  font-weight: 700;
  color: var(--text);
}

.poi-rating--filled .poi-rating__count {
  color: var(--text-muted, rgba(255,255,255,0.6));
  font-size: 0.9em;
}

.poi-rating__link {
  font-size: 0.8rem;
  color: var(--brand2);
  text-decoration: none;
}

.poi-rating__link:hover {
  text-decoration: underline;
}

.nearby-item__actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.nearby-item__actions .btn {
  flex: 1;
  padding: 4px 8px;
  font-size: 0.65rem;
  border-color: rgba(255, 255, 255, 0.1);
}

.poi-toggle-control {
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #222;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ----- Dashboard tiles ----- */
.dashboard-shell {
  max-width: 1100px;
  margin: 18px auto 40px;
  display: grid;
  gap: 14px;
}

.dashboard-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .dashboard-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dashboard-tiles {
    grid-template-columns: 1fr;
  }
}

.dash-tile {
  display: block;
  text-decoration: none;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dash-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 186, 219, .55);
}

.dash-tile.is-active {
  border-color: rgba(232, 231, 204, .55);
  box-shadow: 0 10px 40px rgba(232, 231, 204, .10);
}

.dash-tile__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dash-tile__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.dash-tile__desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.dash-tile__count {
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--stroke);
  font-weight: 850;
  color: var(--text);
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.dash-section-header h2 {
  margin: 0;
}

.dash-help {
  margin: 0;
  color: var(--muted);
}

/* Popup calendrier / créneaux (dashboard) */
.avail-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.avail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.avail-modal__box {
  position: relative;
  background: var(--card-bg, rgba(24, 77, 90, 0.95));
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.avail-modal__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.avail-modal__time-label {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text);
}

.avail-modal__strip {
  display: flex;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  touch-action: none;
  user-select: none;
}

.avail-modal__hour {
  flex: 1;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text);
  opacity: 0.7;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
}

.avail-modal__hour:last-child {
  border-right: none;
}

.avail-modal__hour.is-selected {
  background: var(--brand);
  opacity: 1;
  color: #fff;
}

.avail-modal__slots {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.avail-modal__slots-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.avail-modal__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.avail-modal__slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 0.85rem;
}

.avail-modal__slot-remove {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.avail-modal__slot-remove:hover {
  background: var(--danger);
  color: #fff;
}