/* Ortho First Location Map */

.ofm {
	--ofm-primary: #5c2b45;
	--ofm-accent: #f2c230;
	--ofm-ink: #1f2330;
	--ofm-muted: #6b7180;
	--ofm-line: #e6e6ea;
	--ofm-card: #ffffff;
	--ofm-radius: 18px;
	--ofm-serif: "Tiempos", Georgia, "Times New Roman", serif;

	max-width: 1180px;
	margin: 0 auto;
	color: var(--ofm-ink);
}

.ofm *,
.ofm *::before,
.ofm *::after {
	box-sizing: border-box;
}

.ofm__heading {
	font-family: var(--ofm-serif);
	font-size: clamp(1.9rem, 3.4vw, 3rem);
	font-weight: 400;
	line-height: 1.15;
	text-align: center;
	margin: 0 0 32px;
}

.ofm__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	background: var(--ofm-card);
	border: 1px solid var(--ofm-line);
	border-radius: var(--ofm-radius);
	padding: 28px;
	box-shadow: 0 1px 2px rgba(16, 18, 28, 0.04);
}

/* ---------- Map ---------- */

.ofm__map-wrap {
	position: relative;
}

.ofm__map {
	width: 100%;
	aspect-ratio: 4 / 5;
	min-height: 420px;
	border-radius: 12px;
	overflow: hidden;
	background: #eef1ee;
}

.ofm__map:focus-visible {
	outline: 3px solid var(--ofm-primary);
	outline-offset: 2px;
}

/* Google's default marker focus ring is invisible on our SVG pins. */
.ofm__map .gm-style img[src^="data:image/svg"] {
	image-rendering: auto;
}

/* ---------- Panel ---------- */

.ofm__panels {
	padding-top: 4px;
}

.ofm__panel[hidden] {
	display: none;
}

.ofm__name {
	font-family: var(--ofm-serif);
	font-size: clamp(1.6rem, 2.6vw, 2.35rem);
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 14px;
}

.ofm__name strong {
	font-weight: 700;
}

.ofm__address {
	color: var(--ofm-muted);
	font-size: 0.95rem;
	margin: 0 0 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ofm-line);
}

.ofm__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ofm-line);
	font-size: 1.05rem;
}

.ofm__phone-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border-radius: 50%;
	background: var(--ofm-primary);
	color: #fff;
}

.ofm__phone-number {
	font-weight: 700;
	color: inherit;
	text-decoration: none;
}

.ofm__phone-number:hover,
.ofm__phone-number:focus {
	text-decoration: underline;
}

.ofm__hours-title {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
	font-weight: 700;
	margin: 0 0 8px;
}

.ofm__hours {
	margin: 0 0 24px;
}

.ofm__hours-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ofm-line);
}

.ofm__hours dt {
	color: var(--ofm-ink);
	font-size: 0.98rem;
}

.ofm__hours dd {
	margin: 0;
	font-weight: 700;
	font-size: 0.98rem;
	white-space: nowrap;
}

/* ---------- Buttons ---------- */

.ofm__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.ofm__btn {
	flex: 1 1 180px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 22px;
	border-radius: 6px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ofm__btn--primary {
	background: var(--ofm-primary);
	color: #fff;
	border: 1px solid var(--ofm-primary);
}

.ofm__btn--primary:hover,
.ofm__btn--primary:focus {
	background: #431f33;
	border-color: #431f33;
	color: #fff;
}

.ofm__btn--ghost {
	background: transparent;
	color: var(--ofm-primary);
	border: 1px solid var(--ofm-line);
}

.ofm__btn--ghost:hover,
.ofm__btn--ghost:focus {
	border-color: var(--ofm-primary);
}

/* ---------- Footer note ---------- */

.ofm__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--ofm-serif);
	font-size: 1.05rem;
	text-align: center;
}

.ofm__note--above {
	margin: -12px 0 20px;
}

.ofm__note--below {
	margin: 26px 0 0;
}

.ofm__note-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ofm-primary);
	color: #fff;
}

/* ---------- Location picker (keyboard / no-JS fallback) ---------- */

.ofm__picker {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	justify-content: center;
}

.ofm__picker--above {
	margin: 0 0 24px;
}

.ofm__picker--below {
	margin: 20px 0 0;
}

.ofm__picker-btn {
	background: #fff;
	border: 1px solid var(--ofm-line);
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ofm-ink);
	cursor: pointer;
}

.ofm__picker-btn:hover {
	border-color: var(--ofm-primary);
}

.ofm__picker-btn.is-active {
	background: var(--ofm-primary);
	border-color: var(--ofm-primary);
	color: #fff;
}

.ofm__picker-btn:focus-visible {
	outline: 3px solid var(--ofm-primary);
	outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.ofm__card {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		padding: 18px;
	}

	.ofm__map {
		aspect-ratio: 1 / 1;
		min-height: 320px;
	}

	.ofm__btn {
		flex: 1 1 100%;
	}
}
