/**
 * Estilos mínimos del directorio. Mobile-first. Reutiliza tokens del plugin.
 * Alcance: solo vistas /corredores/*, /inmobiliarias/*.
 */

.dp-directorio {
	padding: 24px 16px 64px;
}

.dp-directorio .dp-wrap {
	max-width: var(--dp-wrap, 1340px);
	margin: 0 auto;
}

/* Breadcrumb */
.dp-breadcrumb {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: #6E6750;
	margin-bottom: 24px;
}

.dp-breadcrumb ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dp-breadcrumb li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dp-breadcrumb li:not(:last-child)::after {
	content: "›";
	color: #C4B890;
	margin-left: 6px;
}

.dp-breadcrumb a {
	color: #0F172A;
	text-decoration: none;
}

.dp-breadcrumb a:hover {
	text-decoration: underline;
}

.dp-breadcrumb [aria-current="page"] {
	color: #0F172A;
	font-weight: 500;
}

/* =========================================================================
 * Hub vertical (subsite) — layout extendido
 * ========================================================================= */

/* Hero card del hub vertical: H1 fuera + card con lead + ilustración */
.dp-hub-hero {
	margin-bottom: 28px;
}
.dp-hub-hero h1 {
	font-family: 'Newsreader', Georgia, serif;
	font-variation-settings: "opsz" 144;
	font-weight: 500;
	font-size: clamp(28px, 4.5vw + 8px, 44px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #0F172A;
	text-align: center;
	margin: 0 0 20px;
}
.dp-hero-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 14px;
	padding: 32px;
}
.dp-hero-card-body p {
	font-size: 17px;
	line-height: 1.55;
	color: #64748B;
	margin: 0;
}

/* CTA pair: dos botones lado a lado */
.dp-cta-pair {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
	margin: 24px 0 32px;
}

.dp-cta-center {
	display: flex;
	justify-content: center;
	margin: 24px 0 32px;
}

.dp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: filter 0.15s, transform 0.15s;
	border: none;
	cursor: pointer;
	font-family: inherit;
	min-height: 48px;
}
.dp-btn--primary {
	background: #0F172A;
	color: #FFFFFF;
}
.dp-btn--primary:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}
.dp-btn--secondary {
	background: #CA8A04;
	color: #FFFFFF;
}
.dp-btn--secondary:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}
.dp-btn--lg {
	padding: 18px 32px;
	font-size: 17px;
	min-height: 56px;
}

/* Card con borde verde a la izquierda */
.dp-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 14px;
	padding: 28px 32px;
	margin-bottom: 24px;
}
.dp-card--accent {
	border-left: 4px solid #0F172A;
}
.dp-card h2 {
	font-family: 'Newsreader', Georgia, serif;
	font-variation-settings: "opsz" 96;
	font-weight: 500;
	font-size: clamp(22px, 2.5vw + 8px, 28px);
	line-height: 1.2;
	color: #0F172A;
	margin: 0 0 12px;
}
.dp-card p {
	font-size: 16px;
	line-height: 1.55;
	color: #64748B;
	margin: 0 0 16px;
}
.dp-card p:last-of-type { margin-bottom: 0; }

/* Search input dentro de card */
.dp-hub-search {
	display: flex;
	align-items: stretch;
	margin-top: 16px;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	overflow: hidden;
	background: #FFFFFF;
}
.dp-hub-search input[type="search"] {
	flex: 1;
	padding: 14px 16px;
	border: none;
	font-size: 16px;
	font-family: inherit;
	color: #0F172A;
	background: transparent;
	outline: none;
	min-width: 0;
}
.dp-hub-search button {
	background: #0F172A;
	color: #FFFFFF;
	border: none;
	padding: 0 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dp-hub-search button:hover { filter: brightness(1.1); }

/* Section "Elige tu comuna" — accordion */
.dp-elige-comuna {
	margin: 8px 0 24px;
}
.dp-elige-comuna h2 {
	font-family: 'Newsreader', Georgia, serif;
	font-variation-settings: "opsz" 96;
	font-weight: 500;
	font-size: clamp(22px, 2.5vw + 8px, 28px);
	margin: 0 0 8px;
	color: #0F172A;
}
.dp-section-lead {
	color: #64748B;
	font-size: 16px;
	margin: 0 0 20px;
}

/* Top comunas (2 cols con bullets verdes) */
.dp-top-comunas {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: grid;
	gap: 10px 24px;
	grid-template-columns: 1fr;
}
.dp-top-comunas li {
	position: relative;
	padding-left: 18px;
}
.dp-top-comunas li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #0F172A;
}
.dp-top-comunas a {
	color: #0F172A;
	text-decoration: none;
	font-weight: 500;
}
.dp-top-comunas a:hover {
	color: #CA8A04;
	text-decoration: underline;
}

