/* ==========================================================
   AMPLIFY HEALTH — CLINIC FINDER
   ========================================================== */

.amplify-clinic-finder {
    --amplify-purple: #4e2396;
    --amplify-teal: #0099b5;
    --amplify-orange: #ff7a00;
    --amplify-text: #333333;
    --amplify-white: #ffffff;
    --amplify-light: #f7f7f8;
    --amplify-border: #e3e3e6;

    font-family: "Poppins", sans-serif;
    color: var(--amplify-text);
    width: 100%;
}


/* ==========================================================
   MAP
   ========================================================== */

.amplify-clinic-finder .amplify-clinic-map {
    width: 100% !important;
    height: 520px !important;
    margin: 0 0 40px 0 !important;
    border-radius: 12px;
    overflow: hidden;
}


/* ==========================================================
   SEARCH PANEL
   ========================================================== */

.amplify-clinic-search {
    background: var(--amplify-white);
    border: 1px solid var(--amplify-border);
    border-radius: 12px;
    padding: 30px;
    margin: 0 0 35px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.amplify-clinic-label {
    display: block;
    color: var(--amplify-purple);
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 18px 0;
}


/* ==========================================================
   SEARCH ROW
   ========================================================== */

.amplify-clinic-search-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}


/* ==========================================================
   ADDRESS / ZIP FIELD
   ========================================================== */

.amplify-clinic-finder .amplify-location-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    margin: 0;

    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--amplify-text);

    background: var(--amplify-white);
    border: 1px solid #cccccc;
    border-radius: 6px;

    outline: none;
    box-shadow: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.amplify-clinic-finder .amplify-location-input::placeholder {
    color: #777777;
    opacity: 1;
}

.amplify-clinic-finder .amplify-location-input:focus {
    border-color: var(--amplify-teal);
    box-shadow: 0 0 0 3px rgba(0, 153, 181, 0.12);
}


/* ==========================================================
   SEARCH BUTTONS
   ========================================================== */

.amplify-clinic-finder .amplify-find-clinic,
.amplify-clinic-finder .amplify-use-location {
    min-height: 52px;
    padding: 0 24px;
    margin: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;

    border-radius: 6px;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


/* Find Clinic */

.amplify-clinic-finder .amplify-find-clinic {
    color: var(--amplify-white);
    background: var(--amplify-purple);
    border: 2px solid var(--amplify-purple);
}

.amplify-clinic-finder .amplify-find-clinic:hover,
.amplify-clinic-finder .amplify-find-clinic:focus {
    color: var(--amplify-white);
    background: var(--amplify-teal);
    border-color: var(--amplify-teal);
}


/* Use My Location */

.amplify-clinic-finder .amplify-use-location {
    color: var(--amplify-teal);
    background: var(--amplify-white);
    border: 2px solid var(--amplify-teal);
}

.amplify-clinic-finder .amplify-use-location:hover,
.amplify-clinic-finder .amplify-use-location:focus {
    color: var(--amplify-white);
    background: var(--amplify-teal);
}


/* ==========================================================
   SEARCH MESSAGE
   ========================================================== */

.amplify-clinic-message {
    margin: 18px 0 0 0;

    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--amplify-text);
}

.amplify-clinic-message:empty {
    display: none;
}


/* ==========================================================
   RESULTS GRID

   Desktop = 2 columns
   Tablet/mobile = 1 column

   Explicit gaps ensure each location has breathing room.
   ========================================================== */

.amplify-clinic-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 28px;
    row-gap: 28px;

    width: 100%;
    margin: 0;
    padding: 0;
}


/* ==========================================================
   LOCATION CARD
   ========================================================== */

.amplify-clinic-card {
    display: flex;
    flex-direction: column;

    background: var(--amplify-white);
    border: 1px solid var(--amplify-border);
    border-radius: 12px;

    /*
     * Generous internal spacing around
     * each location result.
     */
    padding: 28px;

    margin: 0;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}


/* ==========================================================
   DISTANCE
   ========================================================== */

.amplify-clinic-distance {
    display: inline-block;
    align-self: flex-start;

    margin: 0 0 12px 0;
    padding: 5px 11px;

    color: var(--amplify-teal);
    background: rgba(0, 153, 181, 0.09);

    border-radius: 20px;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}


