/* GeoffTrader: light, clean, bold uppercase. Matches geoffbuyscars.uk */

:root {
  --brown: #a3935e;
  --brown-hover: #7a6e47;
  --dark: #303030;
  --gold: #a3935e;
  --gold-hover: #7a6e47;
  --gold-text: #7a6e47;
  --brand-red: #e00830;
  --brand-red-hover: #b00628;
  --button-text-dark: #222;
  --button-radius: 0.2rem;
}

body {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--dark);
  font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.6;
}

/* Nav */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand-logo {
  display: block;
  width: auto;
  height: 1.8rem;
  max-width: min(14rem, 60vw);
  object-fit: contain;
}

.brand-logo-footer {
  height: 1rem;
  max-width: min(8rem, 45vw);
}

.nav-link-bold {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--dark) !important;
}

.nav-link-bold:hover {
  color: var(--brand-red) !important;
}

.nav-link-gold {
  color: var(--brown) !important;
}

.nav-pill {
  background: transparent;
  color: var(--dark) !important;
  border-radius: 0;
}

.nav-pill:hover {
  background: transparent;
  color: var(--brand-red) !important;
}

.nav-pill.nav-link-current {
  background: transparent;
  color: var(--brand-red) !important;
}

.nav-pill.dropdown-toggle::after {
  margin-left: 0.4rem;
}

/* Hero */
.hero {
  background: #fff;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid #e5e5e5;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.hero .lead {
  color: var(--dark);
  font-size: 1.1rem;
}

.hero-badge {
  display: inline-block;
  border: 2px solid var(--dark);
  color: var(--dark);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
}

.hero-compact {
  padding: 2.5rem 0 2rem;
}

.hero-compact h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
}

.content-section-compact {
  padding: 2rem 0;
}

.strapline {
  color: var(--brown);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section label (gold uppercase tag) */
.section-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-text);
  margin-bottom: 0.75rem;
}

/* Site cards on hub page */
.site-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--dark);
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-card:hover {
  border-color: var(--brown);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: var(--dark);
  text-decoration: none;
}

.site-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.site-card-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown);
  margin-bottom: 0.4rem;
}

.site-card p {
  color: var(--dark);
  font-size: 1rem;
}

.site-card--soon {
  opacity: 0.4;
  pointer-events: none;
}

/* CTA block */
.cta-block {
  background: #faf8f1;
  color: var(--dark);
  border: 1px solid #e5dfd1;
  border-radius: 0.5rem;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-block .section-label {
  color: var(--brown);
}

.cta-block h2 {
  color: var(--dark);
  margin: 0.25rem 0 0.5rem;
}

.cta-block p {
  color: #555;
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-actions .btn-gold {
  margin: 0 !important;
  text-align: center;
}

/* Primary brand action. The legacy class name is retained for template compatibility. */
.btn {
  border-radius: var(--button-radius);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--brand-red);
  border-radius: var(--button-radius);
  padding: 0.6rem 1.5rem;
}

.btn-gold:hover {
  background: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
  color: #fff;
}

.btn-gold:focus-visible,
.btn-submit:focus-visible,
.pill-btn:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px;
}

.btn-gold:disabled,
.btn-submit:disabled,
.btn-gold.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.nav-link-current {
  color: var(--brown) !important;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.site-footer-brand {
  justify-self: start;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
}

.site-footer-meta {
  justify-self: end;
  text-align: right;
}

/* Content sections */
.content-section {
  padding: 3rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.content-section:last-of-type {
  border-bottom: none;
}

.content-section p {
  color: var(--dark);
}

.listing-detail-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.listing-detail-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.listing-detail-gallery {
  margin-bottom: 1.5rem !important;
}

.listing-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

.listing-detail-main,
.listing-detail-sidebar {
  min-width: 0;
}

.listing-detail-sidebar {
  display: grid;
  gap: 1rem;
}

.listing-detail-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  padding: 1.25rem;
}

.listing-detail-description-scroll {
  max-height: 280px;
  overflow-y: auto;
}

.listing-detail-description-copy {
  margin: 0;
  white-space: pre-wrap;
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.8;
}

.listing-detail-below {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}

.listing-detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.45rem;
  font-size: 1rem;
}

