@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

.sb-location-search-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

.sb-location-search-form {
    margin-bottom: 9px;
}

.sb-search-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    align-items: flex-start;
}

.sb-search-inputs-col {
    width: 66.666667%;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.sb-search-btn-col {
    width: 33.333333%;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
    display: inline-flex;
    gap: 8px;
}

.sb-search-inputs-wrap {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.sb-input-field {
    flex: 1;
    min-width: 200px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.sb-radius-field {
  /* padding-left: 7.5px;
  padding-right: 7.5px; */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  max-width: 127px;
  width: 100%;
}

.sb-location-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    margin: 0;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

.sb-location-radius-select {
    min-height: 55px;
    height: 55px;
    width: 100%;
}

.sb-locate-me-wrap {
    margin-top: 8px;
}

.sb-locate-me-link {
    color: #8a2432 !important;
    text-decoration: underline;
    font-weight: 400 !important;
    font-size: 15px;
}
.sb-locate-me-link:hover {
    color: #555C63 !important;
}

.sb-location-search-button,
.sb-location-reset-button {
    width: 100%;
    padding: 10px 20px;
    background-color: #8a2432 !important;
    color: #fff;
    border: none;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: block;
    margin-bottom: 0;
}

.sb-location-search-button:hover,
.sb-location-reset-button:hover {
    background-color: #555C63 !important;
}

.sb-location-reset-button {
    background-color: #555 !important;
    /* margin-top: 4px; */
}

.sb-location-map-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.sb-location-results-col {
    width: 33.333333%;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.lpr-location.lpr-location-inlist{
    background-color: #F4F4F4 !important;
    padding: 10px 15px 10px 15px;
    border-style: none;
    border-radius: 8px 8px 8px 8px;
    border-width: 0;
    margin-bottom: 4px;
}

.lpr-location.lpr-location-inlist:hover,
.lpr-location.lpr-location-inlist.lpr-location-active{
    background-color: var(--e-global-color-primary) !important;
}

.hc-bold.lpr-location-name{
  color: #555C63;
  /* font-family: "Poppins", Sans-serif; */
  font-size: 16px;
  font-weight: 500;
}

.lpr-location.lpr-location-inlist:hover .hc-bold.lpr-location-name,
.lpr-location.lpr-location-inlist:hover .hc-italic.lpr-location-address,
.lpr-location.lpr-location-inlist.lpr-location-active .hc-bold.lpr-location-name,
.lpr-location.lpr-location-inlist.lpr-location-active .hc-italic.lpr-location-address{
    color: #fff;
}

.hc-italic.lpr-location-address{
    color: #8A2432;
  /* font-family: "Poppins", Sans-serif; */
  font-weight: 400;
  font-size: 12px;
  font-style: normal;
}

.hc-bold.lpr-location-distance{
    font-size: 14px;
    font-weight: bold;
    color: var(--thm-color);
}

.lpr-location.lpr-location-inlist:hover .hc-bold.lpr-location-distance,
.lpr-location.lpr-location-inlist.lpr-location-active .hc-bold.lpr-location-distance{
    color: #fff;
}

.sb-location-map-col {
    width: 66.666667%;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.sb-location-results {
    max-height: 600px;
    overflow-y: auto;
    /* padding-right: 10px; */
}
.sb-location-results .hc-p2.hc-border.hc-rounded{
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(0, 0, 0, .05);
    padding: .5rem;
    color: var(--e-global-color-accent);
    font-family: var(--thm-font) !important;
    font-size: 15px;
}
.sb-location-result-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #fff;
}

.sb-location-result-item:hover {
    border-color: #8a2432;
}

.sb-location-result-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.sb-location-result-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
}

.sb-location-result-phone {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.sb-location-result-distance {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.sb-location-map {
    width: 100%;
    height: 37.5em; /* Match locatoraid height */
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* InfoWindow Styles */
.sb-info-window {
    color: #000;
    background-color: #e5e5e5; /* Match locatoraid info window */
    padding: 10px;
    border-radius: 4px;
}
.sb-info-title {
    font-weight: bold;
}
.sb-info-address {
    font-style: italic;
}

.gm-style-iw.gm-style-iw-c{
    max-width: 240px !important;
  width: 100%;
}

.lpr-location-inmap .hc-bold.lpr-location-name{
    font-family: "Oswald", Sans-serif !important;
  font-size: 19px;
  font-weight: 700;
  color: var(--e-global-color-primary);
  margin-top: 0;
}

.lpr-location-inmap .hc-italic.lpr-location-address{
    font-family: "Poppins", Sans-serif;
  font-weight: 400;
  color: #54595F;
  font-size: 13px;
  font-style: normal;
  margin-top: 10px;
}
.lpr-location-inmap .lpr-location-website{
    margin-top: 25px !important;
  margin-bottom: 25px !important;
}
.lpr-location-inmap .lpr-location-website a{
    font-family: "Poppins", Sans-serif;
  font-weight: 600 !important;
  text-decoration: underline;
  text-align: left;
  color: var(--e-global-color-primary) !important;
  padding: 0px 0px 0px 0px;
  border-style: none;
  outline: none;
}

.lpr-location.lpr-location-inlist:hover .lpr-location-directions .lpr-directions, .lpr-location.lpr-location-inlist.lpr-location-active .lpr-location-directions .lpr-directions{
        color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .sb-search-inputs-col,
    .sb-search-btn-col,
    .sb-location-results-col,
    .sb-location-map-col {
        width: 100%;
    }
    
    /* .sb-location-map {
        height: 400px;
    } */

    /* .sb-location-results {
        height: 300px;
    } */
}

@media (max-width: 767px){
    .sb-search-inputs-wrap{
        flex-direction: column;
        gap: 8px;
    }
    .sb-radius-field{
        margin-left: 15px;
        max-width: 9.5em !important;
    }
}

/* Clear Search and Custom Loading Elements */
.sb-location-search-input {
    padding-right: 45px !important; /* ensure input text doesn't hide behind 'x' */
}

#sb-clear-search-btn {
    transition: color 0.2s, transform 0.2s;
}

#sb-clear-search-btn:hover {
    color: #8a2432 !important;
    transform: translateY(-50%) scale(1.15);
}

.sb-no-results-message {
    animation: fadeIn 0.3s ease-in-out;
}

.sb-loading-spinner {
    padding: 30px 15px;
    text-align: center;
    font-family: "Poppins", sans-serif;
    color: #8A2432;
    font-size: 15px;
    font-weight: 500;
}

.sb-loading-circle {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(138, 36, 50, 0.2);
    border-radius: 50%;
    border-top-color: #8A2432;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* new css for location page */
.locations-grid-row{
    row-gap: 20px;
}

.locations-grid-row .location-grid-col .cta-wrapper{
    border: 3px solid var(--e-global-color-c53002a);
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    /* margin: 0px 10px 0px 10px; */
    background-color: #f4f4f4;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.locations-grid-row .location-grid-col .cta-iteam{
    flex-wrap: wrap;
    display: flex;
    overflow: hidden;
    position: relative;
    transition: .5s;
    flex-direction: column;
    margin-bottom: 20px;
}

.locations-grid-row .cta__bg-wrapper {
    min-height: 200px;
    position: relative;
    width: 100%;
}

.locations-grid-row .cta__bg__img.lazyloaded {
    transition-duration: 1500ms;
    will-change: transform;
    background-position: 50%;
    background-size: cover;
    z-index: 1;
    inset: 0;
    position: absolute;
    transition-duration: 1500ms;
}

.locations-grid-row .cta__content {
    text-align: center;
    background-color: #f4f4f4;
    transition: all .4s;
    width: 100%;
    color: #fff;
    position: relative;
    align-content: center;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    padding: 35px;
    width: 100%;
    z-index: 1;
    flex-direction: column;
}

.locations-grid-row h3.cta__title {
    margin-bottom: 25px;
    font-family: "Oswald", Sans-serif;
    font-size: 35px;
    font-weight: 400;
    line-height: 1.3em;
    color: #555C63;
}

.locations-grid-row .cta__description {
    font-family: "Poppins", Sans-serif;
    font-weight: 400;
    line-height: 1.9em;
    color: #3f444b;
}

.locations-grid-row .button-wrapper {
    margin: 0px 0px 20px 0px;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.locations-grid-row a.more-info-button {
    background-color: var(--e-global-color-primary);
    font-family: "Roboto", Sans-serif;
    font-weight: 500;
    text-decoration: none;
    border-style: none;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    fill: #fff;
    font-size: 15px;
    line-height: 1;
    padding: 12px 24px;
    text-align: center;
    transition: all .3s;
    font-weight: 600;
}

.locations-grid-row a.more-info-button:hover{
    background-color:#555c63;
    color: #fff;
}

.locations-grid-row .cta__bg-overlay {
    transition-duration: 1500ms;
    z-index: 2;
    inset: 0;
    position: absolute;
    transition: all .4s;    
}

.locations-grid-row .location-grid-col .cta-iteam:hover .cta__bg-overlay{
    background-color: rgba(0, 0, 0, .3);
}

.locations-grid-row .location-grid-col .cta-iteam:hover .cta__bg__img.lazyloaded{
    transform: scale(1.2);
}