.fm-list-wrapper {
	max-width: 1180px;
	margin: 0 auto;
	padding: 28px 24px 40px;
}

.fm-farmacia-card {
	max-width: 860px;
	margin: 0 auto;
	padding: 32px 20px;
}

.fm-list-title,
.fm-farmacia-title {
	margin-bottom: 22px;
	color: #ff1e00;
	font-size: 2.55rem;
	font-weight: 800;
	line-height: 1.2;
}

.fm-list {
	display: grid;
	gap: 20px;
}

.fm-search-layout {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 18px;
	align-items: start;
}

.fm-map-column {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	position: relative;
	order: 1;
}

.fm-map-card {
	position: sticky;
	top: 12px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.fm-map {
	min-height: 560px;
	border-radius: 0;
	overflow: hidden;
	background: linear-gradient(180deg, #f8fafc 0%, #eef6f0 100%);
}

.fm-map-status {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 560px;
	margin: 0;
	padding: 24px;
	text-align: center;
	color: #475569;
	font-weight: 600;
}

.fm-map-fallback {
	display: grid;
	gap: 16px;
	height: 100%;
	min-height: 560px;
	padding: 20px;
	background: linear-gradient(180deg, #f8fafc 0%, #eef6f0 100%);
}

.fm-map-fallback-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
}

.fm-map-fallback-list li {
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid #d8e2dc;
	border-radius: 12px;
}

.fm-map-fallback-list a {
	display: block;
	margin-bottom: 4px;
	color: #14532d;
	font-weight: 700;
	text-decoration: none;
}

.fm-map-fallback-list span {
	display: block;
	color: #475569;
	font-size: 0.95rem;
}

.fm-map-popup strong {
	display: block;
	margin-bottom: 4px;
}

.fm-results-column {
	flex: 1 1 auto;
	width: 100%;
	max-width: none;
	min-width: 0;
	order: 2;
}

.fm-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	width: 100%;
	margin-top: 40px;
}

.fm-pagination-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1.5px solid #6b7280;
	border-radius: 50%;
	background: #fff;
	color: #111827;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fm-pagination-link:hover,
.fm-pagination-link:focus {
	border-color: #dc2626;
	background: #fff5f5;
	color: #dc2626;
	transform: translateY(-1px);
}

.fm-pagination-link.is-current {
	border-color: #dc2626;
	background: #fff;
	color: #dc2626;
}

.fm-search-form {
	margin-bottom: 28px;
}

.fm-search-label {
	display: block;
	margin-bottom: 10px;
	font-weight: 700;
	font-size: 1.05rem;
	color: #1f2937;
}

.fm-search-controls {
	display: flex;
	gap: 14px;
	align-items: center;
}

.fm-search-input {
	flex: 1;
	min-width: 0;
	height: 54px;
	padding: 0 18px;
	border: 1px solid #d4dbe3;
	border-radius: 16px;
	background: #fff;
	color: #0f172a;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.fm-search-button {
	height: 54px;
	padding: 0 26px;
	border: 0;
	border-radius: 16px;
	background: #166534;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.fm-search-button:hover,
.fm-search-button:focus {
	background: #14532d;
}

.fm-list-item,
.fm-farmacia-card {
	background: #ffffff;
	border: 1px solid #e8edf2;
	border-radius: 20px;
	box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.fm-farmacia-card {
	padding: 28px;
}

.fm-detail-back {
	margin: 0 0 18px;
}

.fm-detail-back-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid #d4dbe3;
	border-radius: 999px;
	background: #fff;
	color: #14532d;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.fm-detail-back-link:hover,
.fm-detail-back-link:focus {
	border-color: #14532d;
	background: #f0fdf4;
}

.fm-detail-back-link::before {
	content: "\2190";
	font-size: 1rem;
	line-height: 1;
}

.fm-farmacia-hero {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	margin-bottom: 28px;
}

.fm-farmacia-hero-media {
	display: flex;
	justify-content: center;
}

.fm-farmacia-hero-content {
	min-width: 0;
}

.fm-farmacia-logo-wrap {
	width: 100%;
}

.fm-farmacia-logo {
	display: block;
	width: 100%;
	max-width: 220px;
	height: auto;
	border-radius: 12px;
}

.fm-farmacia-logo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 220px;
	aspect-ratio: 1 / 1;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	color: #64748b;
	font-weight: 600;
}

.fm-farmacia-summary {
	display: grid;
	gap: 6px;
}

.fm-farmacia-summary-line {
	margin: 0;
	color: #334155;
	font-size: 1rem;
}

.fm-list-item {
	min-height: 104px;
	padding: 24px 26px;
}

.fm-item-title {
	margin: 0 0 14px;
	font-size: 1.15rem;
}

.fm-item-title a {
	color: #ff1e00;
	font-weight: 800;
	text-decoration: none;
}

.fm-item-title a:hover,
.fm-item-title a:focus {
	text-decoration: underline;
}

.fm-item-address,
.fm-item-city,
.fm-farmacia-row p {
	margin: 0;
	color: #334155;
}

.fm-item-city {
	margin-top: 14px;
	font-weight: 500;
	color: #111827;
}

.fm-farmacia-meta {
	display: grid;
	gap: 18px;
}

.fm-farmacia-row {
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
}

.fm-farmacia-row:first-child {
	padding-top: 0;
	border-top: 0;
}

.fm-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	color: #0f172a;
}

@media (max-width: 760px) {

	.fm-map-card {
		position: static;
	}

	.fm-map,
	.fm-map-status {
		min-height: 420px;
	}
}

@media (max-width: 640px) {
	.fm-list-wrapper,
	.fm-farmacia-card {
		padding: 24px 16px;
	}

	.fm-farmacia-hero {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.fm-farmacia-hero-media {
		justify-content: flex-start;
	}

	.fm-list-title,
	.fm-farmacia-title {
		font-size: 2rem;
	}

	.fm-search-controls {
		flex-direction: column;
		align-items: stretch;
	}

	.fm-map,
	.fm-map-status {
		min-height: 340px;
	}

	.fm-map-fallback {
		min-height: 340px;
	}
}