.listing-detail-table td {
  padding: 0;
  vertical-align: top;
}

.listing-detail-table td:first-child {
  width: 42%;
  padding-right: 1rem;
  color: #555;
}

.listing-detail-actions-card {
  display: grid;
  gap: 0.85rem;
}

.listing-detail-actions-card > form,
.listing-detail-actions-card > a,
.listing-detail-actions-card > p,
.listing-detail-actions-card .contact-panel {
  margin: 0;
}

.listing-detail-contact-panel {
  padding-top: 0.2rem;
  border-top: 1px solid #ece7db;
}

.listing-detail-map-card .form-text {
  color: #555;
}

.listing-member-access {
  margin-top: 1.5rem;
}

.listing-member-access-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.listing-member-benefits {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
}

.listing-member-benefits li + li {
  margin-top: 0.35rem;
}

.listing-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-gold-outline {
  background: transparent;
  color: var(--button-text-dark);
  border: 1px solid var(--gold);
}

.btn-gold-outline:hover {
  border-color: var(--gold);
  color: var(--button-text-dark);
  background: var(--gold);
}

.btn-gold-muted {
  background: #555;
  border-color: #555;
  color: #fff;
}

.btn-gold-muted:hover {
  background: var(--button-text-dark);
  border-color: var(--button-text-dark);
  color: #fff;
}

/* Card grid shared by all listing views */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1320px;
    margin: 0 auto;
  }
}

/* Car listing cards */
.car-card {
  max-width: 480px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--dark);
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  border-color: var(--brown);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: var(--dark);
}

.car-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.car-card-nophoto {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.car-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.car-card-actions {
  margin-top: auto;
  padding-top: 0.75rem;
}

.car-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.car-card-meta {
  display: block;
  font-size: 0.9rem;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.car-card-price {
  display: block;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
}

.car-card-location {
  display: block;
  font-size: 0.9rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

.car-card-popularity {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.4rem;
}

.car-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
  margin-top: 0.3rem;
  margin-bottom: 0.15rem;
}

.car-card-date {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.25rem;
}

.listing-filter-shell {
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  background: #faf8f1;
  overflow: hidden;
}

.listing-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark);
  list-style: none;
}

.listing-filter-summary::-webkit-details-marker {
  display: none;
}

.listing-filter-summary::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
  color: var(--brand-red);
}

.listing-filter-shell[open] .listing-filter-summary::after {
  content: "-";
}

.listing-filter-summary-note {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-text);
}

.listing-filter-panel {
  border: 1px solid #e5e5e5;
  border-width: 1px 0 0;
  padding: 1.25rem;
  background: #faf8f1;
}

.listing-filter-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 1rem;
  align-items: end;
}

.listing-filter-search,
.listing-filter-sort {
  min-width: 0;
}

.listing-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.listing-filter-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-text);
  margin-bottom: 0.35rem;
}

.listing-filter-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.listing-filter-checkbox-wrap {
  display: flex;
  align-items: end;
}

.listing-filter-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--dark);
  min-height: 38px;
}

.listing-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Sidebar filter layout */
.listings-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.listings-sidebar {
  position: sticky;
  top: 5.5rem;
}

.listings-sidebar .listing-filter-shell {
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  background: #fff;
  overflow: visible;
}

.listings-sidebar .listing-filter-panel {
  border: none;
  padding: 0;
  background: transparent;
}

.listings-sidebar .listing-filter-top {
  grid-template-columns: 1fr;
}

.listings-sidebar .listing-filter-grid {
  grid-template-columns: 1fr;
}

.listings-sidebar .listing-filter-pair {
  grid-template-columns: 1fr 1fr;
}

.sidebar-filter-section {
  border-bottom: 1px solid #e5e5e5;
}

.sidebar-filter-section:last-of-type {
  border-bottom: none;
}

