/* Oddicy Connect — carte et liste des parcours, bouton de lancement */

.oddicy-container { position: relative; width: 100%; margin: 20px 0; }
/* Panneau ombré autour de la carte + liste (couleur : attribut background="#f2f2f2" du shortcode) */
.oddicy-container--panel { padding: 16px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.14); box-sizing: border-box; }
@media (max-width: 860px) { .oddicy-container--panel { padding: 10px; border-radius: 12px; } }

.oddicy-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.oddicy-search { flex: 1 1 220px; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; }
.oddicy-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.oddicy-filter { padding: 8px 14px; border: 1px solid #ddd; border-radius: 999px; background: #fff; cursor: pointer; font-size: 13px; }
.oddicy-filter.is-active { background: #191127; color: #fff; border-color: #191127; }

.oddicy-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 860px) {
  .oddicy-layout { grid-template-columns: 1fr; }
  /* Mobile : carte moins haute (la hauteur du shortcode est un style inline, d où le !important) */
  .oddicy-map { height: 400px !important; }
}

.oddicy-map { width: 100%; background: #f0f0f0; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; position: relative; z-index: 0; }
.oddicy-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5; }
.oddicy-spinner { width: 36px; height: 36px; border: 4px solid #eee; border-top-color: #7862ff; border-radius: 50%; animation: oddicy-spin 1s linear infinite; }
@keyframes oddicy-spin { to { transform: rotate(360deg); } }

.oddicy-list { display: flex; flex-direction: column; gap: 10px; max-height: 600px; overflow-y: auto; }
.oddicy-list--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); max-height: none; }
.oddicy-collection-title { margin: 0 0 14px; font-size: 1.5em; line-height: 1.2; }

.oddicy-card { display: flex; gap: 12px; align-items: stretch; width: 100%; text-align: left; padding: 0; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; font: inherit; color: inherit; }
.oddicy-card:hover, .oddicy-card.is-active { border-color: #7862ff; box-shadow: 0 2px 10px rgba(120, 98, 255, 0.15); }
.oddicy-card-thumb { flex: 0 0 96px; min-height: 84px; background: #eee center/cover no-repeat; }
.oddicy-card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 10px 0; min-width: 0; }
.oddicy-card-name { font-weight: 600; font-size: 15px; }
.oddicy-card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.oddicy-card-date { font-size: 12px; color: #777; }

.oddicy-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eee; color: #444; }
.oddicy-badge--accessible { background: #d1fae5; color: #065f46; }
.oddicy-badge--not_started { background: #fef3c7; color: #92400e; }
.oddicy-badge--finished { background: #f3f4f6; color: #6b7280; }
.oddicy-price { font-size: 13px; font-weight: 700; }
.oddicy-price--free { color: #0f8a5f; }

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

.oddicy-marker-wrapper { background: none; border: none; }
.oddicy-marker-wrapper svg { display: block; width: 30px; height: 40px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.oddicy-toolbar[hidden] { display: none; }

.oddicy-popup { min-width: 220px; }
.oddicy-popup-image { width: 100%; height: 130px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.oddicy-popup-title { margin: 0 0 6px; font-size: 16px; }
.oddicy-popup-dates { font-size: 12px; color: #777; margin: 6px 0; }
.oddicy-popup-button { display: block; margin-top: 10px; padding: 10px 14px; border-radius: 8px; background: #7862ff; color: #fff !important; text-align: center; text-decoration: none !important; font-weight: 600; }
.oddicy-popup-button.is-disabled { background: #ddd; color: #888 !important; pointer-events: none; }

.oddicy-launch { margin: 24px 0; padding: 20px; border: 1px solid #e5e7eb; border-radius: 12px; background: #f7fbff; text-align: center; }
.oddicy-launch h2 { margin: 0 0 8px; }
.oddicy-launch-button { display: inline-block; margin-top: 10px; padding: 14px 32px; background: #7862ff !important; color: #fff !important; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none !important; }
