/* IjaraRadar Mini App. Design: Claude Design canvas "IjaraRadar Mini App". */
:root {
  --bg: #F2F3F5;
  --card: #FFFFFF;
  --segment: #E4E6EA;
  --line: #E6E8EC;
  --line-soft: #EEF0F3;
  --text: #121417;
  --muted: #5B636D;
  --faint: #8C949E;
  --accent: #0B7A55;
  --accent-text: #0B6B4B;
  --accent-soft: #E3F3EC;
  --accent-line: #BFE3D2;
  --neutral-soft: #EDEFF2;
  --neutral-text: #3F4650;
  --warn-soft: #FFF3D6;
  --warn-text: #7A4A00;
  --photo: #DCE6E0;
  --switch-off: #C9CED5;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0F1216;
  --card: #181C22;
  --segment: #1F242B;
  --line: #262C34;
  --line-soft: #20252C;
  --text: #EEF1F4;
  --muted: #9AA3AE;
  --faint: #6B7480;
  --accent: #12936A;
  --accent-text: #7FD6B0;
  --accent-soft: #1C3B30;
  --accent-line: #2A5646;
  --neutral-soft: #262C34;
  --neutral-text: #C2C9D1;
  --warn-soft: #3A2F18;
  --warn-text: #F2C36B;
  --photo: #26302C;
  --switch-off: #3A414A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: Manrope, -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.screen { min-height: 100vh; padding-bottom: 24px; }

/* List header */
.top { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 12px 16px 10px; display: flex; flex-direction: column; gap: 12px; }
.segment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--segment); }
.segment button { height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; }
.segment button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; background: var(--card); color: var(--text); border: 1px solid var(--line); }
.chip.on { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.chip.icon { width: 40px; padding: 0; justify-content: center; }
.summary { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.summary b { color: var(--text); font-weight: 700; }

/* Cards */
.list { padding: 4px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.card { border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.card-body { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.pill { position: absolute; padding: 3px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #FFFFFF; background: rgba(10, 14, 18, 0.62); }
.pill.count { right: 10px; bottom: 10px; pointer-events: none; }
.pill.new { left: 10px; top: 10px; background: var(--accent); }
.body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.price .per { font-size: 14px; color: var(--muted); }
.price .alt { margin-left: auto; font-size: 13px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 15px; font-weight: 700; }
.facts span, .place { display: flex; align-items: center; gap: 5px; min-width: 0; }
.place { font-size: 14px; color: var(--muted); }
.place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.tag { padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--neutral-soft); color: var(--neutral-text); }
.tag.owner { background: var(--accent-soft); color: var(--accent-text); }
.tag.warn { background: var(--warn-soft); color: var(--warn-text); }
.meta { padding-top: 4px; font-size: 12px; color: var(--muted); }
.more { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }
svg { flex: none; }

/* Filters */
.page { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 22px; }
.page-head { display: flex; align-items: center; justify-content: space-between; }
h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
h2 { margin: 0; font-size: 15px; font-weight: 800; }
.link { height: 36px; padding: 0 4px; border: 0; background: transparent; font-size: 15px; font-weight: 700; color: var(--accent-text); }
.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hint { font-size: 13px; color: var(--muted); }
.grid { display: grid; gap: 8px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opt { height: 44px; padding: 0 8px; border-radius: 12px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--card); color: var(--text); border: 1px solid var(--line); }
.opt[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); border: 1.5px solid var(--accent); }
.range { display: flex; align-items: center; gap: 8px; }
.range .dash { flex: none; color: var(--faint); }
.field { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 4px 0 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.field input { flex: 1; min-width: 0; width: 0; border: 0; outline: none; background: transparent; font-size: 15px; font-weight: 700; }
.field input::placeholder { color: var(--faint); font-weight: 600; }
.cur { flex: none; height: 34px; padding: 0 9px; display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--accent); border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 800; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: left; width: 100%; }
.toggle span.text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.toggle b { font-size: 15px; font-weight: 700; }
.switch { flex: none; width: 50px; height: 30px; padding: 3px; border-radius: 15px; background: var(--switch-off); display: flex; justify-content: flex-start; }
.switch::after { content: ""; width: 24px; height: 24px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
[aria-checked="true"] .switch { background: var(--accent); justify-content: flex-end; }
.bottom { position: sticky; bottom: 0; padding: 10px 16px 16px; background: var(--bg); }
.primary { width: 100%; height: 52px; border: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 800; color: #FFFFFF; background: var(--accent); }

/* Listing */
.gallery { position: relative; height: 300px; background: var(--photo); }
.gallery.in-card { height: 200px; }
.gallery.in-card .slide { cursor: pointer; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 18px; display: none; align-items: center; justify-content: center; color: #FFFFFF; background: rgba(10, 14, 18, 0.55); }
.arrow.prev { left: 10px; }
.arrow.next { right: 10px; }
@media (hover: hover) { .arrow:not([hidden]) { display: flex; } }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: none; width: 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; color: var(--faint); position: relative; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.gallery:not(.in-card) .pill.count { top: 12px; right: 12px; bottom: auto; }
.detail { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.price-btn { align-self: flex-start; display: flex; align-items: baseline; gap: 6px; padding: 0; border: 0; background: transparent; text-align: left; }
.price-btn strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.price-btn .swap { font-size: 13px; font-weight: 700; color: var(--accent-text); }
.title { font-size: 17px; font-weight: 700; }
.sub { font-size: 14px; color: var(--muted); }
.table { border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 14px; }
.row + .row { border-top: 1px solid var(--line-soft); }
.row span:first-child { color: var(--muted); flex: none; }
.row span:last-child { font-weight: 700; text-align: right; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn-text); font-size: 13px; line-height: 1.45; }
.note { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Empty and error states */
.empty { padding: 40px 28px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.empty h1 { font-size: 22px; }
.empty p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.relax { width: 100%; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.relax-item { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 15px; font-weight: 600; text-align: left; }
.relax-item b { color: var(--accent-text); font-weight: 800; }
.secondary { height: 48px; padding: 0 22px; border-radius: 14px; border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--accent-text); font-size: 15px; font-weight: 800; }
.skeleton { height: 300px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
