#layout {
    background-color: #e0e0e0;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    height: 80vh !important;
    min-height: 600px;
    max-height: 800px !important;
    position: relative;
}

.layout-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 100% !important;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.layout-panel {
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.layout-map {
    transform: translateX(-100%);
    z-index: 2;
}

.layout-map.active {
    transform: translateX(0);
}

.layout-shops {
    transform: translateX(100%);
    z-index: 1;
}

.layout-shops.active {
    transform: translateX(0);
}

.panel-content {
    flex: 1;
    width: 85%;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-toggle {
    width: 15%;
    min-width: 150px;
    max-width: 200px;
    height: 100%;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    padding: 20px;
    text-align: center;
}

.layout-map .panel-toggle {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.layout-shops .panel-toggle {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-toggle:hover {
    background-color: #444;
}

.toggle-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.toggle-text {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.map-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 8px;
    font-size: 1.2rem;
    color: #777;
    text-align: center;
    padding: 40px;
    min-height: 400px;
    width: 100%;
    margin: auto;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    width: 100%;
    padding: 20px 0;
}

.shop-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.shop-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shop-logo {
    width: 100%;
    height: 120px;
    object-fit: contain;
    padding: 15px;
    background-color: white;
}

.shop-name {
    padding: 12px;
    font-weight: 500;
    text-align: center;
    color: #333;
    width: 100%;
    background-color: #f9f9f9;
}

#contacts {
    margin-top: 0;
    padding-top: 30px;
}

.floor-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.floor-btn {
    padding: 10px 25px;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
}

.floor-btn:hover {
    background-color: #e0e0e0;
}

.floor-btn.active {
    background-color: #333;
    color: white;
    border-color: #222;
}

.floor-map-container {
    position: relative;
    width: 100%;
    height: calc(100% - 80px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floor-map {
    max-width: 100%;
    max-height: 100%;
    display: none;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.floor-map.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1366px) {
    #layout {
        height: 75vh !important;
        min-height: 550px;
        max-height: 700px !important;
    }
}

@media (max-width: 1024px) {
    #layout {
        height: 70vh !important;
        min-height: 500px;
        max-height: 600px !important;
    }
}

@media (max-width: 992px) {
    .panel-toggle {
        min-width: 140px;
        max-width: 180px;
    }

    .toggle-icon {
        font-size: 1.8rem;
    }

    .toggle-text {
        font-size: 1rem;
    }

    .shops-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    #layout {
        height: auto !important;
        min-height: 450px !important;
        max-height: none !important;
    }

    .layout-container {
        height: auto !important;
        min-height: 450px !important;
    }

    .layout-panel {
        position: relative;
        height: auto;
        transform: none;
        display: none;
    }

    .layout-panel.active {
        display: flex;
        flex-direction: column;
    }

    .panel-content {
        width: 100%;
        padding: 20px;
        order: 0;
        min-height: 400px;
    }

    .panel-toggle {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: auto;
        padding: 15px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        order: 1;
    }

    .toggle-icon {
        margin-bottom: 0;
        margin-right: 10px;
    }

    .shops-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }

    .map-placeholder {
        min-height: 350px;
        padding: 20px;
    }

    .floor-selector {
        margin-bottom: 15px;
        gap: 10px;
    }

    .floor-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .floor-map-container {
        height: 350px !important;
    }
}

@media (max-width: 480px) {
    #layout {
        min-height: 400px !important;
    }

    .layout-container {
        min-height: 400px !important;
    }

    .panel-content {
        padding: 15px;
        min-height: 300px;
    }

    .shops-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .shop-logo {
        height: 100px;
    }

    .shop-name {
        padding: 8px;
        font-size: 0.9rem;
    }

    .toggle-icon {
        font-size: 1.5rem;
    }

    .toggle-text {
        font-size: 0.9rem;
    }

    .map-placeholder {
        min-height: 300px;
        padding: 15px;
        font-size: 1rem;
    }

    .floor-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    .floor-map-container {
        height: 300px !important;
    }
}

@media (max-width: 380px) {
    #layout {
        min-height: 350px !important;
    }

    .layout-container {
        min-height: 350px !important;
    }

    .floor-map-container {
        height: 250px !important;
    }
}
