/*
 * NSW SLP Events — Front-end CSS
 * Adaptez les couleurs, tailles et espacements selon vos besoins.
 * Toutes les classes sont préfixées slp- pour éviter les conflits.
 */

/* ============================================================
   WIDGET WRAP
============================================================ */
.slp-widget-wrap {
	position: relative;
}

/* ============================================================
   NAVIGATION PREV / NEXT
============================================================ */
.slp-widget-nav {
	display: flex;
	justify-content: flex-end;
	gap: 4px;
	margin-bottom: 12px;
}

.slp-widget-btn {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	width: 20px;
	height: 24px;
	border: 1px solid #dfdfdf;
	background: #ececec;
	border-radius: 4px;
	padding: 0 16px;
	cursor: pointer;
	font-size: 22px;
	line-height: 0.8em;
	color: #24769c;
	transition: background 0.15s, color 0.15s;
}
.slp-widget-btn:active, .slp-widget-btn:focus {
	background: #555;
	border: 1px solid #dfdfdf;
	padding: 0 16px;
}

.slp-widget-btn:hover {
	background: #555;
	color: #fff;
}

.slp-widget-btn:disabled,
.slp-widget-btn[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* ============================================================
   CONTENU — zone rechargée en AJAX
============================================================ */
.slp-widget-content {
	transition: opacity 0.2s;
}

.slp-widget-content.slp-loading {
	opacity: 0.4;
	pointer-events: none;
}

/* ============================================================
   MOIS
============================================================ */
.slp-widget-month {}

/* ============================================================
   JOUR
============================================================ */
.slp-widget-day {
	margin-bottom: 16px;
}
.slp-widget-day.past {
	opacity: 0.5;
}

.slp-widget-day-title {
	font-weight: bold;
	font-size: 0.95em;
	margin: 0 0 6px 0;
	padding: 0;
}

/* ============================================================
   ÉVÉNEMENT
============================================================ */
.slp-widget-event {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	margin-bottom: 6px;
	background: #ececec;
	border-radius: 0.25em;
	opacity: 0.8;
}
.slp-widget-event:hover {
	opacity: 1;
}

/* ============================================================
   BARRES COLORÉES (catégories)
============================================================ */
.slp-widget-event-bars {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	width: 6px;
	 border-radius: 0.25em 0 0 0.25em;
	overflow: hidden;
	gap: 1px;
}

.slp-widget-event-bar {
	display: block;
	flex: 1;
	min-height: 8px;
}

.slp-widget-event-bar--default {
	background: #ccc;
}

/* ============================================================
   CORPS DE L'ÉVÉNEMENT
============================================================ */
.slp-widget-event-body {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px;
	flex: 1;
	min-width: 0;
	padding: 2px 0;
}

.slp-widget-event-time {
	font-weight: bold;
	font-size: 1em;
	white-space: nowrap;
	flex-shrink: 0;
}

.widget .slp-widget-event-body a.slp-widget-event-title, .slp-widget-event-body a.slp-widget-event-title {
	display: flex;
	flex-direction: column;
	padding-left: 8px;
	font-size: 1em;
	color: inherit;
	text-decoration: none;
	flex: 1;
	min-width: 0;
	text-decoration: none;
	color: #333;
}
}

.widget .slp-widget-event-body a.slp-widget-event-title:hover, .slp-widget-event-body a.slp-widget-event-title:hover {
	text-decoration: none;
	color: #333;
}

.slp-widget-event-type {
	display: inline-block;
	font-size: 0.75em;
	padding: 1px 6px;
	border-radius: 3px;
	background: #60656a;
	color: #fff;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ============================================================
   MESSAGE VIDE
============================================================ */
.slp-widget-empty {
	color: #888;
	font-style: italic;
	font-size: 0.9em;
	margin: 0;
}


/* ============================================================
   SINGLE ÉVÉNEMENT
============================================================ */
.slp-single-wrap {
	max-width: 800px;
}

/* Titre */
.slp-single-title {
	margin-bottom: 16px;
}

/* Icônes agendas */
.slp-single-calendars {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.slp-single-calendar-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	color: inherit;
	font-size: 0.75em;
	opacity: 0.85;
	transition: opacity 0.15s;
}

.slp-single-calendar-link:hover {
	opacity: 1;
	text-decoration: none;
}

.slp-single-calendar-label {
	font-size: 0.85em;
	color: #555;
}

/* Bloc infos */
.slp-single-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 24px;
	padding: 14px 16px;
	border-left: 3px solid #ddd;
	background: #f9f9f9;
	border-radius: 0 4px 4px 0;
}