/* Section genérica */
.dp-section {
	margin-bottom: 24px;
}

/* Region grid base (must precede @media overrides for mobile defaults) */
.dp-region-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	align-items: start;
}
.dp-region-comunas {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
	.dp-hero-card {
		padding: 40px 44px;
	}
	.dp-cta-pair {
		grid-template-columns: 1fr 1fr;
		max-width: 720px;
		margin-left: auto;
		margin-right: auto;
	}
	.dp-top-comunas {
		grid-template-columns: repeat(3, 1fr);
	}
	.dp-region-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.dp-region-grid .dp-region-section[open] {
		grid-column: 1 / -1;
	}
	.dp-region-comunas {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 1024px) {
	.dp-top-comunas {
		grid-template-columns: repeat(5, 1fr);
	}
	.dp-region-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.dp-region-comunas {
		grid-template-columns: repeat(5, 1fr);
	}
}

/* Hero (legacy site 1) */
.dp-hero {
	margin-bottom: 40px;
	padding-bottom: 24px;
	border-bottom: 1px solid #E2E8F0;
}

/* =========================================================================
 * Bloques editoriales en ficha individual (anti thin-content).
 * ========================================================================= */
.dp-editorial {
	margin: 40px 0;
	padding: 28px 32px;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	font-size: 16px;
	line-height: 1.7;
	color: #334155;
}
.dp-editorial h2 {
	font-family: 'Newsreader', Georgia, serif;
	font-variation-settings: "opsz" 80;
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 500;
	color: #0F172A;
	margin: 28px 0 12px;
	letter-spacing: -0.01em;
}
.dp-editorial h2:first-child {
	margin-top: 0;
}
.dp-editorial p {
	margin: 0 0 14px;
}
.dp-editorial-list {
	margin: 12px 0 24px 0;
	padding-left: 0;
	list-style: none;
}
.dp-editorial-list li {
	position: relative;
	padding: 4px 0 4px 22px;
	margin-bottom: 8px;
}
.dp-editorial-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #CA8A04;
}
.dp-editorial-list li strong {
	color: #0F172A;
	font-weight: 600;
}

/* =========================================================================
 * Prosa SEO del hub (uplift visual: jerarquía h2/h3, bullets custom,
 * numeración tipo step, lead destacado, links pino).
 * Override de los estilos minimal en donprecio-common.css cuando aplica
 * dentro de la vista del directorio (donde directorio.css carga después).
 * ========================================================================= */
