/* ═══ CONTACTS MODAL v4 — 4 columns ═══ */
.modal-contacts {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: none;
}
.modal-contacts.active {
    pointer-events: all;
    opacity: 1;
}

.cm-inner {
    background: #faf6f3;
    border-radius: 28px;
    padding: 28px 32px;
    max-width: 1260px;
    width: 100%;
    height: 85vh;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.modal-contacts.active .cm-inner {
    transform: scale(1) translateY(0);
}

.cm-close {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    z-index: 10;
}
.cm-close:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

/* ═══ HEADER ═══ */
.cm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cm-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}
.cm-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #4ade80;
    background: rgba(74,222,128,0.1);
    padding: 5px 12px;
    border-radius: 20px;
}
.cm-status-dot {
    width: 6px; height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: cmPulse 2s ease infinite;
}
@keyframes cmPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ═══ 4 COLUMNS GRID ═══ */
.cm-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    height: calc(100% - 70px);
    overflow: hidden;
}

.cm-col-title {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* ═══ INFO ROWS ═══ */
.cm-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all .2s;
}
.cm-info-row:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.cm-icon {
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232,135,154,0.1);
    border-radius: 10px;
    flex-shrink: 0;
    color: #e8879a;
}
.cm-metro {
    background: #0078BE;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 6px;
}

.cm-label {
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 1px;
}
.cm-value {
    font-size: 12px;
    font-weight: 600;
    color: #2d2d2d;
    display: block;
}
.cm-link {
    color: #e8879a;
    text-decoration: none;
}
.cm-link:hover { text-decoration: underline; }
.cm-muted {
    font-weight: 400;
    color: #999;
    font-size: 10px;
}

/* ═══ SOCIALS ═══ */
.cm-socials {
    display: flex;
    gap: 6px;
    margin: 12px 0;
}
.cm-soc {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all .2s;
}
.cm-soc:hover { transform: translateY(-3px); }
.cm-soc-tg { color: #0088cc; }
.cm-soc-tg:hover { background: rgba(0,136,204,0.1); box-shadow: 0 6px 20px rgba(0,136,204,0.2); }
.cm-soc-ig { color: #E4405F; }
.cm-soc-ig:hover { background: rgba(228,64,95,0.1); box-shadow: 0 6px 20px rgba(228,64,95,0.2); }
.cm-soc-wa { color: #25D366; }
.cm-soc-wa:hover { background: rgba(37,211,102,0.1); box-shadow: 0 6px 20px rgba(37,211,102,0.2); }
.cm-soc-vk { color: #4680C2; }
.cm-soc-vk:hover { background: rgba(70,128,194,0.1); box-shadow: 0 6px 20px rgba(70,128,194,0.2); }

/* ═══ BUTTONS ═══ */
.cm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    width: 100%;
    text-align: center;
}
.cm-btn-call {
    background: #4ade80;
    color: #fff;
}
.cm-btn-call:hover {
    background: #3cc770;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,222,128,0.3);
}
.cm-btn-map {
    background: #2d2d2d;
    color: #fff;
}
.cm-btn-map:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ═══ ROUTE STEPS ═══ */
.cm-route {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}
.cm-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: -1px;
}
.cm-step:first-child { border-radius: 12px 12px 0 0; }
.cm-step:last-child { border-radius: 0 0 12px 12px; }

.cm-step-num {
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232,135,154,0.1);
    color: #e8879a;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}
.cm-step-start .cm-step-num {
    background: #0078BE;
    color: #fff;
}
.cm-step-end .cm-step-num {
    background: #4ade80;
    color: #fff;
}
.cm-step-content b {
    font-size: 11px;
    font-weight: 700;
    color: #2d2d2d;
    display: block;
    margin-bottom: 1px;
}
.cm-step-content span {
    font-size: 9px;
    color: #888;
}

/* ═══ CENTER COLUMN — PHONE ═══ */
.cm-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cm-phone {
    width: 180px;
    height: 370px;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 7px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3), inset 0 0 0 2px #333;
}
.cm-phone-notch {
    width: 65px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.cm-phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
}
.cm-phone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cm-phone-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity .3s;
}
.cm-phone-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.cm-phone-overlay span {
    color: #fff;
    font-size: 11px;
    font-weight: 500;
}
.cm-play {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cm-play:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}
.cm-phone-caption {
    margin-top: 10px;
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

/* ═══ COL 4 — MAP COLUMN ═══ */
.cm-map-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cm-map-wrap {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all .3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.cm-map-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.cm-map-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.cm-map-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: none;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ═══ AWARD ═══ */
.cm-award {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(218,165,32,0.2);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.cm-award::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
}
.cm-award-icon {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: cmAwardGlow 3s ease infinite;
}
@keyframes cmAwardGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(255,215,0,0.3)); }
    50% { filter: drop-shadow(0 0 12px rgba(255,215,0,0.6)); }
}
.cm-award-text {
    position: relative;
    z-index: 1;
}
.cm-award-title {
    font-size: 13px;
    font-weight: 800;
    color: #92400e;
    display: block;
}
.cm-award-sub {
    font-size: 9px;
    color: #b45309;
    display: block;
    margin-top: 2px;
}

