/* Islands Locations Map — frontend styles
   Namespaced under .ilm- to avoid colliding with the Avada theme. */

.ilm-locator {
	--ilm-marker-color: #00636b;
	--ilm-accent-color: #e8734a;
	--ilm-border: #e1ddd3;
	--ilm-text: #223333;
	--ilm-muted: #5f6e6e;
	box-sizing: border-box;
	color: var(--ilm-text);
	max-width: 100%;
	/* Anchors the "Skip locations list and map" link (see below) to this
	   widget's own top-left corner instead of whatever positioned ancestor
	   happens to be further up the page. */
	position: relative;
}
.ilm-locator *,
.ilm-locator *::before,
.ilm-locator *::after {
	box-sizing: border-box;
}

/* "Skip locations list and map" link + its landing target (see
   class-ilm-shortcode.php for the markup, frontend.js for the click
   handler). Clipped to 1x1px until it receives keyboard focus — the same
   zero-footprint technique as .ilm-sr-only below, rather than pushed
   off-screen with a large negative offset, which can otherwise leave a
   scrollable blank gap above the widget in some layouts. On focus it pops
   into view, docked to the widget's own top-left corner above everything
   else, for the one moment it's in use. */
.ilm-skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10000;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	background: var(--ilm-marker-color, #00636b);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: 0;
	border-radius: 0 0 4px 0;
}
.ilm-skip-link:focus {
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	overflow: visible;
	clip: auto;
	white-space: normal;
}
/* The landing target never needs the dark "button" treatment the actual
   link gets — it's not something anyone clicks — just the same
   clip-until-focused behavior and a plain, readable focus style. */
.ilm-skip-target:focus {
	background: #fff;
	color: var(--ilm-text, #223333);
	border: 1px solid var(--ilm-border, #e1ddd3);
}

.ilm-admin-notice {
	background: #fff8e5;
	border: 1px solid #e8d9a0;
	color: #6b5900;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 14px;
}
.ilm-admin-notice a { color: #6b5900; text-decoration: underline; }

/* Grid (not flex) so the two columns divide up exactly: the sidebar is
   1/4 of the row (never narrower than 355px) and the map column is
   whatever's left — grid's own `gap` is already subtracted from the
   track sizes, so "1fr" here really does come out to 100% - 355px.
   The row is pinned to exactly fill the container's own height (set
   inline, in PHP, to the same value as the map's height) with
   `minmax(0, 1fr)` rather than left at the default "auto" — an auto row
   sizes itself to the *taller* of its two items' natural content height,
   which here would mean a long location list stretching the map to match
   *it* instead of the other way around. align-items stays at its default
   ("stretch") so both columns actually fill that row. */
/* No gap between the columns — the map sits flush against the sidebar
   with no gutter, margin, or padding of its own on either side (a gap is
   added back only on the stacked mobile layout, where it reads as space
   between the two stacked sections rather than space "on the right" of
   anything — see the mobile query below). */
.ilm-locator-inner {
	display: grid;
	grid-template-columns: minmax(355px, 25%) 1fr;
	grid-template-rows: minmax(0, 1fr);
}

/* ---------------- Sidebar ---------------- */
/* Stretched (see .ilm-locator-inner above) to the map's height, as a flex
   column so the location list below — not the search form above it — is
   the part that grows/shrinks to fill the remaining space and scrolls
   internally. */
.ilm-sidebar {
	height: 100%;
	margin-right: 0;
	display: flex;
	flex-direction: column;
}
.ilm-search-form {
	margin-bottom: 16px;
}
.ilm-search-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}
.ilm-search-row {
	/* Stacked: the actions row (Search + Show All) sits below the input,
	   not beside it. */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding-right: 20px;
}
/* input[type="text"].ilm-search-input (rather than plain .ilm-search-input)
   is intentional: Avada's own compiled theme CSS carries a same-looking
   input[type="text"] rule with its own border color, and a single class
   selector alone ((0,1,0) in specificity) loses to that ((0,1,1)) no matter
   which stylesheet happens to load second. Matching on the type attribute
   too ((0,2,1)) always wins, so the brand-colored border shows regardless
   of theme/plugin CSS load order. */
input[type="text"].ilm-search-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ilm-marker-color);
	border-radius: 4px;
	font-size: 14px;
}
/* Search button and "Show All" side by side below the input. */
.ilm-search-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.ilm-search-row .btn {
	/* Same reasoning as the detail page's btn-brand buttons: give the
	   ribbon `::before` layer a stacking context to sit inside. Sized to
	   its own content (not the full row width) via the explicit padding
	   below. No margin here — spacing between the input and this row, and
	   between the button and "Show All" next to it, both come from the
	   flex `gap`s above instead. */
	isolation: isolate;
	padding: 0.2em 1em 0.2em 1em !important;
	margin: 0;
}
/* "Show All" (.ilm-search-clear) is now a real "btn btn-brand" element
   too — matched by the ".ilm-search-row .btn" rule above like the Search
   button next to it, so the theme handles all of its actual look. The
   only plugin CSS specific to it is this visibility rule: hidden by
   default (via the `hidden` attribute in the markup) and only revealed
   once the visitor actually searches for a location — see
   initSearch()/place_changed in frontend.js. This override is required,
   not just defensive: without it, the theme's own `.btn-brand` rule
   setting `display` would otherwise defeat the browser's built-in
   `[hidden]{display:none}` behavior (an author rule always wins over that
   user-agent default, whatever the specificity). */
