/* ============================================================
   PropMatch — Buyer UI  (CarWale-inspired design system)
   Font: Sora (headings) + DM Sans (body)
   Color: Deep Teal #0e4f6e brand, White bg, Coral accent
============================================================ */

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1a2433;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; cursor: pointer; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input, textarea { font-family: inherit; }
img { display: block; width: 100%; }

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
    --brand:       #0e6e9e;       /* main teal */
    --brand-dark:  #094e72;
    --brand-light: #e8f4fb;
    --accent:      #e85d3f;       /* coral accent (CarWale red equivalent) */
    --accent-light:#fff0ec;
    --green:       #16a34a;
    --green-light: #dcfce7;
    --navy:        #0f1c2e;
    --gray-900:    #111827;
    --gray-700:    #374151;
    --gray-500:    #6b7280;
    --gray-300:    #d1d5db;
    --gray-100:    #f3f4f6;
    --gray-50:     #f9fafb;
    --border:      #e5e7eb;
    --white:       #ffffff;
    --shadow-xs:   0 1px 2px rgba(0,0,0,.06);
    --shadow-sm:   0 1px 4px rgba(0,0,0,.08);
    --shadow-md:   0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:   0 12px 40px rgba(0,0,0,.14);
    --r-sm:        6px;
    --r-md:        10px;
    --r-lg:        16px;
}

/* ── HEADER ────────────────────────────────────────────────── */
.pw-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.pw-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.pw-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.pw-back-arrow {
    color: var(--gray-500);
    font-size: 13px;
    transition: color .2s;
}
.pw-back-arrow:hover { color: var(--brand); }

.pw-logo {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    cursor: pointer;
    letter-spacing: -0.5px;
}
.pw-logo span { color: var(--brand); }

/* NAV */
.pw-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.pw-nav-link {
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--gray-500);
    padding: 0 18px;
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}
.pw-nav-link:hover { color: var(--brand); }
.pw-nav-active { color: var(--brand) !important; border-bottom-color: var(--brand) !important; }

/* AUTH */
.pw-auth { margin-left: auto; flex-shrink: 0; }

.pw-login-btn {
    background: var(--brand);
    color: var(--white);
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, transform .15s;
}
.pw-login-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* Logged-in nav user widget (injected by JS) */
.pw-user-widget {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── HERO ──────────────────────────────────────────────────── */
.pw-hero {
    margin-top: 60px;
    background: linear-gradient(135deg, #0a3d58 0%, #0e6e9e 50%, #1a9fcf 100%);
    position: relative;
    padding: 72px 24px 80px;
    overflow: hidden;
}

.pw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 80% 50%, rgba(255,255,255,.06) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 10% 80%, rgba(14,110,158,.4) 0%, transparent 60%);
    pointer-events: none;
}

.pw-hero-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.pw-hero-content {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.pw-hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 10px;
    line-height: 1.15;
}

.pw-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    margin-bottom: 28px;
}

/* SEARCH TABS (Buy / Rent / New / Commercial) */
.pw-search-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
}

.pw-stab {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.1);
    padding: 10px 22px;
    border: 1px solid rgba(255,255,255,.2);
    border-bottom: none;
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    margin-right: 3px;
    transition: background .2s, color .2s;
    letter-spacing: .04em;
}
.pw-stab:hover { background: rgba(255,255,255,.18); color: #fff; }
.pw-stab-active { background: var(--white); color: var(--brand); border-color: var(--white); }

/* SEARCH BOX */
.pw-search-box {
    background: var(--white);
    border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
    display: flex;
    align-items: center;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
    overflow: hidden;
    margin-bottom: 16px;
}

.pw-search-city {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    color: var(--gray-500);
    font-size: 14px;
}

.pw-city-select {
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    padding: 18px 4px;
    background: transparent;
    cursor: pointer;
    min-width: 140px;
}

.pw-sdivider {
    width: 1px;
    height: 32px;
    background: var(--border);
    flex-shrink: 0;
}

.pw-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    color: var(--gray-400);
}