/* ═══ ENTRANCE PHOTOS ═══ */
.cm-entrance-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.cm-entrance-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all .3s;
}
.cm-entrance-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.cm-entrance-thumb img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}
.cm-entrance-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 16px 8px 6px;
    text-align: center;
}

/* ═══ LIGHTBOX ═══ */
.cm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    cursor: pointer;
}
.cm-lightbox.active {
    opacity: 1;
    pointer-events: all;
}
.cm-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cm-lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.cm-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* ═══ SCROLLBAR ═══ */
.cm-inner::-webkit-scrollbar { width: 4px; }
.cm-inner::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
    .cm-grid {
        grid-template-columns: 1fr auto 1fr;
    }
    .cm-map-col {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
        align-items: start;
    }
    .cm-map-col .cm-col-title {
        grid-column: 3;
    }
    .cm-entrance-photos {
        grid-column: 3;
    }
}

@media (max-width: 900px) {
    .cm-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cm-center { order: -1; }
    .cm-phone {
        width: 160px;
        height: 320px;
    }
    .cm-map-col {
        grid-template-columns: 1fr;
    }
    .cm-map-col .cm-col-title,
    .cm-entrance-photos {
        grid-column: auto;
    }
}

/* ═══ ROUTE HOVER DETAILS ═══ */
.cm-route-hint {
    font-size: 9px;
    font-weight: 400;
    color: #bbb;
    text-transform: none;
    letter-spacing: 0;
}

.cm-step-short {
    font-size: 9px;
    color: #999;
    display: block;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-step-detail {
    font-size: 10px;
    color: #555;
    line-height: 1.4;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .2s ease, padding .2s ease;
    padding: 0;
}

.cm-step:hover .cm-step-detail {
    max-height: 100px;
    opacity: 1;
    padding-top: 3px;
}

/* Prevent parent resize on hover */
.cm-route {
    min-height: 0;
}
.cm-right {
    padding-right: 4px;
}

.cm-step:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    z-index: 2;
    position: relative;
}

.cm-step {
    transition: all .2s ease;
    cursor: default;
}

/* ═══ FIXED COLUMNS — NO JUMPING ═══ */
.cm-left,
.cm-right,
.cm-map-col {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.08) transparent;
}
.cm-left::-webkit-scrollbar,
.cm-right::-webkit-scrollbar,
.cm-map-col::-webkit-scrollbar {
    width: 3px;
}
.cm-left::-webkit-scrollbar-thumb,
.cm-right::-webkit-scrollbar-thumb,
.cm-map-col::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.08);
    border-radius: 3px;
}

.cm-center {
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
}
