:root {
  --ink: #1a1917;
  --muted: #6d6963;
  --line: #e8e2da;
  --paper: #f7f8fa;
  --orange: #e8531a;
  --orange-dark: #bd3e10;
  --green: #2a7a4f;
  --green-bg: #ebf6f0;
  --red: #a34040;
  --red-bg: #f6ebeb;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 14px 40px rgba(35, 28, 20, 0.09);
  --transition: all 0.2s ease-in-out;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f8f9fa;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
.site-nav {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #eceef0;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  padding: 16px 24px;
  transition: var(--transition);
}
.nav-logo { font-size: 1.05rem; font-weight: 850; text-decoration: none; letter-spacing: .01em; }
.nav-meta { color: #a7a19a; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero { background-color: var(--ink); background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; color: #fffdfa; overflow: hidden; position: relative; }
.hero-inner { margin: 0 auto; max-width: 1200px; padding: 64px 24px 100px; position: relative; }
.hero-inner::after { border-left: 1px solid rgba(232, 83, 26, .3); border-top: 1px solid rgba(232, 83, 26, .3); content: ""; height: 250px; position: absolute; right: 0; top: 30px; width: 300px; pointer-events: none; }
.eyebrow { color: #f49a73; font-size: .72rem; font-weight: 800; letter-spacing: .15em; margin: 0 0 18px; text-transform: uppercase; }
h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); letter-spacing: -.055em; line-height: 1; margin: 0; max-width: 750px; position: relative; z-index: 1; }
h1 span { color: var(--orange); }
.hero-sub { color: #b7b1aa; font-size: 1.1rem; margin: 24px 0 0; max-width: 520px; line-height: 1.6; }
.search-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); color: var(--ink); margin: 32px auto 0; max-width: 900px; padding: 24px; position: relative; z-index: 2; transition: var(--transition); }
.search-row { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.field-wide { grid-column: 1 / -1; }
.field-label { color: var(--muted); display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; margin-bottom: 8px; text-transform: uppercase; }
.field-control { appearance: none; background: #f9f7f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236d6963' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center; border: 1px solid transparent; border-radius: 10px; color: var(--ink); font: inherit; min-height: 48px; padding: 0 38px 0 14px; width: 100%; transition: var(--transition); }
.field-control:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px rgba(232, 83, 26, 0.1); background: #fff; }
.text-control { appearance: auto; background: #f9f7f5; }
.stock-toggle { align-items: center; color: var(--muted); cursor: pointer; display: none; font-size: .82rem; gap: 8px; margin-top: 16px; }
.stock-toggle input { accent-color: var(--orange); height: 16px; width: 16px; }
.search-actions { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.search-btn, .location-btn { border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 800; min-height: 50px; padding: 0 20px; transition: var(--transition); width: 100%; }
.search-btn { background: var(--orange); color: white; box-shadow: 0 4px 12px rgba(232, 83, 26, 0.2); }
.search-btn:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(232, 83, 26, 0.3); }
.location-btn { background: var(--ink); color: #fff; }
.location-btn:hover { background: #393632; transform: translateY(-2px); }
.location-status { color: var(--muted); font-size: .8rem; margin: 12px 0 0; min-height: 1.2em; text-align: center; font-weight: 500; }
.summary-strip { background: #fff; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; max-width: 1200px; padding: 32px 24px; gap: 24px; }
.stat { border-right: 1px solid var(--line); padding: 0 20px; text-align: center; }
.stat:first-child { padding-left: 0; } .stat:last-child { border: 0; padding-right: 0; }
.stat-num { display: block; font-size: 2rem; font-weight: 850; letter-spacing: -.04em; color: var(--ink); }
.stat-label { color: var(--muted); display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; margin-top: 4px; text-transform: uppercase; }
.results-wrap { margin: 0 auto; max-width: 1200px; min-height: 400px; padding: 64px 24px 100px; }
.hint-state { align-items: center; color: var(--muted); display: flex; flex-direction: column; justify-content: center; min-height: 320px; text-align: center; }
.hint-kicker { color: var(--ink); font-size: .72rem; font-weight: 850; letter-spacing: .12em; margin: 0; text-transform: uppercase; }
.hint-state p:last-child { margin: 12px 0 0; font-size: 1.1rem; }
.hidden { display: none !important; }
.results-header { align-items: baseline; display: flex; justify-content: space-between; margin-bottom: 16px; }
.results-label { font-size: 1.75rem; font-weight: 850; letter-spacing: -.03em; color: var(--ink); }
.results-count { color: var(--muted); font-size: .9rem; font-weight: 500; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.pill { background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; padding: 8px 16px; transition: var(--transition); }
.pill:hover, .pill.active { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.cards-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.dealer-card { background: #fff; border: 1px solid #e4e7ea; border-radius: 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; padding: 24px; transition: var(--transition); }
.dealer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--line); }
.dealer-card.unavailable { opacity: .6; background: #fafafa; }
.card-top { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.card-name { font-size: 1.15rem; font-weight: 850; line-height: 1.3; color: var(--ink); }
.card-area { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.avail-badge { border-radius: 999px; flex-shrink: 0; font-size: .65rem; font-weight: 800; padding: 6px 10px; text-transform: uppercase; letter-spacing: .03em; }
.avail-badge.avail { background: var(--green-bg); color: var(--green); } .avail-badge.unavail { background: var(--red-bg); color: var(--red); }
.avail-badge.neutral { align-items: center; background: #f1eee9; color: var(--muted); display: inline-flex; gap: 6px; }
.avail-badge.neutral::before { background: #9a938a; border-radius: 50%; content: ""; height: 6px; width: 6px; }
.card-meta { border-top: 1px solid var(--line); display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; }
.card-brand { color: var(--orange-dark); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; } .card-proprietor, .card-qty { color: var(--muted); font-size: .85rem; }
.phone-link { color: var(--orange-dark); font-size: .9rem; font-weight: 750; text-underline-offset: 3px; transition: var(--transition); }
.phone-link:hover { color: var(--orange); }
.no-phone { color: #aaa39b; font-size: .85rem; } .card-remarks { background: #fff7e8; border-left: 4px solid #d8a34f; color: #80591b; font-size: .8rem; margin: 20px -1px 0; padding: 12px; line-height: 1.5; }
.card-actions { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: auto; padding-top: 24px; }
.btn-primary, .btn-secondary { align-items: center; border-radius: 10px; display: flex; font-size: .8rem; font-weight: 800; justify-content: center; min-height: 42px; transition: var(--transition); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 12px rgba(232, 83, 26, 0.15); } .btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232, 83, 26, 0.25); } .btn-primary.disabled { background: #dedad4; color: #fff; cursor: not-allowed; box-shadow: none; }
.btn-secondary { border: 1px solid #d8d2ca; color: var(--muted); background: #fff; } .btn-secondary:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.no-results { color: var(--muted); grid-column: 1 / -1; padding: 80px 20px; text-align: center; } .no-results-title { color: var(--ink); font-weight: 800; margin: 0; font-size: 1.5rem; } .no-results p:last-child { margin: 8px 0 0; font-size: 1.1rem; }
.load-more { background: var(--ink); border: 0; border-radius: 10px; color: #fff; cursor: pointer; display: block; font: inherit; font-size: .85rem; font-weight: 800; margin: 32px auto 0; min-height: 48px; padding: 0 24px; transition: var(--transition); }
.load-more:hover { background: var(--orange); transform: translateY(-2px); }
footer { background: #f3eee8; color: var(--muted); font-size: .8rem; padding: 48px 24px 100px; text-align: center; border-top: 1px solid var(--line); }
footer p { margin: 6px 0; }
footer a { text-underline-offset: 3px; font-weight: 600; transition: var(--transition); }
footer a:hover { color: var(--ink); }

.footer-top { margin-bottom: 24px; }
.footer-brand { color: var(--ink); font-weight: 850; font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 4px; }
.footer-tagline { font-size: .85rem; opacity: .8; }

.footer-main { margin-bottom: 24px; }

.footer-bottom { border-top: 1px solid rgba(0,0,0,0.05); padding-top: 24px; margin-top: 24px; }
.copyright { opacity: .6; font-size: .75rem; margin-top: 12px !important; }
@media (max-width: 1024px) {
  .hero-inner::after { width: 200px; }
}

@media (max-width: 768px) {
  .summary-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding: 0 12px 16px; }
  .stat:last-child { border-bottom: 0; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-nav { padding: 16px 18px; } .nav-meta { font-size: .62rem; }
  .hero-inner { padding: 48px 18px 80px; } .hero-inner::after { display: none; }
  .search-row, .search-actions { grid-template-columns: 1fr; } .field-wide { grid-column: auto; }
  .search-panel { padding: 20px 18px; }
  .summary-strip { padding: 24px 18px; }
  .stat { padding: 0 8px 16px; }
  .stat-num { font-size: 1.5rem; } .stat-label { font-size: .6rem; letter-spacing: .02em; }
  .results-wrap { padding: 42px 18px 60px; }
  .results-header { align-items: flex-start; flex-direction: column; gap: 6px; }
  .results-label { font-size: 1.4rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .card-actions { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Support Us Feature */
.support-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #e0632b;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(224, 99, 43, 0.3);
  transition: var(--transition);
}
.support-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 99, 43, 0.4);
}

.support-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 25, 23, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.support-modal {
  background: #fff;
  color: var(--ink);
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  position: relative;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.support-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1eee9;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
}
.support-close:hover {
  background: var(--line);
  color: var(--ink);
}

.support-content {
  text-align: center;
}
.support-content h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -.03em;
}
.support-content p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 24px;
  line-height: 1.5;
}

.qr-container {
  background: #fcfcfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  display: inline-block;
}
.support-qr {
  display: block;
  max-width: 200px;
  height: auto;
  border-radius: 4px;
}

.payment-details {
  display: grid;
  gap: 12px;
}
.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--paper);
  border-radius: 8px;
  font-size: .85rem;
}
.payment-label {
  color: var(--muted);
  font-weight: 700;
}
.payment-value {
  font-weight: 850;
  color: var(--ink);
}

@media (max-width: 640px) {
  .support-modal {
    padding: 24px 20px;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.pagination-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.pagination-btn:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper);
}
.pagination-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pagination-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.pagination-ellipsis {
  color: var(--muted);
  padding: 0 4px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .pagination {
    gap: 6px;
  }
  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: .75rem;
  }
}


/* Support Us Feature */
.support-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #e0632b;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(224, 99, 43, 0.3);
  transition: var(--transition);
}
.support-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 99, 43, 0.4);
}

.support-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 25, 23, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.support-modal {
  background: #fff;
  color: var(--ink);
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  position: relative;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.support-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1eee9;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
}
.support-close:hover {
  background: var(--line);
  color: var(--ink);
}

.support-content {
  text-align: center;
}
.support-content h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -.03em;
}
.support-content p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 24px;
  line-height: 1.5;
}

.qr-container {
  background: #fcfcfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  display: inline-block;
}
.support-qr {
  display: block;
  max-width: 200px;
  height: auto;
  border-radius: 4px;
}

.payment-details {
  display: grid;
  gap: 12px;
}
.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--paper);
  border-radius: 8px;
  font-size: .85rem;
}
.payment-label {
  color: var(--muted);
  font-weight: 700;
}
.payment-value {
  font-weight: 850;
  color: var(--ink);
}

@media (max-width: 640px) {
  .support-modal {
    padding: 24px 20px;
  }
}

