/* Панель действий над виджетом бронирования - ТОЧНО ПО FIGMA Frame 384 */
.action-panel {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
    gap: 69px;
    margin-bottom: 24px;
    padding: 0;
}

.action-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    background: none;
    border: none;
    font-family: 'NT Somic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.625em;
    color: #261C15;
    cursor: pointer;
    padding: 0;
}

/* БЕЗ ХОВЕРОВ - их нет в Figma */

.action-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Точные размеры из Figma */
.action-icon.map-icon {
    width: 26px;
    height: 26px;
}

.action-icon.favorite-icon {
    width: 32px;
    height: 32px;
}

.action-icon.share-icon {
    width: 39px;
    height: 39px;
}

.action-icon svg {
    width: 100%;
    height: 100%;
}

.action-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Модальное окно карты */
.map-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 28, 21, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.map-modal-overlay.active {
    display: flex;
}

.map-modal-content {
    background: #E7E3DA;
    border: 2px solid #261C15;
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    padding: 24px;
    position: relative;
    animation: modalSlideUp 0.3s ease;
}

.map-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #261C15;
    border: none;
    border-radius: 50%;
    color: #E7E3DA;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.map-modal-close:hover {
    background: #9C4124;
    transform: rotate(90deg);
}

.map-modal-header {
    margin-bottom: 16px;
}

.map-modal-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #261C15;
    margin: 0 0 8px 0;
}

.map-modal-address {
    font-family: 'NT Somic', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0;
}

.map-modal-map {
    width: 100%;
    height: 500px;
    border-radius: 6px;
    border: 1px solid #261C15;
}

/* Меню шаринга */
.share-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 28, 21, 0.5);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.share-menu-overlay.active {
    display: flex;
}

.share-menu {
    background: #E7E3DA;
    border: 2px solid #261C15;
    border-radius: 12px;
    padding: 24px;
    min-width: 320px;
    animation: modalSlideUp 0.3s ease;
}

.share-menu-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #261C15;
    margin: 0 0 16px 0;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #261C15;
    border-radius: 8px;
    font-family: 'NT Somic', sans-serif;
    font-size: 16px;
    color: #261C15;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-option:hover {
    background: #261C15;
    color: #E7E3DA;
    transform: translateX(4px);
}

.share-option-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимации */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив для планшетов */
@media (max-width: 1024px) {
    .action-panel {
        gap: 40px;
    }
    
    .action-button {
        font-size: 20px;
    }
    
    .action-icon {
        width: 28px;
        height: 28px;
    }
    
    .map-modal-map {
        height: 400px;
    }
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
    .action-panel {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .action-button {
        font-size: 16px;
        gap: 8px;
    }
    
    .action-icon {
        width: 24px;
        height: 24px;
    }
    
    .map-modal-content {
        padding: 16px;
        width: 95%;
    }
    
    .map-modal-title {
        font-size: 18px;
    }
    
    .map-modal-map {
        height: 300px;
    }
    
    .share-menu {
        width: 90%;
        min-width: auto;
    }
}
