/**
 * Gynovia Doctor Map
 * Front-end UI
 * Salient integration
 */


/* =========================================================
   WRAPPER
========================================================= */

.gynovia-map-wrapper {
    width: 100%;
    font-family: inherit;
    color: inherit;
}


/* =========================================================
   FILTERS
========================================================= */

.gynovia-map-filters {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
    width: 100%;
    margin: 0 0 14px 0;
}

.gynovia-map-filter {
    min-width: 0;
}

.gynovia-map-filter label {
    display: block;
    margin: 0 0 6px 2px;

    color: inherit;

    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.04em;

    text-transform: uppercase;
}


/* =========================================================
   FILTER CONTROLS
========================================================= */

.gynovia-map-filter select,
.gynovia-map-filter input[type="search"] {
    display: block;

    width: 100%;
    height: 46px;

    margin: 0;

    background-color: #f3f3f3 !important;

    border: 0 !important;
    border-radius: 8px !important;

    outline: none !important;
    box-shadow: none !important;

    color: inherit;

    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 46px;

    box-sizing: border-box;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}


/* =========================================================
   SELECT
========================================================= */

.gynovia-map-filter select {
    padding: 0 42px 0 15px;

    cursor: pointer;

    -webkit-appearance: none !important;
    appearance: none !important;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            currentColor 50%
        ),
        linear-gradient(
            135deg,
            currentColor 50%,
            transparent 50%
        ) !important;

    background-position:
        calc(100% - 17px) 20px,
        calc(100% - 12px) 20px !important;

    background-size:
        5px 5px,
        5px 5px !important;

    background-repeat:
        no-repeat,
        no-repeat !important;
}


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

.gynovia-map-filter input[type="search"] {
    padding: 0 15px;

    -webkit-appearance: none !important;
    appearance: none !important;
}

.gynovia-map-filter input[type="search"]::placeholder {
    color: inherit;
    opacity: 0.6;
}

.gynovia-map-filter input[type="search"]::-webkit-search-decoration,
.gynovia-map-filter input[type="search"]::-webkit-search-cancel-button,
.gynovia-map-filter input[type="search"]::-webkit-search-results-button,
.gynovia-map-filter input[type="search"]::-webkit-search-results-decoration {
    display: none;
}


/* =========================================================
   FILTER HOVER / FOCUS
========================================================= */

.gynovia-map-filter select:hover,
.gynovia-map-filter input[type="search"]:hover,
.gynovia-map-filter select:focus,
.gynovia-map-filter input[type="search"]:focus {
    background-color: #e9e9e9 !important;

    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}


/* =========================================================
   RESET BUTTON
========================================================= */

.gynovia-map-filter--reset button {
    display: block;

    height: 46px;

    margin: 0;
    padding: 0 22px;

    background: #000000 !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 8px !important;

    outline: none !important;
    box-shadow: none !important;

    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 46px;
    letter-spacing: 0.04em;

    text-transform: uppercase;

    cursor: pointer;

    box-sizing: border-box;
}

.gynovia-map-filter--reset button:hover,
.gynovia-map-filter--reset button:focus {
    background: #1a1a1a !important;
    color: #ffffff !important;
}


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

.gynovia-map-results {
    min-height: 20px;

    margin: 0 0 10px 0;

    color: inherit;
    opacity: 0.6;

    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}


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

.gynovia-doctor-map {
    width: 100%;
    min-height: 420px;

    overflow: hidden;

    border: 0;
}


/* =========================================================
   POPUP
========================================================= */

.gynovia-map-popup {
    width: 300px;
    max-width: 100%;

    margin: 0;
    padding: 2px 4px 3px 4px;

    background: transparent;
    color: inherit;

    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;

    box-sizing: border-box;
}


/* =========================================================
   POPUP — IDENTITY
========================================================= */

.gynovia-map-popup__identity {
    margin: 0;
    padding: 0 0 10px 0;
}

.gynovia-map-popup__name {
    margin: 0 0 4px 0;

    color: inherit;

    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.04em;
}

.gynovia-map-popup__gender {
    margin: 0;

    color: inherit;
    opacity: 0.65;

    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}


/* =========================================================
   POPUP — LOCATION
========================================================= */

.gynovia-map-popup__location-block {
    margin: 0;
    padding: 10px 0;

    border-top:
        1px solid
        rgba(0, 0, 0, 0.12);
}

