/* ============================================
   NOLIMIT RADAR — Nepremičnine
   Design tokens
   ============================================ */

:root {
  --ink:        #1a1712;
  --ink-soft:   #3d372c;
  --body:       #5c554a;
  --muted:      #8a7e6c;
  --sand:       #f4ede2;
  --sand-deep:  #e6ddc9;
  --clay:       #a08a63;
  --line:       #e8e2d6;
  --white:      #ffffff;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shell: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.02;
  margin: 0;
}

h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 22px; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(0.985); }

.btn-ink   { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #2b251c; }

.btn-sand  { background: var(--sand); color: var(--ink-soft); }
.btn-sand:hover { background: var(--sand-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { background: var(--sand); }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.05em;
}
.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  flex: none;
}
.brand-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--clay);
  opacity: .5;
}
.hdr-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--body);
}
.hdr-nav a.nav-link:hover { color: var(--ink); }

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 1px;
  background: var(--line);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
}
.lang-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  background: var(--white);
  border: none;
  color: var(--muted);
  padding: 6px 10px;
  cursor: pointer;
  transition: all .12s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { background: var(--ink); color: var(--white); }

@media (max-width: 720px) {
  .lang-toggle { gap: 2px; padding: 3px; }
  .lang-btn { padding: 5px 10px; font-size: 11px; }
}

@media (max-width: 720px) {
  .hdr-nav a.nav-link { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 72px;
  padding-bottom: 84px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-lead {
  font-size: 17px;
  color: var(--body);
  max-width: 460px;
  margin: 18px 0 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note { font-size: 13px; color: var(--muted); }

/* Query bar */
.qbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sand);
  border-radius: 10px;
  padding: 13px 16px;
  max-width: 470px;
  margin-bottom: 26px;
  cursor: default;
  user-select: none;
  min-height: 50px;
}
.qbar-text { min-height: 1.4em; }
.qbar-icon {
  width: 16px; height: 16px;
  border: 1.6px solid var(--clay);
  border-radius: 50%;
  flex: none;
  position: relative;
}
.qbar-icon::after {
  content: '';
  position: absolute;
  width: 6px; height: 1.6px;
  background: var(--clay);
  bottom: -1px; right: -5px;
  transform: rotate(45deg);
}
.qbar-text { font-size: 14.5px; color: var(--ink-soft); }
.caret {
  display: inline-block;
  width: 1.5px; height: 15px;
  background: var(--clay);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  background: var(--sand);
  color: #5c4a2a;
  font-size: 12.5px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
}
.chip b { font-weight: 500; color: var(--clay); margin-right: 5px; }

/* ---------- Radar (signature element) ---------- */
.radar-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--sand);
  border-radius: 20px;
  overflow: hidden;
}
.radar-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Photo behind the radar */
.radar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.radar-veil {
  position: absolute;
  inset: 0;
  background: rgba(244, 237, 226, 0.62);
}

/* ---------- Full-bleed banner ---------- */
.banner {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,23,18,0.72) 0%, rgba(26,23,18,0.28) 45%, rgba(26,23,18,0.05) 100%);
}
.banner-in {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
  width: 100%;
}
.banner-in h2 { color: var(--white); max-width: 620px; }
.banner-in p {
  color: rgba(255,255,255,0.86);
  font-size: 16.5px;
  max-width: 480px;
  margin-top: 16px;
}
.banner-in .eyebrow { color: rgba(255,255,255,0.66); }