.pw-sinput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--gray-900);
    padding: 18px 0;
    background: transparent;
}
.pw-sinput::placeholder { color: var(--gray-500); }

.pw-search-btn {
    background: var(--accent);
    color: var(--white);
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 18px 36px;
    transition: background .2s;
    letter-spacing: .04em;
    flex-shrink: 0;
}
.pw-search-btn:hover { background: #c94a2e; }

/* QUICK FILTER PILLS */
.pw-quick-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.pw-qf-label {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    font-weight: 600;
}

.pw-qf-pill {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    padding: 5px 14px;
    border-radius: 99px;
    transition: background .2s, color .2s;
}
.pw-qf-pill:hover { background: rgba(255,255,255,.3); color: #fff; }

/* ── SHARED SECTION STYLES ─────────────────────────────────── */
.pw-section { padding: 52px 0; background: var(--white); }
.pw-section-gray { background: #f4f7fa; }

.pw-section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.pw-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pw-section-title {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.3px;
    margin-bottom: 20px;
}
.pw-section-head .pw-section-title { margin-bottom: 0; }

/* ── BUDGET TABS ────────────────────────────────────────────── */
.pw-budget-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.pw-btab {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    padding: 10px 20px;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    letter-spacing: .03em;
    transition: color .2s, border-color .2s;
}
.pw-btab:hover { color: var(--brand); }
.pw-btab-active { color: var(--brand); border-bottom-color: var(--brand); }

.pw-budget-subtabs {
    display: flex;
    gap: 10px;
    padding: 14px 0;
    margin-bottom: 20px;
}

.pw-bsubtab {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 99px;
    transition: all .2s;
}
.pw-bsubtab:hover { border-color: var(--brand); color: var(--brand); }
.pw-bsubtab-active { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }

/* BUDGET GRID */
.pw-budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.pw-bc {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .25s, transform .25s;
}
.pw-bc:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.pw-bc-img {
    position: relative;
    height: 130px;
    overflow: hidden;
    background: var(--gray-100);
}
.pw-bc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pw-bc:hover .pw-bc-img img { transform: scale(1.06); }

.pw-bc-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: .06em;
}

.pw-bc-body { padding: 12px 14px 14px; }
.pw-bc-type { font-size: 10px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.pw-bc-body h4 { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.pw-bc-loc { font-size: 11px; color: var(--gray-500); margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.pw-bc-loc i { color: var(--accent); }
.pw-bc-price { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.pw-bc-link { font-size: 11px; font-weight: 600; color: var(--brand); }
.pw-bc-link:hover { text-decoration: underline; }

.pw-bc-viewall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--brand-light);
    border-color: rgba(14,110,158,.25);
    min-height: 192px;
    color: var(--brand);
}
.pw-bc-viewall i { font-size: 28px; }
.pw-bc-viewall p { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.5; }

/* ── TRENDING STRIP ─────────────────────────────────────────── */
.pw-trending-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.pw-trending-strip::-webkit-scrollbar { display: none; }

.pw-trending-card {
    flex-shrink: 0;
    width: 120px;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--white);
    transition: box-shadow .2s, transform .2s;
    text-align: center;
}
.pw-trending-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pw-trending-card img { height: 80px; object-fit: cover; }
.pw-trending-card p { font-size: 12px; font-weight: 600; padding: 8px 6px; color: var(--gray-700); }

.pw-trending-explore {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--brand-light);
    border-color: rgba(14,110,158,.2);
    color: var(--brand);
    min-height: 110px;
}
.pw-trending-explore i { font-size: 22px; }
.pw-trending-explore p { font-size: 12px; font-weight: 700; padding: 0 6px; }

/* ── FILTER CHOICE GRID ─────────────────────────────────────── */
.pw-filter-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.pw-fcg-col h4 {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-light);
}

.pw-fcg-links { display: flex; flex-direction: column; gap: 8px; }
.pw-fcg-links a {
    font-size: 13px;
    color: var(--brand);
    font-weight: 500;
    cursor: pointer;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pw-fcg-links a::before { content: '›'; font-size: 14px; color: var(--brand); }
.pw-fcg-links a:hover { color: var(--accent); }

/* ── CITY GRID ──────────────────────────────────────────────── */
.pw-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.pw-city-card {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    height: 130px;
    border: 1px solid var(--border);
}
.pw-city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pw-city-card:hover img { transform: scale(1.08); }

.pw-city-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,30,50,.85) 0%, rgba(10,30,50,.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
}
.pw-city-info h4 { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: #fff; }
.pw-city-info p { font-size: 11px; color: rgba(255,255,255,.8); font-weight: 500; }
.pw-city-info span { font-size: 10px; color: #7de8ff; font-weight: 600; }

/* ── TRUST STRIP ────────────────────────────────────────────── */
.pw-trust {
    background: var(--navy);
    padding: 36px 0;
}

.pw-trust-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.pw-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--white);
}
.pw-trust-item i {
    font-size: 24px;
    color: #4dd8f5;
    flex-shrink: 0;
    margin-top: 2px;
}
.pw-trust-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.pw-trust-item p { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.5; }

/* ── CTA BANNER ─────────────────────────────────────────────── */
.pw-cta {
    background: linear-gradient(135deg, var(--accent) 0%, #c23b20 100%);
    padding: 52px 24px;
}

.pw-cta-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.pw-cta-inner h2 { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.pw-cta-inner p { font-size: 15px; color: rgba(255,255,255,.8); }

.pw-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--accent);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--r-md);
    white-space: nowrap;
    box-shadow: 0 6px 24px rgba(0,0,0,.2);
    transition: transform .2s, box-shadow .2s;
    flex-shrink: 0;
}
.pw-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,.25); }