.gynovia-map-popup__location {
    margin: 0 0 3px 0;

    color: inherit;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.gynovia-map-popup__address {
    margin: 0;

    color: inherit;
    opacity: 0.65;

    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}


/* =========================================================
   POPUP — PROFESSIONAL REGISTRATION
========================================================= */

.gynovia-map-popup__registration {
    margin: 0;
    padding: 10px 0;

    border-top:
        1px solid
        rgba(0, 0, 0, 0.12);
}

.gynovia-map-popup__label {
    margin: 0 0 6px 0;

    color: inherit;
    opacity: 0.65;

    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.gynovia-map-popup__registration-value {
    margin: 0 0 3px 0;

    color: inherit;

    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.gynovia-map-popup__verified {
    margin: 0;

    color: inherit;
    opacity: 0.75;

    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
}


/* =========================================================
   POPUP — SPECIALTIES
========================================================= */

.gynovia-map-popup__specialty-block {
    margin: 0;
    padding: 10px 0 0 0;

    border-top:
        1px solid
        rgba(0, 0, 0, 0.12);
}

.gynovia-map-popup__specialties {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin: 0;
    padding: 0;
}


/*
 * Specialties are informational badges.
 * Default: Salient grey #adadad.
 * Hover: black for improved readability.
 */

.gynovia-map-popup__specialty {
    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 5px 9px;

    background: transparent !important;
    color: #adadad !important;

    border: 1px solid #adadad !important;
    border-radius: 5px;

    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.15;

    box-shadow: none !important;
    cursor: default;

    box-sizing: border-box;

    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}

.gynovia-map-popup__specialty:hover {
    background: transparent !important;
    color: #000000 !important;

    border-color: #000000 !important;
}


/* =========================================================
   POPUP — ACTIONS
========================================================= */

.gynovia-map-popup__actions {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 7px;

    margin: 10px 0 0 0;
    padding: 10px 0 0 0;

    border-top:
        1px solid
        rgba(0, 0, 0, 0.12);
}

.gynovia-map-popup__button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 36px;

    margin: 0;
    padding: 8px 9px;

    border-radius: 6px;

    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.035em;

    text-align: center;
    text-transform: uppercase;
    text-decoration: none !important;

    box-sizing: border-box;
}


/* =========================================================
   VIEW PROFILE
========================================================= */

.gynovia-map-popup__button--profile {
    background: transparent !important;
    color: inherit !important;

    border:
        1px solid
        currentColor !important;
}

.gynovia-map-popup__button--profile:link,
.gynovia-map-popup__button--profile:visited,
.gynovia-map-popup__button--profile:hover,
.gynovia-map-popup__button--profile:focus,
.gynovia-map-popup__button--profile:active {
    color: inherit !important;
    text-decoration: none !important;
}


/* =========================================================
   BOOK APPOINTMENT
========================================================= */

.gynovia-map-popup__button--booking {
    background: #000000 !important;
    color: #ffffff !important;

    border:
        1px solid
        #000000 !important;
}

.gynovia-map-popup__button--booking:link,
.gynovia-map-popup__button--booking:visited,
.gynovia-map-popup__button--booking:hover,
.gynovia-map-popup__button--booking:focus,
.gynovia-map-popup__button--booking:active {
    background: #000000 !important;
    color: #ffffff !important;

    border-color: #000000 !important;

    text-decoration: none !important;
}


/* =========================================================
   GOOGLE MAPS INFOWINDOW
========================================================= */

.gm-style .gm-style-iw-c {
    padding: 11px !important;

    border-radius: 8px !important;
    box-shadow: none !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
}

.gm-style .gm-style-iw-c,
.gm-style .gm-style-iw-tc::after {
    color: inherit;
}


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

@media (max-width: 1000px) {

    .gynovia-map-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .gynovia-map-filter--reset button {
        width: 100%;
    }
}


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

@media (max-width: 600px) {

    .gynovia-map-filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gynovia-map-filter select,
    .gynovia-map-filter input[type="search"],
    .gynovia-map-filter--reset button {
        height: 44px;
    }

    .gynovia-map-filter select {
        background-position:
            calc(100% - 17px) 19px,
            calc(100% - 12px) 19px !important;
    }

    .gynovia-map-filter--reset button {
        width: 100%;
        line-height: 44px;
    }

    .gynovia-map-results {
        margin-top: 4px;
    }

    .gynovia-doctor-map {
        min-height: 480px;
    }

    .gynovia-map-popup {
        width: 260px;
    }

    /*
     * Actions stacked on mobile.
     */

    .gynovia-map-popup__actions {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .gynovia-map-popup__button {
        min-height: 38px;
    }

    .gm-style .gm-style-iw-c {
        padding: 10px !important;
    }
}