.ilm-search-clear[hidden] {
	display: none !important;
}
.ilm-search-status {
	min-height: 18px;
	font-size: 13px;
	color: var(--ilm-muted);
	margin-bottom: 8px;
}

.ilm-location-list {
	/* Fills whatever room is left in the sidebar column below the search
	   form (min-height:0 is required for a flex child to actually be
	   allowed to shrink and scroll instead of just growing taller than
	   its container) so this — not the whole sidebar — is what scrolls. */
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding-right: 6px;
	/* This is a real <ul> now (for screen-reader list semantics) — strip
	   the browser's default list styling so it still looks exactly like
	   the plain div it used to be. */
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.ilm-location-card {
	/* No border-bottom here: the squiggle divider image between cards
	   (.ilm-card-divider) is the separator now instead of a plain line. */
	display: block;
	position: relative;
	padding: 16px 4px;
	cursor: pointer;
	background-color: transparent;
	transition: background-color 0.15s ease;
}
.ilm-location-card:first-child {
	padding-top: 4px;
}
/* Neutralize any odd/even row striping the theme applies to generic
   repeating blocks like this (it's not something this stylesheet sets
   itself) — !important since a theme rule doing this kind of striping
   often uses it too, and this needs to reliably win either way. No
   location card — selected, hovered, or otherwise — should ever have a
   background different from any other. */
.ilm-location-card:nth-child(odd),
.ilm-location-card:nth-child(even) {
	background-color: transparent !important;
}

.ilm-card-distance {
	/* This is a <p> now (see class-ilm-shortcode.php) for correct semantic
	   structure — zero out the browser's default paragraph margin so it
	   still sits exactly like the plain inline badge it used to be. */
	margin: 0;
	float: right;
	font-size: 12px;
	font-weight: 600;
	color: var(--ilm-marker-color);
	background: rgba(0, 99, 107, 0.1);
	padding: 2px 8px;
	border-radius: 12px;
}

.ilm-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 3px 8px;
	border-radius: 3px;
	margin-bottom: 6px;
}
.ilm-badge-soon { background: #fff3cd; color: #7a5b00; }
.ilm-badge-closed { background: #f4d6d6; color: #7a1f1f; }

.ilm-card-title {
	/* Rendered as an <h2> (was <h5>) so the location-card grid follows a
	   correct, non-skipping heading hierarchy — font-size/line-height are
	   set explicitly here so that semantic change doesn't alter how the
	   title actually looks, overriding whatever default size/leading the
	   theme otherwise applies to a bare <h2>. font-size carries !important
	   because Avada/theme h2 selectors elsewhere outrank this class on
	   specificity alone and would otherwise override it. */
	margin: 0 0 6px;
	font-size: 1.5rem !important;
	line-height: 1.1;
}
.ilm-card-title a {
	color: inherit;
	text-decoration: none;
}
.ilm-card-title a:hover {
	text-decoration: underline;
}

.ilm-card-address {
	display: block;
	color: var(--ilm-text);
	text-decoration: none;
	font-size: 1rem;
	margin-bottom: 4px;
}
.ilm-card-address:hover {
	text-decoration: underline;
}

.ilm-card-phone {
	display: block;
	color: var(--ilm-marker-color);
	text-decoration: none;
	font-size: 1rem;
	margin-bottom: 8px;
}
.ilm-card-phone:hover {
	text-decoration: underline;
}

.ilm-card-hours {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	font-size: 1rem;
	color: var(--ilm-muted);
}
.ilm-card-hours li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	max-width: 260px;
	padding: 1px 0;
}

/* Holiday Hours rows (Locations -> Settings), appended after a location's
   own regular hours above — same list on every location — set apart in a
   fixed burnt-orange rather than the regular hours' muted gray. This is
   intentionally NOT var(--ilm-accent-color): the default accent color
   (#e8734a) only measures ~3:1 against white at this text size, short of
   WCAG AA's 4.5:1 for normal text, and since Accent Color is admin-
   configurable in Settings, there's no way to guarantee whatever color an
   admin picks there stays compliant for body text either. #ba4601 keeps
   the same orange family (so holiday rows still read as "accented") while
   measuring ~5.3:1 against white. */
.ilm-card-hours-holiday {
	color: #ba4601;
}

/* Order Take Out/Delivery/Online, View on Map, and Location Details each
   size to their own content (not a full-width row), all using the Avada
   child theme's real "btn btn-brand" ribbon button — see the detail page's
   identical isolation:isolate note above for why that's here. Stacked one
   per line (never side by side) so e.g. "View on Map" always sits under
   "Order Online" instead of next to it. */
.ilm-card-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: 10px;
}
.ilm-card-actions .btn {
	isolation: isolate;
	padding: 0.2em 1em 0.2em 1em !important;
	margin: 0.5rem 0 0;
}

