/*
Theme Name: EyeCare Partners Child
Description: Child theme for Eye Care Partners
Author: Glacial Multimedia
Author URI: https://www.glacial.com
Template: eye-care-partners
Version: 1.0.0
*/

/* =========================================================================
 * Grene Vision Group (2026-11-18)
 * ========================================================================= */

/* Nearby Locations on single location pages (shown via the child single-locations.php). */

/* 50px of space above the box (the section before it has mb-0, so the gap was 0). */
.vision-location-nearvy-indo {
	margin-top: 50px;
}

/* Cards are equal-height flex items in their row; make each a column and push its
 * "View Location" button to the bottom so all buttons line up, even when one address
 * has an extra line (e.g. a suite number). */
.vision-location-nearvy-indo .location-div {
	display: flex;
	flex-direction: column;
	text-align: center;
	align-items: center;
}

/* Desktop row: cards are 300px wide but may shrink, with at least 30px between them.
 * (A fixed min-width: 300px overflowed the panel from 992px to about 1100px wide, and on 320px phones.) */
@media screen and (min-width: 992px) {
	.vision-location-nearvy-indo .locations-holder {
		gap: 30px;
	}

	.vision-location-nearvy-indo .location-div {
		flex: 0 1 300px;
	}
}

.vision-location-nearvy-indo .location-div .button {
	margin-top: auto;
}

/* A flex item contains its children's margins, so the first phone line's 10px top margin
 * would no longer merge with the address's 30px bottom margin and would add 10px. Keep the original spacing. */
.vision-location-nearvy-indo .location-div .phone-fields > li:first-child {
	margin-top: 0;
}

/* Below 992px the parent stacks the cards with only 20px between a card's button and the
 * next office name, and drops the panel's bottom padding under 480px. */
@media screen and (max-width: 991px) {
	.vision-location-nearvy-indo .location-div {
		margin-bottom: 40px;
	}

	.vision-location-nearvy-indo .location-div:last-child {
		margin-bottom: 0;
	}
}

@media screen and (max-width: 479px) {
	.vision-location-nearvy-indo {
		padding-bottom: 25px;
	}
}


