* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.btn-primary {
    background-color: rgb(37 162 198) !important ;
    border:1px solid rgb(37 162 198) !important;
}

body.embed-mode {
    background: transparent;
}

.text-bg-primary {
    background-color:rgb(37 162 198) !important ;
}

.map-section {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

.container,
.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.section-box {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 0;
    background: #fff;
}

.map-header {
    padding: 18px 20px;
    border-bottom: 1px solid #edf1f5;
    background: linear-gradient(90deg, #ffffff, #f8fbff);
}

.map-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2d3d;
}

.map-header p {
    margin: 6px 0 0;
    color: #6c7a89;
    font-size: .92rem;
}

.map-content {
    display: flex;
    width: 100%;
    height: calc(100vh - 130px);
}

.map-col {
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar-col {
    width: 380px;
    max-width: 100%;
    flex: 0 0 380px;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.address-panel {
    height: 100%;
    overflow-y: auto;
    background: #fcfdff;
    padding: 20px;
    border-left: 1px solid #edf1f5;
}

.address-panel::-webkit-scrollbar {
    width: 8px;
}

.address-panel::-webkit-scrollbar-thumb {
    background: #c9d4e2;
    border-radius: 20px;
}

.address-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    padding: 16px 16px 14px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}

.address-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(13,110,253,.06), transparent);
    opacity: 0;
    transition: .35s ease;
}

.address-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(13,110,253,.10);
    border-color: #cfe2ff;
}

.address-card:hover::before {
    opacity: 1;
}

.address-card.active {
    border-color: rgb(37 162 198) !important;
    box-shadow: 0 10px 25px rgba(13,110,253,.16);
    background: #f8fbff;
}

.address-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(37 162 198), #4ea1ff);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 10px 18px rgba(13,110,253,.20);
}

.address-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid #eef2f7;
}

.address-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2d3d;
    margin-bottom: 4px;
}

.address-text {
    font-size: .92rem;
    color: #6b7785;
    margin-bottom: 8px;
    line-height: 1.5;
}

.address-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: #5d6b79;
    align-items: center;
}

.address-meta span {
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 999px;
}

.marker-share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.marker-share-buttons button, .marker-share-buttons a {
    z-index: 999999;
}

.marker-share-buttons .btn {
    border-radius: 10px;
}

.leaflet-popup-content {
    margin: 10px;
    min-width: 220px;
}

.empty-address {
    padding: 18px;
    border: 1px dashed #ced8e3;
    border-radius: 16px;
    text-align: center;
    color: #718096;
    background: #fff;
}

.copy-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 991.98px) {

    .map-share-box {
        margin: 0px 20px 30px;
    }
    
    html, body {
        overflow: auto;
    }

    .map-section {
        height: auto;
    }

    .section-box {
        height: auto;
    }

    .map-content {
        display: block;
        height: auto;
    }

    .map-col,
    .sidebar-col {
        width: 100%;
        flex: unset;
    }

    #map {
        height: 420px;
    }

    .address-panel {
        height: auto;
        max-height: none;
        border-left: 0;
        border-top: 1px solid #edf1f5;
    }
}