/**
 * Property Analyzer Module CSS
 * One true row: [Address input grows...] [Analyze button]
 * Optional filter row below when enabled.
 */
.pa-mod-wrap, .pa-mod-wrap * { box-sizing: border-box; }
.pa-mod-wrap { width: 100%; }

.pa-mod-heading    { font-weight: 700; line-height: 1.2; margin: 0 0 10px; }
.pa-mod-subheading { font-weight: 400; line-height: 1.4; margin: 0 0 14px; }

/* ── Main row: input + button ─────────────────────────────────────────── */
.pa-mod-row {
    display:     flex;
    flex-wrap:   nowrap;   /* NEVER stack */
    align-items: stretch;
    gap:         6px;
    width:       100%;
}

/* Input wrapper — grows to fill all available space, anchors autocomplete */
.pa-mod-input-wrap {
    flex:     1 1 0;
    min-width: 0;
    position: relative;  /* autocomplete dropdown is positioned here */
}

.pa-mod-input {
    display:    block;
    width:      100%;
    min-width:  0;
    outline:    none;
    font-family: inherit;
    font-size:  max(16px, 1rem);  /* 16px minimum prevents iOS zoom */
}
.pa-mod-input:focus { outline: none; }

/* Button — fixed size, never shrinks */
.pa-mod-btn {
    flex:        0 0 auto;
    white-space: nowrap;
    cursor:      pointer;
    font-family: inherit;
    font-weight: 700;
    transition:  background .15s, transform .1s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border: none;
}
.pa-mod-btn:active { transform: scale(.97); }

/* ── Optional filter row ───────────────────────────────────────────────── */
.pa-mod-filters-row {
    display:     flex;
    flex-wrap:   nowrap;
    gap:         6px;
    margin-top:  6px;
    align-items: stretch;
}
.pa-mod-ctrl {
    flex:        1 1 0;
    min-width:   0;
    font-family: inherit;
    font-size:   max(16px, .9rem);
    cursor:      pointer;
    outline:     none;
}
.pa-mod-sqft {
    flex:        0 0 72px !important;
    text-align:  center;
}
.pa-mod-sqft::placeholder { opacity: .5; }

/* ── Autocomplete dropdown ─────────────────────────────────────────────── */
.pa-mod-ac-list {
    position:   absolute;
    top:        calc(100% + 2px);
    left:       0;
    right:      0;
    z-index:    9999;
    background: #fff;
    border:     2px solid #2563eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    max-height: 220px;
    overflow-y: auto;
}

/* ── Error message ─────────────────────────────────────────────────────── */
.pa-mod-error { margin-top: 6px; font-size: .8rem; color: #ef4444; }

/* ── Style variants ────────────────────────────────────────────────────── */
.pa-mod-style-hero { text-align: center; }
.pa-mod-style-hero .pa-mod-row         { max-width: 640px; margin: 0 auto; }
.pa-mod-style-hero .pa-mod-filters-row { max-width: 640px; margin: 6px auto 0; }

.pa-mod-style-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ── Mobile ────────────────────────────────────────────────────────────── */
/* Row always stays one line. On tiny screens, sqft hides to save space. */
@media (max-width: 380px) {
    .pa-mod-sqft { display: none !important; }
}
@media (max-width: 480px) {
    .pa-mod-style-hero .pa-mod-row,
    .pa-mod-style-hero .pa-mod-filters-row { max-width: 100%; }
}
