@font-face {
  font-family: "BareArms";
  src: url("files/header.ttf") format("truetype");
  font-display: swap;
}

:root {
  --white: #f7f8f8;
  --bright-blue: #76aabd;
  --light-blue: #44788b;
  --blue: #124659;
  --dark-blue: #102a36;
  --black: #090909;
  --text: #1e2d33;
  --muted: #62727a;
}

* {
  box-sizing: border-box;
}

/* Keep scrolling available while hiding scrollbar chrome across major browsers. */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

.site-header {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 6vw, 88px);
  color: var(--white);
  background: transparent;
  border-bottom: 1px solid rgba(247, 248, 248, 0.45);
}

.site-header-search {
  position: sticky;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 6vw, 88px);
  color: var(--white);
  background: var(--dark-blue);
  border-bottom: 1px solid rgba(247, 248, 248, 0.45);
}

.header-left {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-family: "BareArms", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1;
  text-decoration: none;
}

.header-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.header-right a {
  padding: 10px 0;
  color: var(--white);
  border-bottom: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, opacity 160ms ease;
}

.header-right a:hover {
  border-bottom-color: var(--white);
}

.header-right .header-cta {
  padding: 10px 14px;
  border: 1px solid rgba(247, 248, 248, 0.75);
  border-radius: 5px;
}

.header-right .header-cta:hover {
  border-color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  height: 100vh;
  place-items: center;
  overflow: hidden;
  background: var(--dark-blue);
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 27, 36, 0.78), rgba(8, 27, 36, 0.44)),
    linear-gradient(0deg, rgba(8, 27, 36, 0.38), transparent 65%);
}

.hero-content {
  width: min(760px, calc(100% - 40px));
  padding: 110px 0 72px;
  color: var(--white);
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: #c5dce4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero-description {
  margin: 20px auto 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}

.search-form {
  display: flex;
  width: min(620px, 100%);
  min-height: 64px;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 7px 8px 7px 18px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 9px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
}

.search-icon {
  display: flex;
  flex: 0 0 22px;
  color: #75858b;
}

.search-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1rem;
}

.search-form input::placeholder {
  color: #8a989d;
  opacity: 1;
}

.search-form:focus-within {
  outline: 3px solid rgba(118, 170, 189, 0.55);
  outline-offset: 3px;
}

.search-form button {
  flex: 0 0 auto;
  padding: 14px 22px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 160ms ease;
}