/* ---------- Photo strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.strip figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
}
.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.strip figure:hover img { transform: scale(1.04); }

@media (max-width: 760px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip figure:last-child { display: none; }
  .banner { min-height: 340px; }
}

@keyframes ringOut {
  0%   { transform: scale(0.14); opacity: 0.85; }
  100% { transform: scale(1);    opacity: 0; }
}
@keyframes sweepSpin { to { transform: rotate(360deg); } }

.r-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ringOut 3s ease-out infinite;
}
.r-ring.d2 { animation-delay: 1.5s; }
.r-sweep {
  transform-origin: 150px 150px;
  animation: sweepSpin 4.5s linear infinite;
}

.hit {
  position: absolute;
  top: 50%; left: 50%;
  width: 122px;
  background: var(--white);
  border-radius: 10px;
  padding: 9px 11px;
  box-shadow: 0 0 0 1px var(--sand-deep);
  animation: fly 5.6s ease-in-out infinite;
}
.hit b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.hit span { font-size: 11px; color: var(--muted); }

@keyframes fly {
  0%   { transform: translate(-50%,-50%) scale(0.25); opacity: 0; }
  10%  { opacity: 1; }
  26%  { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1); opacity: 1; }
  76%  { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1); opacity: 1; }
  90%  { opacity: 0; }
  100% { transform: translate(-50%,-50%) scale(0.25); opacity: 0; }
}

.radar-badge {
  position: absolute;
  left: 16px; bottom: 16px;
  background: var(--white);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  font-size: 11.5px;
  color: #5c4a2a;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clay);
  animation: softPulse 1.6s ease-in-out infinite;
}
@keyframes softPulse { 50% { opacity: .3; } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-sand { background: var(--sand); }

.sec-head { max-width: 620px; margin-bottom: 44px; }
.sec-head p {
  font-size: 16.5px;
  color: var(--body);
  margin-top: 16px;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 28px 24px;
  border: 1px solid var(--line);
}
.section-sand .step { border-color: transparent; }
.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  color: var(--clay);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--body); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: left; }
.stat-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 46px;
  line-height: 1;
  color: var(--ink);
}
.stat-l { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* Feed preview list */
.listing {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: border-color .15s ease;
}
.listing:hover { border-color: var(--sand-deep); }
.listing-thumb {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--sand);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--clay);
}
.listing-main { flex: 1; min-width: 0; }
.listing-title {
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.listing-meta {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.listing-price {
  text-align: right;
  font-size: 17px;
  font-weight: 500;
  flex: none;
}
.listing-price span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.tag {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-weight: 500;
}
.tag-new     { background: var(--ink);  color: var(--white); }
.tag-bumped  { background: var(--sand-deep); color: #5c4a2a; }
.tag-repost  { background: var(--sand); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.foot-in {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.foot-in .spacer { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 60px; }
  .radar-wrap { max-width: 380px; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hit { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))); }
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   MOBILE
   ============================================ */

html, body { overflow-x: hidden; }
img { max-width: 100%; }

@media (max-width: 900px) {
  .radar-wrap { margin: 0 auto; }
}

@media (max-width: 720px) {
  .shell, .hdr-in, .foot-in, .banner-in { padding-left: 18px; padding-right: 18px; }

  /* Header: brand + prijava only, tighter */
  .hdr-in { padding-top: 11px; padding-bottom: 11px; gap: 10px; }
  .brand { font-size: 19px; }
  .hdr-nav { gap: 12px; }

  /* Hero */
  .hero { padding-top: 32px; padding-bottom: 44px; gap: 32px; }
  h1 { font-size: 40px; }
  .hero-lead { font-size: 16px; margin: 14px 0 22px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-note { flex: 1 1 100%; }

  /* Query bar wraps instead of clipping */
  .qbar { padding: 12px 14px; margin-bottom: 20px; }
  .qbar-text { font-size: 13.5px; line-height: 1.45; }

  .chips { gap: 6px; margin-top: 20px; }
  .chip { font-size: 11.5px; padding: 5px 11px; }

  /* Radar: cards pulled closer so nothing clips */
  .radar-wrap { border-radius: 16px; }
  .hit { width: 104px; padding: 7px 9px; }
  .hit b { font-size: 11px; }
  .hit span { font-size: 10px; }
  .hit:nth-of-type(1) { --tx: -62px; --ty: -58px; }
  .hit:nth-of-type(2) { --tx:  58px; --ty: -32px; }
  .hit:nth-of-type(3) { --tx: -54px; --ty:  60px; }
  .hit:nth-of-type(4) { --tx:  60px; --ty:  54px; }

  /* Sections */
  .section { padding: 48px 0; }
  .sec-head { margin-bottom: 30px; }
  .sec-head p { font-size: 15.5px; margin-top: 12px; }
  h2 { font-size: 30px; }

  .steps { gap: 14px; }
  .step { padding: 22px 20px; }

  .stats { gap: 22px 16px; }
  .stat-n { font-size: 38px; }
  .stat-l { font-size: 12.5px; }

  /* Banner */
  .banner { min-height: 300px; }
  .banner-in { padding-bottom: 36px; }
  .banner-in p { font-size: 15px; margin-top: 12px; }

  /* Listings stack: title row on top, price bottom-left */
  .listing {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-areas: "thumb main" ". price";
    gap: 6px 13px;
    padding: 14px 15px;
    align-items: start;
  }
  .listing-thumb { grid-area: thumb; width: 40px; height: 40px; }
  .listing-main  { grid-area: main; }
  .listing-price {
    grid-area: price;
    text-align: left;
    font-size: 16px;
    display: flex;
    align-items: baseline;
    gap: 9px;
  }
  .listing-price span { font-size: 11.5px; }
  .listing-title { font-size: 14.5px; gap: 7px; }
  .listing-meta { font-size: 11.5px; }

  /* Footer */
  .site-footer { padding: 26px 0; }
  .foot-in { gap: 14px; font-size: 12.5px; }
  .foot-in .spacer { margin-left: 0; flex-basis: 100%; height: 0; }
}

/* Stop iOS from zooming when a field gets focus */
@media (max-width: 720px) {
  input, select, textarea { font-size: 16px !important; }
}

/* Comfortable tap targets on touch devices */
@media (hover: none) {
  .btn { padding-top: 13px; padding-bottom: 13px; }
  .btn-sm { padding-top: 10px; padding-bottom: 10px; }
  .fbtn { padding-top: 9px; padding-bottom: 9px; }
}

/* ============================================
   AUTH (login page)
   ============================================ */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 8vw;
}
.auth-visual {
  background: var(--sand);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual .radar-svg { opacity: .9; position: relative; z-index: 1; }
.auth-quote { position: relative; z-index: 2; max-width: 380px; }
.auth-quote p { font-size: 16px; color: var(--ink); font-weight: 500; line-height: 1.4; }

.auth-head { margin-bottom: 34px; }
.auth-head h1 { font-size: 44px; margin-bottom: 10px; }
.auth-head p { font-size: 15px; color: var(--body); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .15s ease;
}
.field input::placeholder { color: #b5ad9e; }
.field input:hover { border-color: var(--sand-deep); }
.field input:focus { outline: none; border-color: var(--clay); }

.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 400; }
.checkbox input { width: auto; margin: 0; }

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 24px;
}
.field-row .link, .link { color: var(--clay); }
.field-row .link:hover, .link:hover { text-decoration: underline; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  font-size: 12px;
  color: var(--muted);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.invite-note {
  background: var(--sand);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.auth-back {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.auth-back:hover { color: var(--ink); }

.error-msg {
  font-size: 13px;
  color: #a8352b;
  margin: -8px 0 14px;
  min-height: 16px;
}

.btn-block { width: 100%; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: auto; }
  .auth-visual {
    display: block;
    height: 190px;
    padding: 0;
    order: -1;
  }
  .auth-visual .auth-quote { display: none; }
  .auth-form-side { padding: 30px 20px 56px; }
  .auth-back { margin-bottom: 26px; }
  .auth-head { margin-bottom: 26px; }
  .auth-head h1 { font-size: 36px; }
  .auth-head p { font-size: 14.5px; }
  .field { margin-bottom: 15px; }
  .field-row { margin: 4px 0 20px; }
  .divider { margin: 22px 0; }
  .invite-note { padding: 15px 16px; font-size: 13px; }
}

/* ============================================
   APP / DASHBOARD
   ============================================ */
.app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-areas:
    "side feed"
    "side panel";
  gap: 32px;
  align-items: start;
}
.side  { grid-area: side; }
.feed  { grid-area: feed; }
.panel { grid-area: panel; }

/* ----- Sidebar ----- */
.side { position: sticky; top: 84px; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.side-head h3 { font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.side-new-btn {
  font-family: inherit;
  font-size: 12px;
  background: var(--sand);
  border: none;
  color: var(--ink-soft);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.side-new-btn:hover { background: var(--sand-deep); }

.alarms { display: flex; flex-direction: column; gap: 9px; }
.alarm {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.alarm:hover { border-color: var(--sand-deep); }
.alarm.is-active { background: var(--sand); border-color: transparent; }
.alarm-name { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.alarm-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.alarm-status { font-size: 11.5px; color: var(--clay); margin-top: 4px; font-weight: 500; }

.side-scan {
  margin-top: 20px;
  padding: 14px 15px;
  background: var(--sand);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ----- Main feed column ----- */
.feed-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.feed-head h1 { font-size: 40px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--sand);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.feed-actions { margin-left: auto; display: flex; gap: 9px; }

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.fbtn {
  font-family: inherit;
  font-size: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--body);
  padding: 7px 15px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .15s ease;
}
.fbtn:hover { border-color: var(--sand-deep); }
.fbtn.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.listings { display: flex; flex-direction: column; }
.listing-actions { display: flex; gap: 6px; flex: none; }
.icon-btn {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}
.icon-btn:hover { background: var(--sand); color: var(--ink); border-color: transparent; }

/* ----- Settings panel ----- */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin-top: 40px;
}
.panel h2 { font-size: 28px; margin-bottom: 6px; }
.panel-sub { font-size: 14.5px; color: var(--body); margin-bottom: 26px; }

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px 22px;
  margin-bottom: 22px;
}
.grid2 label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.grid2 select, .grid2 input[type=text], .grid2 input[type=number] {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
}
.grid2 select:focus, .grid2 input:focus { outline: none; border-color: var(--clay); }

.range-inputs { display: flex; align-items: center; gap: 10px; }
.range-inputs input[type=number] { width: 90px; }
.range-inputs span { color: var(--muted); }

.toggle-section { margin-top: 4px; }
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.toggle-row:last-of-type { border-bottom: 1px solid var(--line); }
.toggle-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); cursor: pointer; }
.toggle-txt { font-size: 14.5px; cursor: pointer; }

.panel-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.saved-msg { font-size: 13.5px; color: var(--clay); }

@media (max-width: 940px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-areas:
      "side"
      "feed"
      "panel";
  }
  .side { position: static; }
  .grid2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .app { padding: 20px 18px 60px; gap: 24px; }
  .feed-head { gap: 10px; margin-bottom: 18px; }
  .feed-head h1 { font-size: 32px; flex: 1 1 100%; }
  .feed-actions { margin-left: 0; }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px 2px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .fbtn { flex: none; }
  .icon-btn { width: 40px; height: 40px; }
  .panel { padding: 22px 18px; margin-top: 28px; border-radius: var(--r-md); }
  .panel h2 { font-size: 26px; }
  .panel-sub { font-size: 13.5px; margin-bottom: 20px; }
  .grid2 { gap: 15px; }
  .toggle-row { padding: 15px 0; gap: 16px; }
  .toggle-txt { font-size: 14px; }
  .panel-foot { gap: 10px; }
  .panel-foot .btn { flex: 1 1 auto; }
  .saved-msg { flex: 1 1 100%; text-align: center; }
  .alarm { padding: 14px 15px; }
}
