/* Shared styles for index.html and rental.html */
:root {
  --bg: #0b0f16;
  --panel: rgba(17, 24, 39, 0.88);
  --text: #f7f9fc;
  --muted: #a5b0c2;
  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.16);
  --accent: #eef4ff;
  --shadow: 0 14px 40px rgba(0,0,0,.28);
  --success: #1e8e5a;
  --info: #1f6feb;
  --purple: #6e44d3;
  --warm: #a85711;
  --region: #dce8ff;
  --region-text: #163055;
  --radius-xl: 28px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(103, 153, 255, .15), transparent 28%),
    radial-gradient(circle at left 20%, rgba(255,255,255,.06), transparent 25%),
    linear-gradient(180deg, var(--bg) 0%, #0d1320 100%);
  color: var(--text);
}

body {
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; }

.shell {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 54px;
}

.hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #dbe5f8;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.hero-copy,
.hero p {
  max-width: 76ch;
  color: #d7e0f1;
  margin: 0 0 16px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: #eaf1ff;
  background: rgba(255,255,255,.04);
  font-weight: 600;
}

.hero-link:hover,
.hero-link:focus-visible {
  border-color: var(--line-2);
  background: rgba(255,255,255,.08);
  outline: none;
}

.intro-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  color: #d7e0ef;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.intro-card p {
  margin: 0 0 12px;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(9, 13, 20, .82);
  backdrop-filter: blur(14px);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.toolbar-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 14px;
}

.control {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  padding: 14px;
  min-height: 100%;
}

.control h2 {
  margin: 0 0 10px;
  font-size: .85rem;
  letter-spacing: .02em;
  color: #dce5f7;
}

.search-wrap,
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
}

.search-wrap input,
.search input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1rem;
  outline: 0;
}

.search-wrap input::placeholder,
.search input::placeholder {
  color: #93a0b6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn,
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: #dfe7f7;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible,
.chip:hover,
.chip:focus-visible {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: var(--line-2);
  outline: none;
}

.filter-btn.is-active,
.chip.active {
  background: var(--accent);
  color: #0b0f16;
  border-color: transparent;
  font-weight: 700;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 14px 2px 16px;
}

.results-count,
.result-count {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #eef4ff;
}

.summary-help,
.helper {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.card-grid,
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gear-card,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.gear-card:hover,
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}

.gear-card[hidden],
.card.hidden {
  display: none !important;
}

.card-top,
.topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.card-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.card-type,
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: #dfe7f8;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.type-website { background: rgba(31,111,235,.18); color: #deebff; border-color: rgba(31,111,235,.36); }
.type-social { background: rgba(30,142,90,.20); color: #def8e9; border-color: rgba(30,142,90,.38); }
.type-group { background: rgba(110,68,211,.20); color: #eadfff; border-color: rgba(110,68,211,.36); }
.type-reddit { background: rgba(168,87,17,.20); color: #ffe7d1; border-color: rgba(168,87,17,.34); }

.gear-card h3,
.card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.gear-card h3 a,
.card h3 a {
  text-decoration: none;
  color: #f8fbff;
}

.gear-card h3 a:hover,
.gear-card h3 a:focus-visible,
.card h3 a:hover,
.card h3 a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.gear-card p,
.card p,
.desc {
  margin: 0;
  color: #d6deef;
  font-size: .95rem;
  flex: 1 1 auto;
}

.meta {
  color: var(--muted);
  font-size: .93rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badges,
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  border: 1px solid transparent;
  background: rgba(255,255,255,.03);
  color: #dfe7f8;
}

.badge-new {
  background: rgba(30,142,90,.20);
  color: #def8e9;
  border-color: rgba(30,142,90,.38);
}

.badge-used {
  background: rgba(31,111,235,.20);
  color: #deebff;
  border-color: rgba(31,111,235,.36);
}

.badge-pro {
  background: rgba(110,68,211,.20);
  color: #eadfff;
  border-color: rgba(110,68,211,.36);
}

.badge-budget {
  background: rgba(72,80,94,.32);
  color: #f2f5fb;
  border-color: rgba(255,255,255,.16);
}

.badge-hybrid {
  background: rgba(168,87,17,.20);
  color: #ffe7d1;
  border-color: rgba(168,87,17,.34);
}

.badge-region {
  background: var(--region);
  color: var(--region-text);
  border-color: rgba(255,255,255,.2);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  width: fit-content;
  border-radius: 12px;
  padding: 10px 14px;
  background: #edf2ff;
  color: #0f1115;
  font-weight: 700;
}

.empty-state,
.empty {
  display: none;
  margin-top: 14px;
  border: 1px dashed rgba(255,255,255,.20);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  color: #d5deef;
  background: rgba(255,255,255,.03);
}

.legend {
  margin-top: 22px;
  color: var(--muted);
  font-size: .88rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1120px) {
  .toolbar-grid { grid-template-columns: 1fr 1fr; }
  .card-grid, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 18px, 1320px);}
  .hero, .toolbar, .intro-card { border-radius: 20px; }
  .toolbar-grid, .card-grid, .cards { grid-template-columns: 1fr;}
  .summary-row { flex-direction: column; align-items: flex-start; }
  .filter-btn, .chip { max-width: 100%; }
  .toolbar .control{padding:1px}
  .shell h2{display: none;}
}

