/* drawer.css */
.drawer {
    position: fixed;
    background: white;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Desktop styles */
@media (min-width: 769px) {
    .drawer {
        right: -400px; /* Initial position off-screen */
        top: var(--navbar-height);
        width: 300px;
        height: calc(100vh - var(--navbar-height));
        border-radius: 0;
    }

    .drawer.open {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .property-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .drawer {
        left: 20px;
        right: 20px;
        bottom: -100%;
        width: auto;
        border-radius: 16px 16px 0 0;
        max-height: calc(100vh - var(--navbar-height) - 40px);
    }

    .drawer.open {
        bottom: 20px;
        opacity: 1;
        visibility: visible;
    }

    .property-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px;
    }
}

.drawer-content {
    height: 100%;
    overflow-y: auto;
    align-items: center;
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

.drawer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-purple);
}

.drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.property-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.property-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.875rem;
}

.property-label i {
    color: var(--primary-purple);
    font-size: 20px;
}

.property-value {
    font-size: 1rem;
    font-weight: 500;
    align-items: center;
    color: var(--text-dark);
    padding-left: 28px; /* Align with label text */
}



/* Mobile pull indicator */
@media (max-width: 768px) {
    .drawer-pull {
        width: 40px;
        height: 4px;
        background: #e5e7eb;
        border-radius: 2px;
        margin: 8px auto;
    }
}

.property-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    background: var(--primary-purple);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 28px; /* Align with label text */
}

/* Price value styling */
.property-value.price-value {
    font-size: 1.25rem;
    color: var(--primary-purple);
    font-weight: 600;
}

/* Buy button styles */
.buy-button-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    background: transparent !important;
    padding: 20px 0 0 0 !important;
    box-shadow: none !important;
}

.buy-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-purple);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid var(--primary-purple);
}

.buy-button:hover {
    background: white;
    color: var(--primary-purple);
}

.buy-button i {
    font-size: 20px;
}