:root {
  --burgundy: #780000;
  --burgundy-dark: #5a0000;
  --gray-900: #242424;
  --gray-700: #545454;
  --gray-300: #d7d7d7;
  --gray-100: #f4f4f4;
  --white: #ffffff;
  --shadow: 0 12px 35px rgba(0,0,0,.10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--gray-900);
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ececec;
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.brand small {
  display: block;
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-top: 2px;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  font-size: 14px;
  font-weight: 700;
}
nav a:hover { color: var(--burgundy); }

.hero {
  background:
    linear-gradient(120deg, rgba(72,21,28,.90), rgba(100,30,40,.80)),
    radial-gradient(circle at top right, #9a5a63, #641e28);
  color: #fff;
  padding: 30px 22px 28px;
}
.hero-inner {
  max-width: 1200px;
  margin: auto;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .2em;
  font-weight: 800;
  opacity: .85;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.02;
  max-width: 760px;
  margin: 0 0 16px;
}
.hero p {
  font-size: 18px;
  line-height: 1.55;
  max-width: 700px;
  color: rgba(255,255,255,.9);
  margin: 0;
}
.hero-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.button-primary { background: var(--burgundy); color: #fff; }
.button-primary:hover { background: var(--burgundy-dark); }
.button-light { background: #fff; color: var(--burgundy); }
.button-outline { border: 1px solid rgba(255,255,255,.5); color: #fff; background: transparent; }

.section {
  max-width: 1200px;
  margin: auto;
  padding: 58px 22px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin: 0;
  font-size: 34px;
}
.section-heading p {
  margin: 6px 0 0;
  color: var(--gray-700);
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-btn {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--gray-300);
  background: white;
  font-weight: 700;
  cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover {
  border-color: var(--burgundy);
  background: #f9f1f3;
  color: var(--burgundy);
}

.auction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
.auction-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid #ececec;
  transition: transform .18s ease, box-shadow .18s ease;
}
.auction-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0,0,0,.14);
}
.card-image {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background: #eee;
}
.card-body { padding: 20px; }
.badge {
  display: inline-flex;
  background: #f4e9ec;
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-radius: 999px;
  padding: 7px 10px;
  margin-bottom: 12px;
}
.card-body h3 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.12;
}
.card-meta {
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.6;
}
.card-description {
  color: var(--gray-700);
  line-height: 1.55;
  margin: 12px 0 18px;
}
.card-link {
  color: var(--burgundy);
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  text-align: center;
  border: 1px dashed var(--gray-300);
  border-radius: 16px;
  color: var(--gray-700);
}

.detail-hero {
  background: var(--gray-100);
  padding: 46px 22px;
}
.detail-wrap {
  max-width: 1100px;
  margin: auto;
}
.detail-title {
  font-size: clamp(36px, 5vw, 58px);
  margin: 8px 0 16px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--gray-700);
  font-weight: 700;
}
.feature-image {
  margin-top: 28px;
  border-radius: 18px;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.detail-content {
  max-width: 1100px;
  margin: auto;
  padding: 44px 22px 60px;
}
.detail-columns {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(280px,1fr);
  gap: 34px;
}
.detail-copy {
  font-size: 17px;
  line-height: 1.72;
}
.detail-copy h2, .detail-copy h3 { color: var(--burgundy); }
.side-panel {
  background: var(--gray-100);
  border-radius: 18px;
  padding: 22px;
  height: fit-content;
}
.side-panel h3 { margin-top: 0; }
.info-row {
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
}
.info-row:last-child { border-bottom: 0; }

.gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
}

.admin-wrap {
  max-width: 1000px;
  margin: auto;
  padding: 40px 22px 70px;
}
.admin-card {
  background: white;
  box-shadow: var(--shadow);
  border-radius: 18px;
  border: 1px solid #e9e9e9;
  padding: 24px;
  margin-bottom: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 800; font-size: 13px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: white;
}
textarea { min-height: 120px; resize: vertical; }

.admin-auction-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding: 15px 0;
}
.admin-auction-row:first-child { border-top: 0; }

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff5d7;
  border: 1px solid #ead28d;
  margin-bottom: 18px;
  line-height: 1.5;
}

