/* assets/css/poi.css */
/* Maloys POI — style sombre + accent orange pour coller au design de la fiche */

.maloys-poi {
  /* palette adaptée au site */
  --poi-accent: #FF8041;        /* orange du site */
  --poi-bg: #F6F6F6;            /* fond carte sombre */
  --poi-title-bg: #FF8041;      /* en-tête groupe */
  --poi-border: #ffffff;        /* séparateurs */
  --poi-text: #000000;          /* texte principal */
  --poi-muted: #666666;         /* texte secondaire */
  --poi-row-hover: rgba(255,122,0,.08);

  background: white;
  color: var(--poi-text);
  padding: 0;                   /* aspect table plein bord */
  overflow: hidden;
  font-size: 15px;
  line-height: 1.45;
}

/* chaque groupe = section avec entête */
.maloys-poi__group {
  margin: 0;
  border-top: 1px solid var(--poi-border);
}
.maloys-poi__group:first-child {
  border-top: 0;
}

/* entête de groupe (titre) */
.maloys-poi__title {
  margin: 0;
  padding: 12px 16px;
  background: var(--poi-bg);
  color:#FF8041;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  position: relative;
}
.maloys-poi__title::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--poi-accent); /* barre orange à gauche */
}

/* liste en “lignes de tableau” */
.maloys-poi__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.maloys-poi__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--poi-border);
}
.maloys-poi__item:first-child {
  border-top: 0;
}
@media (hover:hover) {
  .maloys-poi__item:hover {
    background: var(--poi-row-hover);
  }
}

/* cellules */
.maloys-poi__name {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.maloys-poi__meta {
  margin-left: auto;            /* pousse à droite */
  color: var(--poi-muted);
  font-size: 13px;
  white-space: nowrap;
}

/* lien “Voir sur la carte” — style lien accent du site */
.maloys-poi__link {
  margin-left: 12px;
  color: var(--poi-accent);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.maloys-poi__link::after {
  content: " ↗";
  font-size: 12px;
}
.maloys-poi__link:hover,
.maloys-poi__link:focus {
  text-decoration: underline;
}

/* focus visible pour accessibilité */
.maloys-poi__link:focus-visible,
.maloys-poi__item:focus-within .maloys-poi__link {
  outline: 2px solid var(--poi-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* responsive : empile méta + lien sur petit écran */
@media (max-width: 560px) {
  .maloys-poi__item {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .maloys-poi__meta {
    order: 3;
    width: 100%;
  }
}

/* état vide */
.maloys-poi--empty {
  padding: 14px 16px;
  color: var(--poi-muted);
  font-style: italic;
  background: var(--poi-bg);
}