.dp-directorio .dp-seo-prose {
	margin: 40px 0;
	font-size: 16.5px;
	line-height: 1.72;
	color: #64748B;
}
.dp-directorio .dp-seo-prose h2 {
	font-family: 'Newsreader', Georgia, serif;
	font-variation-settings: "opsz" 96;
	font-size: clamp(26px, 3.2vw, 34px);
	font-weight: 500;
	letter-spacing: -0.018em;
	color: #0F172A;
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 2px solid #E2E8F0;
}
.dp-directorio .dp-seo-prose h3 {
	font-family: 'Newsreader', Georgia, serif;
	font-variation-settings: "opsz" 96;
	font-size: clamp(20px, 2.3vw, 23px);
	font-weight: 500;
	letter-spacing: -0.01em;
	color: #0F172A;
	margin: 36px 0 12px;
	padding-left: 14px;
	border-left: 3px solid #0F172A;
	line-height: 1.25;
}
.dp-directorio .dp-seo-prose p {
	margin: 0 0 16px;
}
.dp-directorio .dp-seo-prose .dp-seo-lead {
	font-size: 18px;
	line-height: 1.65;
	color: #0F172A;
	margin-bottom: 28px;
}
.dp-directorio .dp-seo-prose ul,
.dp-directorio .dp-seo-prose ol {
	margin: 0 0 20px 0;
	padding: 0;
	list-style: none;
}
.dp-directorio .dp-seo-prose ul li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 10px;
}
.dp-directorio .dp-seo-prose ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 11px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #0F172A;
}
.dp-directorio .dp-seo-prose ol {
	counter-reset: dp-step;
}
.dp-directorio .dp-seo-prose ol li {
	position: relative;
	padding-left: 40px;
	margin-bottom: 12px;
	counter-increment: dp-step;
	min-height: 28px;
}
.dp-directorio .dp-seo-prose ol li::before {
	content: counter(dp-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #F4EEDE;
	color: #0F172A;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #E2E8F0;
}
.dp-directorio .dp-seo-prose strong {
	color: #0F172A;
	font-weight: 600;
}
.dp-directorio .dp-seo-prose a {
	color: #0F172A;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.dp-directorio .dp-seo-prose a:hover {
	color: #CA8A04;
}

.dp-hero h1 {
	font-family: 'Newsreader', Georgia, serif;
	font-variation-settings: "SOFT" 50, "opsz" 144;
	font-weight: 420;
	font-size: 32px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
	color: #0F172A;
}

.dp-hero-lead {
	font-size: 17px;
	line-height: 1.5;
	color: #64748B;
	margin: 0;
	max-width: 680px;
}

.dp-badge-verificado {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: #0F172A;
	color: #F4EEDE;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	margin-left: 8px;
	vertical-align: middle;
}

/* Trust strip: rating + verified-with-source bajo el H1 de la ficha */
.dp-trust-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin-top: 14px;
}
.dp-rating {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	font-size: 14px;
	color: #475569;
}
.dp-rating-stars {
	color: #CA8A04;
	font-size: 16px;
	letter-spacing: 1px;
}
.dp-rating-value {
	font-family: 'JetBrains Mono', monospace;
	font-weight: 600;
	color: #0F172A;
}
.dp-rating-count {
	color: #64748B;
	font-size: 13px;
}
.dp-verif {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}
.dp-verif-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: #0F172A;
	color: #F4EEDE;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
}
.dp-verif-meta {
	color: #64748B;
	font-size: 12px;
}

/* Quick actions: barra horizontal compacta de CTAs (1 línea en desktop) */
.dp-quick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 16px;
}
.dp-quick-actions .dp-btn {
	flex: 1 1 auto;
	min-height: 44px;
	font-size: 14px;
	padding: 10px 16px;
	min-width: 0;
}
.dp-btn--ghost {
	background: transparent;
	color: #0F172A;
	border: 1px solid #CBD5E1;
}
.dp-btn--ghost:hover {
	border-color: #0F172A;
	background: #F1F5F9;
}
.dp-btn-icon {
	display: inline-block;
	margin-right: 6px;
}
@media (min-width: 720px) {
	.dp-quick-actions .dp-btn {
		flex: 0 1 auto;
	}
}

/* Map link in dirección */
.dp-contacto-map-link {
	display: inline-block;
	margin-left: 10px;
	font-size: 13px;
	color: #0F172A;
	font-weight: 500;
}
.dp-contacto-map-link:hover {
	color: #CA8A04;
}

/* Embed map below contacto-card */
.dp-mapa {
	margin: 24px 0 32px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
	border: 1px solid #E5E7EB;
	background: #f8fafc;
}
.dp-mapa iframe {
	display: block;
	border: 0;
	width: 100%;
}

/* Horarios as a clean 2-col table */
.dp-horarios-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
	font-size: 14px;
}
.dp-horarios-table th,
.dp-horarios-table td {
	text-align: left;
	padding: 8px 12px;
	border-bottom: 1px solid #E2E8F0;
}
.dp-horarios-table th {
	font-weight: 500;
	color: #64748B;
	width: 38%;
}
.dp-horarios-table td {
	color: #0F172A;
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
}
.dp-horarios-table tr:last-child th,
.dp-horarios-table tr:last-child td {
	border-bottom: none;
}
.dp-horario-empty {
	color: #94A3B8;
	font-style: italic;
}

/* Grid genérico */
.dp-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

