.osmb-map-wrap {
    position: relative;
    width: 100%;
}

.osmb-map {
    width: 100%;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.osmb-layer-switcher {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.osmb-layer-switcher button {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: background 0.15s;
    white-space: nowrap;
    font-family: inherit;
}

.osmb-layer-switcher button.active {
    background: #e77e22;
    color: #fff;
    text-shadow: none;
    border-radius: 4px;
}

.osmb-layer-switcher button:hover:not(.active) {
    background: rgba(255,255,255,0.15);
}

.osmb-fullscreen-btn a {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    width: 30px;
    height: 30px;
    display: block;
    border-radius: 4px;
    border: 2px solid rgba(0,0,0,0.2);
}

.osmb-fullscreen-btn a.is-fullscreen {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3'/%3E%3C/svg%3E");
}

.osmb-map-wrap.is-fullscreen {
    position: fixed !important;
    top: 0; left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999;
    border-radius: 0;
}

.osmb-map-wrap.is-fullscreen .osmb-map {
    height: 100vh !important;
    border-radius: 0;
}

.osmb-marker-card {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.22);
    width: 200px;
    overflow: hidden;
    pointer-events: all;
    display: none;
    transform: translate(-50%, calc(-100% - 48px));
}

.osmb-marker-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

.osmb-card-close {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
    z-index: 2;
}

.osmb-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.osmb-card-img:hover {
    transform: scale(1.02);
    box-shadow: inset 0 0 0 1px rgba(212, 168, 67, 0.35);
}

.osmb-card-img[src=""] {
    display: none;
}

.osmb-card-label {
    padding: 10px 12px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #222;
    text-align: center;
    line-height: 1.4;
    border-top: 1px solid #f0f0f0;
}

/* Enlarged card image (click thumbnail) */
.osmb-img-lightbox {
    position: absolute;
    inset: 0;
    z-index: 100003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.osmb-img-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.osmb-img-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: zoom-out;
}

.osmb-img-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.osmb-img-lightbox-close:hover {
    transform: scale(1.06);
    background: #fff;
}

.osmb-img-lightbox-frame {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.osmb-img-lightbox-full {
    max-width: min(92vw, 960px);
    max-height: min(86vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.osmb-img-lightbox.is-open .osmb-img-lightbox-full {
    transform: scale(1);
    opacity: 1;
}
