/**
 * Página interna de detalle (detalle-local/ID)
 * Diseño tipo wireframe: barra izquierda + área detalle + lista.
 *
 * @package ShoppingLocales
 * @since 1.3.0
 */

:root {
	--slp-primary: #6a1b9a;
	--slp-primary-light: #7b1fa2;
	--slp-lilac: #d3bce6;
	--slp-lilac-bg: #e8e0f0;
	--slp-bg: #f5f5f5;
	--slp-white: #fff;
	--slp-text: #333;
	--slp-text-muted: #666;
}

.slp-body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background: var(--slp-bg);
	color: var(--slp-text);
}

.slp-page {
	display: flex;
	min-height: 100vh;
	max-width: 1200px;
	margin: 0 auto;
}

/* Barra izquierda */
.slp-sidebar {
	width: 260px;
	flex-shrink: 0;
	padding: 24px 20px;
	background: var(--slp-white);
	border-right: 2px solid var(--slp-primary);
}

.slp-sidebar-title {
	margin: 0 0 12px 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--slp-primary);
}

.slp-search-wrap {
	margin-bottom: 24px;
}

.slp-search-input {
	width: 100%;
	padding: 10px 14px;
	font-size: 15px;
	border: 2px solid var(--slp-primary);
	border-radius: 8px;
	box-sizing: border-box;
	background: var(--slp-lilac-bg);
}

.slp-categorias {
	list-style: none;
	margin: 0 0 20px 0;
	padding: 0;
}

.slp-categorias li {
	margin-bottom: 8px;
}

.slp-filter-btn {
	display: block;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--slp-primary);
	background: var(--slp-lilac-bg);
	border: 2px solid var(--slp-primary);
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.slp-filter-btn:hover {
	background: var(--slp-lilac);
}

.slp-filter-btn.active {
	background: var(--slp-primary);
	color: var(--slp-white);
	border-color: var(--slp-primary);
}

.slp-sidebar-hint {
	margin: 0;
	font-size: 12px;
	color: var(--slp-text-muted);
	line-height: 1.5;
}

/* Área principal derecha */
.slp-main {
	flex: 1;
	min-width: 0;
	padding: 24px;
	overflow-y: auto;
}

.slp-detalle-area {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 32px;
	padding: 20px;
	background: var(--slp-white);
	border: 2px solid var(--slp-primary);
	border-radius: 12px;
}

.slp-detalle-imagen-wrap {
	flex: 0 0 320px;
	max-width: 100%;
}

.slp-detalle-imagen {
	width: 100%;
	height: auto;
	aspect-ratio: 4/3;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.slp-detalle-imagen-placeholder {
	aspect-ratio: 4/3;
	background: var(--slp-lilac-bg);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	font-weight: 700;
	color: var(--slp-primary);
}

.slp-ficha {
	flex: 1;
	min-width: 220px;
}

.slp-ficha-logo {
	text-align: right;
	margin-bottom: 12px;
}

.slp-ficha-logo img {
	max-width: 80px;
	height: auto;
	display: inline-block;
}

.slp-ficha-logo-placeholder {
	text-align: right;
	margin-bottom: 12px;
}

.slp-ficha-logo-placeholder span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 40px;
	background: var(--slp-lilac-bg);
	border-radius: 4px;
	font-weight: 700;
	color: var(--slp-primary);
}

.slp-ficha-datos {
	margin: 0 0 20px 0;
}

.slp-ficha-datos dt {
	font-weight: 600;
	margin-top: 12px;
	margin-bottom: 4px;
}

.slp-ficha-datos dt:first-of-type {
	margin-top: 0;
}

.slp-ficha-datos dd {
	margin: 0;
	color: var(--slp-text-muted);
}

.slp-ficha-acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.slp-btn {
	display: inline-block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
	transition: background 0.2s, color 0.2s;
}

.slp-btn-maps,
.slp-btn-llamar {
	background: var(--slp-primary);
	color: var(--slp-white);
	border: 2px solid var(--slp-primary);
}

.slp-btn-maps:hover,
.slp-btn-llamar:hover {
	background: var(--slp-primary-light);
	color: var(--slp-white);
}

.slp-btn-lista {
	background: transparent;
	color: var(--slp-primary);
	border: 2px solid var(--slp-primary);
}

.slp-btn-lista:hover {
	background: var(--slp-lilac-bg);
}

.slp-sin-local {
	padding: 2rem;
	color: var(--slp-text-muted);
}

/* Lista de locales */
.slp-listado-area {
	background: var(--slp-white);
	border: 2px solid var(--slp-primary);
	border-radius: 12px;
	padding: 20px;
}

.slp-listado-hint {
	margin: 0 0 16px 0;
	font-size: 13px;
	color: var(--slp-text-muted);
}

.slp-listado {
	list-style: none;
	margin: 0;
	padding: 0;
}

.slp-listado-item {
	margin-bottom: 8px;
	border-radius: 8px;
	overflow: hidden;
}

.slp-listado-item a {
	display: block;
	padding: 12px 16px;
	text-decoration: none;
	color: var(--slp-text);
	border: 2px solid transparent;
	border-radius: 8px;
	transition: background 0.2s, border-color 0.2s;
}

.slp-listado-item a:hover {
	background: var(--slp-lilac-bg);
}

.slp-listado-item.selected a {
	background: var(--slp-lilac-bg);
	border-color: var(--slp-primary);
}

.slp-listado-meta {
	display: block;
	font-size: 12px;
	color: var(--slp-text-muted);
	margin-top: 4px;
}

.slp-listado-vacio {
	margin: 0;
	padding: 20px;
	text-align: center;
	color: var(--slp-text-muted);
}

@media (max-width: 768px) {
	.slp-page {
		flex-direction: column;
	}
	.slp-sidebar {
		width: 100%;
		border-right: none;
		border-bottom: 2px solid var(--slp-primary);
	}
	.slp-detalle-area {
		flex-direction: column;
	}
	.slp-detalle-imagen-wrap {
		flex: 0 0 auto;
	}
}