.dp-grid-item a {
	display: block;
	padding: 14px 16px;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	color: #0F172A;
	text-decoration: none;
	transition: border-color 0.15s, transform 0.15s;
	font-weight: 500;
}

.dp-grid-item a:hover {
	border-color: #0F172A;
	transform: translateY(-1px);
}

/* Hub: <details> por región con comunas dentro */
.dp-region-section {
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	background: #FFFFFF;
	padding: 0;
	min-width: 0;
}
.dp-region-section[open] {
	border-color: #0F172A;
	box-shadow: 0 0 0 1px #0F172A inset;
}
.dp-region-summary {
	cursor: pointer;
	padding: 10px 14px;
	font-weight: 600;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	list-style: none;
	color: #0F172A;
	line-height: 1.3;
}
.dp-region-summary::-webkit-details-marker { display: none; }
.dp-region-summary::before {
	content: "▸";
	color: #0F172A;
	font-size: 11px;
	transition: transform 0.15s;
	flex: 0 0 auto;
}
.dp-region-section[open] .dp-region-summary::before {
	transform: rotate(90deg);
}
.dp-region-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dp-region-count {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	color: #64748B;
	background: #F4EEDE;
	padding: 1px 7px;
	border-radius: 999px;
	flex: 0 0 auto;
}
.dp-region-comunas {
	list-style: none;
	margin: 0;
	padding: 4px 14px 12px;
	gap: 4px 8px;
}
.dp-region-comunas li {
	margin: 0;
	padding: 0;
}
.dp-region-comunas a {
	display: block;
	padding: 6px 10px;
	border-radius: 6px;
	color: #0F172A;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	background: #FAF6E9;
	border: 1px solid transparent;
	transition: border-color 0.15s, background 0.15s;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dp-region-comunas a:hover {
	border-color: #0F172A;
	background: #FFFFFF;
}

/* Fichas listado */
.dp-fichas-listado {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	margin-bottom: 48px;
}

.dp-card {
	padding: 18px 20px;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
}

.dp-card h3 {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 20px;
	font-weight: 500;
	margin: 0 0 8px;
}

.dp-card h3 a {
	color: #0F172A;
	text-decoration: none;
}

.dp-card h3 a:hover {
	color: #0F172A;
}

.dp-card-direccion,
.dp-card-telefono {
	font-size: 14px;
	color: #64748B;
	margin: 4px 0;
	line-height: 1.4;
}

.dp-card-telefono a {
	color: #0F172A;
	text-decoration: none;
	font-weight: 500;
}

/* Ficha individual */
.dp-contacto-card {
	padding: 20px 24px;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	margin: 24px 0 32px;
}

.dp-contacto-item {
	margin: 10px 0;
	font-size: 15px;
}

.dp-contacto-item a {
	color: #0F172A;
	font-weight: 500;
}

.dp-horarios h3 {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 18px;
	font-weight: 500;
	margin: 20px 0 10px;
}

.dp-horarios ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dp-horarios li {
	font-size: 14px;
	padding: 4px 0;
}

.dp-descripcion {
	margin: 32px 0;
	max-width: 680px;
	line-height: 1.6;
}

.dp-comunas-cercanas {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid #E2E8F0;
}

.dp-comunas-cercanas h2 {
	font-family: 'Newsreader', Georgia, serif;
	font-weight: 420;
	font-size: 22px;
	margin: 0 0 16px;
}

.dp-regiones-grid h2,
.dp-comunas-grid h2 {
	font-family: 'Newsreader', Georgia, serif;
	font-weight: 420;
	font-size: 22px;
	margin: 24px 0 16px;
}

/* Tablet */
@media (min-width: 640px) {
	.dp-directorio {
		padding: 32px 24px 72px;
	}
	.dp-hero h1 {
		font-size: 40px;
	}
	.dp-grid-cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}
	.dp-grid-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	.dp-fichas-listado {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Desktop */
@media (min-width: 960px) {
	.dp-hero h1 {
		font-size: 48px;
	}
	.dp-grid-cols-3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.dp-grid-cols-4 {
		grid-template-columns: repeat(4, 1fr);
	}
	.dp-fichas-listado {
		grid-template-columns: repeat(3, 1fr);
	}
}
