/* page layer: market pages (owned by one workstream). Tokens come from ui-layer.css (--dxb-*).
   Every rule is scoped to a market component class so no other workstream's page is touched. */

/* ---- /dubai-real-estate-market-overview: rental filters (CSS module, hashed) ---- */
html body [class*="RentalOverviewFilters"][class*="filters"] { background: var(--dxb-surface-2); border-radius: 18px; padding: 16px; }
html body [class*="RentalOverviewFilters"][class*="filters"] :is(input, button) { border: 1px solid var(--dxb-line-strong); border-radius: 999px; min-height: 44px; }
html body [class*="RentalOverviewFilters"][class*="filters"] [class*="apply"] { background: var(--dxb-ink); border-color: var(--dxb-ink); color: #fff; font-weight: 700; }
html body [class*="RentalOverviewFilters"][class*="filters"] [class*="apply"]:hover { background: #27272a; }
html body [class*="RentalOverviewFilters"][class*="filters"] :is(input, button):focus-visible { outline: 2px solid var(--dxb-ink); outline-offset: 2px; }

/* ---- /interactive-price-change: filter strip was a square white bar ---- */
html body .white-bg.padding-none.filter { background: transparent !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; }
html body .dxb-page .t-Region.container-max.dld-cards-bg { background: #fff; border-radius: 18px; border: 1px solid var(--dxb-line); box-shadow: 0 1px 2px rgba(9,9,11,.04); }
html body .dxb-page .t-Region.container-max.dld-cards-bg .t-Region-header { background: transparent; border-radius: 18px 18px 0 0; }
html body .t-Body-title { background: transparent; }

/* ---- /dubai-housing-market-analysis: floating map toolbar = light glass, pill controls ---- */
html body .villa-analysis-toolbar { background: var(--dxb-surface-glass); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; box-shadow: 0 8px 30px rgba(9,9,11,.12); }
html body .villa-analysis-picker input { border-radius: 999px; background: var(--dxb-surface-2); border: 1px solid var(--dxb-line); min-height: 44px; padding: 0 18px; }
html body :is(.villa-analysis-segment, .villa-analysis-colours) { border-radius: 999px; background: var(--dxb-surface-2); }
html body :is(.villa-analysis-segment, .villa-analysis-colours) button { border-radius: 999px; min-height: 40px; color: var(--dxb-ink); }
html body .villa-analysis :is(.villa-analysis-segment, .villa-analysis-colours) button[aria-pressed="true"] { background: var(--dxb-ink); color: #fff; }
html body .villa-analysis button:focus-visible, html body .villa-analysis input:focus-visible { outline: 2px solid var(--dxb-ink); }
html body .villa-analysis-count, html body .villa-analysis-message { border-radius: 999px; background: var(--dxb-surface-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html body .villa-analysis-map .maplibregl-popup-content { border-radius: 18px; }

/* ---- /dubai-absorption-rate-analysis (SupplyPage, kind=absorption/units) ---- */
html body .supply-page:not(.delivered-supply) .supply-intro { background: #fff; border: 1px solid var(--dxb-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(9,9,11,.04); padding: 24px; margin-bottom: 24px; }
html body .supply-page:not(.delivered-supply) .supply-intro h1 { font-size: 32px; font-weight: 700; margin: 0 0 8px; }
html body .supply-page:not(.delivered-supply) .supply-intro p { max-width: none; color: var(--dxb-muted); margin: 0; }
html body .supply-page:not(.delivered-supply) .supply-controls { background: #fff; border: 1px solid var(--dxb-line); border-radius: 18px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(9,9,11,.04); }
html body .supply-page .supply-controls :is(select, input) { border-radius: 999px; border: 1px solid var(--dxb-line-strong); min-height: 44px; background-color: #fff; }
html body .supply-page .supply-controls label, html body .supply-page .supply-field label { font-size: 12px; font-weight: 600; color: var(--dxb-muted); }
html body .supply-page .supply-metrics { gap: 16px; margin-bottom: 16px; }
html body .supply-page .supply-metrics > div { background: #fff; border: 1px solid var(--dxb-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(9,9,11,.04); text-align: center; padding: 20px; }
html body .supply-page .supply-metrics > div strong { display: block; font-size: 28px; font-weight: 700; }
html body .supply-page .supply-panel { border-radius: 18px; border: 1px solid var(--dxb-line); box-shadow: 0 1px 2px rgba(9,9,11,.04); }
html body .supply-page:not(.delivered-supply) .supply-panel h2 { font-size: 20px; font-weight: 700; line-height: 1.25; }
html body .supply-page .supply-project-grid { gap: 16px; }
@media (max-width: 767px) { html body .supply-page:not(.delivered-supply) { padding-top: 16px; } html body .supply-page .supply-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- shared APEX selects on market pages: pills ---- */
html body .dxb-page select.selectlist.apex-item-select { border-radius: 999px; padding-left: 18px; }

/* ---- generated "index" pages with the #kpis block (/property-sales-and-rental-index, /dubai-property-sales-h1) ---- */
html body .dxb-page:has(#kpis) :is(.wrap, .controls .wrap) { max-width: var(--dxb-w); }
html body .dxb-page:has(#kpis) .kpis { gap: 16px; background: transparent; border: 0; border-radius: 0; overflow: visible; }
html body .dxb-page:has(#kpis) .kpi { background: #fff; border: 1px solid var(--dxb-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(9,9,11,.04); padding: 20px 16px; text-align: center; }
html body .dxb-page:has(#kpis) .kpi .k { font-size: 13px; font-weight: 600; color: var(--dxb-muted); }
html body .dxb-page:has(#kpis) .kpi .v { font-weight: 700; }
html body .dxb-page:has(#kpis) .kpi .s { color: var(--dxb-subtle); }
html body .dxb-page:has(#kpis) .controls { position: static; background: transparent; backdrop-filter: none; border: 0; margin: 16px 0; }
html body .dxb-page:has(#kpis) .controls .wrap { gap: 12px 20px; padding: 0 var(--dxb-gut, 20px); }
html body .dxb-page:has(#kpis) .seg { border-radius: 999px; border-color: var(--dxb-line-strong); }
html body .dxb-page:has(#kpis) .seg button { min-height: 36px; padding: 0 14px; }
html body .dxb-page:has(#kpis) .seg button + button { border-left-color: var(--dxb-line); }
html body .dxb-page:has(#kpis) .seg button[aria-pressed="true"] { background: var(--dxb-ink); }
html body .dxb-page:has(#kpis) .seg button:focus-visible { outline: 2px solid var(--dxb-ink); }
html body .dxb-page:has(#kpis) .ghost { border-radius: 999px; min-height: 36px; padding: 0 14px; border-color: var(--dxb-line-strong); }
html body .dxb-page:has(#kpis) .panel { border-radius: 18px; box-shadow: 0 1px 2px rgba(9,9,11,.04); }
html body .dxb-page:has(#kpis) .ev-detail { border-radius: 12px; }
html body .dxb-page:has(#kpis) .msg { border-radius: 12px; }
@media (max-width: 767px) { html body .dxb-page:has(#kpis) .seg button { min-height: 44px; } html body .dxb-page:has(#kpis) .ghost { min-height: 44px; } }
