/**
 * Location and region hub pages.
 *
 * The --vc-* design tokens are declared in map.css, whose selector list includes
 * .vetcare-loc and .vetcare-hub — so never hardcode a hex value here.
 *
 * These pages render inside the theme's main content area, so layout stays
 * modest: no fixed heights, no flex wrapper that would fight Ollie's own.
 */

.vetcare-loc,
.vetcare-hub {
	color: var(--vc-text);
	font-size: 16px;
	line-height: 1.55;
}

.vetcare-loc h2,
.vetcare-hub h2 {
	font-size: 20px;
	font-weight: 700;
	color: var(--vc-ink);
	margin: 0 0 12px;
}

.vetcare-loc h3,
.vetcare-hub h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--vc-ink);
	margin: 24px 0 8px;
}

/* ----------------------------------------------------------------- *
 * Breadcrumbs
 * ----------------------------------------------------------------- */

.vetcare-loc-crumbs {
	font-size: 14px;
	color: var(--vc-muted);
	margin-bottom: 16px;
}

.vetcare-loc-crumbs a {
	color: var(--vc-muted);
	text-decoration: underline;
}

.vetcare-loc-crumbs a:hover,
.vetcare-loc-crumbs a:focus {
	color: var(--vc-ink);
}

.vetcare-loc-crumbs span[aria-hidden] {
	margin: 0 6px;
	color: var(--vc-placeholder);
}

/* ----------------------------------------------------------------- *
 * Location header
 * ----------------------------------------------------------------- */

.vetcare-loc-head {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 20px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--vc-border);
}

.vetcare-loc-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--vc-border);
	border-radius: 6px;
}

.vetcare-loc-logo img {
	max-width: 100%;
	height: auto;
	display: block;
}

.vetcare-loc-provider {
	font-weight: 700;
	color: var(--vc-ink);
	margin: 0;
}

.vetcare-loc-status,
.vetcare-loc-card-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	margin: 0;
}

.vetcare-loc-status.is-open,
.vetcare-loc-card-status.is-open {
	color: var(--vc-green);
}

.vetcare-loc-status.is-closed,
.vetcare-loc-card-status.is-closed {
	color: var(--vc-orange);
}

.vetcare-loc-status .vetcare-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
}

/* ----------------------------------------------------------------- *
 * Location layout
 * ----------------------------------------------------------------- */

.vetcare-loc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
}

.vetcare-loc-main > section,
.vetcare-loc-side > section {
	margin-bottom: 32px;
}

.vetcare-loc-address {
	font-style: normal;
	font-size: 17px;
	margin: 0 0 16px;
}

.vetcare-loc-street {
	font-weight: 500;
	color: var(--vc-ink);
}

.vetcare-loc-locality {
	color: var(--vc-muted);
}

.vetcare-loc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.vetcare-loc-actions a {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid var(--vc-border);
	color: var(--vc-ink);
	background: #fff;
}

.vetcare-loc-actions a:hover,
.vetcare-loc-actions a:focus {
	background: var(--vc-fill);
}

.vetcare-loc-cta.is-book,
.vetcare-loc-cta.is-cta {
	background: var(--vc-red);
	border-color: var(--vc-red);
	color: #fff;
}

.vetcare-loc-cta.is-book:hover,
.vetcare-loc-cta.is-book:focus,
.vetcare-loc-cta.is-cta:hover,
.vetcare-loc-cta.is-cta:focus {
	background: var(--vc-red-dark);
	border-color: var(--vc-red-dark);
	color: #fff;
}

/* ----------------------------------------------------------------- *
 * Hours table — the highest-value unique content on the page
 * ----------------------------------------------------------------- */

.vetcare-loc-hours table {
	width: 100%;
	max-width: 420px;
	border-collapse: collapse;
}

.vetcare-loc-hours th,
.vetcare-loc-hours td {
	padding: 9px 0;
	text-align: left;
	border-bottom: 1px solid var(--vc-border);
	font-weight: 400;
}

.vetcare-loc-hours th {
	color: var(--vc-muted);
}

.vetcare-loc-hours td {
	color: var(--vc-ink);
	text-align: right;
}

.vetcare-loc-hours tr.is-today th,
.vetcare-loc-hours tr.is-today td {
	font-weight: 700;
	color: var(--vc-ink);
}

/* ----------------------------------------------------------------- *
 * Service pills
 * ----------------------------------------------------------------- */

.vetcare-loc .vetcare-tags,
.vetcare-hub .vetcare-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vetcare-loc .vetcare-tag,
.vetcare-hub .vetcare-tag {
	background: var(--vc-pill-bg);
	color: var(--vc-ink);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 14px;
}

/* Provider-wide list: visibly secondary, and collapsed by default. */
.vetcare-loc-boilerplate {
	margin: 32px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--vc-border);
}

.vetcare-loc-boilerplate summary {
	cursor: pointer;
	font-weight: 500;
	color: var(--vc-muted);
}

.vetcare-loc-boilerplate .vetcare-tags {
	margin-top: 16px;
}

/* ----------------------------------------------------------------- *
 * Static map
 * ----------------------------------------------------------------- */

.vetcare-loc-map {
	margin: 0 0 24px;
}

.vetcare-loc-map img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
	border: 1px solid var(--vc-border);
}

/* ----------------------------------------------------------------- *
 * Location cards (related, nearby, hub listings)
 * ----------------------------------------------------------------- */

