/* --- ОСНОВНЫЕ СТИЛИ --- */
.detre-final-wrapper { background: transparent; color: #fff; width: 100%; padding: 0; overflow: hidden; font-family: 'Montserrat', sans-serif; }
.detre-final-wrapper * { box-sizing: border-box; }
.detre-final-wrapper a { text-decoration: none; color: inherit; }

.detre-flex-container { max-width: 1570px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; }

@font-face { font-family: 'icomoon'; src: url('fonts/icomoon.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: block; }

.detre-col-text { width: 14.0625vw; min-width: 250px; display: flex; flex-direction: column; }
.detre-col-gallery { width: 24.5vw; }
.detre-col-map { width: 37.6042vw; }

.detre-img-grid, .detre-map-frame { height: 25.9vw; width: 100%; position: relative; border-radius: 12px; overflow: hidden; }

.detre-title-block { font-size: 38px; line-height: 1.1; margin-bottom: 30px; font-weight: 400; color: #fff; }
.detre-contacts-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }

.detre-link { display: flex; align-items: flex-start; color: #bcc6cc; transition: 0.3s; font-size: 14px; line-height: 1.4; }
.detre-link:hover { color: #fff; }
.detre-link::before { font-family: 'icomoon' !important; color: #E3D4AB; font-size: 20px; margin-right: 12px; flex-shrink: 0; line-height: 1; }
.icon-addr::before { content: '\eb7b'; }
.icon-time::before { content: '\eb29'; }
.icon-phone::before { content: '\eb0f'; }
.icon-mail::before { content: '\eb06'; }

.phone-link-big { font-size: 22px !important; color: #fff !important; align-items: center !important; }
.phone-link-big::before { font-size: 24px; margin-top: 2px; }

.detre-label { font-size: 14px; margin-bottom: 12px; color: #fff; }
.detre-soc-btns { display: flex; gap: 12px; margin-bottom: 25px; }
.soc-icon { display: flex !important; justify-content: center; align-items: center; width: 44px !important; height: 44px !important; border-radius: 50%; border: 1px solid #E3D4AB; color: #E3D4AB !important; font-size: 20px; transition: 0.3s; }
.soc-icon:hover { background: #E3D4AB; color: #000 !important; }
.tg-icon::before { content: '\e9e4'; font-family: 'icomoon' !important; }
.wa-icon::before { content: '\f232'; font-family: 'icomoon' !important; }

.detre-dash-link { color: #E3D4AB; position: relative; padding-bottom: 4px; font-size: 14px; display: inline-block; }
.detre-dash-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 70%; height: 1px; border-bottom: 1px dashed #E3D4AB; transition: 0.3s; }
.detre-dash-link:hover::after { width: 100%; }

.detre-h3 { font-size: 22px; font-weight: 600; margin-bottom: 20px; color: #fff; }
.detre-img-grid { display: flex; justify-content: space-between; }
.detre-big-img { width: 68%; height: 100%; }
.detre-big-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.detre-small-col { width: 30%; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.detre-small-img { height: 48%; overflow: hidden; border-radius: 12px; }
.detre-small-img img { width: 100%; height: 100%; object-fit: cover; }

.map-head-flex { display: flex; justify-content: space-between; align-items: baseline; }
.link-mob { display: none; }

/* --- ЛОГИКА КАРТЫ (ДЕСКТОП) --- */
.detre-map-frame iframe { 
    display: block; border: none; width: 100%; height: 100%;
    filter: brightness(0.7) grayscale(1) contrast(1.7); /* Фильтр из вашего примера */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Защита от зума на ПК до ховера */
}

/* Ховер на ПК: Карта оживает */
.detre-map-frame:hover iframe {
    filter: brightness(1) grayscale(0) contrast(1);
    pointer-events: auto;
}

.detre-map-overlay { display: none; } /* Скрыто на ПК */

/* --- АДАПТИВ --- */
@media (max-width: 1000px) {
    .detre-flex-container { flex-wrap: wrap; gap: 30px; padding: 0 20px; }
    .detre-col-text { width: 100%; text-align: center; }
    .detre-contacts-list { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 40px; }
    .detre-col-gallery, .detre-col-map { width: 48%; }
    .detre-img-grid, .detre-map-frame { height: 400px; }
}

@media (max-width: 768px) {
    .detre-flex-container { flex-direction: column; padding: 0 15px; }
    .detre-col-gallery, .detre-col-map { width: 100%; margin-bottom: 30px; }
    
    /* Восстановленная сетка контактов 2х2 */
    .detre-contacts-list { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 20px 30px; margin-bottom: 30px; width: 100%; }
    .detre-col-text { align-items: center; }

    /* ФИКС ТЕЛЕФОНА (без переносов) */
    .phone-link-big { 
        font-size: 18px !important; 
        white-space: nowrap !important; 
        align-items: center !important; 
    }
    .phone-link-big::before { font-size: 20px; }

    .detre-img-grid, .detre-map-frame { height: 280px; }
    .link-desk { display: none; }
    .link-mob { display: block; margin: 15px auto 0 auto; width: fit-content; text-align: center; }

    /* ЛОГИКА КАРТЫ (МОБАЙЛ) */
    .detre-map-overlay {
        display: flex; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(2px); z-index: 10;
        align-items: center; justify-content: center; transition: opacity 0.5s ease;
    }

    /* Состояние Активации на Мобайле */
    .detre-map-frame.is-active iframe {
        filter: brightness(1) grayscale(0) contrast(1);
        pointer-events: auto;
    }
    .detre-map-frame.is-active .detre-map-overlay {
        opacity: 0; visibility: hidden; pointer-events: none;
    }

    /* Кнопка с отпечатком */
    .detre-map-btn {
        background: #111; border: 2px solid #E3D4AB; border-radius: 50px; padding: 14px 28px;
        display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden;
    }
    .detre-btn-text { color: #fff; font-size: 13px; font-weight: 600; }
    .detre-btn-icon { width: 24px; height: 24px; filter: brightness(0) invert(89%) sepia(21%) saturate(518%) hue-rotate(3deg); }
    .detre-map-btn::after {
        content: ""; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
        transform: skewX(-20deg); animation: detre-glint 4s infinite;
    }
}
@keyframes detre-glint { 0% { left: -150%; } 30% { left: 150%; } 100% { left: 150%; } }