/* DAPPER Filter Search Hero.
   A slim band under the header. Desktop is one row; phones collapse to a
   tap-to-open sheet so the band costs about 56px of screen instead of 260. */

.dphggg-hero {
    background: #0B6FB4;
    padding: 18px 20px;
}
.dphggg-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.dphggg-hero__title {
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    color: #FFFFFF;
    margin: 0 0 10px;
}
.dphggg-hero__sub {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    opacity: .85;
    margin: -6px 0 10px;
}

/* --- The bar ------------------------------------------------------------ */
.dphggg-hero__sheet {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.dphggg-hero__fields {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;          /* lets the selects shrink instead of overflowing */
}
.dphggg-hero__field {
    flex: 1 1 0;
    min-width: 0;
    padding: 2px 12px;
    border-left: 1px solid #E8E8E8;
}
.dphggg-hero__field:first-child { border-left: 0; }

.dphggg-hero__label {
    display: block;
    font-family: 'Rubik', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #5F6368;
    margin: 0 0 1px;
}

/* Native select, restyled. The OS picker on a phone is faster and more
   accessible than any custom dropdown, and it costs no JavaScript. */
.dphggg-hero__select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 100%;
    border: 0;
    background: transparent;
    padding: 0 20px 0 0;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #1A1A1A;
    cursor: pointer;
    text-overflow: ellipsis;
    /* Chevron drawn in CSS rather than loaded as an icon. */
    background-image:
        linear-gradient(45deg, transparent 50%, #5F6368 50%),
        linear-gradient(135deg, #5F6368 50%, transparent 50%);
    background-size: 6px 6px, 6px 6px;
    background-position: right 6px top 8px, right 2px top 8px;
    background-repeat: no-repeat;
}
.dphggg-hero__select:focus-visible {
    outline: 2px solid #0B6FB4;
    outline-offset: 3px;
    border-radius: 3px;
}

.dphggg-hero__go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 12px 20px;
    background: #F5A623;
    color: #1A1A1A;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: filter .16s ease;
}
.dphggg-hero__go:hover { filter: brightness(.94); }
.dphggg-hero__go:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* Magnifier, drawn with a border and a pseudo-element. */
.dphggg-hero__go-ico {
    width: 14px; height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
    flex: 0 0 auto;
}
.dphggg-hero__go-ico::after {
    content: "";
    position: absolute;
    right: -4px; bottom: -3px;
    width: 6px; height: 2px;
    background: currentColor;
    transform: rotate(45deg);
}

/* --- Mobile trigger, hidden on desktop ---------------------------------- */
.dphggg-hero__mob { display: none; }
.dphggg-hero__sheet-head { display: none; }

@media (max-width: 767px) {

    .dphggg-hero { padding: 12px 15px; }
    .dphggg-hero__title { font-size: 17px; margin-bottom: 8px; }
    .dphggg-hero__sub { display: none; }   /* the bar itself says enough */

    .dphggg-hero__mob {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        background: #FFFFFF;
        border: 0;
        border-radius: 10px;
        padding: 13px 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,.14);
        font-family: 'Rubik', sans-serif;
        font-size: 14px;
        color: #5F6368;
        text-align: left;
        cursor: pointer;
    }
    .dphggg-hero__mob-txt {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .dphggg-hero__mob-ico {
        width: 15px; height: 15px;
        border: 2px solid #1A1A1A;
        border-radius: 50%;
        position: relative;
        flex: 0 0 auto;
    }
    .dphggg-hero__mob-ico::after {
        content: "";
        position: absolute;
        right: -4px; bottom: -3px;
        width: 6px; height: 2px;
        background: #1A1A1A;
        transform: rotate(45deg);
    }

    /* The form becomes a sheet, off-screen until opened. display:none would
       drop it out of the tab order but also kill the transition, so it is
       moved instead and made inert with visibility. */
    .dphggg-hero__form {
        position: fixed;
        inset: 0;
        z-index: 99999;
        background: rgba(0,0,0,.45);
        visibility: hidden;
        opacity: 0;
        transition: opacity .18s ease, visibility 0s linear .18s;
    }
    .dphggg-hero__form.is-open {
        visibility: visible;
        opacity: 1;
        transition: opacity .18s ease;
    }

    .dphggg-hero__sheet {
        position: absolute;
        left: 0; right: 0; bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-radius: 14px 14px 0 0;
        padding: 0 0 14px;
        transform: translateY(12px);
        transition: transform .18s ease;
        max-height: 88vh;
        overflow-y: auto;
    }
    .dphggg-hero__form.is-open .dphggg-hero__sheet { transform: translateY(0); }

    .dphggg-hero__sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px 10px;
        font-family: 'Rubik', sans-serif;
        font-size: 15px;
        font-weight: 600;
        color: #1A1A1A;
        border-bottom: 1px solid #EFEFEF;
    }
    .dphggg-hero__close {
        border: 0;
        background: transparent;
        font-size: 26px;
        line-height: 1;
        color: #5F6368;
        padding: 0 4px;
        cursor: pointer;
    }

    .dphggg-hero__fields { flex-direction: column; }
    .dphggg-hero__field {
        border-left: 0;
        border-bottom: 1px solid #EFEFEF;
        padding: 12px 16px;
    }
    .dphggg-hero__label { font-size: 12px; }
    /* 16px stops iOS zooming the page when the picker opens. */
    .dphggg-hero__select {
        font-size: 16px;
        background-position: right 6px top 10px, right 2px top 10px;
    }

    .dphggg-hero__go {
        margin: 14px 16px 0;
        justify-content: center;
        padding: 15px 20px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dphggg-hero__form,
    .dphggg-hero__sheet { transition: none; }
}
