/* ── Calendario di disponibilità ── */
.ao-cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px 32px; }
.ao-cal-month h3 { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: center; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--st-border, #e5e7eb); }
.ao-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.ao-cal-dow { text-align: center; font-size: .7rem; color: #7b8494; padding: 4px 0; }
.ao-cal-day { border: 0; background: transparent; aspect-ratio: 1 / 1; border-radius: 50%; font-size: .85rem; color: #1f2937; cursor: pointer; }
.ao-cal-day:hover:not(:disabled) { background: #eef0f6; }
.ao-cal-day.is-past { color: #c3c7d4; cursor: default; }
.ao-cal-day.is-today { font-weight: 800; text-decoration: underline; }
.ao-cal-day.is-blocked { background: #f8d9db; color: #8a1c1c; }
.ao-cal-day.is-booked { background: #d8e6fb; color: #1d4ea8; cursor: default; }
.ao-cal-day.is-sel { background: #b3121a; color: #fff; }
.ao-cal-bar { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 12px 16px; background: #fff; border: 1px solid var(--st-border, #e5e7eb); border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.ao-cal-bar[hidden] { display: none; }
.ao-cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: #5b6472; margin-bottom: 16px; }
.ao-cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.ao-cal-chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.ao-cal-chip { display: inline-flex; align-items: center; padding: 6px 12px; background: #f8d9db; color: #8a1c1c; border-radius: 999px; font-size: .85rem; }


/* Versione pubblica, sola lettura: i giorni non prenotabili sono grigi e barrati */
.ao-cal--public .ao-cal-day { cursor: default; }
.ao-cal--public .ao-cal-day:hover:not(:disabled) { background: transparent; }
.ao-cal--public .ao-cal-day.is-blocked { background: #eceef3; color: #8b93a5; text-decoration: line-through; }
.ao-cal--public .ao-cal-months { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Mappa pubblica: si carica solo dopo un clic (le richieste ai tile arrivano a OpenStreetMap) */
.ao-pubmap { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.ao-pubmap-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 260px; padding: 24px; text-align: center; background: #f3f4f8; }
.ao-pubmap-canvas { height: 340px; z-index: 0; }
