*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
}

:root {
  --accent: #5271ff;
  --accent-dark: #3a57e8;
  --accent-dim: rgba(82, 113, 255, 0.1);
  --text: #0f172a;
  --text-mid: #334155;
  --muted: #64748b;
  --muted2: #94a3b8;
  --bg: #c5d3e8;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --border-acc: rgba(82, 113, 255, 0.2);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(82, 113, 255, 0.1);
  --radius: 10px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font);
  background: linear-gradient(to bottom, #7ba3d8 20%, #ffffff 90%) fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ── Page wrapper — single background, triangle lives here ── */
.page-wrap {
  position: relative;
  min-height: 100vh;
  max-width: 100%;
}

/* Triangle starts exactly where the nav ends (top: 68px = nav height).
 Nothing sits on top of it: no nav background, no other background.
 z-index: 2 puts it above the body bg; DOM-later content renders on top
 naturally without needing explicit z-index on every element. */
.page-triangle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}
.page-triangle svg {
  display: block;
}
.page-triangle img {
  display: block;
  width: 900px;
  height: auto;
}

/* ── Nav ──────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: transparent; /* JS controls via inline style */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; /* JS controls */
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 68px;
}
.nav-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s;
}
.nav-logo img:hover {
  opacity: 0.85;
}
.nav-logo span {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-link:hover {
  background: rgba(82, 113, 255, 0.1);
  color: var(--accent);
}
.nav-link.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.nav-cta {
  margin-left: 10px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
  display: inline-block;
}
.nav-cta:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* ── Hamburger ────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  margin-left: 10px;
  transition: background 0.2s;
}
.hamburger:hover {
  background: rgba(128, 128, 128, 0.12);
}
.hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  background: #fff;
  border-radius: 2px; /* default white; JS overrides per scroll */
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile menu ──────────────────────────── */
.mobile-menu {
  display: flex;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 199;
  background: #fff;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.12);
  padding: 20px 24px 40px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  /* slide-in animation */
  transform-origin: top center;
  transform: scaleY(0.92);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}
.mobile-menu.open {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu .mob-link {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    color 0.15s,
    padding-left 0.2s;
}
.mobile-menu.open .mob-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open .mob-link:nth-child(1) {
  transition-delay: 0.06s;
}
.mobile-menu.open .mob-link:nth-child(2) {
  transition-delay: 0.1s;
}
.mobile-menu.open .mob-link:nth-child(3) {
  transition-delay: 0.14s;
}
.mobile-menu.open .mob-link:nth-child(4) {
  transition-delay: 0.18s;
}
.mobile-menu .mob-link:nth-last-child(2) {
  border-bottom: none;
}
.mobile-menu .mob-link.active {
  color: var(--accent);
}
.mobile-menu .mob-link:hover {
  color: var(--accent);
  padding-left: 8px;
}
.mob-cta {
  margin-top: 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  text-align: center;
  transition:
    background 0.2s,
    transform 0.15s;
  display: block;
  opacity: 0;
  transform: translateY(-10px);
}
.mobile-menu.open .mob-cta {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.25s ease 0.26s,
    transform 0.25s ease 0.26s,
    background 0.2s;
}
.mob-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ── Hero — left-aligned, dark text ── */
.hero {
  position: relative;
  z-index: 3;
  padding: 88px 40px 28px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
}
.hero-inner {
  max-width: 560px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.12);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
  flex-shrink: 0;
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero p {
  color: #1e293b;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.search-bar {
  display: flex;
  max-width: 560px;
  margin: 0;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  padding: 18px 48px 18px 18px;
  background: transparent;
}
.search-bar .icon {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  color: var(--muted2);
  pointer-events: none;
}
.search-bar button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
  white-space: nowrap;
}
.search-bar button:hover {
  background: var(--accent-dark);
}

