/* ==========================================
   REMAX IBD – style.css  |  Font: Poppins
   ========================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:       #dc2626;
    --red-dark:  #b91c1c;
    --blue:      #003da5;
    --blue-dark: #002266;
    --text:      #111827;
    --muted:     #6b7280;
    --border:    #e5e7eb;
    --bg:        #f3f4f6;
    --card:      #ffffff;
    --radius:    12px;
    --shadow:    0 1px 4px rgba(0,0,0,.06);
    --shadow-h:  0 10px 24px rgba(0,0,0,.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ───────────────────────────────── */
.header {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow);
    transition: background .3s ease, box-shadow .3s ease;
}
.header.scrolled {
    background: rgba(17,24,39,0.97);
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    border-bottom-color: rgba(255,255,255,.08);
}
.header.scrolled .main-nav a { color: rgba(255,255,255,.65); }
.header.scrolled .main-nav a:hover { color: #fff; }
.header.scrolled .btn-login { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.header.scrolled .btn-login i { color: #f87171; }
.header.scrolled .btn-login:hover { background: var(--red); border-color: var(--red); }
.header.scrolled .hamburger { color: #fff; }
.hdr-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; gap: 24px;
}
/* Logo images */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-dark {
    height: 44px;
    width: auto;
    display: block;
    transition: opacity .3s;
}
.header.scrolled .logo-dark {
    /* swap to white logo via filter */
    filter: brightness(0) invert(1);
}
.footer-logo-img {
    height: 48px;
    width: auto;
    display: block;
    margin-bottom: 16px;
    /* logo blanco.png is white text on transparent bg */
    filter: brightness(0) invert(1);
}
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: .88rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.hdr-right { display: flex; align-items: center; gap: 12px; }
.btn-nav {
    background: var(--red); color: #fff;
    padding: 8px 18px; border-radius: 7px;
    font-size: .82rem; font-weight: 600; transition: background .2s;
}
.btn-nav:hover { background: var(--red-dark); }
.btn-login {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 7px;
    font-size: .82rem; font-weight: 600;
    background: #f3f4f6; color: var(--text);
    border: 1px solid var(--border);
    transition: .2s; white-space: nowrap;
}
.btn-login i { font-size: 1rem; color: var(--red); }
.btn-login:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-login:hover i { color: #fff; }

.hamburger {
    display: none; background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: var(--text);
}

/* ── HERO VIDEO ───────────────────────────── */
.hero-video {
    position: relative; width: 100%; height: 100vh;
    min-height: 520px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.hero-vid {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, rgba(0,0,0,.7) 0%, rgba(185,28,28,.4) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center; color: #fff; padding: 0 24px;
    max-width: 820px; animation: heroFade .9s ease-out both;
}
@keyframes heroFade { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(6px); color: #fff;
    font-size: .76rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    padding: 7px 18px; border-radius: 30px; margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 700; line-height: 1.15; margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0,0,0,.4); letter-spacing: -.5px;
}
.hero-sub {
    font-size: clamp(.9rem, 2vw, 1.1rem); font-weight: 300;
    color: rgba(255,255,255,.88); line-height: 1.7; margin-bottom: 34px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hbtn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 8px;
    font-size: .9rem; font-weight: 600; cursor: pointer; transition: .25s;
}
.hbtn-white { background: #fff; color: var(--red); }
.hbtn-white:hover { background: #f1f1f1; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.hbtn-wa { background: #25d366; color: #fff; }
.hbtn-wa:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,.3); }

/* Scroll indicator */
.hero-scroll {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: rgba(255,255,255,.65); font-size: .7rem; font-weight: 500;
    letter-spacing: 1px; text-transform: uppercase;
}
.scroll-arrow {
    width: 18px; height: 18px;
    border-right: 2px solid rgba(255,255,255,.65); border-bottom: 2px solid rgba(255,255,255,.65);
    transform: rotate(45deg); animation: bounce 1.4s infinite;
}
@keyframes bounce { 0%,100% { transform:rotate(45deg) translateY(0); } 50% { transform:rotate(45deg) translateY(5px); } }

/* ── STATS BAR ────────────────────────────── */
.stats-bar {
    background: var(--red); display: flex;
    justify-content: center; gap: 0;
}
.stat {
    flex: 1; max-width: 220px; text-align: center;
    padding: 20px 10px; border-right: 1px solid rgba(255,255,255,.2);
}
.stat:last-child { border-right: none; }
.stat strong { display: block; font-size: 1.3rem; font-weight: 700; color: #fff; }
.stat span { font-size: .78rem; color: rgba(255,255,255,.8); font-weight: 400; }

/* ── SECTION HEADER ───────────────────────── */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 50px 0 24px;
}
.section-header h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.3px; }
.btn-all {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--red); font-size: .88rem; font-weight: 600;
    transition: gap .2s, color .2s;
}
.btn-all:hover { gap: 10px; }

/* ── PROPERTY GRID ────────────────────────── */
.site-main { padding-bottom: 70px; }

.prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px; padding: 0 24px;
}

/* ── PROPERTY CARD ────────────────────────── */
.prop-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow);
    opacity: 0; animation: fadeUp .5s ease-out forwards;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s;
}
.prop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); border-color: #d1d5db; }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.card-img-wrap { position: relative; height: 200px; overflow: hidden; }
.card-img-wrap a { display: block; height: 100%; }
.card-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease; display: block;
}
.prop-card:hover .card-img-wrap img { transform: scale(1.06); }