/* ── MAIN APP ───────────────────────────────────────────────── */
.pw-main-app { margin-top: 60px; min-height: calc(100vh - 60px); }

/* DASHBOARD STATS BAR */
.pw-dash-bar {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.pw-dash-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.pw-dash-welcome {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pw-dash-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 18px;
    flex-shrink: 0;
}
.pw-dash-avatar img { width: 100%; height: 100%; object-fit: cover; }

.pw-dash-greeting { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 2px; }
.pw-dash-name { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; color: #fff; }

.pw-dash-stats { display: flex; gap: 12px; }

.pw-stat-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-md);
    padding: 12px 22px;
    text-align: center;
    backdrop-filter: blur(4px);
    min-width: 120px;
}
.pw-stat-card p { font-size: 10px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 4px; }
.pw-stat-card h3 { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800; color: #fff; }
.pw-stat-green h3 { color: #6effa0; }

/* TAB BAR */
.pw-tab-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 60px;
    z-index: 99;
    box-shadow: var(--shadow-xs);
}

.pw-tab-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
}

.pw-tab {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    letter-spacing: .04em;
    transition: color .2s, border-color .2s;
    position: relative;
}
.pw-tab:hover { color: var(--brand); }
.pw-tab-active { color: var(--brand); border-bottom-color: var(--brand); }

.pw-notif-badge {
    position: absolute;
    top: 8px; right: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

/* TAB SECTION */
.pw-tab-section { padding: 32px 0 60px; }

/* APP SEARCH BAR */
.pw-app-search {
    display: flex;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    transition: border-color .2s, box-shadow .2s;
}
.pw-app-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14,110,158,.1);
}

.pw-as-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    color: var(--gray-400);
}
.pw-as-field i { flex-shrink: 0; font-size: 14px; }
.pw-as-main { flex: 1; }
.pw-as-main input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--gray-900);
    padding: 16px 0;
    background: transparent;
    width: 100%;
}
.pw-as-main input::placeholder { color: var(--gray-500); }

