/* ================================================================
   LZ Location Map
================================================================ */

.lz-lm {
    font-family: "Poppins", sans-serif;
    margin: 0 auto;
}

/* ── Search bar ── */

.lz-lm__search {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.lz-lm__search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #ff6632;
    border-radius: 50px;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

input.lz-lm__search-input {
    flex: 1;
    border: none !important;
    outline: none;
    padding: 12px 20px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    color: #333;
    background: transparent;
}

.lz-lm__search-input::placeholder {
    color: #ff6632;
    font-size: 14px;
}

.lz-lm__search-btn {
    padding: 0px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #ff6632;
    border: none;
    border-radius: 50%;
    margin: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.lz-lm__search-btn:hover {
    background: #d0621f;
}

.lz-lm__search-icon {
    width: auto;
    height: 24px;
    object-fit: contain;
    filter: unset;
}

/* ── Body: map + cards ── */

.lz-lm__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* ── Map ── */

.lz-lm__map-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.lz-lm__map {
    width: 100%;
    height: 440px;
    background: #e8e8e8;
}

/* ── Cards column ── */

.lz-lm__cards-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lz-lm__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Single card ── */

.lz-lm-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: start;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.lz-lm-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.lz-lm-card__img-link {
    display: flex;
    text-decoration: none;
}

.lz-lm-card__img {
    width: 140px;
    height: 120px !important;
    border-radius: 10px !important;
    object-fit: cover;
}

.lz-lm-card__info {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
}

.lz-lm-card__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.lz-lm-card__body {
    flex: 1;
    min-width: 0;
}

.lz-lm-card__title-link {
    text-decoration: none;
    color: inherit;
}

.lz-lm-card__title {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #056839;
    margin: 0 0 8px;
    line-height: 1.2;
}

.lz-lm-card__title-link:hover .lz-lm-card__title {
    opacity: 0.8;
}

.lz-lm-card__address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 16px;
    color: #02311b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.lz-lm-card__pin-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: -2px;
}

.lz-lm-card__book {
    display: inline-block;
    padding: 6px 16px;
    background: #ff6632;
    color: #fff !important;
    border: 2px solid #ff6632;
    border-radius: 50px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.lz-lm-card__book:hover {
    background: #e8571f;
    border-color: #e8571f;
    color: #fff !important;
}

.lz-lm-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lz-lm-card__link-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.2s;
}

.lz-lm-card__link:hover .lz-lm-card__link-icon {
    transform: scale(1.1);
}

/* ── View More button ── */

.lz-lm__view-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    align-self: center;
    padding: 3px 20px 3px 3px;
    background: #056839;
    color: #fff !important;
    border-radius: 50px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s;
}

.lz-lm__view-more:hover {
    background: #044d2a;
    color: #fff !important;
}

.lz-lm__view-more-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* ── No results message ── */

.lz-lm__no-results {
    text-align: center;
    padding: 32px 16px;
    color: #777;
    font-size: 14px;
}

/* ── Loading spinner ── */

.lz-lm__loading {
    text-align: center;
    padding: 32px 16px;
    color: #fff;
    font-size: 14px;
}

/* ── Map InfoWindow (popup card) ── */

.gm-style-iw.gm-style-iw-c {
    padding: 0px;
    max-height: unset !important;
}

.gm-style-iw-d {
    max-height: unset !important;
    overflow: unset !important;
    padding: 10px;
}

.gm-style-iw-chr {
    display: flex;
    overflow: visible;
    position: fixed;
    right: 5px;
    top: 5px;
    border: 2px solid #FF6632;
    background: #ffffff;
    border-radius: 50px;
    color: white !important;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.gm-style-iw-chr button {
    opacity: 1 !important;
}

.gm-style-iw-chr button span {
    background-color: #FF6632;
}

.gm-style-iw-chr:hover button span {
    background-color: #fff;
}

.gm-style-iw-chr:hover {
    background: #FF6632;
}

/* ── Header Search (popup) ── */

.lz-lm-header {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    font-family: "Poppins", sans-serif;
}

.lz-lm-header .lz-lm__search-box {
    width: 100%;
}

.lz-lm-header__popup {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    pointer-events: none;
}

.lz-lm-header__popup--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lz-lm-header__popup .lz-lm-card {
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    border: 1px solid #e8e8e8;
}

.lz-lm-header__popup .lz-lm__loading,
.lz-lm-header__popup .lz-lm__no-results {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    border: 1px solid #e8e8e8;
    color: #777;
}

/* ── Hide Google Maps UI overlays ── */

#lz-lm-map > div > div.gm-style > div:nth-child(14) > div {
    display: none !important;
}
#lz-lm-map > div > div.gm-style > div:nth-child(16) > div {
    display: none !important;
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .lz-lm__body {
        grid-template-columns: 1fr;
    }

    .lz-lm__map {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .lz-lm-card {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .lz-lm-card__img {
        width: 100%;
        height: auto !important;
    }

    .lz-lm-card__title {
        font-size: 18px;
    }

    input.lz-lm__search-input {
        font-size: 13px;
        padding: 10px 16px;
    }

    .lz-lm__search-input::placeholder {
        font-size: 12px;
    }
}