/* ==========================================================
   CLINIC NAME
   ========================================================== */

.amplify-clinic-card h3 {
    color: var(--amplify-purple) !important;

    font-family: "Poppins", sans-serif !important;
    font-size: 23px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;

    padding: 0 !important;

    /*
     * Space between clinic name and address.
     */
    margin: 0 0 14px 0 !important;
}


/* ==========================================================
   ADDRESS
   ========================================================== */

.amplify-clinic-address {
    color: var(--amplify-text);

    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;

    /*
     * Space after address.
     */
    margin: 0 0 14px 0;
}


/* ==========================================================
   PHONE
   ========================================================== */

.amplify-clinic-phone {
    color: var(--amplify-text);

    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;

    /*
     * Generous space before View Location.
     */
    margin: 0 0 22px 0;
}


/* ==========================================================
   VIEW LOCATION BUTTON
   ========================================================== */

.amplify-clinic-finder a.amplify-clinic-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;

    /*
     * Pushes buttons toward the bottom when
     * cards in the same row have different
     * amounts of address text.
     */
    margin-top: auto;

    padding: 12px 22px;

    color: var(--amplify-white) !important;
    background: var(--amplify-purple);

    border: 2px solid var(--amplify-purple);
    border-radius: 6px;

    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.amplify-clinic-finder a.amplify-clinic-button:hover,
.amplify-clinic-finder a.amplify-clinic-button:focus {
    color: var(--amplify-white) !important;
    background: var(--amplify-teal);
    border-color: var(--amplify-teal);
    text-decoration: none !important;
}


/* ==========================================================
   LEAFLET POPUPS
   ========================================================== */

.amplify-clinic-finder .leaflet-popup-content {
    font-family: "Poppins", sans-serif;
    color: var(--amplify-text);
    font-size: 14px;
    line-height: 1.6;
}

.amplify-clinic-finder .leaflet-popup-content strong:first-child {
    color: var(--amplify-purple);
    font-size: 16px;
}

.amplify-clinic-finder .leaflet-popup-content a {
    display: inline-block;
    margin-top: 7px;

    color: var(--amplify-teal);
    font-weight: 600;
    text-decoration: none;
}

.amplify-clinic-finder .leaflet-popup-content a:hover {
    color: var(--amplify-purple);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 980px) {

    .amplify-clinic-results {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .amplify-clinic-search-row {
        flex-wrap: wrap;
    }

    .amplify-clinic-finder .amplify-location-input {
        flex: 1 1 100%;
    }

    .amplify-clinic-finder .amplify-find-clinic,
    .amplify-clinic-finder .amplify-use-location {
        flex: 1 1 calc(50% - 6px);
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .amplify-clinic-finder .amplify-clinic-map {
        height: 380px !important;
        margin-bottom: 25px !important;
        border-radius: 8px;
    }


    .amplify-clinic-search {
        padding: 22px 18px;
        margin-bottom: 28px;
        border-radius: 8px;
    }


    .amplify-clinic-label {
        font-size: 21px;
        margin-bottom: 15px;
    }


    .amplify-clinic-search-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }


    .amplify-clinic-finder .amplify-location-input,
    .amplify-clinic-finder .amplify-find-clinic,
    .amplify-clinic-finder .amplify-use-location {
        width: 100%;
        flex: none;
    }


    .amplify-clinic-results {
        grid-template-columns: 1fr;

        /*
         * Visible separation between each
         * location on smaller screens.
         */
        row-gap: 20px;
    }


    .amplify-clinic-card {
        padding: 22px 20px;
        border-radius: 8px;
    }


    .amplify-clinic-distance {
        margin-bottom: 11px;
    }


    .amplify-clinic-card h3 {
        font-size: 21px !important;
        margin-bottom: 12px !important;
    }


    .amplify-clinic-address {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 13px;
    }


    .amplify-clinic-phone {
        font-size: 15px;
        margin-bottom: 20px;
    }


    .amplify-clinic-finder a.amplify-clinic-button {
        width: 100%;
        min-height: 48px;
    }

}@charset "UTF-8";
/* CSS Document */