.slp-single-meta-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.slp-single-meta-icon {
	flex-shrink: 0;
	margin-top: 1px;
	color: #666;
}

.slp-single-meta-value {
	font-size: 0.95em;
}
.slp-single-meta-type .slp-single-meta-value {
	padding: 1px 6px;
	border: 1px solid #60656a;
	border-radius: 3px;
	color: #60656a;
}

.slp-single-meta-value a {
	color: inherit;
}

/* Catégories dans le bloc infos */
.slp-single-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.slp-single-cat {
	padding: 2px 8px;
	font-size: 0.9em;
	border-radius: 0 3px 3px 0;
	background: #f0f0f0;
}
.slp-single-cat a {
	color: unset!important;
}

/* Extrait */
.slp-single-excerpt {
	font-style: italic;
	color: #555;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eee;
}

/* Description */
.slp-single-description {
	margin-bottom: 32px;
}

/* Carte MapLibre */
.slp-single-map-wrap .maplibregl-popup-close-button,
.maplibregl-popup-close-button {
	display: none;
}

.slp-single-map {
	width: 100%;
	height: 350px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #ddd;
}

/* ============================================================
   SHORTCODE [slp_events]
============================================================ */
.slp-shortcode-list {
	list-style: square;
	padding-left: 1.5em;
	margin: 0;
}

.slp-shortcode-item {
	margin-bottom: 6px;
	line-height: 1.5;
}

.slp-shortcode-title {
	color: inherit;
	text-decoration: none;
}

.slp-shortcode-title:hover {
	text-decoration: underline;
}

.slp-shortcode-excerpt {
	font-size: 0.95em;
}

.slp-shortcode-date {
	font-style: italic;
	color: #888;
	font-size: 0.9em;
}

.slp-shortcode-empty {
	font-style: italic;
	color: #888;
}

/* ============================================================
   SHORTCODE [slp_events_upcoming]
============================================================ */
.slp-upcoming-list {
	margin: 0;
}

.slp-upcoming-item {
	padding: 40px 0;
	border-bottom: 1px solid #eee;
}

.slp-upcoming-item:last-child {
	border-bottom: none;
}

.slp-upcoming-title {
	font-size: 1.9em;
	margin: 0 0 6px 0;
	line-height: 1.3;
}

.slp-upcoming-title a {
	color: inherit;
	text-decoration: none;
}

.slp-upcoming-title a:hover {
	text-decoration: underline;
}

.slp-upcoming-type {
	display: inline-block;
	font-size: 0.55em;
	font-weight: normal;
	padding: 2px 8px;
	border-radius: 3px;
	background: #60656a;
	color: #fff;
	vertical-align: middle;
	margin-left: 8px;
}

.slp-upcoming-date {
	font-size: 0.9em;
	color: #555;
	margin: 4px 0;
}

.slp-upcoming-excerpt {
	font-size: 0.95em;
	margin: 4px 0 0 0;
}

/* ============================================================
   SHORTCODE [slp_cat_description]
============================================================ */
.slp-cat-description {
	font-size: 1.14em !important;
}

/* ============================================================
   PAGE TAXONOMIE CATÉGORIE
============================================================ */
.slp-cat-separator {
	margin: 40px 0 24px;
	border: none;
	border-top: 1px solid #ddd;
}

.slp-cat-archives-title {
	font-size: 1.2em;
	margin-bottom: 16px;
}

/* Dates multiples dans le single */
.slp-single-meta-date .slp-single-meta-value {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.slp-single-meta-date-item {
	display: block;
}