footer {
  background: #202020;
  color: #ddd;
  padding: 34px 22px;
}
.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
footer strong { color: #fff; }

@media (max-width: 900px) {
  .auction-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-columns { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav a:not(.admin-link) { display: none; }
  .hero { padding-top: 58px; }
  .auction-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .admin-auction-row { align-items: flex-start; flex-direction: column; }
}


.hero-compact {
  padding: 30px 22px 28px;
}

.listing-price {
  color: var(--burgundy);
  font-size: 24px;
  font-weight: 800;
  margin: 2px 0 10px;
}

.detail-price {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 12px;
}

.footer-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px 40px;
  line-height: 1.6;
}

.footer-contacts a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  .footer-contacts {
    grid-template-columns: 1fr;
  }
}


.footer-admin {
  grid-column: 1 / -1;
  text-align: right;
  font-size: 10px;
  opacity: .28;
  margin-top: 4px;
}

.footer-admin a {
  color: inherit;
  text-decoration: none;
}

.footer-admin a:hover {
  opacity: 1;
  text-decoration: underline;
}


.auction-documents {
  margin-top: 40px;
  padding-top: 8px;
}

.auction-documents h2 {
  margin-bottom: 16px;
}

.document-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.document-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--burgundy);
  color: #fff;
  font-weight: 800;
  border: 1px solid var(--burgundy);
}

.document-button:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
}

.documents-card small {
  color: var(--gray-700);
  line-height: 1.4;
}


.auction-documents {
  margin-top: 30px;
}

.documents-panel {
  max-width: 100%;
}

.documents-panel h3 {
  margin-bottom: 12px;
}

.document-links {
  line-height: 1.8;
  font-weight: 800;
}

.document-links a {
  color: var(--burgundy);
  text-decoration: none;
}

.document-links a:hover {
  text-decoration: underline;
}

.document-separator {
  color: var(--gray-700);
  font-weight: 400;
}


/* Keep Auction Documents directly below Auction Details in the right column */
.detail-columns {
  align-items: start;
}

.documents-under-details {
  grid-column: 2;
  margin-top: -18px;
}

@media (max-width: 900px) {
  .documents-under-details {
    grid-column: auto;
    margin-top: -12px;
  }
}


/* Homepage without hero banner */
body > main.section:first-of-type {
  padding-top: 34px;
}


.compact-auction-header {
  background: var(--burgundy);
  color: #fff;
  padding: 24px 22px 22px;
}

.compact-auction-header-inner {
  max-width: 1200px;
  margin: auto;
}

.compact-auction-header h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.compact-auction-header p {
  margin: 0;
  font-size: 17px;
  color: rgba(255,255,255,.92);
}

/* Since the compact header carries the title, reduce white-space above filters */
body > main.section:first-of-type {
  padding-top: 28px;
}


/* Forced compact homepage auction header */
section.compact-auction-header {
  display: block !important;
  width: 100% !important;
  background: #641e28 !important;
  color: #ffffff !important;
  padding: 22px 22px 20px !important;
  margin: 0 !important;
}

section.compact-auction-header .compact-auction-header-inner {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

section.compact-auction-header h1 {
  color: #ffffff !important;
  margin: 0 0 5px !important;
  font-size: clamp(30px, 4vw, 42px) !important;
  line-height: 1.08 !important;
}

section.compact-auction-header p {
  color: rgba(255,255,255,.94) !important;
  margin: 0 !important;
  font-size: 17px !important;
  line-height: 1.45 !important;
}


/* Stack Auction Documents immediately below Auction Details */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}

.detail-sidebar .side-panel {
  width: 100%;
}

.documents-panel {
  margin: 0;
}

.document-links {
  font-weight: 400 !important;
  line-height: 1.7;
}

.document-links a {
  font-weight: 400 !important;
}

@media (max-width: 900px) {
  .detail-sidebar {
    gap: 12px;
  }
}