.sidebar-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-text);
  list-style: none;
}

.sidebar-filter-toggle::-webkit-details-marker {
  display: none;
}

.sidebar-filter-toggle::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
  color: var(--brand-red);
}

.sidebar-filter-section[open] > .sidebar-filter-toggle::after {
  content: "\2212";
}

.sidebar-filter-body {
  padding: 0 1rem 1rem;
}

.sidebar-filter-body .listing-filter-label {
  margin-bottom: 0.25rem;
}

.sidebar-filter-body .listing-filter-pair {
  margin-bottom: 0.5rem;
}

.sidebar-filter-body input,
.sidebar-filter-body select {
  font-size: 0.88rem;
}

.sidebar-filter-body input:focus,
.sidebar-filter-body select:focus,
.sidebar-filter-always input:focus,
.sidebar-filter-always select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 0.2rem rgba(224, 8, 48, 0.16);
  outline: none;
}

.sidebar-filter-always {
  border-bottom: 1px solid #e5e5e5;
  padding: 0.85rem 1rem;
}

.listings-sidebar .listing-filter-actions {
  padding: 0.85rem 1rem;
}

.listings-sidebar .listing-filter-actions .btn {
  width: 100%;
}

.listings-filter-active-note {
  color: #fff;
  margin-left: 0.5rem;
}

.listings-main-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.listings-main-heading {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

.listings-count {
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
}

.listing-map-canvas {
  height: 420px;
  width: 100%;
  background: #f3f3f3;
}

.listing-map-canvas-preview {
  height: 240px;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  overflow: hidden;
}

.listing-map-preview-wrap {
  margin-top: 0.9rem;
}

.listing-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: stretch;
  margin-top: 0.75rem;
}

.listing-map-actions .btn {
  flex: 1 1 180px;
}

.listing-map-modal .modal-dialog {
  max-width: 960px;
}

.listing-map-modal .modal-body {
  padding: 0;
}

.listing-map-modal .listing-map-canvas {
  height: min(70vh, 720px);
  border-radius: 0;
  border: none;
}

.listing-map-popup {
  min-width: 180px;
  color: var(--dark);
}

.listing-map-popup strong {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}

.listing-map-popup a {
  color: var(--brown);
  font-weight: 700;
  text-decoration: none;
}

.listing-map-popup a:hover {
  text-decoration: underline;
}

.listing-map-popup-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.15rem;
  background: var(--brown);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.listing-map-popup-distance {
  margin-top: 0.3rem;
  color: #555;
  font-size: 0.88rem;
}

.favorite-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: var(--dark);
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.favorite-toggle:hover {
  border-color: #c74b50;
  color: #a3262a;
  box-shadow: 0 2px 10px rgba(167, 38, 42, 0.08);
}

.favorite-toggle-heart {
  font-size: 1.1rem;
  line-height: 1;
  color: #666;
}

.favorite-toggle.is-active {
  border-color: #c74b50;
  color: #a3262a;
}

.favorite-toggle.is-active .favorite-toggle-heart {
  color: #c62828;
}

.favorite-toggle-card {
  padding: 0.48rem 0.75rem;
  font-size: 0.82rem;
}

.favorite-toggle-detail {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
}

.car-comment-toggle-btn {
  background: none;
  border: none;
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0;
  margin-top: 0.45rem;
}

.car-comment-toggle-btn:hover {
  color: var(--dark);
}

.car-comment-children {
  margin-top: 0.6rem;
}

/* Car detail gallery */
.car-gallery-main {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 0.25rem;
  background: #f5f5f5;
}

.car-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.5rem;
}

.car-gallery-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.2rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}

.car-gallery-thumb:hover,
.car-gallery-thumb.active {
  border-color: var(--brown);
}

/* Status badges */
.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 0.15rem;
}