/* Badges */
.badge-type {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,.94); color: var(--red);
    font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    padding: 4px 10px; border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    max-width: calc(100% - 80px); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.badge-id {
    position: absolute; bottom: 0; right: 0;
    background: rgba(17,24,39,.78); color: #fff;
    font-size: .65rem; font-weight: 600;
    padding: 4px 10px; border-top-left-radius: 7px;
}

/* Card body */
.card-body { padding: 16px 16px 12px; flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.prop-price { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.prop-location {
    display: flex; align-items: flex-start; gap: 5px;
    font-size: .78rem; color: var(--muted);
}
.prop-location i { color: var(--red); font-size: .9rem; flex-shrink: 0; margin-top: 1px; }
.prop-feats { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.prop-feats li {
    font-size: .74rem; color: var(--muted);
    padding-left: 12px; position: relative;
}
.prop-feats li::before {
    content: "•"; position: absolute; left: 0; color: #d1d5db;
    font-size: 1rem; line-height: 1.1;
}

/* Card footer */
.card-footer {
    padding: 10px 16px; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: #fafafa;
}
.agent-info { display: flex; align-items: center; gap: 8px; min-width: 0; }
.agent-av {
    width: 30px; height: 30px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0; border: 1.5px solid var(--border);
}
.agent-ph {
    background: var(--bg); display: flex; align-items: center;
    justify-content: center; color: var(--muted);
}
.agent-info span { font-size: .74rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }

/* Action Buttons */
.card-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-action {
    width: 32px; height: 32px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; transition: .2s; border: 1px solid var(--border);
}
.btn-view { background: #f9fafb; color: var(--text); }
.btn-view:hover { background: var(--text); color: #fff; border-color: var(--text); }
.btn-wa { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.btn-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }

/* ── SEE ALL ──────────────────────────────── */
.see-all-wrap { text-align: center; margin: 36px 0; }
.btn-see-all {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: #fff;
    padding: 14px 36px; border-radius: 8px; font-weight: 600; font-size: .95rem;
    transition: .2s;
}
.btn-see-all:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(220,38,38,.35); }

/* ── PAGE HERO (propiedades.php) ──────────── */
.page-hero {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff; padding: 48px 0 40px;
}
.page-hero h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: .9rem; }
.page-hero strong { color: #fff; }

/* ── PROPS LAYOUT (filter + grid) ────────── */
.props-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px; padding-top: 28px; padding-bottom: 70px;
    align-items: start;
}

/* FILTER SIDEBAR */
.filters-sidebar {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    position: sticky; top: 80px;
}
.filter-block {
    margin-bottom: 22px; padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 10px;
}
.filter-block:first-child { flex-direction: row; align-items: center; justify-content: space-between; }
.filter-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-block h3 { font-size: .95rem; font-weight: 600; }
.filter-block label { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 0; }
.filter-block select {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border);
    border-radius: 7px; font-family: 'Poppins', sans-serif;
    font-size: .82rem; color: var(--text); background: var(--bg); cursor: pointer;
}
.filter-block select:focus { outline: none; border-color: var(--red); }
.filter-block input[type=range] { width: 100%; accent-color: var(--red); }
.range-labels { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }

.btn-apply {
    width: 100%; background: var(--red); color: #fff;
    border: none; padding: 10px; border-radius: 7px;
    font-family: 'Poppins', sans-serif; font-size: .85rem;
    font-weight: 600; cursor: pointer; transition: background .2s;
}
.btn-apply:hover { background: var(--red-dark); }
.btn-clear-filters {
    background: none; border: none; cursor: pointer;
    font-size: .78rem; color: var(--muted); font-family: 'Poppins', sans-serif;
    text-decoration: underline;
}

/* Results section */
.props-results {}
.prop-grid.in-results { padding: 0; }

/* PAGINATION */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 36px; flex-wrap: wrap;
}
.pg-btn {
    min-width: 36px; height: 36px; padding: 0 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 7px;
    font-size: .82rem; font-weight: 500; color: var(--text);
    background: var(--card); transition: .2s;
}
.pg-btn:hover { border-color: var(--red); color: var(--red); }
.pg-active { background: var(--red); color: #fff; border-color: var(--red); }
.pg-dots { font-size: .9rem; color: var(--muted); padding: 0 4px; }
.pg-info { text-align: center; margin-top: 14px; font-size: .78rem; color: var(--muted); }

/* ── EMPTY STATE ──────────────────────────── */
.empty-state {
    text-align: center; padding: 70px 20px;
    background: var(--card); border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.empty-state h3 { font-weight: 600; margin-bottom: 8px; margin-top: 18px; }
.empty-state p  { color: var(--muted); font-size: .9rem; }
.empty-state a  { color: var(--red); font-weight: 600; }

/* House SVG animation */
.house-anim { width: 80px; height: 80px; margin: 0 auto; }
.house-anim svg { width: 100%; height: 100%; }
.house-roof  { stroke-dasharray:120; stroke-dashoffset:120; animation:draw 1s .1s ease forwards; }
.house-body  { stroke-dasharray:180; stroke-dashoffset:180; animation:draw 1s .5s ease forwards; }
.house-door  { stroke-dasharray:80;  stroke-dashoffset:80;  animation:draw 1s .9s ease forwards; }
.house-dot   { opacity:0; animation:pop .3s 1.4s ease forwards; }
@keyframes draw { to { stroke-dashoffset:0; } }
@keyframes pop  { to { opacity:1; } }

/* ── FOOTER ───────────────────────────────── */
.footer { background: #111827; color: #fff; padding: 56px 0 0; }
.footer-inner {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col > p { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 16px; }
.footer-col h4 { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li, .footer-col ul a { font-size: .82rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 8px; }
.footer-col ul a:hover { color: #fff; }
.footer-wa {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25d366; color: #fff; padding: 9px 18px;
    border-radius: 8px; font-size: .82rem; font-weight: 600; transition: .2s;
}
.footer-wa:hover { background: #1ebe5d; }
.footer-bottom { text-align: center; padding: 20px; font-size: .78rem; color: rgba(255,255,255,.35); }

/* ── SELL WITH US SECTION ─────────────────── */
.sell-section {
    background: linear-gradient(135deg, #111827 0%, #1a2535 100%);
    padding: 80px 0;
}
.sell-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left CTA */
.sell-cta { color: #fff; }
.sell-tag {
    display: inline-block;
    background: rgba(220,38,38,.15);
    border: 1px solid rgba(220,38,38,.4);
    color: #f87171;
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 6px 14px; border-radius: 20px; margin-bottom: 18px;
}
.sell-cta h2 {
    font-size: 2.2rem; font-weight: 700;
    line-height: 1.2; margin-bottom: 16px;
    letter-spacing: -.5px;
}
.sell-cta > p {
    color: rgba(255,255,255,.65); font-size: .9rem;
    line-height: 1.7; margin-bottom: 28px;
}
.sell-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.sell-feat {
    display: flex; align-items: center; gap: 10px;
    font-size: .88rem; color: rgba(255,255,255,.8);
}
.sell-feat i { color: #4ade80; font-size: 1.1rem; flex-shrink: 0; }

.sell-contact-info { display: flex; flex-direction: column; gap: 12px; }
.sell-info-item {
    display: flex; align-items: center; gap: 12px;
    font-size: .88rem; color: rgba(255,255,255,.75);
    transition: color .2s;
}
.sell-info-item i {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--red); flex-shrink: 0;
}
a.sell-info-item:hover { color: #fff; }

/* Right Form */
.sell-form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.sell-form-wrap h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.form-sub { font-size: .82rem; color: var(--muted); margin-bottom: 24px; }

.sell-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: .84rem; color: var(--text);
    transition: border-color .2s;
    background: var(--bg);
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.form-group textarea { resize: none; }

.btn-submit-sell {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px;
    background: #25d366; color: #fff;
    border: none; border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem; font-weight: 700;
    cursor: pointer; transition: .2s;
}
.btn-submit-sell:hover { background: #1ebe5d; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }

.sell-success-msg {
    display: flex; align-items: center; gap: 12px;
    padding: 20px; background: #dcfce7;
    border-radius: 10px; border: 1px solid #bbf7d0;
    color: #166534; font-size: .9rem;
}
.sell-success-msg i { font-size: 1.5rem; }

/* ── MAP SECTION ───────────────────────────── */
.map-section {
    padding: 70px 0;
    background: #f9fafb;
    border-top: 1px solid var(--border);
}
.map-header {
    text-align: center;
    margin-bottom: 32px;
}
.map-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: var(--red);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.map-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.map-header p {
    color: var(--muted);
    font-size: .9rem;
}

.map-card-container {
    position: relative;
    width: 100%;
    height: 460px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0,0,0,.1);
    border: 1px solid var(--border);
    background: #e5e7eb;
}

.map-iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
    min-height: 460px;
}

.map-floating-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
    border: 1px solid var(--border);
    max-width: 340px;
    z-index: 10;
}

.map-card-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.map-floating-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.map-floating-card p {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.map-floating-card p i {
    color: var(--red);
    font-size: .95rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-gmaps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    background: var(--red);
    color: #fff;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    transition: background .2s, transform .2s;
}

.btn-gmaps:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    color: #fff;
}

@media (max-width: 768px) {
    .map-floating-card {
        position: static;
        max-width: 100%;
        margin-top: 16px;
        border-radius: 12px;
    }
    .map-card-container {
        height: 320px;
    }
    .map-iframe {
        min-height: 320px;
    }
}



/* ── RESPONSIVE ───────────────────────────────── */


/* Tablet landscape */
@media (max-width: 1100px) {
    .props-layout { grid-template-columns: 200px 1fr; }
    .sell-inner { gap: 40px; }
}

/* Tablet */
@media (max-width: 1024px) {
    .props-layout { grid-template-columns: 1fr; }
    .filters-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; align-items: end; }
    .filter-block { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
    .filter-block:first-child { grid-column: 1 / -1; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .sell-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
    /* Nav */
    .main-nav {
        display: none; flex-direction: column;
        position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
        z-index: 99;
    }
    .header.scrolled .main-nav { background: #111827; border-color: rgba(255,255,255,.1); }
    .main-nav.open { display: flex; }
    .hamburger { display: flex; }
    .btn-nav { display: none; } /* hide on mobile, use hamburger */

    /* Hero */
    .hero-title { font-size: 1.9rem; }
    .hero-sub { font-size: .88rem; }
    .hbtn { padding: 12px 20px; font-size: .85rem; }
    .stats-bar { flex-wrap: wrap; }
    .footer-inner { grid-template-columns: 1fr; }
    .sell-inner { grid-template-columns: 1fr; gap: 36px; }
    .sell-cta h2 { font-size: 1.6rem; }
    .form-row { grid-template-columns: 1fr; }
    .sell-form-wrap { padding: 24px; }
}
@media (max-width: 480px) {
    .hdr-inner { padding: 0 16px; }
    .prop-grid { grid-template-columns: 1fr; }
}
