/* Shared directory layout. Scoped to leave the homepage hero untouched. */
.home-page-content .featured-listings-section {
    padding: 48px max(20px, calc((100% - 1160px) / 2));
    background: #f8faf9;
}
.home-page-content .featured-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; max-width: 1160px; margin: 0 auto 24px; padding: 0;
    text-align: left;
}
.home-page-content .featured-header-content { text-align: left; margin: 0; }
.home-page-content .featured-label {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 0; background: none; color: #557471;
    font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
}
.home-page-content .featured-label svg { width: 16px; height: 16px; }
.home-page-content .featured-title { margin: 8px 0 0; font-size: clamp(24px, 3vw, 32px); color: #1e5359; line-height: 1.25; }
.home-page-content .featured-subtitle { margin: 9px 0 0; color: #70827f; font-size: 14px; }
.directory-browse-link { flex-shrink: 0; color: #1e5359; font-size: 13px; font-weight: 600; text-decoration: none; }
.directory-browse-link:hover { text-decoration: underline; }
.home-page-content .featured-slider-wrapper { max-width: none; min-height: 0; padding: 0; }
.home-page-content .featured-slider {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px; padding: 4px 0 18px; margin: 0;
    scroll-snap-type: x proximity; scroll-padding-inline: 0; align-items: stretch;
    scrollbar-width: thin; scrollbar-color: #bbcfca transparent;
}
.home-page-content .featured-slider::-webkit-scrollbar { display: block; height: 4px; }
.home-page-content .featured-slider::-webkit-scrollbar-thumb { background: #bbcfca; border-radius: 4px; }
.home-page-content .featured-card {
    display: flex; flex-direction: column; width: 100%; min-width: 0; max-width: none;
    height: auto; margin: 0; padding: 0 0 18px; scroll-snap-align: start;
    border: 1px solid #e1eae6; border-radius: 16px; background: #fff;
    box-shadow: 0 3px 12px rgba(24, 62, 55, .035);
    transform: none; transform-style: flat; will-change: auto;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.home-page-content .featured-card:hover,
.home-page-content .featured-card.highlighted {
    border: 1px solid #aec8c1; transform: none;
    box-shadow: 0 8px 24px rgba(24, 62, 55, .08);
}
.home-page-content .featured-card .featured-image-container {
    width: 100%; height: auto; aspect-ratio: 16 / 10; flex: 0 0 auto;
    margin: 0 0 16px; padding: 0; border-radius: 0; background: #edf3f0; overflow: hidden;
}
.home-page-content .featured-card .featured-image { width: 100%; height: 100%; object-fit: cover; border-radius: 0; padding: 0; }
.home-page-content .featured-card:hover .featured-image { transform: none !important; }
.home-page-content .featured-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 38px; color: #638a7f; background: #edf3f0; }
.home-page-content .featured-card .featured-tags { position: static; display: flex; gap: 6px; margin: 0 18px 10px; padding: 0; }
.home-page-content .featured-tag { padding: 4px 8px; background: #edf5f1; color: #356e5d; border-radius: 6px; font-size: 10px; line-height: 1.4; }
.home-page-content .featured-card .featured-name { margin: 0 18px 8px; color: #233f3b; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.home-page-content .featured-card .featured-description {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin: 0 18px 14px; font-size: 13px; line-height: 1.65;
    min-height: 3.3em; color: #74817d;
}
.home-page-content .featured-card .featured-categories { margin: auto 18px 12px; }
.home-page-content .featured-category { padding: 0; background: none; color: #477367; font-size: 11px; }
.home-page-content .featured-card .featured-info { display: flex; align-items: center; gap: 7px; margin: 6px 18px 0; font-size: 12px; color: #7b8984; overflow-wrap: anywhere; }
.home-page-content .featured-info svg { width: 15px; height: 15px; flex-shrink: 0; }
.home-page-content .featured-carousel-nav { display: none; }
.home-page-content .popular-categories-section { background: #fff; padding: 44px 0 !important; }
.home-page-content .popular-categories-section .container { max-width: 1200px; padding-inline: 20px; }
.home-page-content .popular-categories-section .category-card { height: auto; margin: 0; border: 1px solid #e2eae5; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: none; transform: none; }
.home-page-content .popular-categories-section .category-image { width: 100%; height: 140px; object-fit: cover; }
.home-page-content .popular-categories-section .category-content { padding: 16px; text-align: left; }
.home-page-content .popular-categories-section .category-content h5 { font-size: 15px; margin-bottom: 5px; }
.home-page-content .popular-categories-section .category-content p { font-size: 12px; color: #77867f; margin: 0; }
.home-page-content .category-card:hover { border-color: #aec8c1; box-shadow: 0 5px 16px #214c390a; }
/* Search results use the same image proportions, spacing and quieter borders. */
.directory-search.search-container { max-width: 1200px; padding: 32px 24px 48px; }
.directory-search .search-title { text-align: left; font-size: 28px; margin-bottom: 16px; }
.directory-search .search-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; border: 1px solid #e0e9e5; border-radius: 14px; box-shadow: none; padding: 20px; }
.directory-search .search-field { min-width: 0; }
.directory-search .search-field label { font-size: 12px; color: #597169; }
.directory-search .search-field input { width: 100%; min-width: 0; border-radius: 8px; border-color: #dce6e0; min-height: 44px; }
.directory-search .location-field { flex-direction: row; align-items: flex-end; }
.directory-search .location-field > div { min-width: 0; }
.directory-search .location-button { flex: 0 0 44px; margin: 0; height: 44px; }
.directory-search .search-button { height: 44px; padding: 0 24px; border-radius: 8px; }
.directory-search .results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.directory-search .business-card {
    display: flex; flex-direction: column; gap: 0; width: 100%; max-width: none; min-width: 0;
    height: auto; margin: 0; padding: 0; overflow: hidden; background: #fff;
    border: 1px solid #e0e9e5; border-radius: 16px; box-shadow: 0 3px 12px #183e3708;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.directory-search .business-card:hover { transform: none; border-color: #aec8c1; box-shadow: 0 8px 24px #183e3714; }
.directory-search .business-image,
.directory-search .card-img-placeholder { width: 100%; max-width: none; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; flex-shrink: 0; }
.directory-search .card-img-placeholder { display: flex; align-items: center; justify-content: center; color: #638a7f; background: #edf3f0; font-size: 38px; }
.directory-search .card-content { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 18px; }
.directory-search .card-title { font-size: 17px; color: #233f3b; line-height: 1.5; margin: 0 0 10px; overflow-wrap: anywhere; }
.directory-search .business-verified-badge,
.directory-search .business-featured-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; margin: 3px 0 0 4px; border-radius: 5px; background: #edf5f1; color: #356e5d; font-size: 10px; vertical-align: middle; }
.directory-search .business-description { margin: 0 0 14px; min-height: 3em; color: #74817d; font-size: 13px; line-height: 1.5; }
.directory-search .rating { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; margin: 0 0 16px; font-size: 12px; }
.directory-search .rating-count { padding-top: 0 !important; margin-left: 5px; font-size: 11px; color: #7b8984; }
.directory-search .card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf1ee; color: #708178; font-size: 12px; }
.directory-search .card-meta > span:first-child { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.directory-search .card-meta svg { width: 15px; height: 15px; flex-shrink: 0; }
.directory-search .view-details-btn { display: block; position: static; margin-top: 14px; padding: 10px 14px; width: 100%; text-align: center; border-radius: 8px; background: #eff5f2; color: #1e5359; font-size: 12px; box-shadow: none; }
.directory-search .view-details-btn:hover { background: #e1ece6; }
.directory-search .pagination { margin-top: 28px; }
@media (max-width: 1000px) {
    .home-page-content .featured-slider { grid-auto-columns: calc((100% - 20px) / 2); }
    .directory-search .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .home-page-content .featured-listings-section { padding: 30px 20px; }
    .home-page-content .featured-header { align-items: flex-start; flex-direction: column; gap: 12px; }
    .home-page-content .featured-slider { grid-auto-columns: 87%; gap: 14px; }
    .home-page-content .featured-subtitle { font-size: 13px; }
    .directory-search.search-container { padding: 24px 16px 36px; }
    .directory-search .search-form { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .directory-search .results-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .directory-search .search-button { width: 100%; }
    .home-page-content .popular-categories-section .category-image { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page-content .featured-slider { scroll-behavior: auto; }
    .home-page-content .featured-card, .directory-search .business-card { transition: none; }
}

/* A featured lead story followed by a calm, wrapping business grid. */
.home-page-content .featured-grid-section { padding-block: 56px; }
.home-page-content .featured-grid-section .featured-slider {
    grid-auto-flow: row; grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible;
    scroll-snap-type: none; padding: 0; gap: 24px;
}
.home-page-content .featured-grid-section .featured-card--spotlight {
    grid-column: span 2; display: grid; grid-template-columns: 1.05fr 1fr;
    grid-template-rows: auto auto auto 1fr auto auto; column-gap: 0; padding: 0 0 18px;
}
.home-page-content .featured-card--spotlight .featured-image-container {
    grid-column: 1; grid-row: 1 / 7; aspect-ratio: auto; height: calc(100% + 18px); min-height: 320px; margin: 0;
}
.home-page-content .featured-card--spotlight > :not(.featured-image-container) { grid-column: 2; }
.home-page-content .featured-card--spotlight .featured-tags { margin-top: 24px; }
.home-page-content .featured-card--spotlight .featured-name { font-size: clamp(20px, 2.3vw, 28px); }
.home-page-content .featured-card--spotlight .featured-description { -webkit-line-clamp: 4; }
.home-page-content .featured-grid-section .featured-card:only-child { grid-column: 1 / -1; }
.home-page-content .category-section-heading { margin: 0 0 26px; text-align: left; }
.home-page-content .category-section-heading h2 { color: #1e5359; font-size: clamp(24px,3vw,32px); margin: 8px 0; font-weight: 650; }
.home-page-content .category-section-heading p { color: #74817d; font-size: 14px; }
.home-page-content .popular-categories-section .row {
    display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0;
}
.home-page-content .popular-categories-section .row > div { width: auto; max-width: none; flex: none; padding: 0; margin: 0; }
.home-page-content .popular-categories-section .category-card { display: flex; align-items: center; gap: 12px; padding: 12px; height: 100%; }
.home-page-content .popular-categories-section .category-image { width: 56px; height: 62px; border-radius: 10px; flex-shrink: 0; }
.home-page-content .popular-categories-section .category-content { min-width: 0; padding: 0; }
.home-page-content .popular-categories-section .category-content h5 { font-size: 13px; line-height: 1.4; }
.home-page-content .popular-categories-section .category-content p { font-size: 11px; line-height: 1.5; }
.home-page-content .popular-categories-section .carousel-nav { display: none; }
.home-page-content .article-section { background: #f4f7f5 !important; padding-block: 48px !important; }
.home-page-content .welcome-section { border: 1px solid #e1eae6; box-shadow: none; border-radius: 20px; margin-top: 40px; margin-bottom: 40px; }
.home-page-content .community-preview-section { background: #f8faf9 !important; padding-block: 48px !important; }
[data-theme="dark"] .home-page-content .category-section-heading h2 { color: #d7eee1; }
[data-theme="dark"] .home-page-content .category-section-heading p { color: #a7bdb0; }
@media (max-width: 1000px) {
    .home-page-content .featured-grid-section .featured-slider { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home-page-content .popular-categories-section .row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .home-page-content .featured-grid-section { padding-block: 32px; }
    .home-page-content .featured-grid-section .featured-slider { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .home-page-content .featured-grid-section .featured-card--spotlight { grid-column: auto; display: flex; }
    .home-page-content .featured-card--spotlight .featured-image-container { aspect-ratio: 16 / 10; height: auto; min-height: 0; margin-bottom: 16px; }
    .home-page-content .featured-card--spotlight .featured-tags { margin-top: 0; }
    .home-page-content .featured-card--spotlight .featured-name { font-size: 20px; }
    .home-page-content .popular-categories-section .row { gap: 10px; }
    .home-page-content .popular-categories-section .category-card { flex-direction: column; align-items: flex-start; }
    .home-page-content .popular-categories-section .category-image { width: 44px; height: 44px; }
    .home-page-content .welcome-section { margin-inline: 16px; padding: 22px; }
}
.home-page-content .popular-categories-section #mobileCarouselNav { display: none; }

/* Growth card: explicit columns prevent the old wrapping flex image spacer. */
.home-page-content .business-help-section { margin:0; padding:48px 24px; animation:none; }
.home-page-content .business-help-container {
    display:grid; grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);
    max-width:1160px; margin:auto; padding:0; gap:0; overflow:hidden;
    border:1px solid #e0e9e3; border-radius:22px; background:#f3f7f3;
    box-shadow:none; transform:none; transition:none;
}
.home-page-content .business-help-container:hover { transform:none; box-shadow:none; }
.home-page-content .business-help-image {
    display:block; position:relative; min-width:0; width:100%; height:auto;
    min-height:360px; background:#eee7dd; flex:none; animation:none;
}
.home-page-content .business-help-image img {
    position:absolute; inset:0; width:100%; height:100%; max-height:none;
    display:block; object-fit:cover; object-position:50% 35%; border-radius:0; background:transparent;
}
.home-page-content .business-help-content { min-width:0; padding:40px; align-self:center; animation:none; }
.home-page-content .business-help-opportunity { display:block; margin:0 0 14px; color:#5d7d6a; font-size:10px; letter-spacing:1.7px; }
.home-page-content .business-help-title { margin:0 0 16px; color:#234d3d; font-size:clamp(25px,3vw,36px); line-height:1.2; letter-spacing:-.8px; }
.home-page-content .business-help-desc { margin:0; color:#718178; font-size:14px; line-height:1.8; }
.home-page-content .business-help-highlight { display:flex; align-items:center; gap:10px; padding:12px 0; margin:16px 0; background:none; color:#567763; font-size:12px; line-height:1.6; border-radius:0; }
.home-page-content .business-help-icon { font-size:20px; }
.home-page-content .business-help-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0; }
.home-page-content .business-help-search-btn,
.home-page-content .business-help-apply-btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:11px 17px; border:1px solid #c9dbce; border-radius:10px; margin:0; color:#31583f; background:transparent; font-size:12px; font-weight:600; text-decoration:none; box-shadow:none; }
.home-page-content .business-help-apply-btn { background:#245440; border-color:#245440; color:#fff; }
.home-page-content .business-help-search-btn:hover { background:#e5eee6; }
.home-page-content .business-help-apply-btn:hover { background:#193f2e; color:#fff; }
.home-page-content .business-help-actions a:focus-visible { outline:3px solid #78a387; outline-offset:3px; }
[data-theme="dark"] .home-page-content .business-help-container { background:#1a2b24; border-color:#30463a; }
[data-theme="dark"] .home-page-content .business-help-title { color:#d7eee1; }
[data-theme="dark"] .home-page-content :is(.business-help-desc,.business-help-highlight,.business-help-opportunity) { color:#a7bdb0; }
[data-theme="dark"] .home-page-content .business-help-search-btn { color:#c1dac9; border-color:#45604c; }
[data-theme="dark"] .home-page-content .business-help-search-btn:hover { background:#2a4334; }
@media (max-width:680px) {
    .home-page-content .business-help-section { padding:28px 16px; }
    .home-page-content .business-help-container { grid-template-columns:minmax(0,1fr); border-radius:18px; }
    .home-page-content .business-help-image { height:240px; min-height:0; }
    .home-page-content .business-help-image img { object-position:50% 28%; }
    .home-page-content .business-help-content { padding:24px; }
    .home-page-content .business-help-actions { flex-direction:row; align-items:stretch; }
    .home-page-content .business-help-actions a { flex:1 1 150px; }
}

/* Featured businesses stay in one swipeable row at every screen size. */
.home-page-content .featured-slideshow-section {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 24px;
    border: 0; border-radius: 0;
}
.home-page-content .featured-slideshow-section .featured-slider {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 20px;
    padding: 4px 0 18px; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none;
}
.home-page-content .featured-slideshow-section .featured-slider::-webkit-scrollbar { display: none; }
.home-page-content .featured-slideshow-section .featured-card {
    flex: 0 0 calc((100% - 40px) / 3); min-width: 0; overflow: hidden;
    scroll-snap-align: start; text-decoration: none;
}
.home-page-content .featured-slideshow-section .featured-title { color: #1e5359; }
[data-theme="dark"] .home-page-content .featured-slideshow-section .featured-title { color: #d7eee1; }
.featured-slideshow-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.featured-slideshow-controls button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid #bbcfca; border-radius: 999px; background: #fff; color: #215e55; cursor: pointer; }
.featured-slideshow-controls button:focus-visible { outline: 2px solid #428676; outline-offset: 3px; }
.featured-slideshow-controls[hidden] { display: none; }
[data-theme="dark"] .featured-slideshow-controls button { background: #223930; color: #d7eee1; border-color: #426352; }
@media (max-width: 900px) {
    .home-page-content .featured-slideshow-section .featured-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
    .home-page-content .featured-slideshow-section { padding: 28px 16px; }
    .home-page-content .featured-slideshow-section .featured-card { flex-basis: 86%; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page-content .featured-slideshow-section .featured-slider { scroll-behavior: auto; }
}

/* Location slideshow: bounded native scrolling, clear photos, stable card sizes. */
.home-page-content .explore-locations-section { width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 24px; overflow: hidden; }
.home-page-content .explore-header { text-align: left; margin: 0 0 24px; padding: 0; }
.home-page-content .explore-header .explore-icon { display: none; }
.home-page-content .explore-header h2 { color: #203f37; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin: 0 0 10px; }
.home-page-content .explore-header .subtitle { color: #5d736a; font-size: 15px; margin: 0; }
.home-page-content .explore-slider-wrapper { width: 100%; margin: 0; overflow: hidden; }
.home-page-content .explore-slider { display: flex; gap: 20px; overflow-x: auto; width: 100%; padding: 0 0 12px; transform: none; transition: none; will-change: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.home-page-content .explore-slider::-webkit-scrollbar { display: none; }
.home-page-content .explore-slider .explore-card { flex: 0 0 calc((100% - 40px) / 3); width: auto; min-width: 0; max-width: none; height: auto; aspect-ratio: 4 / 3; margin: 0; border: 0; border-radius: 18px; opacity: 1; filter: none; transform: none; animation: none; box-shadow: none; scroll-snap-align: start; }
.home-page-content .explore-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-page-content .explore-card .explore-overlay { padding: 48px 20px 20px; background: linear-gradient(transparent, rgba(5, 20, 15, .9)); color: #fff; }
.home-page-content .explore-overlay > span:first-child { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.home-page-content .explore-overlay .explore-title { color: #fff; font-size: 24px; line-height: 1.3; margin-top: 5px; }
.home-page-content .explore-card:focus-visible { outline: 3px solid #88bfa7; outline-offset: -4px; }
.location-photo-credits { margin-top: 12px; color: #5d736a; font-size: 12px; line-height: 1.7; }
.location-photo-credits summary { cursor: pointer; min-height: 32px; }
.location-photo-credits a { color: inherit; text-decoration: underline; }
[data-theme="dark"] .home-page-content .explore-header h2 { color: #e1eee6; }
[data-theme="dark"] .home-page-content .explore-header .subtitle,
[data-theme="dark"] .location-photo-credits { color: #afc4b9; }
@media (max-width: 900px) { .home-page-content .explore-slider .explore-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) {
    .home-page-content .explore-locations-section { padding: 28px 16px; }
    .home-page-content .explore-slider .explore-card { flex-basis: 86%; }
}
@media (prefers-reduced-motion: reduce) { .home-page-content .explore-slider { scroll-behavior: auto; } }
