/* ==== PHA Auction Search – Form & Results ==== */
:root {
  --pha-bg: #ffffff;
  --pha-card: #ffffff;
  --pha-ink: #111827;
  --pha-muted: #6b7280;
  --pha-border: #e5e7eb;
  --pha-primary: #2563eb;
  --pha-primary-ink: #ffffff;
  --pha-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.search_content_box {
  background-color: #fafafa;
  padding: 0 15px 40px;
  font-size: 16px;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.pha-legacy-search-form {
  max-width: 1000px;
  margin: auto;
  margin-top: 25px;
}

.pha-legacy-search-form ::placeholder {
  color: grey;
  font-size: 16px;
}

.search_content_box h3.subtitle {
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  padding: 20px 0 0;
  font-family: "PT Sans Pro", sans-serif;
}

.advanced-box {
  display: none;
  margin-top: 30px;
}

label.services_cat {
  max-width: 243px;
}

.search_content_box .form-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.center {
  text-align: center;
  margin-bottom: 1.5rem;
}

.search_content_box .field,
.search_content_box input.field,
.search_content_box select.field {
  font-size: 16px;
  appearance: none;
  color: #484848;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  background-color: #f9f9f9;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search_content_box input[type="text"],
.search_content_box select,
.search_content_box input[type="number"] {
  width: 100%;
  background-color: #fff !important;
  color: #000;
  padding: 15px 20px;
  font-size: 18px;
}

.search_content_box select {
  line-height: 33px;
}

.search_content_box input#search_text.field::placeholder,
.search_content_box input#search_text.field::-webkit-input-placeholder,
.search_content_box input#search_text.field::-moz-placeholder {
  color: #000;
}

.advanced-text {
  text-align: right;
  display: block;
  margin-top: 15px;
}

.search_content_box button.button {
  background: #0b3d2e;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 20px;
  display: flex;
  gap: 15px;
  width: 100%;
  border: 0;
  text-align: center;
  justify-content: center;
  position: relative;
  outline: 0;
}

span.glyphicon.glyphicon-search:after {
  content: "\f002";
  font-family: Fontawesome;
}

.glyphicon-search {
  position: absolute;
  left: 0;
  top: 15px;
  margin: auto;
  right: 90px;
  bottom: 0;
  font-size: 24px;
}

.search_content_box select.field {
  padding-right: 30px;
  background-image: url(/wp-content/uploads/2025/10/download.svg);
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: 95%;
}

.checkline {
  width: 100%;
  margin: 5px auto 20px auto;
  font-size: 0.95rem;
}

.checkline label {
  margin: 0 8px;
  color: var(--pha-ink);
}

.checkline input[type="checkbox"] {
  vertical-align: -2px;
  margin-right: 6px;
  transform: scale(1.5);
}

.thinrow {
  width: 100%;
}

.thinrow:not(.d-flex) {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.advanced-box .thinrow input[type="text"],
.advanced-box .thinrow select,
.advanced-box .thinrow input[type="number"] {
  margin-top: 8px;
}

.row_even.rwd-center {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.pha-auction-results ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.pha-auction-results ul.products>li {
  background: var(--pha-card);
  border: 1px solid var(--pha-border);
  border-radius: 14px;
  box-shadow: var(--pha-shadow);
  padding: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.pha-auction-results ul.products img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
  object-fit: cover;
}

.pha-auction-results h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0.25rem 0 0.35rem;
}

.pha-auction-results .excerpt {
  opacity: 0.85;
  font-size: 13px;
}

.pha-auction-results .pagination {
  margin-top: 18px;
}

.pha-auction-results .pagination ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pha-auction-results .pagination li a,
.pha-auction-results .pagination li span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--pha-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--pha-ink);
  background: #fff;
}

.pha-auction-results .pagination li span.current {
  background: var(--pha-primary);
  border-color: var(--pha-primary);
  color: #fff;
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .search_content_box .form-wrapper {
    flex-direction: column;
  }

  .search_content_box input#search_text.field {
    max-width: 100%;
  }
}

/* Optional dark-mode */
@media (prefers-color-scheme: dark) {
  :root {
    --pha-bg: #0b0f14;
    --pha-card: #0f141a;
    --pha-ink: #e6edf3;
    --pha-muted: #9aa6b2;
    --pha-border: #213042;
    --pha-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  }

  .search_content_box .field,
  .search_content_box select.field {
    background: #0f141a;
    color: var(--pha-ink);
  }

  .pha-auction-results ul.products>li {
    background: #0f141a;
  }
}


/* Tunables */
.pha-caret-up {
  --size: 45px;
  /* overall width */
  --thickness: 2px;
  /* line thickness */
  --angle: 42deg;
  /* arm angle */
  --color: #7E2A29;
  /* maroon from screenshot */

  position: relative;
  display: inline-block;
  width: var(--size);
  height: calc(var(--size) * 0.35);
  transform: rotate(180deg);
  /* ~9px at default width */
}

#advancedTogglearrow {
  display: none;
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  margin-top: 18px;
}

.pha-caret-up::before,
.pha-caret-up::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 50%;
  height: var(--thickness);
  background: var(--color);
  border-radius: 2px;
  /* slight antialias smoothing */
}

.pha-caret-up::before {
  left: 0;
  transform-origin: 100% 50%;
  transform: translateY(-50%) rotate(var(--angle));
}

.pha-caret-up::after {
  left: 50%;
  transform-origin: 0 50%;
  transform: translateY(-50%) rotate(calc(var(--angle) * -1));
}


/* Chip buttons */
.mini-toolbar {
  display: flex;
  gap: 10px;
  align-items: center
}

.chip {
  --border: #e6e6e6;
  --text: #151515;
  --hover: #f7f7f7;
  --radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.chip:hover {
  background: var(--hover)
}

.chip:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 121, 255, .15)
}

.chip:active {
  transform: translateY(0.5px)
}

/* Icons */
.chip .ic {
  width: 18px;
  height: 18px;
  stroke: #111;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* Optional: compact size */
.chip.sm {
  padding: 4px 10px;
  font-size: 13px
}

/* wrapper */
.pha-pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0
}

.pha-pages {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0
}

/* numbers */
.pha-pages .page-num a,
.pha-pages .page-num span {
  font: 500 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: #151515;
  text-decoration: none;
}

.pha-pages .page-num.is-current span {
  font-weight: 700
}

/* dots */
.pha-pages .page-dot {
  color: #777;
  font: 500 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif
}

/* prev/next square buttons */
.pha-pages .page-nav .arrow-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border-radius: 0px;
  background: #e3e3e3;
  color: #111;
  text-decoration: none;
  border: 1px solid #e3e3e3;
}

.pha-pages .page-nav .arrow-btn a:hover {
  background: #e9e9e9
}

.pha-pages .page-nav .arrow-btn .chev {
  font-size: 30px;
  line-height: 0;
  margin-top: -5px;
}

/* tighten anchor default styles from WP */
.pha-pages a.page-numbers {
  padding: 0;
  border: none;
  background: none
}

.pha-pagination li.page-num {
  width: 28px;
}