.vetcare-loc-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.vetcare-loc-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid var(--vc-border);
	border-radius: 8px;
	background: #fff;
}

.vetcare-loc-card:hover,
.vetcare-loc-card:focus-within {
	background: var(--vc-blue-hover);
}

.vetcare-loc-card-title {
	font-weight: 700;
	color: var(--vc-ink);
	text-decoration: none;
}

.vetcare-loc-card-title:hover,
.vetcare-loc-card-title:focus {
	text-decoration: underline;
}

.vetcare-loc-card-address {
	font-size: 14px;
	color: var(--vc-muted);
}

.vetcare-loc-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 14px;
}

.vetcare-loc-card-distance {
	color: var(--vc-muted);
}

.vetcare-loc-card-phone {
	color: var(--vc-ink);
}

/* ----------------------------------------------------------------- *
 * Hubs
 * ----------------------------------------------------------------- */

.vetcare-hub-title {
	margin: 0 0 12px;
}

.vetcare-hub-intro {
	font-size: 18px;
	color: var(--vc-muted);
	margin: 0 0 32px;
}

.vetcare-hub-citylist,
.vetcare-hub-statelist {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	columns: 3 200px;
	column-gap: 32px;
}

.vetcare-hub-citylist li,
.vetcare-hub-statelist li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px solid var(--vc-border);
	break-inside: avoid;
}

.vetcare-hub-citylist a,
.vetcare-hub-statelist a {
	color: var(--vc-ink);
	text-decoration: none;
}

.vetcare-hub-citylist a:hover,
.vetcare-hub-citylist a:focus,
.vetcare-hub-statelist a:hover,
.vetcare-hub-statelist a:focus {
	text-decoration: underline;
}

.vetcare-hub-count {
	color: var(--vc-placeholder);
	font-variant-numeric: tabular-nums;
}

.vetcare-hub-cityname {
	margin-top: 32px;
}

.vetcare-loc-back,
.vetcare-hub-back {
	margin: 40px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--vc-border);
	font-size: 15px;
}

/* ----------------------------------------------------------------- *
 * Breadcrumbs inside the locator headline
 *
 * The location and hub pages use the full-bleed locator, so their crumbs sit in
 * the headline block above the H1 instead of in the page body.
 * ----------------------------------------------------------------- */

.vetcare-headline .vetcare-loc-crumbs {
	margin: 0 0 4px;
	font-size: 13px;
	color: var(--vc-muted);
}

.vetcare-headline .vetcare-loc-crumbs a {
	color: var(--vc-muted);
}

/* ----------------------------------------------------------------- *
 * Content below the full-bleed locator
 *
 * The fullscreen rules in map.css zero the padding on every layout wrapper that
 * contains the map, which also un-pads anything after it — so these blocks have
 * to re-establish their own gutters and reading width.
 * ----------------------------------------------------------------- */

.vetcare-map-wrap.is-fullscreen ~ .vetcare-loc,
.vetcare-map-wrap.is-fullscreen ~ .vetcare-hub,
body:has( .vetcare-map-wrap.is-fullscreen ) .vetcare-loc,
body:has( .vetcare-map-wrap.is-fullscreen ) .vetcare-hub {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 16px 0;
}

/* ----------------------------------------------------------------- *
 * Server-rendered sidebar card
 *
 * The crawlable stand-in for the JS result card, inside the locator's own
 * <ul class="vetcare-list">. map.js replaces it on first render, so this only
 * has to hold up for crawlers, no-JS visitors, and the instant before hydration
 * — it deliberately doesn't try to reproduce the JS card pixel for pixel.
 * ----------------------------------------------------------------- */

.vetcare-seed {
	padding: 16px 18px;
	border-bottom: 1px solid var(--vc-border);
	font-size: 15px;
	line-height: 1.5;
}

.vetcare-seed-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: var(--vc-ink);
}

.vetcare-seed-title a {
	color: inherit;
	text-decoration: none;
}

.vetcare-seed-title a:hover,
.vetcare-seed-title a:focus {
	text-decoration: underline;
}

.vetcare-seed-status {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 500;
}

.vetcare-seed-status.is-open {
	color: var(--vc-green);
}

.vetcare-seed-status.is-closed {
	color: var(--vc-red);
}

.vetcare-seed-address {
	margin: 0 0 10px;
	font-style: normal;
	color: var(--vc-ink);
}

.vetcare-seed-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0;
}

.vetcare-seed-actions a {
	color: var(--vc-blue);
	font-weight: 500;
}

.vetcare-seed-hours {
	width: 100%;
	margin: 14px 0 0;
	border-collapse: collapse;
	font-size: 14px;
}

.vetcare-seed-hours caption {
	margin-bottom: 6px;
	text-align: left;
	font-weight: 700;
	color: var(--vc-ink);
}

.vetcare-seed-hours th,
.vetcare-seed-hours td {
	padding: 4px 0;
	text-align: left;
	font-weight: 400;
	vertical-align: top;
	border-bottom: 1px solid var(--vc-border);
}

.vetcare-seed-hours tr.is-today th,
.vetcare-seed-hours tr.is-today td {
	font-weight: 700;
}

.vetcare-seed-subhead {
	margin: 16px 0 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--vc-ink);
}

/* ----------------------------------------------------------------- *
 * Narrow screens
 * ----------------------------------------------------------------- */

@media (max-width: 782px) {
	.vetcare-loc-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.vetcare-hub-citylist,
	.vetcare-hub-statelist {
		columns: 1;
	}
}