.team-page-header{background:var(--burgundy);color:#fff;padding:26px 22px 24px}
.team-page-header-inner{max-width:1200px;margin:auto}
.team-page-header h1{margin:0 0 5px;font-size:clamp(30px,4vw,42px)}
.team-page-header p{margin:0;max-width:760px;color:rgba(255,255,255,.92);font-size:17px}
.team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;max-width:980px}
.team-card{background:#fff;border:1px solid #e8e8e8;border-radius:18px;overflow:hidden;box-shadow:var(--shadow);display:grid;grid-template-columns:180px 1fr}
.team-photo-placeholder,.agent-photo-large{background:linear-gradient(145deg,#f3eaec,#ddd);display:grid;place-items:center;color:var(--burgundy);font-weight:800}
.team-photo-placeholder{min-height:260px}.team-photo-placeholder span{width:92px;height:92px;border-radius:50%;background:var(--burgundy);color:#fff;display:grid;place-items:center;font-size:34px}
.team-card-body{padding:24px 22px}.team-card-body h2{margin:0 0 6px;font-size:25px}.team-role,.agent-title{color:var(--burgundy);font-weight:700}
.team-contact{margin:20px 0;line-height:1.75}.team-contact a,.agent-contact-panel a{color:var(--burgundy)}
.team-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.team-text-link{color:var(--burgundy);font-weight:700}
.agent-profile-wrap{max-width:1100px;margin:auto;padding:48px 22px 70px}.agent-profile-grid{display:grid;grid-template-columns:310px minmax(0,1fr);gap:48px;align-items:start}
.agent-photo-large{min-height:350px;border-radius:18px;margin-bottom:18px}.agent-photo-large span{width:130px;height:130px;border-radius:50%;background:var(--burgundy);color:#fff;display:grid;place-items:center;font-size:46px}
.agent-contact-panel{margin-top:0}.agent-profile-copy h1{margin:10px 0 5px;font-size:clamp(38px,5vw,58px)}
.agent-divider{width:70px;height:4px;background:var(--burgundy);margin:22px 0 26px}.agent-profile-copy p{font-size:17px;line-height:1.75}
.team-back-link{color:var(--burgundy);font-weight:700}.agent-profile-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.team-outline-button{border:1px solid var(--burgundy);color:var(--burgundy);background:#fff}
@media(max-width:900px){.team-grid{grid-template-columns:1fr}.agent-profile-grid{grid-template-columns:1fr}.agent-photo-large{max-width:420px}}
@media(max-width:620px){.team-card{grid-template-columns:1fr}.team-photo-placeholder{min-height:210px}}


/* Header brand tagline */
.brand > div:last-child {
  line-height: 1.08;
}

.brand small {
  display: block;
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-top: 3px;
  text-transform: none;
}

.brand-subline {
  display: block;
  color: var(--gray-700);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-top: 3px;
}

@media (max-width: 640px) {
  .brand-subline {
    display: none;
  }
}


/* Header logo update */
.brand {
  gap: 14px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

/* Make the header/banner color match the logo more closely */
.compact-auction-header,
.team-page-header {
  background: var(--burgundy) !important;
}

/* Keep the larger brand text area tidy beside the logo */
.brand > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 640px) {
  .brand-logo {
    width: 48px;
    height: 48px;
  }
}


/* Listings page aligned to Auctions page */
body:has(#listingGrid) > main.section {
  padding-top: 28px;
}

body:has(#listingGrid) .filters {
  margin-bottom: 24px;
}

body:has(#listingGrid) .auction-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid #ececec;
}

body:has(#listingGrid) .card-image {
  aspect-ratio: 16 / 10;
}

body:has(#listingGrid) .listing-price {
  color: var(--burgundy);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}


/* Team Admin / live profile photos */
.team-photo-live {
  overflow: hidden;
}

.team-photo-live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-admin-card {
  margin-bottom: 26px;
}

.team-admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.team-admin-heading h2 {
  margin: 0 0 4px;
}

.team-admin-heading p {
  margin: 0;
  color: var(--gray-700);
}

.team-admin-preview {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.team-admin-initials {
  background: var(--burgundy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 26px;
}

@media (max-width: 600px) {
  .team-admin-heading {
    align-items: flex-start;
  }
  .team-admin-preview {
    width: 72px;
    height: 72px;
  }
}


/* Larger team photos on the Our Team cards */
.team-grid {
  max-width: 1350px;
}

.team-card {
  grid-template-columns: 250px 1fr !important;
}

.team-photo-placeholder {
  min-height: 345px !important;
  background: #ece6e8 !important;
}

.team-photo-live {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}

.team-photo-live img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: scale(1.06);
}

/* Make sure profile-page headshots also fill the panel cleanly */
.agent-photo-large.team-photo-live img,
.agent-photo-large img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: scale(1.03);
}

.team-actions {
  gap: 0 !important;
}

@media (max-width: 900px) {
  .team-card {
    grid-template-columns: 220px 1fr !important;
  }
  .team-photo-placeholder {
    min-height: 300px !important;
  }
}

@media (max-width: 620px) {
  .team-card {
    grid-template-columns: 1fr !important;
  }
  .team-photo-placeholder {
    min-height: 300px !important;
  }
}


/* Team card refinements */
.team-card {
  grid-template-columns: 230px 1fr !important;
}

.team-photo-placeholder {
  min-height: 320px !important;
}

.team-photo-live img {
  transform: scale(1.0) !important;
}

.team-card-body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  padding: 30px 28px !important;
}

.team-contact {
  margin: 20px 0 10px !important;
}

.team-actions {
  margin-top: auto !important;
  padding-top: 28px !important;
  align-items: flex-start !important;
}

@media (max-width: 900px) {
  .team-card {
    grid-template-columns: 210px 1fr !important;
  }
  .team-photo-placeholder {
    min-height: 290px !important;
  }
}

@media (max-width: 620px) {
  .team-card {
    grid-template-columns: 1fr !important;
  }
  .team-photo-placeholder {
    min-height: 280px !important;
  }
}


/* Bold / Italic controls for auction descriptions */
.rich-text-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}

.format-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cfcfcf;
  border-radius: 7px;
  background: #fff;
  color: var(--gray-900);
  font-size: 16px;
  cursor: pointer;
}

.format-btn:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
  background: #faf5f6;
}

.format-btn:active {
  transform: translateY(1px);
}

.format-help {
  color: var(--gray-700);
  font-size: 12px;
  margin-left: 3px;
}

@media (max-width: 560px) {
  .format-help { display: none; }
}


/* Expanded auction description editor */
.rich-text-toolbar {
  flex-wrap: wrap;
}

.format-btn.format-wide {
  min-width: auto;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.detail-copy .rich-heading {
  color: var(--burgundy);
  margin: 18px 0 8px;
  font-size: 22px;
}

.detail-copy .rich-list {
  margin: 8px 0 14px 20px;
  padding-left: 18px;
}

.detail-copy .rich-list li {
  margin: 4px 0;
}

.detail-copy .rich-spacer {
  height: 12px;
}

.detail-copy a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* Past-auction sold price */
.sold-price {
  color: var(--burgundy);
  font-size: 20px;
  font-weight: 800;
  margin: -3px 0 8px;
  letter-spacing: .01em;
}


/* Slightly smaller SOLD price on past auction cards */
.sold-price {
  font-size: 17px !important;
}


/* Mobile header: keep tagline and public navigation visible */
@media (max-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    padding: 10px 14px 9px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

  .brand {
    width: 100%;
    gap: 10px;
    align-items: center;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand > div:last-child {
    min-width: 0;
    font-size: 18px;
    line-height: 1.05;
  }

  .brand small {
    display: block !important;
    font-size: 10px;
    margin-top: 3px;
    letter-spacing: .02em;
  }

  .brand-subline {
    display: block !important;
    font-size: 8.5px;
    letter-spacing: .10em;
    margin-top: 3px;
    white-space: normal;
  }

  nav {
    display: flex !important;
    width: 100%;
    gap: 6px 14px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 7px;
    border-top: 1px solid #ececec;
  }

  nav a,
  nav a:not(.admin-link) {
    display: inline-block !important;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .brand > div:last-child {
    font-size: 16px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  nav {
    gap: 6px 10px;
  }

  nav a,
  nav a:not(.admin-link) {
    font-size: 11px;
  }
}


/* MLS iframe search page */
.mls-page {
  width: min(1500px, calc(100% - 36px));
  margin: 28px auto 50px;
}

.mls-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.mls-actions p {
  margin: 0;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.mls-frame-wrap {
  width: 100%;
  height: 1100px;
  border: 1px solid #d6d6d6;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.mls-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mls-frame-note {
  margin-top: 12px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.active-nav {
  color: var(--burgundy) !important;
}

@media (max-width: 700px) {
  .mls-page {
    width: calc(100% - 18px);
    margin-top: 18px;
  }

  .mls-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .secondary-button {
    width: 100%;
  }

  .mls-frame-wrap {
    height: 950px;
    border-radius: 8px;
  }
}


/* Simplified auction filters: All, Real Estate, Personal Property */
.auction-filters,
.filters,
.filter-row {
  justify-content: flex-start;
}


/* Header tagline spacing */
.brand-subline {
  margin-top: 5px !important;
}


/* Our Team FAQ section */
.team-faq-section {
  margin-top: 34px;
  padding: 36px 0 10px;
  border-top: 1px solid #e5e5e5;
}

.team-faq-inner {
  width: min(1000px, calc(100% - 36px));
  margin: 0 auto;
}

.team-faq-heading {
  margin-bottom: 18px;
}

.team-faq-heading h2 {
  margin: 0 0 6px;
  color: var(--burgundy);
  font-size: 30px;
  line-height: 1.15;
}

.team-faq-heading p {
  margin: 0;
  color: #666;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  font-weight: 700;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--burgundy);
  font-size: 24px;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 18px 16px;
  color: #555;
  line-height: 1.55;
}

.faq-answer p {
  margin: 0;
}

.faq-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #777;
}

@media (max-width: 640px) {
  .team-faq-section {
    margin-top: 24px;
    padding-top: 28px;
  }

  .team-faq-heading h2 {
    font-size: 25px;
  }

  .faq-list summary {
    padding: 14px 44px 14px 15px;
  }

  .faq-answer {
    padding: 0 15px 14px;
  }
}


/* Expanded FAQ categories */
.faq-category{margin-top:28px}.faq-category:first-of-type{margin-top:20px}.faq-category h3{margin:0 0 10px;font-size:20px;color:#333;border-left:4px solid var(--burgundy);padding-left:10px}@media(max-width:640px){.faq-category{margin-top:24px}.faq-category h3{font-size:18px}}


/* FAQ Admin */
.faq-admin-page {
  width: min(1050px, calc(100% - 32px));
  margin: 28px auto 60px;
}

.faq-admin-actions,
.faq-editor-top,
.faq-editor-bottom,
.faq-card-actions,
.faq-order-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-admin-actions {
  flex-wrap: wrap;
}

.faq-admin-help {
  margin: 12px 0 0;
  color: #666;
  line-height: 1.5;
}

.faq-editor-card {
  margin-top: 14px;
}

.faq-editor-top,
.faq-editor-bottom {
  justify-content: space-between;
}

.faq-editor-card label {
  display: block;
  margin-top: 14px;
  font-weight: 700;
}

.faq-editor-card input[type="text"],
.faq-editor-card input:not([type]),
.faq-editor-card textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
}

.faq-editor-card textarea {
  min-height: 170px;
  resize: vertical;
}

.faq-visible-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 0 !important;
}

.faq-visible-label input {
  width: auto !important;
}

.mini-button {
  min-width: 38px;
  min-height: 36px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}

.mini-button:disabled {
  opacity: .35;
  cursor: default;
}

.danger-button {
  background: #7b1717;
}

@media (max-width: 640px) {
  .faq-editor-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-card-actions {
    width: 100%;
  }

  .faq-card-actions .button {
    flex: 1;
  }
}

/* Unified Admin Navigation */
@media (max-width: 900px) {
  .site-header .header-inner nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .site-header .header-inner nav a {
    white-space: nowrap;
  }
}


/* Manage Admins */
.admins-manager-page {
  width: min(1050px, calc(100% - 32px));
  margin: 28px auto 60px;
}

.admin-auth-actions,
.add-admin-row,
.admin-user-row,
.admin-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.add-admin-form label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.add-admin-row input {
  flex: 1;
  min-width: 0;
}

.admin-help-text {
  color: #666;
  margin-top: -4px;
}

.admin-status {
  min-height: 22px;
  margin-bottom: 0;
  color: var(--burgundy);
  font-weight: 700;
}

.admin-user-row {
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #e5e5e5;
}

.admin-user-row:last-child {
  border-bottom: 0;
}

.admin-user-info {
  min-width: 0;
  flex-wrap: wrap;
}

.admin-user-info strong {
  overflow-wrap: anywhere;
}

.admin-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3e6e8;
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 800;
}

.admin-protected {
  color: #777;
  font-size: 13px;
}

@media (max-width: 640px) {
  .add-admin-row {
    align-items: stretch;
    flex-direction: column;
  }

  .add-admin-row .button {
    width: 100%;
  }

  .admin-user-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-user-row .remove-admin {
    width: 100%;
  }
}


/* Links to broader Beiler-Campbell inventory */
.external-list-link {
  width: min(1200px, calc(100% - 36px));
  margin: 22px auto 34px;
  text-align: center;
}

.external-list-link a {
  display: inline-block;
  color: var(--burgundy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.external-list-link a:hover {
  text-decoration-thickness: 2px;
}

@media (max-width: 640px) {
  .external-list-link {
    width: calc(100% - 28px);
    margin: 18px auto 28px;
  }
}


/* Upcoming auction slideshow */
.auction-hero {
  position: relative;
  width: 100%;
  height: clamp(340px, 42vw, 520px);
  overflow: hidden;
  background: #222;
}

.auction-hero[hidden] {
  display: none !important;
}

.auction-hero-slides,
.auction-hero-slide {
  position: absolute;
  inset: 0;
}

.auction-hero-slide {
  opacity: 0;
  visibility: hidden;
  background-position: center;
  background-size: cover;
  transition: opacity .65s ease, visibility .65s ease;
}

.auction-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.auction-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 48%, rgba(0,0,0,.18) 100%),
    linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.10));
}

.auction-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 100px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.auction-hero-kicker {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}

.auction-hero-content h2 {
  max-width: 850px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1.03;
}

.auction-hero-meta,
.auction-hero-location {
  max-width: 800px;
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.4;
}

.auction-hero-location {
  margin-top: 3px;
}

.auction-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 21px;
  padding: 12px 25px;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .03em;
  background: rgba(0,0,0,.12);
  backdrop-filter: blur(2px);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.auction-hero-button:hover,
.auction-hero-button:focus-visible {
  background: #fff;
  color: #222;
  text-shadow: none;
  transform: translateY(-1px);
}

.auction-hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 56px;
  border: 0;
  border-radius: 8px;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: 43px;
  line-height: 1;
  cursor: pointer;
  opacity: .82;
}

.auction-hero-arrow:hover {
  background: rgba(0,0,0,.48);
  opacity: 1;
}

.auction-hero-prev {
  left: 16px;
}

.auction-hero-next {
  right: 16px;
}

.auction-hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
}

.auction-hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  box-shadow: 0 1px 5px rgba(0,0,0,.25);
  cursor: pointer;
}

