
/* Property autocomplete overflow fix - v48 */

/* Root cause fix: allow overflow on parents of autocomplete */
.card:has(.autocomplete-container) { overflow: visible; }
.form-group:has(.autocomplete-container) { overflow: visible; }

.autocomplete-container {
    position: relative;
    overflow: visible;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: var(--z-tooltip);
    background: var(--card-bg, #1a1a2e);
    border: 1px solid var(--primary-color, #4361ee);
    border-radius: var(--radius-md, 8px);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.autocomplete-item:hover {
    background: rgba(67, 97, 238, 0.2);
}

/* Override overflow for property search card */
.card-overflow-visible {
    overflow: visible;
}
.card-overflow-visible .form-group {
    overflow: visible;
}

/* Section Configuration Styles */
.section-config-list {
    padding: 0;
}

.section-config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.1));
    transition: opacity 0.2s;
}

.section-config-item:last-child {
    border-bottom: none;
}

.section-config-item.disabled {
    opacity: 0.5;
}

.section-config-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.section-config-title {
    font-weight: 500;
    color: var(--color-text, #fff);
}

.section-config-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border, rgba(255,255,255,0.2));
    background: transparent;
    color: var(--color-text, #fff);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--color-primary, #4361ee);
    border-color: var(--color-primary, #4361ee);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.text-muted {
    color: var(--color-text-muted, #888);
    font-size: 14px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.pb-2 {
    padding-bottom: 8px;
}

/* Mobile-first section config - larger touch targets */
.section-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.1));
    min-height: 60px;
}

.section-config-row:last-child {
    border-bottom: none;
}

.section-config-row.disabled {
    opacity: 0.4;
}

.section-config-row .checkbox-label {
    font-size: 17px;
    gap: 14px;
}

.section-config-row .checkbox-custom {
    width: 26px;
    height: 26px;
}

.section-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-qty-controls .qty-value {
    min-width: 36px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
}

.section-qty-controls .btn {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--color-surface-elevated, #2a2a3e);
    border: 1px solid var(--color-border, rgba(255,255,255,0.15));
}

.section-qty-controls .btn:active {
    transform: scale(0.95);
    background: var(--color-primary, #4361ee);
}
