/*
 * ElderCare — homepage section shortcodes (see inc/homepage-shortcodes.php).
 * Built section-by-section as shortcodes rather than Elementor widgets, for
 * exact control over markup/styling — same conventions as every other
 * rebuilt page on this site: fixed px not rem (Bootstrap's html{font-size:
 * 10px} bug), no font-family set (follows the theme's own Typography
 * Customizer), neutral grays + var(--listeo-primary-color) reused
 * throughout, colors from the theme rather than the CareScout mockup's
 * literal palette.
 *
 * One file holds every homepage shortcode's CSS (rather than one file per
 * shortcode) since they're always used together on the same single page.
 */

/* [ec_hero] -------------------------------------------------------------- */
/* Layout copied 1:1 from the shared mockup (left-aligned throughout, pill
   search bar, wrapping stat row) — only the colors are ours: a soft
   white-to-primary-light gradient instead of the mockup's literal cream/
   green, and var(--listeo-primary-color) wherever it used its green/gold. */

.eh-hero { padding: 144px 0 52px; background: linear-gradient(160deg, #fff 0%, var(--listeo-primary-color-light, #FDF1EE) 100%); } /* 64px base + 80px so it clears the sticky navbar */
.eh-wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

.eh-eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--listeo-primary-color, #B04C2F); margin-bottom: 12px; }

.eh-title { font-size: clamp(32px, 4.5vw, 51px); line-height: 1.2; font-weight: 700; color: #1A1A1A; max-width: 760px; margin: 0; }
.eh-title em { font-style: italic; color: var(--listeo-primary-color, #B04C2F); }

.eh-lead { font-size: 17px; line-height: 1.55; color: #555; max-width: 580px; margin-top: 14px; }

.eh-search {
	display: flex; flex-wrap: wrap; gap: 0;
	background: #fff; border: 1px solid #E8E8E8; border-radius: 999px;
	padding: 6px; margin-top: 28px; max-width: 620px; box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.eh-field { flex: 1; min-width: 160px; padding: 8px 18px; }
/* !important below: the parent theme loads Bootstrap, which gives bare
   <label>/<select> elements their own default margin/padding/height —
   the mockup resets ALL elements to margin/padding:0 globally, so its
   select needs no reset of its own. Same fix pattern used elsewhere on
   this site wherever Bootstrap's form defaults collide with custom
   fields (see single-listing.css). */
.eh-field label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #999; margin: 0 0 3px !important; padding: 0 !important; }
/* Parent theme also gives every bare <select> its own boxed look
   (background, border, native/custom arrow) for its own search widgets —
   strip all of it here so the field reads as plain text sitting inside
   the pill, exactly like the mockup, rather than a distinct sub-box. */
.eh-field select {
	display: block; width: 100%; height: auto !important;
	border: none !important; background-color: transparent !important; background-image: none !important; box-shadow: none !important;
	font-size: 15px; font-weight: 600; line-height: 1.3; color: #1A1A1A;
	margin: 0 !important; padding: 0 !important;
	appearance: none; -webkit-appearance: none; -moz-appearance: none;
	cursor: pointer;
}
.eh-field select::-ms-expand { display: none; }
.eh-field select:focus { outline: none; box-shadow: none !important; }
.eh-divider { width: 1px; align-self: stretch; background: #E8E8E8; margin: 6px 0; }
.eh-btn {
	display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; margin: 2px;
	background: var(--listeo-primary-color, #B04C2F); color: #fff; border: 1.5px solid var(--listeo-primary-color, #B04C2F);
	border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.eh-btn:hover { filter: brightness(.92); }

.eh-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.eh-stat { font-size: 13px; color: #555; }
.eh-stat b { color: var(--listeo-primary-color, #B04C2F); }

@media (max-width: 580px) {
	.eh-search { flex-direction: column; border-radius: 14px; padding: 14px 16px; gap: 12px; }
	.eh-divider { display: none; }
	.eh-field { padding: 0; min-width: 0; }
	.eh-btn { margin: 0; justify-content: center; }
}

/* Shared section scaffolding ---------------------------------------------
   Every remaining homepage shortcode (cities, categories, specialties,
   why-us, verified facilities, guides) reuses this same "wrap + heading +
   subheading" head, copied from the mockup's .section/.section-head — kept
   here once instead of repeating it in each shortcode's own CSS. */

.ec-section { padding: 56px 0; }
.ec-section--alt { background: #F5F5F5; }
.ec-wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

.ec-section-head { margin-bottom: 28px; }
.ec-section-head h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; color: #1A1A1A; margin: 0; }
.ec-section-head p { color: #666; margin-top: 7px; max-width: 540px; font-size: 15px; }

/* [ec_cities] -------------------------------------------------------------- */

.ec-cities-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.ec-cities-scroll::-webkit-scrollbar { height: 4px; }
.ec-cities-scroll::-webkit-scrollbar-track { background: #E8E8E8; border-radius: 2px; }
.ec-cities-scroll::-webkit-scrollbar-thumb { background: #CCC; border-radius: 2px; }

.ec-city-card {
	flex-shrink: 0; scroll-snap-align: start; min-width: 110px;
	padding: 14px 20px; background: #fff; border: 1px solid #E8E8E8; border-radius: 14px;
	text-align: center; text-decoration: none; cursor: pointer;
	transition: border-color .15s, transform .12s;
}
.ec-city-card:hover { border-color: var(--listeo-primary-color, #B04C2F); transform: translateY(-2px); }
.ec-city-name { font-weight: 600; font-size: 14px; color: #1A1A1A; }
.ec-city-count { font-size: 11px; color: #999; margin-top: 3px; }

/* "See all"/"All guides" row-style section head, used by Verified
   Facilities and Guides & Articles (heading+subheading left, link right). */
.ec-section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.ec-section-head--row .ec-section-head { margin-bottom: 0; }
.ec-see-all { font-size: 13px; font-weight: 600; color: var(--listeo-primary-color, #B04C2F); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.ec-see-all:hover { text-decoration: underline; }
.ec-see-all i { font-size: 11px; }

/* [ec_categories] ----------------------------------------------------------- */

.ec-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1000px) { .ec-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px) { .ec-cat-grid { grid-template-columns: repeat(2, 1fr); } }

.ec-cat-card {
	background: #fff; border: 1px solid #E8E8E8; border-radius: 14px; padding: 22px 18px;
	display: flex; flex-direction: column; gap: 10px; text-decoration: none;
	transition: border-color .15s, transform .12s, box-shadow .15s;
}
.ec-cat-card:hover { border-color: var(--listeo-primary-color, #B04C2F); transform: translateY(-3px); box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.ec-cat-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--listeo-primary-color-light, #FDF1EE); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ec-cat-icon i { font-size: 20px; color: var(--listeo-primary-color, #B04C2F); }
.ec-cat-card h3 { font-size: 16px; font-weight: 600; color: #1A1A1A; margin: 0; }
.ec-cat-card p { font-size: 13px; color: #666; line-height: 1.5; margin: 0; }
.ec-cat-count { font-size: 11px; color: #999; padding-top: 6px; border-top: 1px dashed #E8E8E8; margin-top: auto; }

/* [ec_specialties] ----------------------------------------------------------- */

.ec-spec-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.ec-chip {
	display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
	font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer;
	background: var(--listeo-primary-color-light, #FDF1EE); border: 1px solid var(--listeo-primary-color-light, #F2D9CE); color: var(--listeo-primary-color, #B04C2F);
	transition: background .12s, color .12s;
}
.ec-chip:hover { background: var(--listeo-primary-color, #B04C2F); color: #fff; }

/* [ec_verified] --------------------------------------------------------------- */

.ec-vf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .ec-vf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .ec-vf-grid { grid-template-columns: 1fr; } }

.ec-vf-card {
	background: #fff; border: 1px solid #E8E8E8; border-radius: 14px; padding: 18px 20px;
	display: flex; flex-direction: column; gap: 10px; text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .12s;
}
.ec-vf-card:hover { border-color: var(--listeo-primary-color, #B04C2F); box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.ec-vf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ec-vf-name { font-size: 16px; font-weight: 600; color: #1A1A1A; }
.ec-vf-cat { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #999; margin-top: 3px; }
.ec-badge-verified {
	display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 3px 9px; border-radius: 4px;
	background: var(--listeo-primary-color-light, #FDF1EE); color: var(--listeo-primary-color, #B04C2F); border: 1px solid var(--listeo-primary-color-light, #F2D9CE);
	font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.ec-badge-verified i { font-size: 9px; }
.ec-rating { display: inline-flex; align-items: center; gap: 5px; }
.ec-stars { color: #D49B1A; font-size: 14px; letter-spacing: -1px; }
.ec-rating-score { font-weight: 700; font-size: 14px; color: #1A1A1A; }
.ec-rating-count { color: #999; font-size: 12px; }
.ec-vf-addr { font-size: 13px; color: #666; display: flex; align-items: flex-start; gap: 5px; }
.ec-vf-addr i { font-size: 11px; color: #999; margin-top: 3px; }
.ec-vf-view { font-size: 13px; font-weight: 600; color: var(--listeo-primary-color, #B04C2F); display: inline-flex; align-items: center; gap: 5px; margin-top: auto; }
.ec-vf-view i { font-size: 11px; }

/* [ec_guides] ------------------------------------------------------------------ */
/* Uses .bp-guide-card/.bp-guide-cat/.bp-read-time directly (single-post.css) —
   only the grid wrapper is defined here. */

.ec-guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .ec-guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .ec-guides-grid { grid-template-columns: 1fr; } }