.auction-hero-dot.active {
  background: #fff;
}

@media (max-width: 700px) {
  .auction-hero {
    height: 390px;
  }

  .auction-hero-content {
    width: calc(100% - 62px);
    justify-content: flex-end;
    padding-bottom: 62px;
    box-sizing: border-box;
  }

  .auction-hero-overlay {
    background:
      linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.46) 58%, rgba(0,0,0,.16) 100%);
  }

  .auction-hero-kicker {
    font-size: 11px;
  }

  .auction-hero-content h2 {
    font-size: clamp(28px, 8.5vw, 39px);
    margin-bottom: 9px;
  }

  .auction-hero-meta,
  .auction-hero-location {
    font-size: 16px;
  }

  .auction-hero-button {
    margin-top: 16px;
    padding: 10px 20px;
    font-size: 14px;
  }

  .auction-hero-arrow {
    width: 34px;
    height: 48px;
    font-size: 34px;
    border-radius: 6px;
  }

  .auction-hero-prev {
    left: 7px;
  }

  .auction-hero-next {
    right: 7px;
  }

  .auction-hero-dots {
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auction-hero-slide,
  .auction-hero-button {
    transition: none;
  }
}


/* Slideshow sequence: image arrives first, then text pops in */
.auction-hero-slide {
  transform: translateX(5%);
  transition:
    opacity .48s ease,
    visibility .48s ease,
    transform .60s cubic-bezier(.22,.7,.28,1);
}

