body.pl-cities-page #page-container,
body.pl-cities-page #main-content {
	background: #f1f3f2;
}

body.pl-cities-page #main-content {
	position: relative;
	overflow: hidden;
}

/* Cabecera verde con ilustración de ciudad */
body.pl-cities-page #main-content::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 360px;
	background: linear-gradient(180deg, #d4f4ea 0%, #e7f8f2 55%, #f1f3f2 100%);
	content: "";
	pointer-events: none;
}

body.pl-cities-page #main-content .container {
	position: relative;
	width: calc(100% - 64px);
	max-width: 1280px;
	padding-top: 44px;
}

body.pl-cities-page #main-content .container::before {
	display: none !important;
}

body.pl-cities-page #content-area {
	display: grid;
	grid-template-columns: minmax(0, 2.05fr) minmax(300px, 0.9fr);
	align-items: start;
	gap: 36px;
}

body.pl-cities-page #left-area,
body.pl-cities-page #sidebar {
	float: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
}

body.pl-cities-page #sidebar {
	padding-top: 64px !important;
}

body.pl-cities-page #left-area > article {
	margin-bottom: 40px;
	background: transparent;
}

body.pl-cities-page h1.entry-title {
	max-width: 640px;
	margin: 0 0 12px;
	padding: 0;
	color: #18264a;
	font-size: clamp(2rem, 3.4vw, 2.7rem);
	font-weight: 800;
	line-height: 1.1;
}

body.pl-cities-page .entry-content > p {
	max-width: 560px;
	margin: 0 0 22px;
	padding: 0;
	color: #53657b;
	font-size: 16px;
	line-height: 1.5;
}

/* Buscador */
.pl-cities-search {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 560px;
	margin: 0 0 14px;
	padding: 6px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 6px 22px rgb(24 38 74 / 10%);
}

.pl-search-icon {
	position: absolute;
	left: 20px;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: #6b7a90;
	stroke-linecap: round;
	stroke-width: 2;
	pointer-events: none;
}

.pl-cities-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px 0 50px;
	border: 0;
	background: transparent;
	color: #18264a;
	font-size: 15px;
}

.pl-cities-search input[type="search"]:focus {
	outline: 0;
}

.pl-cities-search:focus-within {
	box-shadow: 0 0 0 3px rgb(31 191 159 / 28%), 0 6px 22px rgb(24 38 74 / 10%);
}

.pl-cities-search button {
	height: 44px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: #1fbf9f;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 150ms ease;
}

.pl-cities-search button:hover,
.pl-cities-search button:focus-visible {
	background: #17a88b;
}

/* Filtros */
.pl-cities-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 24px;
}

.pl-chip {
	padding: 9px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: #263957;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.pl-chip:hover {
	border-color: #1fbf9f;
}

.pl-chip.is-active {
	border-color: #1fbf9f;
	background: #1fbf9f;
	color: #fff;
}

.pl-city-card[hidden],
.pl-pagination[hidden],
.pl-cities-noresults[hidden] {
	display: none !important;
}

.pl-city-ghost {
	visibility: hidden;
	pointer-events: none;
}

.pl-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 28px 0 8px;
}

.pl-pagination button {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #dfe6e3;
	border-radius: 999px;
	background: #fff;
	color: #17284a;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.pl-pagination button:hover:not(:disabled),
.pl-pagination button.is-active {
	border-color: #1fbf9f;
	background: #1fbf9f;
	color: #fff;
}

.pl-pagination button:disabled {
	opacity: 0.4;
	cursor: default;
}

.pl-cities-noresults,
.pl-cities-empty {
	padding: 24px;
	border-radius: 12px;
	background: #fff;
	color: #53657b;
}

/* Tarjetas */
.pl-cities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
	align-items: stretch;
	gap: 18px;
}

.pl-city-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-width: 0;
	border: 1px solid #e6ebf1;
	border-radius: 14px;
	background: #fff !important;
	box-shadow: 0 4px 16px rgb(24 38 74 / 7%);
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.pl-city-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgb(24 38 74 / 12%);
}

.pl-city-media {
	position: relative;
	display: grid;
	height: 128px;
	place-items: center;
	background: linear-gradient(#e9efec, #dfe9e5);
}

.pl-city-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pl-city-media > .pl-city-pin {
	width: 54px;
	height: 54px;
	fill: #758f87;
}

.pl-city-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px 4px 7px;
	border-radius: 999px;
	background: #fff;
	color: #18264a;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	box-shadow: 0 2px 8px rgb(24 38 74 / 12%);
}

.pl-city-badge .pl-city-pin {
	width: 13px;
	height: 13px;
	fill: #1fbf9f;
}

.pl-city-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 14px 14px 14px;
}

.pl-city-body h3 {
	margin: 0;
	padding: 0;
	color: #18264a;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
}

.pl-city-body p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	margin: 0 0 6px;
	padding: 0;
	overflow: hidden;
	color: #5d6b80;
	font-size: 12px;
	line-height: 1.5;
	min-height: 3em;
}

.pl-city-action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	padding: 11px 14px;
	border-radius: 9px;
	background: #1fbf9f;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background 150ms ease;
}

.pl-city-action:hover,
.pl-city-action:focus-visible {
	background: #17a88b;
	color: #fff;
}

.pl-arrow {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.4;
}

/* Barra lateral */
body.pl-cities-page #sidebar .widget,
body.pl-cities-page #sidebar .et_pb_widget {
	display: none !important;
}

body.pl-cities-page #sidebar .pl-single-app {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 112px;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	padding: 18px;
	border-radius: 12px;
	background: #eff9f5;
	box-shadow: 0 6px 18px rgb(24 38 74 / 8%);
}

body.pl-cities-page #sidebar .pl-single-app h2 {
	margin: 0 0 8px;
	padding: 0;
	color: #18264a;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.2;
}

body.pl-cities-page #sidebar .pl-single-app p {
	margin: 0 0 12px;
	padding: 0;
	color: #53657b;
	font-size: 12px;
	line-height: 1.45;
}

body.pl-cities-page #sidebar .pl-single-app-stores {
	display: grid;
	gap: 8px;
}

body.pl-cities-page #sidebar .pl-single-app-stores a,
body.pl-cities-page #sidebar .pl-single-app-stores img,
body.pl-cities-page #sidebar .pl-single-app-phone img {
	display: block;
	width: 100%;
	height: auto;
}

body.pl-cities-page #sidebar .pl-single-app-stores a,
body.pl-cities-page #sidebar .pl-single-app-stores img {
	max-width: 150px;
}

body.pl-cities-page #sidebar .pl-single-app-phone img {
	max-height: 205px;
	margin: 0 auto;
	object-fit: contain;
}

/* En Ciudades la tarjeta se ajusta a la altura del listado: las filas se reparten el espacio */
body.pl-cities-page .pl-recent {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	margin-bottom: 0;
	overflow: hidden;
}

body.pl-cities-page .pl-recent ul {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

body.pl-cities-page .pl-recent li {
	flex: 1 1 auto;
}

body.pl-cities-page .pl-recent li[hidden] {
	display: none;
}

@media (max-width: 1100px) {
	body.pl-cities-page #content-area {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	body.pl-cities-page #sidebar {
		padding-top: 0 !important;
	}
}

@media (max-width: 767px) {
	body.pl-cities-page #main-content .container {
		width: calc(100% - 32px);
		padding-top: 28px;
	}

	.pl-cities-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 12px;
	}

	.pl-cities-search button {
		padding: 0 18px;
	}
}
