html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    font-family: Arial, sans-serif;
}

body {
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

/* =========================
   МАРКЕРЫ БИЗНЕСОВ
   ========================= */

.business-marker {
    width: 14px;
    height: 14px;
    background: #ffb300;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,179,0,0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.business-marker:hover {
    box-shadow: 0 0 18px rgba(255,179,0,1);
}

.leaflet-tooltip {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .leaflet-tooltip {
        font-size: 15px;
        padding: 10px 14px;
    }
}

.leaflet-marker-icon {
    transition: filter 0.2s ease;
}

.leaflet-marker-icon:hover {
    filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.9));
    z-index: 1000;
}

@media (hover: none) {
    .leaflet-marker-icon:hover {
        filter: none;
    }
}

.leaflet-bar button:hover {
    background: #222;
}

/* =========================
   COPY BUTTON
   ========================= */

.copy-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}

.copy-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.copy-link:hover {
    background: rgba(120, 180, 255, 0.25);
}

.copy-link[data-copied="1"] {
    background: rgba(80, 200, 120, 0.35);
    border-color: rgba(80, 200, 120, 0.9);
    color: #0b2f1a;
}

.copy-link[data-copied="1"]:hover {
    background: rgba(80, 200, 120, 0.55);
    color: #071f12;
}

.copy-link:active {
    transform: scale(0.96);
}

/* =========================
   ЛИНЕЙКА
   ========================= */

.ruler-btn.active {
    background: #7ab6ff !important;
    color: #000;
}

.ruler-point {
    stroke: #ffcc00;
    fill: #ffcc00;
    fill-opacity: 1;
}

.ruler-distance {
    color: #ffcc00;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
}

/* =========================
   КУРСОРЫ
   ========================= */

#map {
    cursor: default;
}

#map.leaflet-grabbing {
    cursor: grabbing;
}

#map.ruler-mode,
#map.ruler-mode * {
    cursor: crosshair;
}

/* =========================
   INFO PANEL (карточка)
   ========================= */

.info-panel {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 420px;
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 36px);
    overflow: hidden;

    background: rgba(35, 42, 52, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    color: #fff;
    z-index: 2000;

    transform: translateY(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.info-panel:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.info-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.info-panel__title {
    font-size: 16px;
    font-weight: 700;
}

.info-panel__close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

.info-panel__close:hover {
    background: rgba(255, 255, 255, 0.10);
}

/* 🔑 УБРАН МИКРОСКРОЛЛ */
.info-panel__body {
    padding: 12px 14px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 36px - 54px);
    box-sizing: border-box;
}

/* 🔑 КАРТИНКА — БЕЗ ВЫЛЕТОВ ЗА КОНТЕЙНЕР */
.info-panel__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
}

.info-panel__meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.info-panel__desc {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.45;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .info-panel {
        top: 10px;
        right: 10px;
        width: calc(100vw - 20px);
    }
}

/* =========================
   FULLSCREEN IMAGE
   ========================= */

.image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.image-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.image-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    cursor: zoom-out;
}

/* =========================
   GALLERY
   ========================= */

.info-gallery {
    position: relative;
    margin-bottom: 10px;
    pointer-events: none;
}

.info-gallery > * {
    pointer-events: auto;
}

.info-gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.info-gallery__btn--left { left: 10px; }
.info-gallery__btn--right { right: 10px; }

.info-gallery__counter {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    z-index: 2;
}

/* =========================
   RATING (Wowhead-style)
   ========================= */

.info-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 10px;
    user-select: none;
}

.rating-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .1s ease;
}

.rating-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.rating-btn:active {
    transform: scale(0.94);
}

.rating-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.rating-value {
    min-width: 34px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #ffcc00;
}

.rating-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;

    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rating-hint img {
    width: 36px;
    height: 36px;
    opacity: 0.85;
}