.badge-pending { background: var(--brown); color: #fff; }
.badge-approved { background: var(--dark); color: #fff; }
.badge-rejected { background: #8b2020; color: #fff; }
.badge-sold { background: #555; color: #fff; }
.badge-deleted { background: #888; color: #fff; }

.badge-geoff {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 0.15rem;
  background: var(--brown);
  color: #fff;
}

.badge-seller {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.15rem;
  background: var(--dark);
  color: #fff;
}

/* Comments */
.car-comment {
  border-bottom: 1px solid #e5e5e5;
  padding: 0.75rem 0;
}

.car-comment:last-of-type {
  border-bottom: none;
}

.car-comment-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.car-comment-date {
  font-size: 0.88rem;
  color: #555;
  margin-left: auto;
}

.car-comment-text {
  margin: 0.3rem 0 0;
  color: var(--dark);
  font-size: 1rem;
  white-space: pre-wrap;
}

.car-comment-reply {
  margin-left: 1.4rem;
  border-left: 2px solid #e5e5e5;
  padding-left: 1rem;
  border-bottom: none;
}

.car-comment-parent {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--brown);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.car-comment-reply-btn {
  background: none;
  border: none;
  color: #555;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
  margin-top: 0.2rem;
}

.car-comment-reply-btn:hover {
  color: var(--brown);
}

.car-comment-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.car-comment-action-btn {
  background: none;
  border: none;
  color: #555;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
}

.car-comment-action-btn:hover {
  color: var(--brown);
}

.car-comment-action-btn-danger:hover {
  color: #8b2020;
}

.car-comment-action-btn-report,
.car-comment-action-btn-moderate {
  border: 1px solid #bbb;
  padding: 0.2rem 0.45rem;
  text-decoration: none;
}

.car-comment-action-btn-moderate {
  border-color: var(--gold);
  color: var(--brown);
}

.car-comment-edit-form {
  margin-top: 0.75rem;
}

.car-comment-edit-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.car-comment-text-removed {
  color: #555;
  font-style: italic;
}

.comment-mention {
  color: var(--brown);
  font-weight: 700;
}

.reply-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 0.2rem;
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: #555;
}

.reply-cancel {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #555;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  line-height: 1;
}

.reply-cancel:hover {
  color: #8b2020;
}

.contact-panel-card {
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  padding: 1rem;
  background: #faf8f1;
}

.contact-panel-copy {
  color: var(--dark);
  font-size: 1rem;
}

/* Account page */
.account-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  padding: 1.5rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.account-card-subtitle {
  color: #555;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
}

.account-meta {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.account-meta div {
  border-top: 1px solid #ededed;
  padding-top: 0.9rem;
}

.account-meta div:first-child {
  border-top: none;
  padding-top: 0;
}

.account-meta dt {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown);
  margin-bottom: 0.2rem;
}

.account-meta dd {
  margin: 0;
  font-size: 1rem;
  color: var(--dark);
}

.account-note {
  border: 1px solid #eadfb4;
  background: #faf6e7;
  color: #7a6e47;
  border-radius: 0.2rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.upgrade-prompt {
  background: #2b2b2b;
  color: #f0f0f0;
  border-radius: 0.2rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.upgrade-prompt p {
  color: #f0f0f0;
}

.upgrade-prompt a:not(.btn) {
  color: #eadfb4;
}

.upgrade-prompt a:not(.btn):hover {
  color: #fff;
}

.account-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.account-profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ededed;
}

.account-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0;
}

.account-jump-link {
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.account-jump-link:hover {
  color: var(--dark);
  text-decoration: underline;
}

.account-columns {
  display: block;
  margin-top: 1.5rem;
}

.account-column {
  min-width: 0;
}

.account-sidebar,
.account-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.account-column-main {
  margin-top: 1.5rem;
}

.account-notifications-desktop {
  display: none;
}

@media (min-width: 900px) {
  .account-columns {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.35fr);
    gap: 1.5rem;
    align-items: start;
  }

  .account-column-main {
    margin-top: 0;
  }

  .account-sidebar {
    position: sticky;
    top: 5.5rem;
  }

  .account-jump-links,
  .account-notifications-mobile {
    display: none;
  }

  .account-notifications-desktop {
    display: block;
  }
}

/* Add and edit listing forms */
.listing-form-hero,
.listing-form-shell {
  width: 100%;
}

.listing-form-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.listing-form-section-title {
  display: none;
}

.listing-form .form-control,
.listing-form .form-select,
.listing-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 1200px) {
  .listing-form-hero,
  .listing-form-shell {
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
  }

  .listing-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .listing-form-section {
    padding: 1.5rem;
    border: 1px solid #e1e1e1;
    border-radius: 0.25rem;
    background: #fff;
  }

  .listing-form-section-title {
    display: block;
    width: auto;
    margin: 0 0 1.25rem;
    color: var(--brown);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .listing-form-photos {
    grid-column: 1 / -1;
  }

  .listing-form-photos .form-control,
  .listing-form-photos .form-text {
    max-width: 56rem;
  }
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.account-actions form {
  margin: 0;
}

.account-card .form-control,
.account-card .form-select,
.account-card textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.account-btn-danger {
  background: #8b2020;
  border-color: #8b2020;
}

.account-btn-danger:hover {
  background: #5a1010;
  border-color: #5a1010;
}

.account-btn-success {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--button-text-dark);
}

.account-btn-success:hover {
  background: var(--brown-hover);
  border-color: var(--brown-hover);
  color: #fff;
}

.account-btn-muted {
  background: #555;
  border-color: #555;
}

.account-btn-muted:hover {
  background: var(--button-text-dark);
  border-color: var(--button-text-dark);
}

.billing-change-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.my-listings-section-heading {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown);
  margin-bottom: 0.75rem;
}

.listing-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.listing-card-actions form {
  margin: 0;
}

.downgrade-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.downgrade-summary-metrics span {
  display: inline-flex;
  gap: 0.5rem;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
}

.account-table th,
.account-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: middle;
}

.account-table th {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown);
}

.account-table td {
  color: var(--dark);
}

.account-table a {
  color: var(--brown);
  font-weight: 700;
  text-decoration: none;
}

.account-table a:hover {
  text-decoration: underline;
}

/* Maintenance mode */
.maintenance-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 248, 0.98) 100%),
    repeating-linear-gradient(
      135deg,
      rgba(34, 34, 34, 0.025) 0,
      rgba(34, 34, 34, 0.025) 10px,
      rgba(255, 255, 255, 0) 10px,
      rgba(255, 255, 255, 0) 26px
    );
}