/* ── Main layout ──────────────────────────── */
.page-main {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 40px 80px;
  display: flex;
  flex-direction: column;
}
.main-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ── Sidebar ──────────────────────────────── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar {
  display: none;
}
.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.sidebar-head span {
  font-size: 15px;
  font-weight: 700;
}
.btn-clear {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}
.filter-block {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.filter-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.filter-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font);
}
.filter-head.open {
  margin-bottom: 12px;
}
.filter-head.closed {
  margin-bottom: 0;
}
.filter-head svg {
  transition: transform 0.22s;
  flex-shrink: 0;
}
.filter-head.open svg {
  transform: rotate(180deg);
}
.filter-head.closed + .filter-options {
  display: none;
}
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
  padding: 2px 0;
  transition: color 0.15s;
}
.filter-item.on {
  color: var(--text);
  font-weight: 500;
}
.chk {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--border-acc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.filter-item.on .chk {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── Job list column ──────────────────────── */
.jobs-col {
  flex: 1;
  min-width: 0;
}
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}
.results-count {
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
}
.results-count strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.results-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.sort-select,
.per-page-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  min-width: 130px;
  flex: 1 1 130px;
}
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Pagination ───────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--border-acc);
  background: var(--accent-dim);
}
.page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.page-btn:disabled {
  opacity: 0.38;
  cursor: default;
}
.page-ellipsis {
  font-size: 13px;
  color: var(--muted);
  padding: 0 2px;
}

/* ── Job Card ─────────────────────────────── */
.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
  cursor: pointer;
}
.job-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow-md);
  background: #fafbff;
}
.employer-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: contain;
  flex-shrink: 0;
  background: #f8f9fc;
  padding: 4px;
}
.employer-logo-fallback {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.card-body {
  flex: 1;
  min-width: 0;
}
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}
.tag-field {
  background: var(--accent-dim);
  color: var(--accent);
}
.tag-type {
  background: rgba(20, 80, 144, 0.1);
  color: #145090;
}
.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color 0.18s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-card:hover .card-title {
  color: var(--accent);
}
.card-employer {
  font-size: 13px;
  color: var(--muted);
}
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  flex-shrink: 0;
}
.card-salary {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Skeleton ─────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    #d0dced 25%,
    #c4d4e6 50%,
    #d0dced 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.skeleton-card .s-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
}
.skeleton-card .s-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Empty state ──────────────────────────── */
.empty {
  text-align: center;
  padding: 80px 40px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.empty strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}
.btn-primary:hover {
  background: var(--accent-dark);
}

/* ── Footer ───────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 3;
  background: #0f172a;
  color: #fbfcfd;
  font-family: var(--font);
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px 32px;
}
.site-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer-logo {
  flex-shrink: 0;
}
.site-footer-logo img {
  display: block;
  height: 68px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  background: #fbfcfd;
  border-radius: 10px;
  padding: 8px 16px;
}
.site-footer-logo span {
  font-size: 20px;
  font-weight: 700;
  color: #fbfcfd;
  letter-spacing: -0.02em;
}
.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 40px 56px;
  align-items: start;
}
.site-footer-col-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  color: #fbfcfd;
  margin-bottom: 20px;
}
.site-footer-col ul {
  list-style: none;
}
.site-footer-col ul li {
  margin-bottom: 14px;
}
.site-footer-col ul li:last-child {
  margin-bottom: 0;
}
.site-footer-col a {
  font-size: 14px;
  font-weight: 500;
  color: #fbfcfd;
  text-decoration: none;
  transition: text-decoration 0.15s;
}
.site-footer-col a:hover {
  text-decoration: underline;
}
.site-footer-divider {
  border: none;
  border-top: 1px solid rgba(251, 252, 253, 0.2);
  margin: 24px 0;
}
.site-footer-bottom {
  font-size: 13px;
  color: rgba(251, 252, 253, 0.55);
}
.site-footer-bottom a {
  color: inherit;
  text-decoration: none;
}
.site-footer-bottom a:hover {
  text-decoration: underline;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }
  .page-main {
    padding: 32px 24px 60px;
  }
}

@media (max-width: 900px) {
  body {
    background: linear-gradient(to bottom, #a8c2db 20%, #e8f0f8 90%) fixed;
  }
  .nav {
    padding: 0 20px;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    padding: 48px 20px 20px;
    max-width: none;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .search-bar {
    max-width: 100%;
  }
  .page-triangle {
    display: none;
  }
  .search-bar {
    border-radius: 10px;
  }
  .search-input-wrap input {
    padding: 15px 44px 15px 14px;
    font-size: 14px;
  }
  .search-bar .icon {
    right: 10px;
  }
  .search-bar button {
    padding: 0 20px;
    font-size: 14px;
    border-radius: 0 10px 10px 0;
  }
  .page-main {
    padding: 20px 16px 60px;
  }
  .main-row {
    flex-direction: column;
  }
  .results-bar {
    gap: 8px;
  }
  .results-controls {
    width: 100%;
  }
  .sort-select,
  .per-page-select {
    flex: 1 1 0;
    min-width: 0;
  }
  .card-meta {
    display: none;
  }
  .job-card {
    padding: 14px 16px;
    gap: 12px;
  }
  .card-title {
    white-space: normal;
  }
  .site-footer-inner {
    padding: 24px 20px 32px;
  }
  .site-footer-top {
    flex-direction: column;
    gap: 28px;
  }
  .site-footer-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── Mobile filter button (only ≤ 1024px) ── */