.auction-hero-slide.active {
  transform: translateX(0);
}

.auction-hero-content > * {
  opacity: 0;
  transform: translateY(22px) scale(.98);
}

.auction-hero-slide.active .auction-hero-content > * {
  animation: auctionHeroTextPop .46s cubic-bezier(.2,.8,.25,1) forwards;
  animation-delay: .55s;
}

.auction-hero-slide.active .auction-hero-content > *:nth-child(2) {
  animation-delay: .62s;
}

.auction-hero-slide.active .auction-hero-content > *:nth-child(3) {
  animation-delay: .69s;
}

.auction-hero-slide.active .auction-hero-content > *:nth-child(4) {
  animation-delay: .76s;
}

.auction-hero-slide.active .auction-hero-content > *:nth-child(5) {
  animation-delay: .83s;
}

@keyframes auctionHeroTextPop {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(.98);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 700px) {
  .auction-hero-slide {
    transform: translateX(7%);
  }

  .auction-hero-slide.active {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auction-hero-slide {
    transform: none !important;
  }

  .auction-hero-content > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}


/* Keep Beiler-Campbell inventory links on one line */
.external-list-link a {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .external-list-link {
    width: calc(100% - 12px);
  }

  .external-list-link a {
    font-size: 14px;
    white-space: nowrap;
  }
}


/* Lighter auction slideshow image with subtle text shadow */
.auction-hero-overlay {
  background: linear-gradient(
    0deg,
    rgba(0,0,0,.10) 0%,
    rgba(0,0,0,.05) 48%,
    rgba(0,0,0,.02) 100%
  ) !important;
}

.auction-hero-content {
  text-shadow:
    0 2px 3px rgba(0,0,0,.55),
    0 1px 1px rgba(0,0,0,.35) !important;
}

.auction-hero-content h2,
.auction-hero-meta,
.auction-hero-location,
.auction-hero-kicker {
  text-shadow:
    0 2px 3px rgba(0,0,0,.58),
    0 1px 1px rgba(0,0,0,.35) !important;
}

@media (max-width: 700px) {
  .auction-hero-overlay {
    background: linear-gradient(
      0deg,
      rgba(0,0,0,.14) 0%,
      rgba(0,0,0,.06) 55%,
      rgba(0,0,0,.02) 100%
    ) !important;
  }
}


/* Remove slideshow darkening entirely; use text shadow only */
.auction-hero-overlay,
@media (max-width: 700px) {
  .auction-hero-overlay {
    background: transparent !important;
  }
}

.auction-hero-content,
.auction-hero-content h2,
.auction-hero-meta,
.auction-hero-location,
.auction-hero-kicker {
  text-shadow:
    0 2px 3px rgba(0,0,0,.72),
    0 1px 1px rgba(0,0,0,.55) !important;
}


.auction-hero-overlay {
  background: transparent !important;
}

@media (max-width: 700px) {
  .auction-hero-overlay {
    background: transparent !important;
  }
}


/* Stronger slideshow text shadow while keeping photos bright */
.auction-hero-content,
.auction-hero-content h2,
.auction-hero-meta,
.auction-hero-location,
.auction-hero-kicker {
  text-shadow:
    0 3px 5px rgba(0,0,0,.82),
    0 1px 2px rgba(0,0,0,.72),
    1px 1px 1px rgba(0,0,0,.55),
    -1px 1px 1px rgba(0,0,0,.45) !important;
}

.auction-hero-button {
  text-shadow:
    0 2px 3px rgba(0,0,0,.75),
    0 1px 1px rgba(0,0,0,.6) !important;
}


/* Final mobile slideshow brightness override */
.auction-hero-slide,
.auction-hero-slide.active {
  filter: none !important;
  opacity: 1;
}

.auction-hero-overlay {
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

@media (max-width: 700px) {
  .auction-hero-slide,
  .auction-hero-slide.active {
    filter: none !important;
  }

  .auction-hero-overlay {
    display: none !important;
    background: none !important;
    opacity: 0 !important;
  }

  .auction-hero-content,
  .auction-hero-content h2,
  .auction-hero-meta,
  .auction-hero-location,
  .auction-hero-kicker {
    text-shadow:
      0 3px 6px rgba(0,0,0,.85),
      0 1px 2px rgba(0,0,0,.78),
      1px 1px 1px rgba(0,0,0,.55),
      -1px 1px 1px rgba(0,0,0,.5) !important;
  }
}
