﻿.footer_one {
    display: none !important;
}

.feat_property.list {
    display: grid;
}

.button-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .button-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

#map {
    height: 100vh;
    width: 100vw;
    background-color: #f0f0f0;
    position: relative;
}

.side-panel {
    position: fixed;
    left: -100%;
    top: 84px;
    width: 100%;
    height: 100vh;
    background-color: white;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

    .side-panel.active {
        left: 0;
    }

.toggle-button {
    position: fixed;
    left: 20px;
    top: 90px;
    z-index: 1001;
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .toggle-button .menu-icon {
        font-size: 24px;
        transition: transform 0.3s ease;
    }

    .toggle-button.active .menu-icon {
        transform: rotate(45deg);
    }

.bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    touch-action: none;
    height: 300px;
}

.bottom-panel-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    cursor: grab;
}

.handle {
    width: 40px;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    margin: 0 auto 10px;
}

.panel-content {
    padding: 20px;
    height: calc(100% - 70px);
    overflow-y: auto;
}

.card-mapa {
    cursor: pointer;
    transition: transform 0.2s;
}

    .card-mapa:hover {
        transform: translateY(-2px);
    }

.back-button {
    background: none;
    border: none;
    color: #666;
    padding: 0 10px;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
}

.detail-view {
    display: none;
    height: 100%;
}

    .detail-view.active {
        display: block;
    }

.cards-view {
    display: block;
}

    .cards-view.hidden {
        display: none;
    }

.header-content {
    display: flex;
    align-items: center;
}

/* Desktop Styles */
@media (min-width: 768px) {
    #map {
        width: calc(100vw - 400px);
    }

    .bottom-panel {
        width: 400px;
        right: 0;
        top: 84px;
        left: auto;
        height: 100vh;
        border-radius: 0;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    .handle {
        display: none;
    }

    .bottom-panel-header {
        cursor: default;
    }

    .panel-content {
        height: calc(100% - 60px);
        width: auto;
    }

    .side-panel {
        width: auto;
    }

    .card-mapa:hover {
        transform: translateX(-2px);
    }
}