.maintenance-shell {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1rem;
}

.maintenance-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 3rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 50px rgba(34, 34, 34, 0.06);
}

.maintenance-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  background: #1f1f1f;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.maintenance-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.maintenance-copy {
  max-width: 42rem;
  color: #4f4a40;
  font-size: 1.02rem;
  line-height: 1.8;
}

.maintenance-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin: 1.5rem 0 1.75rem;
}

.maintenance-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #f5f5f5;
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.maintenance-status-note {
  color: #555;
  font-size: 1rem;
  font-weight: 700;
}

.maintenance-crew-login {
  margin: 0 0 1.75rem;
}

.maintenance-crew-login-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #d9d9d9;
  border-radius: 0.2rem;
  background: #f5f5f5;
  color: #666;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.maintenance-crew-login-btn:hover {
  border-color: #c8c8c8;
  background: #ececec;
  color: var(--dark);
}

.maintenance-crew-login-btn:focus-visible {
  outline: 3px solid rgba(127, 89, 0, 0.3);
  outline-offset: 3px;
}

.maintenance-panel {
  border: 1px solid #e5e5e5;
  background: #fafafa;
  border-radius: 0.35rem;
  padding: 1.1rem 1.2rem;
}

.maintenance-panel-title {
  margin: 0 0 0.35rem;
  color: var(--dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.maintenance-panel-copy {
  margin: 0;
  color: #555;
}

.maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.maintenance-login-page {
  max-width: 460px;
}

.maintenance-control-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .maintenance-control-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.maintenance-control-card {
  max-width: none;
}

/* Auth pages (login, signup, password reset, etc.) */
.auth-page {
  max-width: 420px;
  margin: 3rem auto;
  padding: 0 1rem;
  font-family: inherit;
}

.auth-page-signup {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 2.5rem;
  align-items: start;
  padding-left: 2rem;
  padding-right: 2rem;
}

.auth-page-wide {
  max-width: 760px;
}

.auth-page h2 {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.auth-page .subtitle {
  color: #555;
  margin-bottom: 1.5rem;
}

.auth-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.auth-card .field {
  margin-bottom: 1rem;
}

.auth-card label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.2rem;
  font-size: 1rem;
  color: var(--dark);
  font-family: inherit;
  transition: border-color 0.2s;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--brown);
}

.btn-submit {
  display: block;
  width: 100%;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--button-radius);
  padding: 0.65rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--brand-red-hover);
}