.pw-as-type {
    border-left: 1px solid var(--border);
    min-width: 180px;
}
.pw-as-type select {
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--gray-700);
    padding: 16px 4px;
    background: transparent;
    cursor: pointer;
    width: 100%;
}

.pw-as-btn {
    background: var(--brand);
    color: var(--white);
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: background .2s;
    letter-spacing: .04em;
}
.pw-as-btn:hover { background: var(--brand-dark); }

/* RESULTS HEADER */
.pw-results-header {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
    font-weight: 500;
}
.pw-results-header strong { color: var(--gray-900); }

/* LISTING GRID */
.pw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* PROPERTY CARD (CarWale card style) */
.pw-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
    cursor: default;
}
.pw-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pw-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}
.pw-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.pw-card:hover .pw-card-img-wrap img { transform: scale(1.06); }

.pw-card-id {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(255,255,255,.95);
    color: var(--gray-700);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid var(--border);
    letter-spacing: .04em;
}

.pw-card-type-badge {
    position: absolute;
    bottom: 10px; left: 10px;
    background: var(--brand);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.pw-card-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pw-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.3;
}

.pw-card-loc {
    font-size: 13px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}
.pw-card-loc i { color: var(--accent); font-size: 11px; }

.pw-card-seller {
    font-size: 11px;
    color: var(--gray-500);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pw-card-seller i { color: var(--brand); }

.pw-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

.pw-card-price {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
}

.pw-card-cta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pw-card-ask-btn {
    background: var(--brand);
    color: var(--white);
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, transform .15s;
    letter-spacing: .04em;
}
.pw-card-ask-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* EMPTY STATE */
.pw-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 72px 24px;
    background: var(--gray-50);
    border: 1px dashed var(--border);
    border-radius: var(--r-lg);
}
.pw-empty-icon {
    width: 72px; height: 72px;
    background: var(--brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--brand);
}
.pw-empty h3 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.pw-empty p { font-size: 14px; color: var(--gray-500); }

