/* Custom Google Places autocomplete — matches native form-control inputs */

.cc-places {
    position: relative;
    display: block;
    width: 100%;
}

.cc-places-input {
    width: 100%;
}

.input-group.cc-places {
    width: 100%;
}

.input-group.cc-places > .form-control,
.input-group.cc-places > .cc-places-input {
    height: 25px;
}

.cc-places-list {
    display: none;
    box-sizing: border-box;
    margin: 0;
    padding: 6px;
    background: #fff;
    border: 1px solid #d7dde5;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(32, 48, 72, 0.16);
    max-height: 280px;
    overflow: auto;
    font-family: inherit;
}

.cc-places-list.is-open {
    display: block;
}

.cc-places-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #2c3e50;
    text-align: left;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    height: auto !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
}

.cc-places-item:hover,
.cc-places-item.is-active {
    background: #eef5ff;
}

.cc-places-pin {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background: no-repeat center / 14px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a90e2'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

.cc-places-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cc-places-main {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2d3d;
}

.cc-places-sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.3;
    color: #7b8794;
}

.cc-places-status {
    padding: 10px 12px;
    font-size: 12px;
    color: #7b8794;
}

.cc-places-filled {
    animation: ccPlacesFill 1.1s ease;
}

@keyframes ccPlacesFill {
    0% { box-shadow: inset 0 0 0 1px #7fb3ff; background-color: #eef6ff; }
    100% { box-shadow: none; background-color: inherit; }
}

.gm-style iframe + div {
    border: none !important;
}

#map:focus,
#pac-input:focus,
.pac-target-input:focus {
    outline: none;
}

/* Hide leftover Google widget chrome if an old script still injected it */
gmp-place-autocomplete button,
gmp-place-autocomplete [part="clear-button"],
gmp-place-autocomplete .focus-ring {
    display: none !important;
}
