/* Skin 4 — AIRBNB. Copied from airbnb.com's visual system: white canvas, "Cereal"-like sans
   (Plus Jakarta Sans), the floating pill search with a round red search button, Rausch
   #FF385C accent, borderless photo cards with rounded 12 px images, a scrollable category
   row with underline, iOS-style switches, 24 px square checkboxes, the pink gradient
   "Reserve" button and a bordered sticky booking box in the detail. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;600;700&display=swap");
:root, :root:not([data-theme="light"]), :root[data-theme="dark"], :root[data-theme="light"] {
  --paper: #ffffff; --acrylic: #ffffff; --acrylic-2: #f7f7f7; --ink: #222222; --graphite: #717171; --hairline: #dddddd;
  --signal: #ff385c; --signal-ink: #ffffff; --under: #008a05; --over: #c13515; --warn: #b27700;
  --window: #f0f0f0; --shadow: 0 6px 16px rgba(0, 0, 0, .12); --r: 12px; color-scheme: light;
  --display: "Plus Jakarta Sans", "Noto Sans JP", system-ui, sans-serif; --body: "Plus Jakarta Sans", "Noto Sans JP", system-ui, sans-serif; --mono: "Plus Jakarta Sans", "Noto Sans JP", system-ui, sans-serif;
}
body { font-size: 14px; line-height: 1.4; }
.caps { font-family: var(--body); font-stretch: normal; letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 14px; }
/* top bar: logo · floating pill search · right-hand pills */
.topbar { padding: 16px 40px; border-bottom: 1px solid #ebebeb; background: #fff; gap: 16px; }
.brand .seal { background: url("../favicon.svg") center / contain no-repeat; border-radius: 0; box-shadow: none; width: 30px; height: 32px; }   /* logo B: the slab */
.brand-name { font: 800 22px/1 var(--display); font-stretch: normal; letter-spacing: -.02em; color: var(--signal); }
.sitenav { margin-left: 8px; }
.sitenav .btn { border: 0; background: transparent; height: 40px; padding: 0 16px; border-radius: 22px; font-weight: 500; color: var(--graphite); }
.sitenav .btn:hover { background: var(--acrylic-2); color: var(--ink); }
.sitenav .btn[aria-current="page"] { background: transparent; color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.search { height: 66px; border-radius: 40px; border: 1px solid var(--hairline); box-shadow: 0 3px 12px rgba(0, 0, 0, .08); padding: 0 8px 0 24px; max-width: 850px; margin: 0 auto; transition: box-shadow .2s; }
.search:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .16); }
.search svg { order: 2; width: 48px; height: 48px; padding: 14px; background: var(--signal); color: #fff; border-radius: 50%; flex-shrink: 0; }
.search input { font-weight: 600; font-size: 14px; }
.search input::placeholder { color: var(--graphite); font-weight: 500; }
.search kbd { display: none; }
.lang, .icon-btn#themeBtn { height: 42px; border-radius: 21px; border: 1px solid var(--hairline); background: #fff; box-shadow: none; font-weight: 500; }
.lang:hover, .icon-btn#themeBtn:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .18); }
.icon-btn#themeBtn { width: 78px; }
/* hero becomes a modest section title; the platform rail is the category row */
.hero { padding: 26px 40px 0; }
.hero h1 { font: 600 22px/1.3 var(--display); font-stretch: normal; letter-spacing: 0; max-width: none; }
.hero h1 em { font-style: normal; color: var(--ink); }
.hero p { font-size: 14px; color: var(--graphite); margin-top: 4px; }
.hero p b { font-family: var(--body); font-weight: 600; color: var(--ink); }
.vaults { padding: 22px 40px 0; gap: 34px; border-bottom: 1px solid #ebebeb; margin: 0 0 6px; }
.vault { flex-direction: column; border: 0; border-radius: 0; background: transparent; padding: 4px 0 14px; gap: 6px; align-items: center; opacity: .65; box-shadow: inset 0 -2px 0 transparent; }
.vault:hover { opacity: 1; box-shadow: inset 0 -2px 0 var(--hairline); border-color: transparent; }
.vault[aria-pressed="true"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--ink); border: 0; }
.vault .vl { width: 26px; height: 26px; border: 0; padding: 0; background: transparent; }
.vault .vn { font: 600 12px var(--body); font-stretch: normal; letter-spacing: 0; text-transform: none; }
.vault .vc, .vault .vf { display: none; }
/* filters: Airbnb's filter sheet, inline */
.layout { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; padding: 22px 40px 80px; }
.sidebar { padding-right: 16px; }
.facet { border-bottom: 1px solid #ebebeb; }
.facet > summary { padding: 22px 0; }
.facet > summary > span { font: 600 18px var(--body); letter-spacing: 0; text-transform: none; }
.facet > summary::after { width: 8px; height: 8px; border-width: 2px; border-color: var(--ink); }
.facet-body { padding: 0 0 22px; }
.badge { background: var(--ink); color: #fff; }
.toggle { padding: 22px 0; border-bottom: 1px solid #ebebeb; font: 600 16px var(--body); }
.toggle small { font: 400 14px var(--body); color: var(--graphite); margin-top: 4px; }
.toggle input { appearance: none; width: 48px; height: 32px; border-radius: 32px; background: #b0b0b0; position: relative; cursor: pointer; transition: background .2s; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: left .2s; }
.toggle input:checked { background: var(--ink); }
.toggle input:checked::after { left: 18px; }
.opt { padding: 8px 0; font-size: 16px; gap: 12px; }
.opt input { appearance: none; width: 24px; height: 24px; border-radius: 4px; border: 1px solid #b0b0b0; background: #fff; display: inline-grid; place-items: center; cursor: pointer; }
.opt input:checked { background: var(--ink); border-color: var(--ink); }
.opt input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.opt .n { font-size: 14px; color: var(--graphite); }
.facet-filter { height: 48px; border-radius: 8px; border: 1px solid #b0b0b0; padding: 0 14px; font-size: 15px; }
.range input { height: 48px; border-radius: 8px; border: 1px solid #b0b0b0; text-align: center; font-size: 15px; }
.gchip { border-radius: 30px; border: 1px solid #b0b0b0; padding: 10px 16px; font: 500 14px var(--body); }
.gchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gchip small { display: none; }
/* results header */
.tabs { border-bottom: 1px solid var(--hairline); gap: 8px; padding-bottom: 18px; margin-bottom: 20px; }   /* clearly apart from the toolbar below */
.tab { border: 1px solid var(--hairline); border-radius: 30px; padding: 8px 16px; font: 500 14px var(--body); }
.tab:hover { border-color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--acrylic-2); border-color: var(--ink); color: var(--ink); border-bottom-color: var(--ink); }
.tab small { color: var(--graphite); }
.toolbar { margin-bottom: 22px; }
.count { font: 600 14px var(--body); }
.count small { font: 400 14px var(--body); color: var(--graphite); }
.seg { border-radius: 30px; border-color: var(--hairline); }
.seg button { height: 40px; }
.seg.text button { font: 500 14px var(--body); padding: 0 16px; }
.seg.text button[aria-checked="true"], .seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.select select { height: 42px; border-radius: 30px; border-color: var(--hairline); font: 500 14px var(--body); }
.fees-btn, .more .btn, .btn { border-radius: 8px; border: 1px solid var(--ink); background: #fff; font-weight: 600; height: 42px; }
.btn:hover { background: var(--acrylic-2); }
.btn.primary, .buybox .row .btn { background: linear-gradient(90deg, #e61e4d 0%, #e31c5f 50%, #d70466 100%); border: 0; color: #fff; }
.btn.primary:hover { background: linear-gradient(90deg, #d70466, #bd1e59); color: #fff; }
.chip { border-radius: 30px; border-color: var(--hairline); padding: 8px 14px; font-weight: 500; }
.chip.clear { text-decoration: underline; color: var(--ink); font-weight: 600; }
/* listing cards: photo first, no card chrome, heart top-right */
.grid.view-large { gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.tile:hover { transform: none; box-shadow: none; }
.window { margin: 0; aspect-ratio: 1 / 1; border-radius: 12px; background: var(--window); }
.window img { padding: 6%; }
.window .grade-badge { top: 12px; left: 12px; border: 0; border-radius: 6px; background: #fff; font: 600 12px var(--body); padding: 5px 9px; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.window .grade-badge .who { font-family: var(--body); font-stretch: normal; letter-spacing: 0; text-transform: none; font-size: 12px; color: var(--ink); }
.window .pips { bottom: 12px; }
.window .pips i { width: 6px; height: 6px; background: rgba(255, 255, 255, .6); }
.window .pips i:first-child { background: #fff; }
.tile-body { padding: 12px 0 0; gap: 2px; }
.tile-body .name { font: 600 15px/1.3 var(--body); -webkit-line-clamp: 1; min-height: 0; }
.tile-body .meta { order: 2; font: 400 14px var(--body); color: var(--graphite); letter-spacing: 0; }
.tile-body .sub { order: 3; font-size: 14px; color: var(--graphite); }
.price-row { order: 4; justify-content: flex-start; gap: 10px; margin-top: 6px; align-items: baseline; }
.price { font: 600 15px var(--body); letter-spacing: 0; font-stretch: normal; }
.price .from { font: 400 14px var(--body); color: var(--graphite); }
.price .fee-tag { display: inline; margin-left: 6px; font: 400 14px var(--body); color: var(--graphite); text-decoration: underline; }
.delta { background: transparent; padding: 0; font: 400 14px var(--body); }
.delta.under { color: var(--under); }
.delta.over { color: var(--over); }
.sold-line { padding: 2px 0 0; font-size: 14px; }
.sold-line b, .sold-line .vs { font-family: var(--body); font-weight: 600; }
.group-line { border: 0; padding: 2px 0 0; font-size: 14px; }
.more .btn { height: 48px; font-size: 16px; background: var(--ink); color: #fff; border-radius: 8px; }
/* detail: listing page with a sticky booking box */
dialog#detail { width: min(1120px, calc(100vw - 32px)); border-radius: 12px; border: 0; }
.dt { grid-template-columns: 1.1fr 1fr; }
.dt-media { background: #fff; padding: 24px 0 24px 24px; }
.dt-media .big { border-radius: 12px; background: var(--window); }
.dt-media .zoom-hint { text-decoration: underline; font-family: var(--body); font-weight: 600; color: var(--ink); }
.dt-media .flip .gchip { padding: 8px 14px; }
.dt-info { padding: 24px 24px 32px; }
.dt-info h2 { font: 600 26px/1.25 var(--display); font-stretch: normal; letter-spacing: 0; }
.dt-eyebrow { font: 600 14px var(--body); color: var(--ink); letter-spacing: 0; text-transform: none; }
.buybox { border: 1px solid var(--hairline); border-radius: 12px; padding: 24px; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.buybox .k { font-size: 14px; }
.buybox .p { font: 600 22px/1.2 var(--body); font-stretch: normal; letter-spacing: 0; }
.fee-lines { font-size: 14px; color: var(--ink); }
.fee-lines b { font-family: var(--body); font-weight: 400; }
.fee-toggle { border-radius: 30px; }
.buybox .row .btn { height: 48px; font-size: 16px; border-radius: 8px; }
.buybox .line { font-size: 14px; }
/* criteria stay as the current 3-column tiles (user's choice), in Airbnb's border/radius language */
.attrs { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.attr { background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 12px; }
.attr span { display: block; font-size: 12px; color: var(--graphite); }
.attr b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.attr.mono b { font-weight: 500; }
.dt-info h3.caps { font: 600 22px var(--body); margin: 8px 0 6px; }
.dt-info .hint { font-size: 14px; }
.rung { border-radius: 12px; border-color: var(--hairline); padding: 12px; }
.rung:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .12); border-color: var(--hairline); }
.rung .who em { border-radius: 4px; }
.rung .meter { height: 4px; }
.verdict { border-radius: 12px; }
.dt-nav .dt-close, .dt-nav .dt-back { border-radius: 50%; border-color: transparent; background: var(--acrylic-2); }
.dt-nav .dt-back { border-radius: 22px; }
.chart svg text { font-family: var(--body); }

/* the pink outline around the dialog came from the focus ring; Airbnb uses none on the sheet itself */
dialog#detail:focus-visible, dialog#detail:focus { outline: none; }

/* ---------- audit round 1 ---------- */
/* light-only skin: the theme button has nothing to switch */
#themeBtn { display: none !important; }
/* fees popover: radios look like radios, and the panel never leaves the screen */
.opt input[type="radio"] { border-radius: 50%; }
.opt input[type="radio"]:checked::after { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.fees-pop { max-height: max(280px, calc(100vh - 360px)); overflow-y: auto; }
/* category tabs fade out instead of cutting a word */
.tabs { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 40px; }
/* table view: horizontal scroll inside its own box */
.grid.view-table { max-height: calc(100vh - 220px); overflow: auto; border: 1px solid var(--hairline); border-radius: 12px; }
.grid.view-table table { min-width: 1000px; width: 100%; }
.grid.view-table thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .topbar .brand-name { font-size: 18px; }
  .sitenav { margin-left: 0; }
  .sitenav .btn { padding: 0 10px; height: 36px; }
  .topbar .lang { margin-left: auto; height: 36px; padding: 0 6px; font-size: 13px; }
  .search { order: 10; flex: 1 0 100%; height: 50px; max-width: none; padding: 0 6px 0 16px; }
  .search svg { width: 38px; height: 38px; padding: 10px; }
  .hero { padding: 16px 16px 0; }
  .vaults { padding: 14px 16px 0; gap: 22px; overflow-x: auto; }
  .layout { padding: 14px 16px 60px; gap: 16px; }
  .toolbar-right { width: 100%; }
  .select { flex: 1; min-width: 0; }
  .select select { width: 100%; }
  .fees-pop { position: fixed; left: 16px; right: 16px; top: 120px; width: auto; }
  .grid.view-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toolbar-right { flex-wrap: wrap; }
  .select { flex: 1 1 100%; }
}
.grid.view-table td.nm { max-width: 230px; }

/* ---------- audit round 2: detail dialog ---------- */
.rung { grid-template-columns: 36px minmax(0, 1fr) auto; }
.rung .rung-name { display: block; font-size: 12px; color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dt-media .big { max-height: calc(100vh - 190px); }
#dtImg:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.lightbox .lb-flip { bottom: 22px; }
.lightbox img { max-height: calc(100vh - 110px); }
@media (hover: none) { .lightbox .lb-hint { display: none; } }
@media (max-width: 900px) {
  dialog#detail { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .dt { grid-template-columns: 1fr; }
  .dt-media { padding: 16px; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .dt-media .big { max-height: 56vh; }
  .dt-info { padding: 18px 16px 24px; }
  .dt-info h2 { font-size: 20px; padding-right: 92px; }
  .attrs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the close/back buttons stay reachable however far the sheet is scrolled */
  .dt-nav { position: fixed; top: 16px; right: 16px; z-index: 5; }
  .dt-nav .btn, .dt-nav .icon-btn { box-shadow: 0 2px 8px rgba(0, 0, 0, .18); background: #fff; }
  .comps table, .sales table { display: block; overflow-x: auto; }
  .fee-lines { grid-template-columns: minmax(0, 1fr) auto; }
}
.rung .rung-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.view-small .price { white-space: nowrap; font-size: 14px; }
@media (max-width: 760px) { .select select { font-size: 13px; padding-right: 30px; } }
.alert-btn { height: 42px; border-radius: 8px; border: 1px solid var(--ink); background: #fff; font-weight: 600; gap: 6px; }
.alert-btn:hover { background: var(--acrylic-2); }

/* title on the left, platform logos on the right of the same band (no empty block on the right) */
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--hairline); padding-bottom: 18px; }
.hero-row .hero { flex: 1 1 auto; min-width: 0; padding-bottom: 0; }
.hero-row .vaults { flex: 0 1 auto; justify-content: flex-end; padding: 26px 40px 0 0; border-bottom: 0; margin: 0; }
body.filtering .hero-row { justify-content: flex-start; }
@media (max-width: 1100px) { .hero-row { display: block; } .hero-row .vaults { justify-content: flex-start; padding: 14px 16px 0; } }

/* audit 19 Oct (zone 1) */
.view-table img.pm, .rung img.pm { width: 20px; height: 20px; padding: 2px; border-radius: 5px; }   /* platform logos stay logo-sized */
@media (min-width: 1101px) { body.filtering .hero-row .vaults { padding-left: 40px; } }                                            /* hero hidden: keep the left margin */
.toolbar .chips { flex: 1 1 280px; min-width: 200px; }                                              /* chips on one line when there is room */
.chip { white-space: nowrap; }
.price .fee-tag { white-space: nowrap; }
.view-large .price .fee-tag { font-size: 12px; }
.dt-media .zoom-hint { background: none; border: 0; padding: 4px; cursor: pointer; font-size: 12px; }
@media (max-width: 640px) {
  .toolbar-right .select { flex: 1 1 100%; }                                                        /* sort menu gets its own row */
  .fees-pop { top: auto; bottom: 12px; max-height: 78vh; overflow: auto; }                         /* bottom sheet: never under the header */
  .window .cmp-toggle { top: auto; bottom: 8px; right: 8px; padding: 4px 8px; font-size: 11px; }
  .window .pips { left: 10px; transform: none; bottom: 14px; }   /* front/back dots left of the Compare button */   /* clear of the grade badge */
}

.buybox .fee-toggle { white-space: normal; max-width: 100%; text-align: left; }   /* long fee labels wrap inside the buy box on phones */