/* LOADER */
.pw-loader-wrap { grid-column: 1 / -1; display: flex; justify-content: center; padding: 60px; }
.pw-loader {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MY INTERESTS ───────────────────────────────────────────── */
.pw-interests-title { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.pw-interests-sub { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.pw-queries { display: flex; flex-direction: column; gap: 14px; max-width: 800px; }

.pw-query-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gray-300);
    border-radius: var(--r-md);
    padding: 20px 22px;
    transition: box-shadow .2s;
}
.pw-query-card:hover { box-shadow: var(--shadow-md); }
.pw-query-card.pw-qc-replied { border-left-color: var(--green); }

.pw-qc-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.pw-qc-ref {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-500);
    background: var(--gray-100);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.pw-qc-title { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: var(--gray-900); }

.pw-qc-status {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}
.pw-qc-status.pending { background: var(--gray-100); color: var(--gray-500); }
.pw-qc-status.replied { background: var(--green-light); color: var(--green); }

.pw-qc-question {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
}
.pw-qc-question .pw-qc-qlabel { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-bottom: 4px; }
.pw-qc-question p { font-size: 13px; color: var(--gray-700); line-height: 1.5; }

.pw-qc-reply {
    background: var(--brand-light);
    border: 1px solid rgba(14,110,158,.2);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    position: relative;
}
.pw-qc-reply .pw-qc-rlabel { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.pw-qc-reply p { font-size: 13px; color: var(--navy); line-height: 1.5; }

/* ── MODAL ──────────────────────────────────────────────────── */
.pw-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(10,20,35,.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pw-modal {
    background: var(--white);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: modalIn .25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.pw-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.pw-modal-head h3 { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.pw-modal-listing { font-size: 13px; color: var(--gray-500); }

.pw-modal-x {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 14px;
    transition: color .2s, border-color .2s;
    flex-shrink: 0;
}
.pw-modal-x:hover { color: var(--accent); border-color: var(--accent); }

.pw-modal-confidential {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #edfff5;
    border: 1px solid #bbf7d0;
    border-radius: var(--r-sm);
    padding: 12px 14px;
    margin: 16px 24px;
    font-size: 12.5px;
    color: #15803d;
    line-height: 1.5;
}
.pw-modal-confidential i { flex-shrink: 0; font-size: 15px; margin-top: 1px; }
.pw-modal-confidential strong { font-weight: 700; }

.pw-modal textarea {
    width: calc(100% - 48px);
    margin: 0 24px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px;
    font-size: 14px;
    color: var(--gray-900);
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    display: block;
}
.pw-modal textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14,110,158,.1);
}
.pw-modal textarea::placeholder { color: var(--gray-500); }

.pw-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 24px 22px;
}

.pw-modal-cancel {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    padding: 10px 18px;
    border-radius: var(--r-sm);
    transition: color .2s, background .2s;
}
.pw-modal-cancel:hover { background: var(--gray-100); color: var(--gray-900); }

.pw-modal-send {
    background: var(--brand);
    color: var(--white);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .2s;
}
.pw-modal-send:hover { background: var(--brand-dark); }
.pw-modal-send:disabled { opacity: .6; cursor: not-allowed; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.pw-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,.6);
    font-size: 13px;
}

.pw-footer-top {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 36px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.pw-footer-logo {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}
.pw-footer-logo span { color: #4dd8f5; }

.pw-footer-brand p { line-height: 1.7; max-width: 280px; }

.pw-footer-col h5 {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 14px;
}
.pw-footer-col { display: flex; flex-direction: column; gap: 0; }
.pw-footer-col h5 { margin-bottom: 14px; }
.pw-footer-col a {
    display: block;
    color: rgba(255,255,255,.55);
    font-size: 13px;
    padding: 5px 0;
    transition: color .2s;
}
.pw-footer-col a:hover { color: #4dd8f5; }

.pw-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
}
.pw-footer-bottom a { color: rgba(255,255,255,.5); transition: color .2s; }
.pw-footer-bottom a:hover { color: #4dd8f5; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .pw-nav { display: none; }

    .pw-hero { padding: 48px 16px 60px; }
    .pw-hero-title { font-size: 28px; }
    .pw-search-box { flex-wrap: wrap; }
    .pw-search-city { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .pw-sdivider { display: none; }
    .pw-search-input-wrap { width: 100%; }
    .pw-search-btn { width: 100%; justify-content: center; }
    .pw-stab { padding: 8px 14px; font-size: 12px; }

    .pw-budget-grid { grid-template-columns: repeat(2, 1fr); }
    .pw-city-grid { grid-template-columns: repeat(2, 1fr); }
    .pw-trust-inner { grid-template-columns: 1fr 1fr; }
    .pw-cta-inner { flex-direction: column; text-align: center; }
    .pw-filter-choice-grid { grid-template-columns: 1fr 1fr; }
    .pw-footer-top { grid-template-columns: 1fr 1fr; }

    .pw-app-search { flex-direction: column; }
    .pw-as-type { border-left: none; border-top: 1px solid var(--border); min-width: 0; width: 100%; }
    .pw-as-btn { width: 100%; justify-content: center; padding: 14px; }
    .pw-app-search .pw-as-field { padding: 0 14px; }

    .pw-dash-inner { flex-direction: column; align-items: flex-start; }

    .pw-grid { grid-template-columns: 1fr; }
    .pw-tab { font-size: 12px; padding: 0 14px; }

    .pw-footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .pw-header-inner { padding: 0 14px; gap: 14px; }
    .pw-login-btn span { display: none; }
    .pw-section { padding: 36px 0; }
    .pw-budget-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pw-city-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pw-trust-inner { grid-template-columns: 1fr; }
}