/* A decorative squiggle divider between location cards (not after the last
   one) instead of a plain border line. */
.ilm-card-divider {
	display: block;
	max-width: 270px;
	width: 100%;
	height: auto;
	margin: 1rem auto 2rem;
}

/* ---------------- Map ---------------- */
.ilm-map-col {
	margin: 0;
	padding: 0;
}
.ilm-map {
	width: 100%;
	height: 650px;
	margin: 0;
	border-radius: 6px;
	background: #f2ede3;
}
.ilm-map-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 200px;
	padding: 24px;
	text-align: center;
	color: var(--ilm-muted);
	font-size: 14px;
}

.ilm-infowindow {
	/* No font-size here on purpose: that's an inherited property, so
	   setting it on this wrapper would also apply it to the "Location
	   Details" .btn below and fight the theme's own btn-brand styling —
	   see the h5/name-div/phone-div rules for the popup's own text sizing
	   instead, none of which are ancestors of the button. */
	line-height: 1.5;
	max-width: 220px;
	padding-bottom: 20px;
}
.ilm-infowindow h5 {
	font-size: 14px;
	margin: 0 0 4px;
	line-height: 1.3;
}
.ilm-infowindow > div {
	font-size: 13px;
}
.ilm-infowindow a:not(.btn) {
	color: var(--ilm-marker-color);
}
.ilm-infowindow .btn {
	/* Purely structural: inline-block + margin position the button under
	   the text above, and isolation:isolate gives the child theme's
	   ribbon ::before layer (z-index:-1) a stacking context to sit inside
	   instead of escaping behind the whole page. No font/size/color is
	   set here — that's left entirely to the theme's own btn-brand rules. */
	display: inline-block;
	margin: 8px 0 0;
	isolation: isolate;
}