.mob-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  box-shadow: var(--shadow);
  flex-shrink: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.mob-filter-btn:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow-md);
}
.mob-filter-btn .mob-filter-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  padding: 1px 7px;
  display: none;
}
.mob-filter-btn .mob-filter-badge.visible {
  display: inline-block;
}

/* ── Mobile filter panel (full viewport) ── */
.mob-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}
.mob-filter-overlay.open {
  display: block;
}

.mob-filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 301;
  background: #f4f7fb;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.mob-filter-overlay.open .mob-filter-drawer {
  transform: translateX(0);
}

/* Header – sticky at top */
.mob-filter-drawer-handle {
  display: none;
}
.mob-filter-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}
.mob-filter-drawer-head span {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.mob-filter-drawer-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* "Zurücksetzen" link */
.mob-filter-drawer-clear {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  display: none;
  padding: 12px 10px;
  border-radius: 8px;
  min-height: 44px;
  min-width: 44px;
  transition: background 0.15s;
}
.mob-filter-drawer-clear:hover {
  background: var(--accent-dim);
}

/* Close × button – always visible, 44×44 touch target */
.mob-filter-drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  transition:
    background 0.15s,
    color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mob-filter-drawer-close:hover,
.mob-filter-drawer-close:active {
  background: rgba(82, 113, 255, 0.1);
  color: var(--accent);
}

/* Scrollable body */
.mob-filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Filter blocks inside drawer – full-width, card-style */
.mob-filter-drawer-body .filter-block {
  background: var(--card);
  border: none;
  border-bottom: 8px solid #f4f7fb;
  border-radius: 0;
  padding: 0;
  margin: 0;
}
.mob-filter-drawer-body .filter-block:last-child {
  border-bottom: none;
}

/* Section heading row – large tap target */
.mob-filter-drawer-body .filter-head {
  width: 100%;
  padding: 0 20px;
  min-height: 54px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.mob-filter-drawer-body .filter-head.open {
  margin-bottom: 0;
}

/* Option rows – 48px touch targets */
.mob-filter-drawer-body .filter-options {
  padding: 0 20px 12px;
}
.mob-filter-drawer-body .filter-item {
  min-height: 48px;
  padding: 0;
  font-size: 15px;
  gap: 14px;
  border-radius: 10px;
  padding: 0 8px;
  margin: 0 -8px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s;
}
.mob-filter-drawer-body .filter-item:active {
  background: var(--accent-dim);
}
.mob-filter-drawer-body .chk {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}

/* Footer – sticky at bottom, above safe area */
.mob-filter-drawer-footer {
  flex-shrink: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.mob-filter-apply-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0;
  height: 52px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mob-filter-apply-btn:hover {
  background: var(--accent-dark);
}
.mob-filter-apply-btn:active {
  background: var(--accent-dark);
}

@media (max-width: 1024px) {
  .mob-filter-btn {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 16px 40px;
  }
  .hero-inner {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-badge {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 16px;
  }
  .search-bar {
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(82, 113, 255, 0.15);
  }
  .search-input-wrap input {
    padding: 14px 44px 14px 16px;
    font-size: 15px;
  }
  .search-bar button {
    width: 100%;
    padding: 14px;
    border-radius: 0 0 12px 12px;
    font-size: 15px;
  }
  .pagination {
    gap: 4px;
  }
  .page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }
}
