/* Bottom Drawer for map popup */
.map-property-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.map-property-drawer.active {
    pointer-events: auto;
    opacity: 1;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-property-drawer.active .drawer-backdrop {
    opacity: 1;
}

.drawer-content {
    position: relative;
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.map-property-drawer.active .drawer-content {
    transform: translateY(0);
}

.drawer-body {
    padding: 16px;
}

.drawer-flex-container {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.drawer-image-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 130px;
}

.drawer-property-image {
    width: 100%;
    height: 90px;
    object-fit: contain;
    border-radius: 10px;
}

.drawer-content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.drawer-status-badge {
    width: fit-content;
    padding: 6px 12px;
    border-radius: 0px;
    border-bottom-right-radius: 10px;
    font-size: 13px;
    font-weight: 300;
    margin-bottom: 12px;
}

.drawer-status-badge.for-sale {
    background: var(--hoa-beige);
}

.drawer-status-badge.for-rent {
    background: var(--hoa-purple);
    color: white;
}

.drawer-status-badge.sold {
    background: var(--hoa-medium-grey);
}

.drawer-property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1F2937;
    line-height: 1.3;
}

.drawer-property-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.drawer-property-details {
    font-size: 12px;
    color: #4B5563;
}

.drawer-property-details > div {
    margin-bottom: 4px;
}

.drawer-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.drawer-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.drawer-btn-primary {
    background: var(--hoa-beige);
    color: #1F2937;
}

.drawer-btn-primary:active {
    transform: scale(0.98);
}

.drawer-btn-secondary {
    background: white;
    color: #1F2937;
    border: 1px solid #D1D5DB;
}

.drawer-btn-secondary:active {
    transform: scale(0.98);
}

.drawer-btn-purple {
    background: var(--hoa-purple);
    color: white;
}

.drawer-btn-purple:active {
    transform: scale(0.98);
}

.drawer-close-btn {
    margin-left: auto;
    margin-right: 8px;
    top: 20px;
    right: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

@media (min-width: 769px) {
    .map-property-drawer {
        display: none;
    }
}
/* END STYLES FOR Bottom Drawer for map popup */