.hotpoint-map-modal:not(.active),
.hotpoint-map-detail-overlay:not(.active) {
    display: none;
}

.hotpoint-map-open-btn {
    background: white;
    border: 1px solid #d4d4d4;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    background: #ffffff;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.hotpoint-map-open-btn:hover {
    background: #f0f0f0;
    border-color: #b0b0b0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.04);
}

/* ---------- ПОЛНОЭКРАННОЕ МОДАЛЬНОЕ ОКНО (КАРТА) ---------- */
.hotpoint-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hotpoint-map-modal.active {
    opacity: 1;
    visibility: visible;
}

.hotpoint-map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #eaeaea;
    background: white;
    flex-shrink: 0;
}

.hotpoint-map-modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.hotpoint-map-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #5a5a5a;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
    line-height: 1;
}

.hotpoint-map-close-btn:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

.hotpoint-map-container {
    flex: 1;
    width: 100%;
    background: #e9e9e9;
}

/* Встроенный контейнер для примера */
.hotpoint-map-inline-demo {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #e9e9e9;
    margin-top: 10px;
}

/* ---------- МОДАЛЬНОЕ ОКНО ДЕТАЛЕЙ ---------- */
.hotpoint-map-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.hotpoint-map-detail-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hotpoint-map-detail-card {
    background: white;
    max-width: 420px;
    width: calc(100% - 40px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateY(10px);
    transition: transform 0.2s ease;
}

.hotpoint-map-detail-overlay.active .hotpoint-map-detail-card {
    transform: translateY(0);
}

.hotpoint-map-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #777;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s;
}

.hotpoint-map-detail-close:hover {
    background: #f3f3f3;
    color: #1a1a1a;
}

.hotpoint-map-detail-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    background: #f0f0f0;
}

.hotpoint-map-detail-title {
    font-size: 22px;
    font-weight: 550;
    margin-top: 4px;
    letter-spacing: -0.3px;
}

.hotpoint-map-detail-text {
    color: #3d3d3d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 4px;
}

.hotpoint-map-detail-file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
    width: fit-content;
    border: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.hotpoint-map-detail-file-link:hover {
    background: #ebebeb;
}

.hotpoint-map-section-title {
    font-size: 14px;
    color: #888;
    font-weight: 400;
    margin-bottom: 5px;
    text-align: center;
}

@media (max-width: 480px) {
    .hotpoint-map-detail-card {
    padding: 20px;
    }
    .hotpoint-map-detail-image {
    height: 150px;
    }
}
