/*
|--------------------------------------------------------------------------
| GPCA Clinic Search
|--------------------------------------------------------------------------
*/

.gpca-clinic-search {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: inherit;
    color: #111827;
}


/*
|--------------------------------------------------------------------------
| Search Section
|--------------------------------------------------------------------------
*/

.gpca-search-section {
    padding: 20px 0 30px;
    border-bottom: 1px solid #d9d9d9;
}


.gpca-search-title {
    margin: 0 0 18px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    color: #111111;
}


.gpca-required-text {
    margin: 0 0 30px;
    font-size: 16px;
    line-height: 1.5;
}


.gpca-required-text span,
.gpca-required {
    color: #d71920;
}


/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.gpca-form-group {
    margin-bottom: 25px;
}


.gpca-label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    color: #111111;
}


.gpca-search-input-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}


.gpca-location-input {
    width: 100%;
    min-height: 40px;
    padding: 9px 60px 9px 12px;
    border: 1px solid #6b7280;
    border-radius: 4px;
    background: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
    outline: none;
}


.gpca-location-input:focus {
    border-color: #1677d2;
    box-shadow: 0 0 0 2px rgba(22, 119, 210, 0.15);
}


.gpca-search-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: #006eb8;
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
}


.gpca-search-button:hover {
    background: #005b99;
}


.gpca-search-icon {
    line-height: 1;
}


.gpca-radius-select {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #6b7280;
    border-radius: 4px;
    background: #ffffff;
    font-size: 16px;
    color: #111111;
    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Google Places Dropdown
|--------------------------------------------------------------------------
*/

.pac-container {
    z-index: 999999 !important;
    font-family: inherit;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}


.pac-item {
    padding: 12px 14px;
    min-height: 46px;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
}


.pac-item:hover {
    background: #f2f6fa;
}


.pac-item-query {
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Loading
|--------------------------------------------------------------------------
*/

.gpca-search-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    font-size: 16px;
}


.gpca-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #d6d6d6;
    border-top-color: #006eb8;
    border-radius: 50%;
    animation: gpca-spin 0.8s linear infinite;
}


@keyframes gpca-spin {

    to {
        transform: rotate(360deg);
    }

}


/*
|--------------------------------------------------------------------------
| Results Header
|--------------------------------------------------------------------------
*/

.gpca-results-section {
    padding: 25px 0;
}


.gpca-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}


.gpca-results-header h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
    color: #111111;
}


.gpca-results-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}


.gpca-text-button {
    border: 0;
    background: transparent;
    color: #111111;
    cursor: pointer;
    font-size: 15px;
}


.gpca-text-button:hover {
    text-decoration: underline;
}


.gpca-start-over {
    padding: 10px 16px;
    border: 0;
    border-radius: 4px;
    background: #006eb8;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}


.gpca-start-over:hover {
    background: #005b99;
}


/*
|--------------------------------------------------------------------------
| Results Layout
|--------------------------------------------------------------------------
*/

.gpca-results-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}


.gpca-results-left {
    min-width: 0;
}


.gpca-results-right {
    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Filter
|--------------------------------------------------------------------------
*/

.gpca-filter-wrapper {
    margin-bottom: 20px;
}


.gpca-clinic-filter {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #333333;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    outline: none;
}


.gpca-clinic-filter:focus {
    border-color: #006eb8;
}


/*
|--------------------------------------------------------------------------
| Result Item
|--------------------------------------------------------------------------
*/

.gpca-result-item {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid #d0d0d0;
    cursor: pointer;
}


.gpca-result-item:last-child {
    border-bottom: 1px solid #d0d0d0;
}


.gpca-result-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5d6670;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}


.gpca-result-content {
    min-width: 0;
}


.gpca-distance {
    margin-bottom: 3px;
    color: #52606d;
    font-size: 13px;
    text-transform: uppercase;
}


.gpca-clinic-title {
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    color: #111111;
}


.gpca-clinic-address {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #222222;
}


/*
|--------------------------------------------------------------------------
| Actions
|--------------------------------------------------------------------------
*/

.gpca-clinic-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}


.gpca-action-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 50px;
    color: #006eb8;
    text-decoration: none;
    font-size: 13px;
}


.gpca-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #006eb8;
    border-radius: 50%;
    font-size: 17px;
}


.gpca-action-button:hover {
    color: #004f85;
}


.gpca-action-button:hover .gpca-action-icon {
    background: #eef7fd;
}


/*
|--------------------------------------------------------------------------
| Map
|--------------------------------------------------------------------------
*/

.gpca-clinic-map {
    width: 100%;
    min-height: 620px;
    height: 620px;
    border-radius: 0;
    overflow: hidden;
    background: #eeeeee;
}


/*
|--------------------------------------------------------------------------
| Map Info Window
|--------------------------------------------------------------------------
*/

.gm-style .gpca-map-info-window {
    min-width: 180px;
    max-width: 260px;
    font-size: 14px;
    line-height: 1.5;
}


.gpca-map-info-window strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}


.gpca-map-info-window a {
    display: inline-block;
    margin-top: 8px;
    color: #006eb8;
}


/*
|--------------------------------------------------------------------------
| Results Count
|--------------------------------------------------------------------------
*/

.gpca-results-count {
    margin-top: 20px;
    font-size: 15px;
    color: #333333;
}


/*
|--------------------------------------------------------------------------
| No Results
|--------------------------------------------------------------------------
*/

.gpca-no-results {
    padding: 30px 0;
}


.gpca-no-results h2 {
    margin: 0 0 15px;
    font-size: 25px;
    line-height: 1.3;
}


.gpca-no-results p {
    margin: 0 0 15px;
    font-size: 16px;
    line-height: 1.6;
}


.gpca-no-results a {
    color: #006eb8;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .gpca-results-layout {
        grid-template-columns: 1fr;
    }


    .gpca-clinic-map {
        min-height: 500px;
        height: 500px;
    }

}


@media (max-width: 700px) {

    .gpca-search-title {
        font-size: 28px;
    }


    .gpca-results-header {
        flex-direction: column;
        align-items: flex-start;
    }


    .gpca-results-actions {
        width: 100%;
        justify-content: space-between;
    }


    .gpca-result-item {
        grid-template-columns: 40px minmax(0, 1fr);
    }


    .gpca-result-number {
        width: 36px;
        height: 36px;
    }


    .gpca-clinic-map {
        min-height: 400px;
        height: 400px;
    }

}


@media (max-width: 480px) {

    .gpca-search-section {
        padding-top: 10px;
    }


    .gpca-search-title {
        font-size: 25px;
    }


    .gpca-results-header h2 {
        font-size: 21px;
    }


    .gpca-results-actions {
        flex-direction: column;
        align-items: flex-start;
    }


    .gpca-clinic-actions {
        gap: 12px;
    }

}

/* Google Places dropdown must remain above page builders and theme layers. */
.gpca-search-input-wrapper {
    overflow: visible !important;
}

.gpca-location-input {
    position: relative;
    z-index: 1;
}

.pac-container {
    z-index: 2147483647 !important;
}

.pac-logo:after {
    display: none !important;
}
