/* modern.css - naya home / search / shortlist design (style.css ke baad lagta hai). Sab classes "x-" se shuru hoti hain. */
.x-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.x-nav { background: #fff; box-shadow: 0 1px 6px rgba(15,23,42,.08); position: sticky; top: 0; z-index: 20; }
.x-nav .nav-inner { max-width: 1180px; padding: 12px 18px; }
.x-nav .nav-links a { margin-left: 18px; font-weight: 600; font-size: 14px; text-decoration: none; color: #334155; }
.x-nav .nav-links a:hover { color: var(--primary); }
.x-count { background: var(--primary); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }

/* ---- Hero ---- */
.x-hero { position: relative; color: #fff; background: linear-gradient(135deg, #0f172a, var(--primary)); padding: 54px 0 96px; overflow: hidden; }
.x-hero .hero-slides, .x-hero .hero-shade { position: absolute; inset: 0; }
.x-hero .hero-slides { z-index: 0; }
.x-hero .hero-shade { background: linear-gradient(180deg, rgba(15,23,42,.72), rgba(15,23,42,.55)); z-index: 1; }
.x-hero .x-wrap { position: relative; z-index: 2; }
.x-hero h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.15; margin: 0 0 10px; max-width: 760px; color: #fff; }
.x-hero p { font-size: 17px; margin: 0; max-width: 640px; opacity: .92; }
.x-hero .hero-dots { position: absolute; bottom: 74px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.x-hero .hero-dots button { width: 8px; height: 8px; padding: 0; margin: 0; border-radius: 50%; background: rgba(255,255,255,.5); }
.x-hero .hero-dots button.on { background: #fff; }
.x-hero .hero-arrow { z-index: 3; }
.x-searchbox { position: relative; z-index: 4; margin-top: -58px; background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(15,23,42,.18); padding: 16px 18px 18px; }
.x-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.x-tabs button { width: auto; margin: 0; padding: 8px 22px; border-radius: 20px; background: #eef2f7; color: #334155; font-size: 14px; font-weight: 600; }
.x-tabs button.on { background: var(--primary); color: #fff; }
.x-sgrid { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 10px; align-items: end; }
.x-sgrid label { margin: 0 0 4px; font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.x-sgrid select, .x-sgrid input { padding: 12px 10px; border-radius: 10px; background: #f8fafc; }
.x-sgrid button { margin: 0; padding: 12px 28px; border-radius: 10px; font-weight: 700; }
.x-trend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: #64748b; }
.x-trend a { background: #eef2f7; color: #334155; text-decoration: none; padding: 4px 12px; border-radius: 14px; }
.x-trend a:hover { background: var(--primary); color: #fff; }
@media (max-width: 900px) { .x-sgrid { grid-template-columns: 1fr 1fr; } .x-sgrid button { grid-column: 1 / -1; } }

/* ---- Sections ---- */
.x-main { padding-bottom: 20px; }
.x-sec { margin-top: 44px; }
.x-sec h2 { font-size: 24px; margin: 0 0 4px; color: #0f172a; }
.x-sec .x-sub { color: #64748b; font-size: 14px; margin: 0 0 16px; }
.x-sechead { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 16px; }
.x-sechead h2 { margin: 0; }
.x-sechead a { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.x-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.x-tile { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 12px; text-align: center; text-decoration: none; color: #0f172a; transition: .18s; }
.x-tile:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgba(15,23,42,.1); transform: translateY(-2px); }
.x-tile .ic { font-size: 30px; }
.x-tile b { display: block; margin-top: 6px; }
.x-tile small { color: #64748b; }
.x-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.x-area { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; text-decoration: none; color: #0f172a; transition: .18s; display: block; }
.x-area:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgba(15,23,42,.1); }
.x-area b { font-size: 17px; }
.x-area .meta { color: #64748b; font-size: 13px; margin-top: 4px; }
.x-area .rate { margin-top: 10px; font-size: 13px; background: #eef6ff; color: #0b4f9c; padding: 5px 10px; border-radius: 8px; display: inline-block; }
.x-chipgrid { display: flex; flex-wrap: wrap; gap: 10px; }
.x-chipgrid a { background: #fff; border: 1px solid #e2e8f0; padding: 10px 16px; border-radius: 24px; text-decoration: none; color: #0f172a; font-size: 14px; }
.x-chipgrid a:hover { border-color: var(--primary); color: var(--primary); }
.x-chipgrid small { color: #64748b; margin-left: 6px; }
.x-sub2 { font-size: 13px; color: #64748b; font-weight: 700; margin: 14px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.x-bars { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.x-bar { display: grid; grid-template-columns: 150px 1fr 120px; gap: 12px; align-items: center; margin: 9px 0; font-size: 14px; }
.x-bar .track { background: #eef2f7; border-radius: 8px; height: 14px; overflow: hidden; }
.x-bar .fill { background: linear-gradient(90deg, var(--primary), #38bdf8); height: 100%; border-radius: 8px; }
.x-bar small { color: #64748b; }
.x-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.x-why > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.x-why .ic { font-size: 28px; }
.x-why b { display: block; margin: 8px 0 4px; }
.x-why span { color: #64748b; font-size: 14px; line-height: 1.45; }
.x-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; background: #0f172a; color: #cbd5e1; border-radius: 16px; padding: 26px; text-align: center; }
.x-stats b { display: block; font-size: 32px; color: #fff; }
.x-cta { background: linear-gradient(135deg, var(--primary), #0f172a); color: #fff; border-radius: 16px; padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.x-cta h2 { color: #fff; margin: 0; }
.x-cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.x-cta a { background: #fff; color: #0f172a; text-decoration: none; font-weight: 700; padding: 11px 22px; border-radius: 10px; }
.x-cta a.wa { background: #25d366; color: #fff; }
.x-brokers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.x-brk { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; text-decoration: none; color: #0f172a; }
.x-brk:hover { border-color: var(--primary); }

/* ---- Listing cards ---- */
.x-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.x-grid.list { grid-template-columns: 1fr; }
.x-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: .18s; position: relative; }
.x-card:hover { box-shadow: 0 12px 30px rgba(15,23,42,.14); transform: translateY(-3px); }
.x-grid.list .x-card { flex-direction: row; }
.x-grid.list .x-ph { width: 300px; flex: none; height: auto; min-height: 190px; }
.x-ph { position: relative; height: 190px; background: #e2e8f0; overflow: hidden; }
.x-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.x-card:hover .x-ph img { transform: scale(1.06); }
.x-ph .empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #94a3b8; font-size: 13px; }
.x-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.x-badges span { background: rgba(255,255,255,.95); color: #0f172a; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.x-badges .ok { background: #dcfce7; color: #166534; }
.x-price { position: absolute; left: 0; bottom: 0; background: linear-gradient(0deg, rgba(15,23,42,.85), transparent); color: #fff; width: 100%; padding: 22px 12px 9px; font-weight: 800; font-size: 18px; }
.x-heart { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.95); color: #64748b; font-size: 18px; line-height: 1; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.x-heart.on { color: #e11d48; }
.x-body { padding: 13px 14px 15px; flex: 1; }
.x-body h3 { margin: 0 0 4px; font-size: 16px; color: #0f172a; }
.x-body .where { color: #64748b; font-size: 13px; }
.x-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.x-facts span { background: #f1f5f9; color: #334155; font-size: 12px; padding: 3px 9px; border-radius: 8px; }
.x-facts .rate { background: #eef6ff; color: #0b4f9c; font-weight: 600; }
.x-metro { margin-top: 9px; font-size: 12px; color: #0f766e; }
.x-empty { text-align: center; padding: 50px 10px; color: #64748b; background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; }

/* ---- Search page ---- */
.x-shell { display: grid; grid-template-columns: 290px 1fr; gap: 22px; margin: 22px auto 40px; align-items: start; }
.x-side { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 6px 16px 16px; position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow: auto; }
.x-side h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin: 18px 0 8px; }
.x-side .x-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.x-side input, .x-side select { padding: 8px; font-size: 14px; border-radius: 8px; }
.x-opts label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 0; font-size: 14px; cursor: pointer; }
.x-opts input { width: auto; margin: 0; }
.x-opts small { margin-left: auto; color: #94a3b8; }
.x-opts label.off { opacity: .45; }
.x-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.x-presets button { width: auto; margin: 0; padding: 4px 10px; font-size: 12px; background: #eef2f7; color: #334155; border-radius: 12px; }
.x-presets button.on { background: var(--primary); color: #fff; }
.x-seg { display: flex; background: #eef2f7; border-radius: 10px; padding: 3px; }
.x-seg button { margin: 0; flex: 1; padding: 8px; background: transparent; color: #334155; font-size: 14px; font-weight: 600; border-radius: 8px; }
.x-seg button.on { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.x-fac { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.x-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.x-top input[type=search], .x-top input.q { flex: 1; min-width: 180px; padding: 11px 12px; border-radius: 10px; }
.x-top select { width: auto; padding: 10px; border-radius: 10px; }
.x-view { display: flex; background: #eef2f7; border-radius: 10px; padding: 3px; }
.x-view button { width: auto; margin: 0; padding: 7px 12px; background: transparent; color: #334155; font-size: 13px; border-radius: 8px; }
.x-view button.on { background: #fff; color: var(--primary); font-weight: 700; }
.x-applied { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.x-applied span { background: #e0efff; color: #0b4f9c; font-size: 13px; padding: 4px 6px 4px 12px; border-radius: 14px; display: inline-flex; align-items: center; gap: 6px; }
.x-applied span button { width: 18px; height: 18px; padding: 0; margin: 0; border-radius: 50%; background: #0b4f9c; color: #fff; font-size: 11px; line-height: 1; }
.x-applied .clear { background: #fee2e2; color: #b91c1c; cursor: pointer; padding: 4px 12px; }
.x-count-line { color: #475569; font-size: 14px; margin: 2px 0 12px; }
.x-map { height: 560px; border-radius: 14px; border: 1px solid #e2e8f0; z-index: 0; }
.x-filterbtn { display: none; width: auto; margin: 0; padding: 10px 14px; }
@media (max-width: 960px) {
  .x-shell { grid-template-columns: 1fr; }
  .x-side { display: none; position: fixed; inset: 0; z-index: 50; max-height: none; border-radius: 0; top: 0; }
  .x-side.open { display: block; }
  .x-filterbtn { display: inline-block; }
  .x-grid.list .x-card { flex-direction: column; } .x-grid.list .x-ph { width: auto; }
}
.x-drawer-head { display: none; }
@media (max-width: 960px) { .x-drawer-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; padding: 12px 0; z-index: 2; } .x-drawer-head button { width: auto; margin: 0; padding: 8px 14px; } }

/* ---- Compare ---- */
.x-cmp { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; font-size: 14px; }
.x-cmp th, .x-cmp td { padding: 10px 12px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; }
.x-cmp th { background: #f8fafc; color: #475569; width: 170px; }
.x-cmp td.best { background: #dcfce7; font-weight: 700; }
.x-sel { position: absolute; top: 10px; left: 10px; z-index: 3; background: rgba(255,255,255,.95); padding: 3px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; display: flex; gap: 5px; align-items: center; }
.x-sel input { width: auto; margin: 0; }

/* ---- Mobile fixes ---- */
.x-shell > section, .x-shell > div { min-width: 0; }
.x-top input[type=search], .x-top input.q { min-width: 0; }
@media (max-width: 768px) {
  .x-top input.q, .x-top select { flex: 1 1 100%; width: 100%; }
}
@media (max-width: 768px) { input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px; } } /* iPhone: chhota font hone par page apne aap zoom ho jata hai */