/* Google's InfoWindow chrome is plain white by default; recolor it to the
   same cream page background used site-wide (matches the custom map style's
   base geometry fill) instead of leaving a mismatched white card. These
   classes are Google's own (not namespaced under .ilm-), generated fresh
   into the DOM for every InfoWindow instance. */
.gm-style .gm-style-iw-c {
	background-color: #f2edde;
	max-height: none !important;
}
/* Google also sets an inline max-height + overflow:scroll on the
   InfoWindow's inner content wrapper whenever it thinks the content might
   not fit near the edge of the map — our popups are short, so that just
   adds an unwanted inner scrollbar. !important is required to beat that
   inline style. */
.gm-style .gm-style-iw-d {
	background-color: #f2edde;
	max-height: none !important;
	overflow: visible !important;
}
.gm-style .gm-style-iw-t::after {
	background: linear-gradient( 45deg, #f2edde 50%, rgba(242, 237, 222, 0) 51%, rgba(242, 237, 222, 0) 100% );
}

.ilm-empty {
	padding: 20px;
	text-align: center;
	color: var(--ilm-muted);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 782px) {
	.ilm-locator-inner {
		/* Full-width single column on smaller screens — the desktop grid's
		   355px sidebar minimum would otherwise force horizontal scrolling.
		   The fixed height set inline (to match the map's height on
		   desktop) has to be cancelled here too — !important because an
		   inline style otherwise beats any plain rule in this stylesheet —
		   so the two stacked rows can each size to their own content. */
		grid-template-columns: 1fr;
		height: auto !important;
		/* The desktop layout has no gap at all (the map sits flush against
		   the sidebar) — restore some breathing room here between the two
		   stacked sections instead. */
		gap: 24px;
	}
	.ilm-sidebar {
		/* Single stacked column now, not a row sharing height with the map
		   column — go back to plain natural block height instead of
		   matching (and internally scrolling within) the map's height. */
		order: 2;
		height: auto;
	}
	.ilm-map-col {
		order: 1;
	}
	.ilm-map {
		height: 380px;
	}
	.ilm-location-list {
		flex: none;
		min-height: 0;
		overflow-y: visible;
		max-height: none;
	}
}

/* =====================================================================
   Location detail page (single ilm_location) — full-width hero, centered
   contact block, "btn btn-brand" ribbon-style order buttons (styled by
   the Avada child theme, not this plugin), then a full-width map. No card
   border, no featured image, no theme title bar: see
   templates/single-ilm_location.php and includes/class-ilm-single-template.php.
   ===================================================================== */
.ilm-detail {
	--ilm-marker-color: #00636b;
	--ilm-accent-color: #e8734a;
	--ilm-muted: #5f6e6e;
	box-sizing: border-box;
	max-width: 100%;
}
.ilm-detail *,
.ilm-detail *::before,
.ilm-detail *::after {
	box-sizing: border-box;
}

.ilm-detail-hero {
	width: 100%;
	line-height: 0;
}
.ilm-detail-hero img {
	width: 100%;
	height: 560px;
	object-fit: cover;
	display: block;
}

.ilm-detail-info {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
	padding: 48px 20px 32px;
}

.ilm-detail-title {
	margin: 0 0 20px;
	line-height: 1.1;
}

.ilm-detail-address,
.ilm-detail-phone,
.ilm-detail-email {
	font-size: 17px;
	line-height: 1.5;
	margin: 0 auto 10px;
}
.ilm-detail-address a,
.ilm-detail-phone a,
.ilm-detail-email a {
	display: inline-block;
	color: inherit;
	text-decoration: underline;
}
.ilm-detail-address a:hover,
.ilm-detail-phone a:hover,
.ilm-detail-email a:hover {
	opacity: 0.75;
}

/* Hours use a definition list (day-range / time-range pairs) rather than
   plain paragraphs so the day-to-hours relationship is programmatically
   conveyed to assistive tech (WCAG 1.3.1 Info & Relationships). */
.ilm-detail-hours {
	margin: 14px auto 0;
	font-size: 16px;
	color: var(--body_typography-color);
}
.ilm-detail-hours-row {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 0 0 2px;
}
.ilm-detail-hours-row dt,
.ilm-detail-hours-row dd {
	margin: 0;
	font-weight: inherit;
}
.ilm-detail-hours-row dt::after {
	content: ":";
}

/* Sitewide holiday hours from Locations → Settings, same list shown on the
   [islands_locations_map] sidebar card — plain inline "Name: Hours" text
   rather than the definition-list treatment above, set apart in the same
   fixed #ba4601 as the card grid's holiday rows (see .ilm-card-hours-holiday
   above for why this isn't tied to the configurable Accent Color). */
.ilm-detail-hours-holiday {
	margin: 0 0 2px;
	font-size: 16px;
	text-align: center;
	color: #ba4601;
}

/* Visually-hidden but still available to screen readers (e.g. the "(opens
   in a new tab)" notes on external links) — standard sr-only pattern. */
.ilm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Visible keyboard-focus indicator (WCAG 2.4.7 / 2.4.11) — mouse/touch
   clicks don't get the outline, only keyboard and other non-pointer focus. */
.ilm-detail a:focus-visible,
.ilm-detail button:focus-visible {
	outline: 3px solid var(--ilm-accent-color, #e8734a);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.ilm-detail *,
	.ilm-detail *::before,
	.ilm-detail *::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

.ilm-detail-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-top: 28px;
}

/* Order/Directions buttons now use the child theme's real ribbon-shaped
   "btn btn-brand" classes (mask-image ribbon artwork) instead of a hand-
   rolled CSS recreation, so no custom button skin is defined here. The
   theme's own `.btn` base class adds a `margin: 1rem .9375rem` inside
   <main> — zero that out here since we do our own spacing (flex gap on
   the button row; absolute centering on the Get Directions button, where
   any inherited margin would throw off the centering math). */
.ilm-detail-actions .btn,
.ilm-detail-map-wrap .btn {
	margin: 0;
	/* The child theme draws the ribbon shape with a `::before` layer set to
	   z-index:-1 (so it paints behind the button's own text). Avada Builder
	   rows normally give that layer a nearby stacking context to sit inside;
	   our own markup doesn't provide one, so without `isolation: isolate`
	   here the ribbon escapes all the way behind the page and only the text
	   is visible. This makes each button contain its own ribbon layer. */
	isolation: isolate;
}

/* Full-bleed: break the map out of any parent max-width/padding so it
   spans the full browser viewport width, regardless of the width of the
   theme container it happens to sit inside. */
.ilm-detail-map-wrap {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	padding: 0;
	text-align: center;
	overflow: hidden;
}
.ilm-detail-map-wrap .ilm-map {
	height: 500px;
	margin-bottom: 0;
}
.ilm-detail-directions {
	/* Positioning only — no font-size/padding override here, so the
	   button's own text size and internal spacing come entirely from the
	   theme's btn-brand styling, not the plugin. */
	position: absolute;
	left: 50%;
	bottom: 33%;
	transform: translate(-50%, 50%);
	z-index: 2;
	white-space: nowrap;
}

.ilm-detail-extra {
	max-width: 780px;
	margin: 0 auto;
	padding: 0 20px 48px;
}

/* Tablet and phone: shorter hero and map (per spec, both share the same
   heights on tablet and phone — 560px hero, 320px map). */
@media (max-width: 1024px) {
	.ilm-detail-hero img {
		height: 560px;
	}
	.ilm-detail-map-wrap .ilm-map {
		height: 320px;
	}
}

/* Mobile phones only: the order buttons stack instead of sitting side by
   side (tablet keeps the desktop side-by-side row; hero/map heights are
   already handled by the tablet+phone breakpoint above). */
@media (max-width: 600px) {
	.ilm-detail-info {
		padding: 32px 16px 24px;
	}
	.ilm-detail-actions {
		flex-direction: column;
		gap: 12px;
	}
}

/* Safety net: if the active Avada setup still renders its title/breadcrumb
   bar from inside header.php (rather than the single-post template we
   replace), hide it on Location pages so it doesn't duplicate our own H1. */
body.single-ilm_location .fusion-page-title-bar,
body.single-ilm_location .fusion-title-bar-wrapper,
body.single-ilm_location .fusion-breadcrumbs-wrapper {
	display: none !important;
}

/* =====================================================================
   [islands_locations_grid] — a region's locations as a card grid (photo,
   name, address, phone, two action buttons), matching the layout of
   https://www.islandsrestaurants.com/inland-empire/. Two columns on both
   desktop and tablet; a single column only below the same 600px "mobile
   phone" breakpoint the detail page's order buttons already stack at.
   Capped at 1010px and centered on the page, with 1.8rem of side padding
   so the outer cards never sit flush against the viewport edge on a
   narrower browser window. Locations are queried orderby=title/order=ASC
   (see class-ilm-region-grid.php), so they always list alphabetically.
   ===================================================================== */
.ilm-locations-grid {
	max-width: 1010px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.8rem;
	padding-right: 1.8rem;
	box-sizing: border-box;
	display: grid;
	/* minmax(0, 1fr) rather than a bare 1fr: an "fr" track's *implicit*
	   minimum width is "auto" (the content's own min-content size), not 0 —
	   so without this, a card whose content can't shrink any further (see
	   .ilm-grid-card-actions below) forces both tracks wider than the
	   container actually has room for, pushing the grid past the right edge
	   of the viewport instead of letting the cards narrow. This is most
	   visible at browser zoom levels above 100%, which shrinks the
	   *effective* viewport width the same way a narrower window would. */
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 32px;
}

.ilm-grid-card {
	display: flex;
	flex-direction: column;
	text-align: center;
}

/* Fixed 4:3 frame with the overflow clipped, so every photo — whatever its
   native dimensions — crops to the same ratio around its own center.
   box-sizing:border-box keeps the 4:3 ratio measured on the outside edge of
   the border below, rather than the aspect-ratio applying to the content
   box and the border padding it out to something taller. */
.ilm-grid-card-photo {
	box-sizing: border-box;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 5px solid #5bab85;
	border-radius: 1rem;
	margin-bottom: 16px;
}
.ilm-grid-card-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ilm-grid-card-title {
	margin: 0 0 8px;
	line-height: 1.3;
}
.ilm-grid-card-title a {
	color: inherit;
	text-decoration: none;
}
.ilm-grid-card-title a:hover {
	text-decoration: underline;
}

.ilm-grid-card-address {
	display: block;
	color: var(--ilm-marker-color, #00636b);
	text-decoration: none;
	margin-bottom: 8px;
}
.ilm-grid-card-address:hover {
	text-decoration: underline;
}

.ilm-grid-card-phone {
	margin: 0 0 16px;
}
.ilm-grid-card-phone a {
	color: inherit;
	text-decoration: underline;
}

/* Get Directions + Order Online are centered and sit side by side on
   desktop/tablet, and stack (never inline) — still centered — once the
   layout narrows to a single column on mobile phones. */
.ilm-grid-card-actions {
	display: flex;
	/* Lets "Get Directions" / "Order Online" stack onto their own line
	   instead of the two of them setting a hard floor under the card's
	   (and thus the grid track's) minimum width — see the comment on
	   .ilm-locations-grid above. */
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: auto;
}
.ilm-grid-card-actions .btn {
	isolation: isolate;
}

@media (max-width: 600px) {
	.ilm-locations-grid {
		grid-template-columns: 1fr;
	}
	.ilm-grid-card-actions {
		flex-direction: column;
		align-items: center;
	}
}
