/* Main styles */
.hab-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hab-search-form {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hab-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.hab-search-field {
    flex: 1;
    min-width: 200px;
}

.hab-search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.hab-search-field input,
.hab-search-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.hab-search-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.hab-search-button:hover {
    background: #005a87;
}

/* Apartments grid */
.hab-apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.hab-apartment-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hab-apartment-card:hover {
    transform: translateY(-5px);
}

.hab-apartment-image {
    height: 200px;
    overflow: hidden;
}

.hab-apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hab-apartment-content {
    padding: 20px;
}

.hab-apartment-title {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.hab-apartment-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
}

.hab-apartment-price {
    font-size: 24px;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 15px;
}

.hab-book-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.hab-book-button:hover {
    background: #005a87;
}

/* Booking form */
.hab-booking-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hab-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.hab-form-group {
    flex: 1;
    min-width: 250px;
}

.hab-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.hab-form-group input,
.hab-form-group select,
.hab-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.hab-price-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.hab-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.hab-price-total {
    font-size: 24px;
    font-weight: 600;
    color: #0073aa;
    border-bottom: none;
}

.hab-refund-policy {
    background: #fff8e1;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 14px;
}

.hab-payment-options {
    margin: 30px 0;
}

.hab-payment-method {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.hab-payment-method.selected {
    border-color: #0073aa;
    background: #f0f8ff;
}

.hab-payment-method input {
    margin-right: 10px;
}

.hab-payment-icon {
    margin-right: 10px;
    font-size: 24px;
}

.hab-deposit-notice {
    background: #fff3cd;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #ffc107;
}

/* User dashboard */
.hab-user-bookings {
    margin-top: 30px;
}

.hab-booking-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hab-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.hab-booking-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.hab-status-pending { background: #fff3cd; color: #856404; }
.hab-status-confirmed { background: #d4edda; color: #155724; }
.hab-status-cancelled { background: #f8d7da; color: #721c24; }
.hab-status-completed { background: #d1ecf1; color: #0c5460; }

.hab-booking-dates {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.hab-booking-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.hab-action-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.hab-action-update { background: #17a2b8; color: white; }
.hab-action-cancel { background: #dc3545; color: white; }
.hab-action-pay { background: #28a745; color: white; }

/* Success/error messages */
.hab-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.hab-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .hab-search-row {
        flex-direction: column;
    }
    
    .hab-search-field {
        width: 100%;
    }
    
    .hab-apartments-grid {
        grid-template-columns: 1fr;
    }
    
    .hab-booking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hab-booking-dates {
        flex-direction: column;
        gap: 10px;
    }
    
    .hab-booking-actions {
        flex-wrap: wrap;
    }
}