/* Scoped to the homepage: template navigation and business headers retain their styles. */
.directory-home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    width: 100%;
    min-height: 480px;
    min-height: clamp(440px, 64svh, 680px);
    margin: 0;
    padding: 80px 24px;
    box-sizing: border-box;
    background: #152b36;
    text-align: left;
    clear: both;
}
.directory-home-hero .directory-home-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}
.directory-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(9, 25, 36, .78), rgba(9, 25, 36, .48) 60%, rgba(9, 25, 36, .2));
}
.directory-home-hero .bx-wrapper,
.directory-home-hero .bx-viewport,
.directory-home-hero .bxslider,
.directory-home-hero .bxslider > div,
.directory-home-hero__image,
.directory-home-hero__image > div {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent;
}
.directory-home-hero .bx-wrapper { max-width: none !important; }
.directory-home-hero .bx-viewport { left: 0 !important; }
.directory-home-hero .directory-home-hero__media img {
    display: block;
    width: 100%;
    height: 100% !important;
    max-height: none;
    object-fit: cover;
    object-position: center;
}
.directory-home-hero .directory-home-hero__content {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}
.directory-home-hero #home-banner-heading {
    max-width: 820px;
    margin: 0 0 32px;
    padding: 0;
    color: #fff;
    font-size: clamp(32px, 3.5vw, 56px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -.025em;
    text-transform: none;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .2);
}
.directory-home-hero .directory-home-hero__search {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
    max-width: 800px;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
}
.directory-home-hero__field { flex: 1; min-width: 0; }
.directory-home-hero .directory-home-hero__field label {
    display: block;
    margin: 0 0 8px;
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
    text-transform: none;
}
.directory-home-hero #search_loc {
    display: block;
    width: 100%;
    height: 54px !important;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    box-shadow: none;
}
.directory-home-hero #search_btn {
    position: static;
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
    height: 54px !important;
    margin: 0;
    padding: 0 28px;
    border: 0;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    text-transform: none;
    cursor: pointer;
}
.directory-home-hero #search_btn:hover { background: #115e59; }
.directory-home-hero #search_loc:focus,
.directory-home-hero #search_btn:focus-visible { outline: 3px solid #2dd4bf; outline-offset: 3px; }
.directory-home-hero .bx-controls { position: absolute; bottom: 20px; width: 100%; z-index: 60; }
.directory-home-hero .bx-pager { bottom: 0; padding: 0; }
/* Keep navigation inside the banner, clear of the heading and search form. */
.directory-home-hero .bx-controls-direction { display: block; }
.directory-home-hero .bx-controls-direction a {
    position: absolute;
    top: auto;
    bottom: 0;
    width: 36px;
    height: 36px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    background: rgba(9, 25, 36, .75);
    color: #fff;
    text-indent: 0;
    font-size: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.directory-home-hero .bx-controls-direction .bx-prev { left: 24px; }
.directory-home-hero .bx-controls-direction .bx-next { right: 24px; }
.directory-home-hero .bx-prev::before { content: "‹"; font-size: 28px; }
.directory-home-hero .bx-next::before { content: "›"; font-size: 28px; }
.directory-home-hero .bx-controls-direction a:hover { background: #0f766e; }
.directory-home-hero .bx-controls a:focus-visible { outline: 3px solid #2dd4bf; outline-offset: 3px; }
.directory-home-hero .bx-pager.bx-default-pager a { background: #fff; }

@media (max-width: 600px) {
    .directory-home-hero { min-height: 460px; padding: 56px 20px; }
    .directory-home-hero::after { background: rgba(9, 25, 36, .6); }
    .directory-home-hero #home-banner-heading { margin-bottom: 24px; }
    .directory-home-hero .directory-home-hero__search { flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; }
    .directory-home-hero #search_btn { width: 100%; }
}