.search-form button:hover {
  background: var(--dark-blue);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about-section {
  padding: clamp(56px, 8vw, 104px) 24px;
  color: var(--text);
  background: var(--white);
}
.about-content { width: min(860px, 100%); margin: 0 auto; }
.about-content .eyebrow { margin: 0 0 10px; color: var(--light-blue); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.about-content h2 { margin: 0 0 22px; color: var(--dark-blue); font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.04em; }
.about-content p:not(.eyebrow) { color: #52636a; font-size: 1rem; line-height: 1.8; }
.about-search-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--blue); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.popular-searches { margin-top: 30px; padding-top: 22px; border-top: 1px solid #e2e9eb; }
.popular-searches h3 { margin: 0 0 14px; color: var(--dark-blue); font-size: 1rem; }
.popular-searches ul { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.popular-searches a { display: inline-flex; padding: 8px 12px; color: #294651; background: #f1f6f7; border: 1px solid #dce7ea; border-radius: 999px; font-size: .88rem; text-decoration: none; }
.popular-searches a:hover, .popular-searches a:focus-visible { color: var(--dark-blue); background: #e3eef1; border-color: #bfd1d7; text-decoration: underline; text-underline-offset: 3px; }

.contact-dialog { width: min(540px, calc(100% - 28px)); max-height: min(90vh, 760px); padding: 0; color: var(--text); background: var(--white); border: 1px solid rgba(16, 42, 54, .18); border-radius: 12px; box-shadow: 0 24px 80px rgba(9, 9, 9, .35); }
.contact-dialog::backdrop { background: rgba(9, 18, 22, .65); backdrop-filter: blur(3px); }
.contact-form { display: grid; gap: 15px; padding: clamp(20px, 5vw, 32px); }
.contact-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 3px; }
.contact-dialog-heading .eyebrow { margin: 0 0 6px; color: var(--light-blue); font-size: .75rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.contact-dialog-heading h2 { margin: 0; color: var(--dark-blue); font-size: 1.65rem; }
.contact-close { display: grid; width: 36px; height: 36px; place-items: center; color: var(--muted); background: transparent; border: 1px solid #dce4e7; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.contact-form label { display: grid; gap: 7px; color: #30444c; font-size: .88rem; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 12px; color: var(--text); background: #fff; border: 1px solid #cfdadd; border-radius: 6px; font: inherit; font-size: .95rem; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(118, 170, 189, .28); border-color: var(--light-blue); }
.contact-status { min-height: 1.3em; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.contact-status.error { color: #a52f32; }
.contact-status.success { color: #246a4b; }
.contact-actions { display: flex; justify-content: flex-end; gap: 9px; }
.contact-actions button { min-height: 42px; padding: 0 16px; border-radius: 5px; font: inherit; font-weight: 700; cursor: pointer; }
.contact-cancel { color: #40535b; background: #fff; border: 1px solid #cfdadd; }
.contact-submit { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.contact-submit:hover { background: var(--dark-blue); }
.contact-submit:disabled { cursor: wait; opacity: .65; }

/* Search results page */
.search-page { background: #f3f6f7; }
.results-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 64px; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.results-heading .eyebrow { margin-bottom: 8px; color: var(--light-blue); }
.results-heading h1 { margin: 0; color: var(--dark-blue); font-size: clamp(2rem, 4vw, 2.65rem); letter-spacing: -.04em; }
.results-summary { margin: 9px 0 0; color: var(--muted); font-size: .96rem; }
.results-search { display: flex; width: min(410px, 100%); min-height: 48px; gap: 8px; padding: 5px; background: #fff; border: 1px solid #dce4e7; border-radius: 7px; }
.results-search input { width: 100%; min-width: 0; padding: 0 10px; border: 0; outline: 0; font: inherit; }
.results-search button { padding: 0 18px; color: #fff; background: var(--blue); border: 0; border-radius: 5px; font: inherit; font-weight: 700; cursor: pointer; }
.results-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; gap: 24px; }
.filter-panel { padding: 20px; background: #fff; border: 1px solid #e0e7e9; border-radius: 9px; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid #e8edef; }
.filter-heading h2 { margin: 0; color: var(--dark-blue); font-size: 1.05rem; }
.filter-heading button { padding: 0; color: var(--light-blue); background: none; border: 0; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.filter-form fieldset { margin: 0; padding: 17px 0 14px; border: 0; border-bottom: 1px solid #edf0f1; }
.filter-form fieldset:last-child { border-bottom: 0; }
.filter-form legend { margin-bottom: 11px; color: #263b43; font-size: .9rem; font-weight: 700; }
.filter-note { margin: -4px 0 10px; color: #89969b; font-size: .74rem; line-height: 1.45; }
.check-option { display: flex; align-items: center; gap: 9px; margin: 9px 0; color: #52636a; font-size: .86rem; cursor: pointer; }
.check-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.check-option span { margin-left: auto; color: #89969b; font-size: .78rem; }
.price-inputs { display: flex; align-items: center; gap: 7px; color: #89969b; font-size: .78rem; }
.price-inputs label { min-width: 0; flex: 1; }
.price-inputs input { width: 100%; padding: 9px 7px; border: 1px solid #dce4e7; border-radius: 5px; font: inherit; font-size: .8rem; }
.range-input { width: 100%; margin: 16px 0 4px; accent-color: var(--blue); }
.range-labels { display: flex; justify-content: space-between; color: #89969b; font-size: .73rem; }
.listing-results { min-width: 0; }
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; background: #fff; border: 1px solid #e0e7e9; border-radius: 9px; }
.buying-tabs { display: flex; align-items: center; gap: 5px; }
.buying-tab { padding: 9px 12px; color: #607178; border-radius: 5px; font-size: .87rem; font-weight: 700; text-decoration: none; }
.buying-tab span { margin-left: 4px; color: #87969c; font-size: .76rem; }
.buying-tab.active { color: var(--blue); background: #eaf2f4; }
.buying-tab.disabled { color: #a0aaae; background: #f5f7f8; cursor: not-allowed; }
.sort-control { display: flex; align-items: center; gap: 9px; color: #697980; font-size: .82rem; white-space: nowrap; }
.sort-control select { padding: 9px 28px 9px 10px; color: #30444c; background: #fff; border: 1px solid #dce4e7; border-radius: 5px; font: inherit; font-weight: 600; }
.listing-count { margin: 17px 2px 12px; color: #78878d; font-size: .82rem; scroll-margin-top: 96px; }
.listing-count strong { color: #42565e; }
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.listing-card { display: grid; min-width: 0; grid-template-columns: minmax(112px, 158px) minmax(0, 1fr); align-items: center; gap: 15px; padding: 12px; background: #fff; border: 1px solid #e0e7e9; border-radius: 9px; box-shadow: 0 2px 8px rgba(16,42,54,.035); }
.listing-image-link { display: block; color: #fff; width: 100%; aspect-ratio: 1; overflow: hidden; background: #fff; border: 1px solid #e1e3df; border-radius: 9px; box-shadow: inset 0 1px 3px rgba(16,42,54,.045); }
.listing-image { display: block; color: #fff; width: 100%; height: 100%; padding: 12px; object-fit: contain; object-position: center; }
.listing-info { min-width: 0; padding: 3px 2px 3px 0; }
.listing-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.listing-title h2 { margin: 0; color: #18333e; font-size: 1.04rem; letter-spacing: -.015em; }
.listing-brand { margin: 4px 0 0; color: #6a7a80; font-size: .82rem; }
.deal-type { flex: 0 0 auto; padding: 5px 8px; color: #3e707f; background: #edf5f6; border-radius: 4px; font-size: .68rem; font-weight: 700; }
.deal-type.auction { color: #795d38; background: #f7f2e9; }
.listing-specs { margin: 13px 0 15px; color: #78878d; font-size: .76rem; }
.listing-specs span { padding: 0 3px; color: #b0babe; }
.listing-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #edf0f1; }
.listing-price { margin: 0; color: #18333e; font-size: 1.36rem; font-weight: 750; letter-spacing: -.035em; white-space: nowrap; }
.listing-price span { font-size: .88rem; vertical-align: 4px; }
.access-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 11px; color: #fff; background: var(--blue); border-radius: 5px; font-size: .76rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 150ms ease; }
.access-button:hover { background: var(--dark-blue); }
.access-button span { font-size: .95rem; }
.seller-line { margin: 12px 0 0; color: #87949a; font-size: .72rem; }
.seller-line strong { color: #607178; font-weight: 600; }
.empty-results { grid-column: 1 / -1; margin: 0; padding: 30px; color: var(--muted); background: #fff; border: 1px solid #e0e7e9; border-radius: 9px; text-align: center; line-height: 1.6; }
.empty-results a { color: var(--blue); font-weight: 700; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 21px; padding: 15px 16px; background: #fff; border: 1px solid #e0e7e9; border-radius: 9px; }
.page-size { color: #78878d; font-size: .8rem; }
.page-links { display: flex; align-items: center; gap: 5px; }
.page-number, .page-arrow { display: grid; min-width: 34px; height: 34px; place-items: center; color: #52656d; border: 1px solid #e0e7e9; border-radius: 5px; font-size: .82rem; text-decoration: none; }
.page-number.current { color: #fff; background: var(--blue); border-color: var(--blue); }
.page-arrow { font-size: 1.2rem; }
.page-arrow.disabled, .page-ellipsis { color: #a9b3b7; }
.page-ellipsis { padding: 0 3px; }

@media (max-width: 980px) {
  .results-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
  .listing-grid { gap: 12px; }
  .listing-card { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .listing-action { align-items: flex-start; flex-direction: column; }
  .access-button { width: 100%; }
}
@media (max-width: 720px) {
  .results-shell { width: min(100% - 32px, 580px); padding-top: 28px; }
  .results-heading { align-items: stretch; flex-direction: column; gap: 18px; }
  .results-search { width: 100%; }
  .results-layout { grid-template-columns: 1fr; }
  .filter-panel { padding: 15px; }
  .filter-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .filter-form fieldset { border-bottom: 1px solid #edf0f1; }
}
@media (max-width: 500px) {
  .site-header-search { gap: 10px; }
  .site-header-search .header-right { gap: 12px; }
  .site-header-search .header-right a { font-size: .76rem; }
  .site-header-search .header-left { font-size: 1.55rem; }
  .listing-toolbar { align-items: flex-start; flex-direction: column; }
  .buying-tabs { width: 100%; justify-content: space-between; }
  .sort-control { width: 100%; justify-content: space-between; }
  .sort-control select { flex: 1; }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-card { grid-template-columns: 120px minmax(0, 1fr); gap: 13px; padding: 12px; }
  .listing-action { align-items: flex-start; flex-direction: column; }
  .access-button { width: 100%; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .page-links { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .listing-card { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 9px; }
  .listing-title { gap: 6px; }
  .listing-title h2 { font-size: .96rem; }
  .listing-specs { margin-block: 10px 12px; }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 68px;
    padding-inline: 20px;
  }

  .header-logo {
    width: 29px;
    height: 29px;
  }

  .header-left {
    gap: 8px;
    font-size: 1.65rem;
  }

  .header-right {
    gap: 14px;
  }

  .header-right a {
    font-size: 0.82rem;
  }

  .header-right .header-cta {
    padding: 9px 12px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-block: 100px 56px;
  }

  .search-form {
    gap: 9px;
    padding-left: 13px;
  }

  .search-form button {
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