.pill-btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--button-radius);
  padding: 0.6rem 1.5rem;
  transition: background 0.2s;
}

.pill-btn-primary {
  background: var(--brand-red);
  color: #fff;
}

.pill-btn-primary:hover {
  background: var(--brand-red-hover);
  color: #fff;
}

.pill-btn-secondary {
  background: #e5e5e5;
  color: var(--dark);
}

.pill-btn-secondary:hover {
  background: #d5d5d5;
  color: var(--brown);
}

.auth-footer {
  margin-top: 1rem;
  font-size: 1rem;
}

.auth-footer a {
  color: var(--brown);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-alt {
  font-size: 1rem;
  color: #555;
}

.auth-alt a {
  color: var(--brown);
  font-weight: 700;
  text-decoration: none;
}

.auth-alt a:hover {
  text-decoration: underline;
}

.error-box {
  background: #fdf2f2;
  border: 1px solid #e5c0c0;
  border-radius: 0.2rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.error-text {
  color: #8b2020;
  font-size: 1rem;
  margin: 0;
}

.field-error {
  color: #8b2020;
  font-size: 0.88rem;
  margin: 0.25rem 0 0;
}

.auth-page .muted {
  color: #555;
  font-size: 1rem;
}

.auth-signup-copy {
  max-width: 34rem;
  padding-top: 0.35rem;
}

.auth-signup-copy .subtitle,
.auth-signup-copy .muted {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--dark);
}

.auth-signup-copy .subtitle {
  margin-bottom: 1.5rem;
}

.auth-signup-copy .muted {
  margin: 0.9rem 0 0;
}

.auth-signup-note {
  margin-top: 1.25rem;
  border: 1px solid #e5dfd1;
  background: #faf8f1;
  color: var(--dark);
  border-radius: 0.25rem;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

.auth-signup-alt {
  grid-column: 2;
  margin: 0;
}

.auth-helper {
  color: #555;
  margin-bottom: 1rem;
}

.auth-email-list {
  display: grid;
  gap: 0.75rem;
}

.auth-email-option {
  display: block;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-email-option:hover {
  border-color: var(--brown);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.auth-email-option-main {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.auth-email-option-main input[type="radio"] {
  margin-top: 0.2rem;
}

.auth-email-option-copy {
  flex: 1;
  min-width: 0;
}

.auth-email-address {
  display: block;
  font-weight: 700;
  color: var(--dark);
  overflow-wrap: anywhere;
}

.auth-email-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.auth-status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.15rem;
  background: #efefef;
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-status-badge-success {
  background: #f0ebe0;
  color: var(--brown);
}

.auth-status-badge-warning {
  background: #faf6e7;
  color: #a3935e;
}

.auth-email-actions {
  margin-top: 1rem;
}

/* Notification bell */
.nav-bell {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
}

.nav-bell-icon {
  vertical-align: middle;
  color: #555;
}

.nav-bell-icon.nav-bell-active {
  color: #c62828;
}

.nav-bell-count {
  font-size: 0.75rem;
  font-weight: 800;
  color: #c62828;
  line-height: 1;
}

/* Notifications */
.notification-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-bottom: none;
}

.notification-item:first-child {
  border-radius: 0.25rem 0.25rem 0 0;
}

.notification-item:last-child {
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0 0 0.25rem 0.25rem;
}

.notification-item:only-child {
  border-radius: 0.25rem;
  border-bottom: 1px solid #e5e5e5;
}

.notification-unread {
  border-left: 3px solid var(--brown);
  background: #fefcf7;
}

.notification-message {
  font-size: 0.95rem;
  color: var(--dark);
}

.notification-time {
  font-size: 0.88rem;
}

.notification-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.notification-actions form {
  display: contents;
}

.notification-actions .btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 0.25rem;
  line-height: 1.4;
}

.notification-actions .btn-gold {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Photo upload preview */
.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.photo-preview-item {
  position: relative;
  width: 148px;
  padding: 0.45rem;
  border: 1px solid #e5dfd1;
  border-radius: 0.45rem;
  background: #fbfaf6;
  text-align: center;
}

.photo-preview-item img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 0.3rem;
  border: 1px solid #e5e5e5;
}

.photo-preview-order {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #efe7d1;
  color: #6d5411;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.photo-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-remove:hover {
  background: #8b2020;
}

.photo-preview-name {
  display: block;
  font-size: 0.75rem;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.photo-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.photo-preview-actions .btn {
  min-width: 62px;
}

.photo-preview-remove-toggle {
  width: 100%;
  font-size: 0.78rem;
  color: #555;
}

.photo-preview-error img {
  border-color: #8b2020;
  opacity: 0.4;
}

.photo-preview-removed {
  opacity: 0.68;
  background: #f3f3f3;
}

.photo-preview-badge {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #8b2020;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.15rem;
  margin-top: 0.2rem;
}

.photo-preview-warn {
  width: 100%;
  font-size: 0.8rem;
  color: #8b2020;
  margin-top: 0.25rem;
}

.listings-filter-mobile-toggle {
  display: none;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--brown);
  border: none;
  border-radius: 0.25rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  cursor: pointer;
  margin-bottom: 1rem;
  text-align: left;
}

.listings-filter-mobile-toggle:hover {
  background: var(--brown-hover);
}

.listings-filter-mobile-toggle::after {
  content: "+";
  float: right;
  font-size: 1.1rem;
  color: #fff;
}

.listings-filter-mobile-toggle.open::after {
  content: "\2212";
}

@media (max-width: 991.98px) {
  .listings-layout {
    grid-template-columns: 1fr;
  }

  .listings-sidebar {
    position: static;
    display: none;
    margin-bottom: 1rem;
  }

  .listings-sidebar.mobile-open {
    display: block;
  }

  .listings-filter-mobile-toggle {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .hero-compact {
    padding: 1.75rem 0 1.25rem;
  }

  .listing-filter-panel {
    padding: 1rem;
  }

  .listing-filter-summary {
    padding: 0.9rem 1rem;
  }

  .listing-filter-top,
  .listing-filter-grid {
    grid-template-columns: 1fr;
  }

  .listing-filter-pair {
    grid-template-columns: 1fr;
  }

  .listing-filter-actions {
    flex-direction: column;
  }

  .listing-filter-actions .btn-gold {
    width: 100%;
  }

  .cta-block {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .cta-actions .btn-gold {
    width: 100%;
  }

  .account-actions {
    flex-direction: column;
  }

  .account-actions form,
  .account-actions .btn {
    width: 100%;
  }

  .account-card {
    padding: 1rem;
  }

  .account-card-header,
  .account-profile-footer {
    align-items: stretch;
  }

  .account-profile-footer > span {
    width: 100%;
  }

  .auth-email-option {
    padding: 0.85rem;
  }

  .auth-email-option-main {
    gap: 0.65rem;
  }

  .maintenance-card {
    padding: 2rem 1.15rem;
  }

  .maintenance-actions {
    flex-direction: column;
  }

  .maintenance-actions .btn-gold,
  .maintenance-actions .pill-btn {
    width: 100%;
    text-align: center;
  }

  .notification-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .notification-actions {
    width: 100%;
  }

  .listing-detail-card {
    padding: 1.1rem;
  }

  .listing-detail-table td:first-child {
    width: 46%;
    padding-right: 0.75rem;
  }
}

@media (max-width: 991.98px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer-brand,
  .site-footer-meta {
    justify-self: center;
    text-align: center;
  }

  .auth-page-signup {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .auth-signup-copy {
    max-width: none;
    padding-top: 0;
  }

  .auth-signup-alt {
    grid-column: auto;
  }

  .listing-detail-body {
    grid-template-columns: 1fr;
  }

  .listing-detail-below {
    grid-template-columns: 1fr;
  }
}

/* On-brand Bootstrap alert overrides */
.alert-success {
  background: #f0ebe0;
  border-color: #ddd5c0;
  color: var(--brown);
}

.alert-info {
  background: #f0ebe0;
  border-color: #ddd5c0;
  color: var(--brown);
}

.alert-warning {
  background: #faf6e7;
  border-color: #eadfb4;
  color: #7a6e47;
}

.alert-danger {
  background: #fdf2f2;
  border-color: #e5c0c0;
  color: #8b2020;
}

/* CSP-safe replacements for formerly inline presentation rules. */
.content-narrow { max-width: 860px; }
.content-compact { max-width: 640px; }
.page-title-compact { font-size: 1.8rem; }
.section-title-compact { font-size: 1.2rem; }
.heading-medium { font-size: 1.4rem; }
.heading-small { font-size: 1.1rem; }
.text-caption { font-size: 0.8rem; }
.text-small { font-size: 0.85rem; }
.text-table-small { font-size: 0.9rem; }
.btn-muted { background: #555; border-color: #555; color: #fff; }
.btn-muted:hover { background: var(--button-text-dark); border-color: var(--button-text-dark); color: #fff; }
.btn-brown { background: var(--gold); border-color: var(--gold); color: var(--button-text-dark); }
.btn-brown:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: #fff; }
.btn-reject { background: #8b2020; }
.btn-reinstate { background: #2d7a3a; }
.honeypot-field {
  position: absolute;
  left: -9999px;
}
.moderation-photo {
  max-height: 300px;
  object-fit: cover;
}
.preserve-whitespace { white-space: pre-wrap; }
.seller-limit-panel {
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  padding: 1.25rem;
}
.list-indented { padding-left: 1.25rem; }
.input-short { max-width: 100px; }
.random-generate {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.random-result {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}
.text-dark { color: var(--dark); }
.mt-auth { margin-top: 1rem; }
.mb-auth { margin-bottom: 1rem; }
.mb-auth-lg { margin-bottom: 1.5rem; }
.auth-helper-wide {
  max-width: 40rem;
  margin: 0.75rem auto 0;
}
.auth-card-centered { text-align: center; }
.help-text-compact { margin: 0.3rem 0 0; }
.seller-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.seller-tier-card {
  position: relative;
  border: 1px solid #ddd5c0;
  background: #fffdf7;
  border-radius: 0;
  padding: 1rem;
  min-width: 0;
}
.seller-tier-card-current {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
  background: #fff;
}
.seller-tier-card h3 { font-size: 1.05rem; }
.seller-tier-card ul { padding-left: 1.25rem; }
.seller-tier-price { font-size: 1.2rem; font-weight: 700; color: var(--dark); }
.seller-plan-message { font-size: 1.1rem; font-weight: 700; }
.seller-tier-strapline { min-height: 3rem; }
.seller-tier-badge { display: inline-block; margin-bottom: .7rem; padding: .2rem .5rem; border-radius: 0; background: var(--brand-red); color: #fff; font-size: .78rem; font-weight: 700; }
.seller-tier-card :focus-visible { outline: 3px solid var(--brand-red); outline-offset: 3px; }
@media (max-width: 991.98px) {
  .seller-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .seller-tier-grid { grid-template-columns: 1fr; }
}
.account-actions-centered { justify-content: center; }
.autocomplete-anchor { position: relative; }
.autocomplete-results-positioned {
  top: 100%;
  left: 0;
  z-index: 30;
}
