/* ===== Shared Google map panel (used on instrument / technician / product-category listing pages) ===== */

.map-panel {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: calc(100vh - 140px);
}

.map-panel .map-container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
}

.map-panel .map-container > .row {
    margin-left: 0;
    margin-right: 0;
}

.map-panel .map-container .col-12 {
    padding-left: 0;
    padding-right: 0;
}

.map-panel .map-container,
.map-panel .map-container .row,
.map-panel .map-container .col-12 {
    height: 100%;
}

.map-panel .map-container .col-12 {
    display: flex;
    flex-direction: column;
}

#map_wrapper_div {
    flex: 1;
    min-height: 0;
}

#map_tuts {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.map-search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.12);
    margin-bottom: 10px;
}

.map-search .map-search-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
}

.map-search input {
    border: 0;
    outline: 0;
    font-size: 13px;
    min-width: 130px;
    flex: 1;
    color: #1f2937;
}

.map-search button {
    border: 0;
    background: #ee9310;
    color: #ffffff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.map-search .map-search-status {
    font-size: 11px;
    color: #374151;
    padding-top: 3px;
    border-top: 1px solid #eef0f3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Info window card ===== */

.info_content h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #1f2937;
}

.info_content h4 {
    margin: 2px 0;
    font-size: 12px;
    color: #4b5563;
    font-weight: 500;
}

.info_content p {
    margin: 2px 0;
    font-size: 12px;
    color: #374151;
}

.map-login-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 14px;
    background: #ee9310;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.map-login-btn:hover {
    background: #d97f0a;
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .map-panel {
        position: static;
        height: auto;
    }

    .box-body {
        overflow-x: auto;
    }

    .map-panel .map-container,
    .map-panel .map-container .row {
        height: auto;
    }

    #map_wrapper_div {
        height: 420px;
        flex: none;
    }
}