/*
 * AntiqueLion design system - "Heritage Gallery" (Phase 2).
 *
 * Tokens + components for the redesign. New markup uses al-* classes so the
 * legacy theme CSS (style.css / custom-home.css, thousands of !important
 * rules) does not reach it; where a legacy rule still bleeds in, the override
 * is scoped under #al-header / .al-* and commented.
 */

:root {
  --al-ink: #14213D;
  --al-ink-2: #1E2D4F;
  --al-brass: #A67C2E;
  --al-brass-text: #8A6420;      /* brass that passes 4.5:1 on white/ivory */
  --al-gilt: #D9B26A;
  --al-ivory: #F7F4EE;
  --al-paper: #FFFFFF;
  --al-line: #E5DFD3;
  --al-line-soft: #EFEAE0;
  --al-text: #14213D;
  --al-muted: #4B5563;
  --al-on-ink: #E8E2D4;
  --al-danger: #B42318;
  --al-success: #067647;

  --al-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --al-font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --al-radius: 4px;
  --al-wrap: 1280px;
  --al-gutter: 32px;
  --al-shadow: 0 10px 30px rgba(20, 33, 61, 0.12);

  /* Legacy theme variables (custom-home.css) remapped to the Heritage palette,
     so un-migrated pages lose the old orange/green look automatically. */
  --slate-900: #14213D;
  --slate-800: #1E2D4F;
  --gold-800: #6F5019;
  --gold-700: #8A6420;
  --gold-600: #A67C2E;
  --gold-500: #B8893B;
  --gold-100: #F4EBDA;
  --emerald-500: #14213D;
  --emerald-600: #14213D;
  --emerald-700: #14213D;
  --emerald-800: #14213D;
}

@media (max-width: 767px) {
  :root { --al-gutter: 16px; }
}

/* ---------- Base type ---------- */
html body {
  background: var(--al-ivory) !important;
  color: var(--al-text);
  /* the legacy fixed header reserved space with padding-top; the new header is sticky */
  padding-top: 0 !important;
}

body, button, input, select, textarea {
  font-family: var(--al-font-ui) !important;
}

h1, h2, h3, .al-display {
  font-family: var(--al-font-display) !important;
}

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

.al-wrap {
  max-width: var(--al-wrap);
  margin: 0 auto;
  padding: 0 var(--al-gutter);
  box-sizing: border-box;
}

/* ======================================================================
   Header
   ====================================================================== */
#al-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--al-paper);
  box-shadow: 0 1px 0 var(--al-line);
  font-family: var(--al-font-ui);
}

#al-header a { text-decoration: none; }
#al-header *, #al-header *::before, #al-header *::after { box-sizing: border-box; }

/* --- utility bar --- */
#al-header .al-utility {
  background: var(--al-ink);
  color: var(--al-on-ink);
  font-size: 13px;
}

#al-header .al-utility .al-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

#al-header .al-utility-left,
#al-header .al-utility-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

#al-header .al-ship-to {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#al-header .al-ship-to strong { color: #FFFFFF; font-weight: 700; }

/* legacy global link colours use !important */
#al-header .al-utility-right a { color: var(--al-on-ink) !important; }
#al-header .al-utility-right a:hover { color: #FFFFFF !important; text-decoration: underline; }
#al-header .al-utility-right a.al-utility-sell { color: var(--al-gilt) !important; font-weight: 700; }

/* currency selector sits in the utility bar (markup from functions.php) */
#al-header .header-currency-selector { margin: 0; }
#al-header .header-currency-selector .currency-toggle {
  height: auto !important;
  padding: 4px 8px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 1px solid rgba(232, 226, 212, 0.35) !important;
  border-radius: var(--al-radius) !important;
  color: var(--al-on-ink) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
#al-header .header-currency-selector .currency-toggle:hover { border-color: var(--al-gilt) !important; color: #FFFFFF !important; }
#al-header .header-currency-selector .currency-toggle .fa-money { display: none; }
#al-header .header-currency-selector .currency-dropdown-menu { left: 0; right: auto; }

/* --- main bar --- */
#al-header .al-main .al-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

#al-header .al-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

/* wordmark colours for a light header (antique.css styles it for the old dark bar) */
#al-header .al-logo .brand-logo { color: var(--al-brass); gap: 10px; display: inline-flex; align-items: center; white-space: nowrap; }
#al-header .al-logo .brand-emblem { width: 38px; height: 38px; flex: 0 0 38px; }
#al-header .al-logo .brand-wordmark,
#al-header .al-logo .brand-wordmark span {
  font-family: var(--al-font-display) !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  line-height: 1 !important;
}
#al-header .al-logo .brand-a { color: var(--al-ink) !important; }
#al-header .al-logo .brand-b { color: var(--al-brass) !important; }
#al-header .al-logo img.brand-logo-img { height: 44px; width: auto; }

/* search */
#al-header .al-search {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-width: 0;
  height: 48px;
  margin: 0;
  border: 1.5px solid var(--al-ink);
  border-radius: var(--al-radius);
  background: var(--al-paper);
  overflow: hidden;
}

/* legacy: form label { display: block !important } */
#al-header .al-search label { margin: 0 !important; display: flex !important; }

#al-header .al-search-cat {
  flex: 0 0 auto;
  position: relative;
  border-right: 1px solid var(--al-line);
  background: #FBF9F4;
}

/* legacy: bare `select { padding-left: 48px !important }` + custom backgrounds */
#al-header .al-search-cat select {
  appearance: none;
  -webkit-appearance: none;
  height: 100% !important;
  max-width: 200px;
  margin: 0 !important;
  padding: 0 34px 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center !important;
  color: var(--al-ink) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  cursor: pointer;
}

#al-header .al-search-input { flex: 1 1 auto; min-width: 0; }

#al-header .al-search-input input {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--al-ink) !important;
  font-size: 15px !important;
  box-shadow: none !important;
  outline: none;
}

#al-header .al-search-input input::placeholder { color: #6B7280; }
#al-header .al-search:focus-within { box-shadow: 0 0 0 3px rgba(166, 124, 46, 0.25); }

#al-header .al-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--al-ink);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#al-header .al-search-btn:hover { background: var(--al-ink-2); }

/* actions */
#al-header .al-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

#al-header .al-signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--al-ink);
  font-size: 14px;
  font-weight: 700;
}

#al-header .al-register {
  color: var(--al-muted);
  font-size: 14px;
  font-weight: 600;
}

#al-header .al-signin:hover,
#al-header .al-register:hover { color: var(--al-brass-text); }

#al-header .al-sell {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--al-radius);
  background: var(--al-brass);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

#al-header .al-sell:hover { background: var(--al-brass-text); color: #FFFFFF; }

#al-header .al-account { position: relative; }

#al-header .al-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--al-line);
  border-radius: 999px;
  background: var(--al-paper);
  color: var(--al-ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#al-header .al-account-btn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
#al-header .al-account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#al-header .al-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1001;
  min-width: 240px;
  padding: 8px 0;
  background: var(--al-paper);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  box-shadow: var(--al-shadow);
}

#al-header .al-account-menu[hidden] { display: none; }
#al-header .al-account-menu ul { list-style: none; margin: 0; padding: 0; }
#al-header .al-account-menu li { margin: 0; float: none; width: auto; }
#al-header .al-account-menu a { display: block; padding: 9px 18px; color: var(--al-ink); font-size: 14px; }
#al-header .al-account-menu a:hover { background: var(--al-ivory); color: var(--al-brass-text); }

/* --- category bar --- */
#al-header .al-cats { border-top: 1px solid var(--al-line-soft); }

#al-header .al-cats .al-wrap {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

#al-header .al-cats .al-wrap::-webkit-scrollbar { display: none; }

#al-header .al-cats a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0 11px;
  border-bottom: 2px solid transparent;
  color: var(--al-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

#al-header .al-cats a:hover { color: var(--al-brass-text); }
#al-header .al-cats a.active { color: var(--al-brass-text); border-bottom-color: var(--al-brass); }
#al-header .al-cats .al-cat-auctions { color: var(--al-brass-text); font-weight: 700; }

#al-header .al-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--al-danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15);
}

/* --- responsive --- */
@media (max-width: 1100px) {
  #al-header .al-register { display: none; }
  #al-header .al-search label.al-search-cat { display: none !important; }
}

@media (max-width: 900px) {
  #al-header .al-utility-right a:not(.al-utility-sell) { display: none; }

  #al-header .al-main .al-wrap {
    flex-wrap: wrap;
    gap: 12px 16px;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  #al-header .al-logo { order: 1; }
  #al-header .al-actions { order: 2; margin-left: auto; gap: 12px; }
  #al-header .al-search { order: 3; flex-basis: 100%; height: 46px; }
  #al-header .al-search-btn span { display: none; }
  #al-header .al-search-btn { padding: 0 16px; }
  #al-header .al-logo .brand-wordmark,
  #al-header .al-logo .brand-wordmark span { font-size: 25px !important; }
  #al-header .al-logo .brand-emblem { width: 32px; height: 32px; flex-basis: 32px; }
}

@media (max-width: 600px) {
  #al-header .al-utility-sell { display: none; }
  #al-header .al-signin span { display: none; }
  #al-header .al-account-name { display: none; }
  #al-header .al-sell { min-height: 40px; padding: 0 14px; font-size: 13px; }
  #al-header .al-cats .al-wrap { gap: 22px; }
  /* the mobile currency picker lives in the utility bar; legacy hides .not767 */
  #al-header .header-currency-selector.not767 { display: inline-block !important; }
}

/* ======================================================================
   Shared components
   ====================================================================== */
.al-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: var(--al-radius);
  font-family: var(--al-font-ui);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.al-btn-gilt { background: var(--al-gilt); color: var(--al-ink) !important; }
.al-btn-gilt:hover { background: #E6C686; }
.al-btn-ink { background: var(--al-ink); color: #FFFFFF !important; }
.al-btn-ink:hover { background: var(--al-ink-2); }
.al-btn-brass { background: var(--al-brass); color: #FFFFFF !important; }
.al-btn-brass:hover { background: var(--al-brass-text); }
.al-btn-outline-light { border-color: rgba(255, 255, 255, 0.6); color: #FFFFFF !important; }
.al-btn-outline-light:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }

.al-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.al-section { padding: 64px 0; }
.al-section-alt { background: var(--al-paper); border-top: 1px solid var(--al-line); border-bottom: 1px solid var(--al-line); }

.al-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.al-section-head h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--al-ink) !important;
  font-size: 38px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  text-align: left !important;
}

.al-section-head a {
  color: var(--al-brass-text) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.al-section-head a:hover { text-decoration: underline !important; }

.al-empty { color: var(--al-muted); font-size: 16px; }

/* ---------- Listing card ---------- */
.al-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.al-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--al-paper);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  transition: box-shadow 0.2s, transform 0.2s;
}

.al-card:hover { box-shadow: var(--al-shadow); transform: translateY(-2px); }

.al-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--al-line-soft);
  overflow: hidden;
}

.al-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.al-card-media img.is-placeholder { object-fit: contain; padding: 18%; opacity: 0.6; }
.al-card:hover .al-card-media img { transform: scale(1.03); }

.al-card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 2px;
  background: var(--al-paper);
  color: var(--al-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.al-card-badge.is-live { background: var(--al-ink); color: #FFFFFF; }
.al-card-badge.is-sold { background: var(--al-danger); color: #FFFFFF; }
.al-card-badge.is-reserved { background: var(--al-brass); color: #FFFFFF; }

.al-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.al-card-cat {
  color: var(--al-brass-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.al-card-title,
.al-card-title a {
  font-family: var(--al-font-display) !important;   /* legacy h3/link fonts on search pages */
  font-weight: 600 !important;
}

.al-card-title {
  margin: 6px 0 8px !important;
  padding: 0 !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.al-card-title a {
  color: var(--al-ink) !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.al-card-title a:hover { color: var(--al-brass-text) !important; }
/* whole card clickable from the title link */
.al-card { position: relative; }
.al-card-title a::after { content: ""; position: absolute; inset: 0; }

.al-card-place { color: var(--al-muted); font-size: 13px; }

.al-card-price {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--al-line-soft);
}


.al-card-price-label { color: var(--al-muted); font-size: 12px; padding-top: 4px; }

.al-card-price-value {
  color: var(--al-ink);
  font-size: 18px;
  font-weight: 800;
  text-align: right;
}

.al-card-price-value .price-converted { color: var(--al-muted); font-size: 13px; font-weight: 500; }

/* ======================================================================
   Home
   ====================================================================== */
.al-home #header-line { display: none !important; }

.al-hero { background: var(--al-ink); color: #FFFFFF; }

.al-hero .al-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.al-hero-text { flex: 1 1 520px; min-width: 0; }
.al-hero .al-eyebrow { color: var(--al-gilt); }

.al-hero-title {
  margin: 16px 0 18px !important;
  padding: 0 !important;
  color: #FFFFFF !important;
  font-size: 58px !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
  text-align: left !important;
}

.al-hero-lead {
  max-width: 560px;
  margin: 0 0 30px;
  color: #D6D9E0;
  font-size: 18px;
  line-height: 1.6;
}

.al-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.al-hero-media {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 520px;
  display: block;
}

.al-hero-media img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  border: 6px solid #FFFFFF;
  border-radius: var(--al-radius);
}

.al-trust { background: var(--al-paper); border-bottom: 1px solid var(--al-line); }

.al-trust .al-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.al-trust-item strong { display: block; color: var(--al-ink); font-size: 15px; }
.al-trust-item span { color: var(--al-muted); font-size: 14px; }

.al-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.al-cat-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 22px 20px;
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  background: var(--al-ivory);
  text-decoration: none !important;
  transition: border-color 0.15s, background-color 0.15s;
}

.al-cat-tile:hover { border-color: var(--al-brass); background: #FFFFFF; }

.al-cat-name {
  color: var(--al-ink);
  font-family: var(--al-font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.al-cat-count { color: var(--al-muted); font-size: 13px; }

.al-sell-band { background: var(--al-ink); color: #FFFFFF; }

.al-sell-band .al-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.al-sell-band h2 {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: #FFFFFF !important;
  font-size: 36px !important;
  font-weight: 600 !important;
  text-align: left !important;
}

.al-sell-band p { margin: 0; color: #D6D9E0; font-size: 16px; }

@media (max-width: 767px) {
  .al-section { padding: 44px 0; }
  .al-section-head h2 { font-size: 30px !important; }
  .al-hero .al-wrap { padding-top: 44px; padding-bottom: 44px; gap: 28px; }
  .al-hero-title { font-size: 40px !important; }
  .al-hero-lead { font-size: 16px; }
  .al-hero-media img { height: 240px; }
  .al-trust .al-wrap { grid-template-columns: 1fr; gap: 12px; }
  .al-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .al-card-body { padding: 12px; }
  .al-card-title { font-size: 18px !important; }
  .al-card-price { flex-direction: column; gap: 2px; }
  .al-card-price-value { text-align: left; font-size: 16px; }
  .al-sell-band h2 { font-size: 28px !important; }
}

@media (max-width: 767px) {
  .al-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .al-cat-tile { padding: 16px 14px; }
  .al-cat-name { font-size: 19px; }
}

/* ======================================================================
   Footer
   ====================================================================== */
#al-footer {
  margin-top: 0;
  background: var(--al-ink);
  color: var(--al-on-ink);
  font-family: var(--al-font-ui);
  font-size: 14px;
}

#al-footer a { color: var(--al-on-ink) !important; text-decoration: none !important; }
#al-footer a:hover { color: #FFFFFF !important; text-decoration: underline !important; }

#al-footer .al-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 44px;
}

#al-footer .al-footer-brand p { max-width: 380px; margin: 16px 0 20px; color: #C9CDD6; line-height: 1.65; }

/* wordmark on dark */
#al-footer .al-footer-logo .brand-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--al-gilt); }
#al-footer .al-footer-logo .brand-emblem { width: 36px; height: 36px; }
#al-footer .al-footer-logo .brand-wordmark,
#al-footer .al-footer-logo .brand-wordmark span { font-family: var(--al-font-display) !important; font-size: 28px; font-weight: 700; }
#al-footer .al-footer-logo .brand-a { color: #FFFFFF; }
#al-footer .al-footer-logo .brand-b { color: var(--al-gilt); }
#al-footer .al-footer-logo:hover { text-decoration: none !important; }

#al-footer .al-footer-col { display: flex; flex-direction: column; gap: 10px; }

#al-footer .al-footer-col h2 {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--al-gilt) !important;
  font-family: var(--al-font-ui) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: left !important;
}

#al-footer .al-share { display: flex; gap: 10px; }

#al-footer .al-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(232, 226, 212, 0.3);
  border-radius: 50%;
  font-size: 16px;
}

#al-footer .al-share a:hover { border-color: var(--al-gilt); text-decoration: none !important; }

#al-footer .al-footer-bottom { border-top: 1px solid rgba(232, 226, 212, 0.15); font-size: 13px; color: #A9AFBC; }

#al-footer .al-footer-bottom .al-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

#al-footer .al-footer-credits { display: flex; flex-wrap: wrap; gap: 6px 18px; }
#al-footer .al-footer-credits a { color: #A9AFBC !important; }

@media (max-width: 900px) {
  #al-footer .al-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  #al-footer .al-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  /* room for the fixed mobile bottom dock */
  #al-footer { padding-bottom: 72px; }
}

/* ---------- Mobile bottom dock (markup in header.php) ---------- */
.mobile-bottom-dock { background: var(--al-ink) !important; border-top: 1px solid rgba(232, 226, 212, 0.15) !important; }
.mobile-bottom-dock .dock-item { color: #C9CDD6 !important; font-family: var(--al-font-ui) !important; }
.mobile-bottom-dock .dock-item.active,
.mobile-bottom-dock .dock-item.active i { color: var(--al-gilt) !important; }
.mobile-bottom-dock .dock-item .cta-circle {
  background: var(--al-brass) !important;
  background-image: none !important;   /* legacy orange gradient */
  border-color: var(--al-ink) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
.mobile-bottom-dock .dock-item .cta-circle i { color: #FFFFFF !important; }

/* International phone input: see "Phone input" section at the end */

/* ======================================================================
   Search results
   ====================================================================== */
#body-search .al-search-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
/* one card style for all results: the old list/gallery switch no longer applies */
#body-search a.lg[data-view] { display: none !important; }
#body-search #search-items .white { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }

/* ======================================================================
   Page title band (all inner pages) + item page
   ====================================================================== */
#header-line { background: var(--al-paper) !important; border-bottom: 1px solid var(--al-line) !important; }

#header-line h1,
#header-line h1 span {
  color: var(--al-ink) !important;
  font-family: var(--al-font-display) !important;
  font-size: 34px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

#body-item #sub-nav a { color: var(--al-ink) !important; font-family: var(--al-font-ui) !important; font-weight: 600 !important; }
#body-item #sub-nav a.active,
#body-item #sub-nav li.active a { color: var(--al-brass-text) !important; border-color: var(--al-brass) !important; }

#body-item #price .price,
#body-item #price .price span {
  color: var(--al-ink) !important;
  font-family: var(--al-font-ui) !important;
  font-weight: 800 !important;
}

#body-item #price .price-converted { color: var(--al-muted) !important; font-weight: 500 !important; }

#body-item #images,
#body-item .item-desc,
#body-item #user-card,
#body-item #related-block,
#body-item .antique-bidding-card {
  border: 1px solid var(--al-line) !important;
  border-radius: var(--al-radius) !important;
  box-shadow: none !important;
  background: var(--al-paper) !important;
}

/* bidding box */
#body-item .antique-bidding-card .bid-header h3 {
  font-family: var(--al-font-display) !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  color: var(--al-ink) !important;
}

#body-item .antique-bidding-card .label { color: var(--al-muted) !important; letter-spacing: 1px; }
#body-item .antique-bidding-card .gold-accent { color: var(--al-brass-text) !important; }
#body-item .antique-bidding-card .live-indicator { color: var(--al-danger) !important; }
#body-item .antique-bidding-card .live-indicator.expired { color: var(--al-muted) !important; }

#body-item .antique-bidding-card .btn-primary,
#body-item .antique-bidding-card #place-bid-btn {
  background: var(--al-brass) !important;
  background-image: none !important;
  border-color: var(--al-brass) !important;
  color: #FFFFFF !important;
  border-radius: var(--al-radius) !important;
}

#body-item .antique-bidding-card .btn-secondary,
#body-item .antique-bidding-card .login-to-bid {
  background: var(--al-ink) !important;
  background-image: none !important;
  border-color: var(--al-ink) !important;
  color: #FFFFFF !important;
  border-radius: var(--al-radius) !important;
}

#body-item .antique-bidding-card .btn-secondary i,
#body-item .antique-bidding-card .login-to-bid i { color: #FFFFFF !important; }

#body-item #related-block h2,
#body-item #related-block .title {
  font-family: var(--al-font-display) !important;
  color: var(--al-ink) !important;
}

@media (max-width: 767px) {
  #header-line h1,
  #header-line h1 span { font-size: 26px !important; }
}

/* ======================================================================
   Phase 3 - shared UI primitives
   ====================================================================== */
.al-btn-outline { background: var(--al-paper); border-color: var(--al-ink); color: var(--al-ink) !important; }
.al-btn-outline:hover { background: var(--al-ivory); border-color: var(--al-brass); color: var(--al-brass-text) !important; }
.al-btn-danger { background: var(--al-paper); border-color: #E4B4AE; color: var(--al-danger) !important; }
.al-btn-danger:hover { background: #FEF3F2; border-color: var(--al-danger); }
.al-btn-whatsapp { background: #128C7E; color: #FFFFFF !important; }
.al-btn-whatsapp:hover { background: #0E6F64; }
.al-btn-block { display: flex; width: 100%; box-sizing: border-box; }
.al-btn svg { margin-right: 8px; flex: 0 0 auto; }
.al-btn:focus-visible,
.al-text-link:focus-visible,
#al-header a:focus-visible,
#al-header button:focus-visible { outline: 3px solid rgba(166, 124, 46, 0.45); outline-offset: 2px; }

.al-panel {
  background: var(--al-paper);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  padding: 24px;
  box-sizing: border-box;
}
.al-panel + .al-panel { margin-top: 16px; }

.al-panel-title {
  margin: 0 0 16px !important;
  padding: 0 !important;
  color: var(--al-ink) !important;
  font-family: var(--al-font-display) !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.al-muted { margin: 0 0 14px; color: var(--al-muted); font-size: 15px; line-height: 1.6; }
.al-text-link { display: inline-block; margin-top: 14px; color: var(--al-brass-text) !important; font-size: 14px; font-weight: 700; text-decoration: none !important; }
.al-text-link:hover { text-decoration: underline !important; }
.al-text-link.is-danger { color: var(--al-danger) !important; margin-top: 6px; font-size: 13px; }
.al-inline-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.al-notice { margin: 0 0 20px; padding: 14px 18px; border: 1px solid #E9D7B4; border-radius: var(--al-radius); background: #FBF4E6; color: var(--al-ink); font-weight: 600; }

/* ---------- Page title band ---------- */
#header-line.al-page-head {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  background: var(--al-paper) !important;
  border-bottom: 1px solid var(--al-line) !important;
}
#header-line.al-page-head .al-wrap { padding-top: 30px; padding-bottom: 26px; }
#header-line.al-page-head h1 {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  color: var(--al-ink) !important;
  font-size: 40px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  text-align: left !important;
}
#header-line.al-page-head p { margin: 6px 0 0; max-width: 720px; color: var(--al-muted); font-size: 15px; line-height: 1.55; }

/* ---------- Forms ---------- */
.al-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.al-form label,
.al-form .al-form-full {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  color: var(--al-ink);
  font-size: 14px;
  font-weight: 700;
}
.al-form label > span:first-child em { color: var(--al-danger); font-style: normal; }
.al-form label small { color: var(--al-muted); font-weight: 500; }
.al-form-row { display: grid; gap: 16px; }
.al-form-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.al-form-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.al-form input[type="text"],
.al-form input[type="email"],
.al-form input[type="password"],
.al-form input[type="tel"],
.al-form input[type="number"],
.al-form input[type="search"],
.al-form input:not([type]),
.al-form select,
.al-form textarea {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  border: 1px solid #CFC7B7 !important;
  border-radius: var(--al-radius) !important;
  background: var(--al-paper) !important;
  box-shadow: none !important;
  color: var(--al-ink) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}
.al-form textarea { height: 140px !important; padding: 12px 14px !important; resize: vertical; }
.al-form input:focus,
.al-form select:focus,
.al-form textarea:focus { border-color: var(--al-brass) !important; outline: none !important; box-shadow: 0 0 0 3px rgba(166, 124, 46, 0.2) !important; }
.al-form input::placeholder,
.al-form textarea::placeholder { color: #8A8F99 !important; }
.al-form input.error,
.al-form textarea.error { border-color: var(--al-danger) !important; }
.al-form label.error,
.al-form span.error { color: var(--al-danger) !important; font-size: 13px !important; font-weight: 600 !important; }
.al-form .input-box { display: block !important; position: relative; float: none !important; width: 100% !important; margin: 0 !important; }
.al-form button[type="submit"] { margin-top: 4px; }
.al-form #error_list:empty { display: none; }
.al-form #error_list { margin: 0; padding: 12px 16px 12px 32px; border: 1px solid #F1C4BF; border-radius: var(--al-radius); background: #FEF3F2; color: var(--al-danger); font-size: 14px; }

.al-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; cursor: pointer; }
.al-check input[type="checkbox"] { width: 18px !important; height: 18px !important; margin: 0 !important; accent-color: var(--al-ink); position: static !important; opacity: 1 !important; }
.al-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.al-label-row a { color: var(--al-brass-text) !important; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.al-label-row a:hover { text-decoration: underline !important; }
.al-fineprint { margin: 0; color: var(--al-muted); font-size: 13px; text-align: center; }

@media (max-width: 767px) {
  .al-form-2, .al-form-3 { grid-template-columns: 1fr; }
  #header-line.al-page-head .al-wrap { padding-top: 22px; padding-bottom: 18px; }
  #header-line.al-page-head h1 { font-size: 30px !important; }
}

/* ---------- Sign in / register ---------- */
.al-auth { display: flex; justify-content: center; padding: 56px var(--al-gutter) 72px; }
.al-auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--al-paper);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  box-shadow: 0 18px 48px rgba(20, 33, 61, 0.08);
}
.al-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--al-line); }
.al-auth-tabs a {
  padding: 16px 12px 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--al-muted) !important;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
}
.al-auth-tabs a:hover { color: var(--al-ink) !important; }
.al-auth-tabs a.is-active { color: var(--al-ink) !important; border-bottom-color: var(--al-brass); }
.al-auth-body { padding: 32px 36px 30px; }
.al-auth-body h1 {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--al-ink) !important;
  font-size: 34px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  text-align: left !important;
}
.al-auth-lead { margin: 0 0 24px; color: var(--al-muted); font-size: 15px; line-height: 1.55; }
.al-auth-switch { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--al-line-soft); color: var(--al-muted); font-size: 14px; text-align: center; }
.al-auth-switch a { color: var(--al-brass-text) !important; font-weight: 700; text-decoration: none !important; }
.al-auth-switch a:hover { text-decoration: underline !important; }
.al-auth-social { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.al-auth-or { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; color: var(--al-muted); font-size: 13px; }
.al-auth-or::before, .al-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--al-line); }
.al-auth-page .container-outer, .al-auth-page .container { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }

@media (max-width: 767px) {
  .al-auth { padding: 24px 16px 96px; }
  .al-auth-body { padding: 24px 20px; }
  .al-auth-body h1 { font-size: 28px !important; }
}

/* ======================================================================
   Listing page
   ====================================================================== */
.al-item-page .container-outer > .container { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
#al-item { padding-top: 20px; padding-bottom: 64px; }
.al-crumbs { margin: 0 0 18px; color: var(--al-muted); font-size: 13px; }
.al-crumbs ul, .al-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.al-crumbs li { display: inline-flex; align-items: center; gap: 8px; margin: 0; float: none; }
.al-crumbs a { color: var(--al-ink) !important; font-weight: 600; text-decoration: none !important; }
.al-crumbs a:hover { color: var(--al-brass-text) !important; text-decoration: underline !important; }
.al-crumbs li:last-child, .al-crumbs li:last-child span { color: var(--al-muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.al-crumb-sep { color: #B5AC9A; }

.al-item-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-areas: "gallery aside" "details aside";
  grid-template-rows: auto 1fr;
  gap: 24px 32px;
  align-items: start;
}
.al-gallery { grid-area: gallery; min-width: 0; }
.al-item-aside { grid-area: aside; min-width: 0; }
.al-item-details { grid-area: details; min-width: 0; }

/* gallery */
.al-gallery-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--al-paper);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
}
.al-gallery-slide { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: zoom-in; }
.al-gallery-slide[hidden] { display: none !important; }
.al-gallery-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.al-gallery-main.is-empty { flex-direction: column; gap: 10px; color: #A89F8D; font-weight: 600; background: var(--al-line-soft); }
.al-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--al-line) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--al-ink) !important;
  box-shadow: 0 4px 12px rgba(20, 33, 61, 0.15) !important;
  cursor: pointer;
}
.al-gallery-nav:hover { border-color: var(--al-brass) !important; color: var(--al-brass-text) !important; }
.al-gallery-nav.is-prev { left: 14px; }
.al-gallery-nav.is-next { right: 14px; }
.al-gallery-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.85);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}
.al-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; }
.al-gallery-thumb {
  flex: 0 0 84px;
  height: 84px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 2px solid transparent !important;
  border-radius: var(--al-radius) !important;
  background: var(--al-paper) !important;
  box-shadow: none !important;
  cursor: pointer;
  opacity: 0.7;
}
.al-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-gallery-thumb:hover { opacity: 1; }
.al-gallery-thumb.is-active { border-color: var(--al-brass) !important; opacity: 1; }

/* summary */
.al-summary-cat { color: var(--al-brass-text) !important; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none !important; }
.al-summary-cat:hover { text-decoration: underline !important; }
.al-item-title {
  margin: 8px 0 12px !important;
  padding: 0 !important;
  color: var(--al-ink) !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  text-align: left !important;
  overflow-wrap: anywhere;
}
.al-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.al-tags:empty { display: none; }
.al-tag { padding: 4px 10px; border: 1px solid var(--al-line); border-radius: 999px; background: var(--al-ivory); color: var(--al-ink); font-size: 12px; font-weight: 700; }
.al-tag.is-sold { background: var(--al-danger); border-color: var(--al-danger); color: #FFFFFF; }
.al-tag.is-reserved { background: var(--al-brass); border-color: var(--al-brass); color: #FFFFFF; }
.al-tag.is-premium { background: var(--al-ink); border-color: var(--al-ink); color: var(--al-gilt); }
.al-buy-price { margin: 18px 0 4px; padding: 16px 0 0; border-top: 1px solid var(--al-line-soft); }
.al-buy-label { color: var(--al-muted); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.al-buy-amount, .al-buy-amount * { color: var(--al-ink); font-size: 30px; font-weight: 800; line-height: 1.2; }
.al-buy-amount .price-converted { display: block; margin-top: 2px; color: var(--al-muted); font-size: 15px; font-weight: 500; }
.al-meta { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--al-line-soft); list-style: none; color: var(--al-muted); font-size: 14px; }
.al-meta li { display: flex; align-items: center; gap: 10px; margin: 0; }
.al-meta svg { flex: 0 0 auto; color: var(--al-brass); }

/* bidding box (plugin markup) inside the aside */
.al-item-aside .antique-bidding-card { margin: 16px 0 0 !important; border: 1px solid var(--al-line) !important; border-radius: var(--al-radius) !important; box-shadow: none !important; background: var(--al-paper) !important; }
.al-item-aside .antique-bidding-card .bid-header h3 { font-family: var(--al-font-display) !important; font-size: 26px !important; font-weight: 600 !important; color: var(--al-ink) !important; }
.al-item-aside .antique-bidding-card .label { color: var(--al-muted) !important; letter-spacing: 1px; }
.al-item-aside .antique-bidding-card .gold-accent { color: var(--al-brass-text) !important; }
.al-item-aside .antique-bidding-card .live-indicator { color: var(--al-danger) !important; }
.al-item-aside .antique-bidding-card .live-indicator.expired { color: var(--al-muted) !important; }
.al-item-aside .antique-bidding-card .btn-primary,
.al-item-aside .antique-bidding-card #place-bid-btn { background: var(--al-brass) !important; background-image: none !important; border-color: var(--al-brass) !important; color: #FFFFFF !important; border-radius: var(--al-radius) !important; }
.al-item-aside .antique-bidding-card .btn-secondary,
.al-item-aside .antique-bidding-card .login-to-bid { background: var(--al-ink) !important; background-image: none !important; border-color: var(--al-ink) !important; color: #FFFFFF !important; border-radius: var(--al-radius) !important; }
.al-item-aside .antique-bidding-card .btn-secondary i,
.al-item-aside .antique-bidding-card .login-to-bid i { color: #FFFFFF !important; }
.al-item-aside > .al-panel + .antique-bidding-card + .al-panel,
.al-item-aside .antique-bidding-card + .al-panel { margin-top: 16px; }

/* owner tools */
.al-owner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.al-owner-grid .al-btn { min-height: 42px; padding: 0 12px; font-size: 14px; }
.al-owner-grid .al-btn-ink { grid-column: 1 / -1; }

/* seller */
.al-seller-head { display: flex; align-items: center; gap: 14px; }
.al-seller-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--al-line); }
.al-seller-label { color: var(--al-muted); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.al-seller-name { display: block; color: var(--al-ink) !important; font-size: 18px; font-weight: 800; text-decoration: none !important; }
a.al-seller-name:hover { color: var(--al-brass-text) !important; text-decoration: underline !important; }
.al-seller-sub { color: var(--al-muted); font-size: 13px; }
.al-seller-actions, .al-phone-revealed { display: flex; flex-direction: column; gap: 10px; }
.al-seller-actions { margin-top: 18px; }
.al-seller-actions .al-btn { min-height: 46px; font-size: 15px; }
.al-seller-links { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--al-line-soft); list-style: none; display: flex; flex-direction: column; gap: 10px; }
.al-seller-links li { margin: 0; }
.al-seller-links a { color: var(--al-ink) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.al-seller-links a:hover { color: var(--al-brass-text) !important; text-decoration: underline !important; }

/* details */
.al-item-details .al-panel + .al-panel { margin-top: 24px; }
.al-description { color: #2B3445; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.al-description p { margin: 0 0 12px; }
.al-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.al-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--al-line-soft); }
.al-facts dt { color: var(--al-muted); font-size: 14px; }
.al-facts dd { margin: 0; color: var(--al-ink); font-size: 14px; font-weight: 700; text-align: right; }
#plugin-details:empty { display: none; }

.al-comments { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.al-comment { display: flex; gap: 14px; }
.al-comment img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; }
.al-comment-head { display: flex; flex-wrap: wrap; gap: 8px; color: var(--al-ink); font-size: 14px; }
.al-comment-head span { color: var(--al-muted); }
.al-comment-body { margin-top: 4px; color: #2B3445; font-size: 15px; line-height: 1.6; }
.al-comments .paginate:empty { display: none; }

.al-related { margin-top: 56px; }

@media (max-width: 1024px) {
  .al-item-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px 24px; }
}

@media (max-width: 860px) {
  .al-item-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "aside" "details"; grid-template-rows: auto; }
  .al-item-title { font-size: 28px !important; }
}

@media (max-width: 767px) {
  #al-item { padding-top: 14px; padding-bottom: 96px; }
  .al-crumbs li:last-child { display: none; }
  .al-panel { padding: 18px; }
  .al-gallery-main { margin: 0 calc(var(--al-gutter) * -1); border-left: 0; border-right: 0; border-radius: 0; }
  .al-gallery-nav { width: 38px; height: 38px; }
  .al-facts { grid-template-columns: 1fr; }
  .al-related { margin-top: 40px; }
}

/* legacy floats/widths on plugin and form markup inside the new listing layout */
.al-item-aside .antique-bidding-card { float: none !important; width: auto !important; clear: both; }
#al-item #contact_form { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
#al-item #contact_form input,
#al-item #contact_form textarea { text-indent: 0 !important; padding-left: 14px !important; }
/* legacy button[type=submit] gradient + uppercase */
html body .al-form button.al-btn,
html body #i-forms.al-auth button.al-btn {
  width: auto;
  height: auto !important;
  min-height: 48px !important;
  margin: 4px 0 0 !important;
  padding: 0 26px !important;
  border-radius: var(--al-radius) !important;
  background-image: none !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  float: none !important;
  transform: none !important;
}
html body .al-form button.al-btn-block { width: 100% !important; }
html body .al-form button.al-btn-brass { background-color: var(--al-brass) !important; border-color: var(--al-brass) !important; color: #FFFFFF !important; }
html body .al-form button.al-btn-brass:hover { background-color: var(--al-brass-text) !important; }
html body .al-form button.al-btn-ink { background-color: var(--al-ink) !important; border-color: var(--al-ink) !important; color: #FFFFFF !important; }
html body .al-form button.al-btn-ink:hover { background-color: var(--al-ink-2) !important; }
/* legacy #i-forms inputs reserve room for an icon */
html body #i-forms.al-auth .al-form input:not([type="checkbox"]):not([type="radio"]):not(.iti__tel-input) { padding-left: 14px !important; text-indent: 0 !important; }
.al-crumbs ul.breadcrumb { float: none !important; width: auto !important; }
.al-crumbs ul.breadcrumb li { position: static !important; float: none !important; display: inline-flex !important; left: auto !important; right: auto !important; padding: 0 !important; transform: none !important; }
@media (max-width: 767px) {
  .al-crumbs { overflow: hidden; }
  .al-crumbs ul.breadcrumb li:last-child { display: none !important; }
}
html body #al-item #contact_form button.al-btn {
  width: auto !important;
  align-self: flex-start;
  height: auto !important;
  min-height: 48px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: var(--al-radius) !important;
  background: var(--al-brass) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 15px !important;
}
html body #al-item #contact_form button.al-btn:hover { background: var(--al-brass-text) !important; }
#al-item .al-crumbs { display: block !important; float: none !important; clear: both; width: auto !important; position: static !important; }

/* ---------- Home refinements ---------- */
.al-trust-item { display: flex; align-items: flex-start; gap: 14px; }
.al-trust-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--al-ivory); border: 1px solid var(--al-line); color: var(--al-brass); }
.al-trust-item strong { margin-top: 2px; }
.al-card-noimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F3EEE4 0%, #ECE5D7 100%);
  color: #A89F8D;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ======================================================================
   Search results page
   ====================================================================== */
.al-search-page .container-outer > .container { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.al-search-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 72px; }
.al-filters { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow-y: auto; padding: 22px; background: var(--al-paper); border: 1px solid var(--al-line); border-radius: var(--al-radius); box-sizing: border-box; }
.al-filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.al-filters-head h2 { margin: 0 !important; padding: 0 !important; color: var(--al-ink) !important; font-family: var(--al-font-ui) !important; font-size: 16px !important; font-weight: 800 !important; text-align: left !important; }
.al-filters-close { display: none; margin: 0 !important; padding: 6px !important; border: 0 !important; background: transparent !important; color: var(--al-ink) !important; box-shadow: none !important; cursor: pointer; }
.al-filter-form { gap: 18px; }
.al-filter-form label > span:first-child { font-size: 13px; }
.al-filter-form input[type="search"], .al-filter-form select { height: 44px !important; font-size: 14px !important; }
.al-form select { appearance: none !important; -webkit-appearance: none !important; padding-right: 36px !important; background: var(--al-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center !important; cursor: pointer; }
.al-filter-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px; }
.al-filter-actions .al-text-link { margin-top: 6px; }
.al-filter-form .sidebar-hooks:empty { display: none; }
.al-filters-backdrop { position: fixed; inset: 0; z-index: 1090; background: rgba(20, 33, 61, 0.45); }

.al-results-bar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 18px; }
.al-filters-open { display: none !important; min-height: 42px; padding: 0 16px; font-size: 14px; }
.al-sort { display: inline-flex; align-items: center; gap: 10px; color: var(--al-muted); font-size: 14px; font-weight: 600; margin: 0 !important; }
.al-sort select {
  appearance: none; -webkit-appearance: none;
  height: 42px !important; margin: 0 !important; padding: 0 38px 0 14px !important;
  border: 1px solid #CFC7B7 !important; border-radius: var(--al-radius) !important; box-shadow: none !important;
  background: var(--al-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center !important;
  color: var(--al-ink) !important; font-size: 14px !important; font-weight: 700 !important; cursor: pointer;
}
.al-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 20px; }
.al-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--al-line); border-radius: 999px; background: var(--al-paper); color: var(--al-ink) !important; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.al-chip span { color: var(--al-muted); font-size: 16px; line-height: 1; }
.al-chip:hover { border-color: var(--al-brass); }
.al-chip-clear { color: var(--al-brass-text) !important; font-size: 13px; font-weight: 700; text-decoration: none !important; margin-left: 4px; }
.al-chip-clear:hover { text-decoration: underline !important; }

.al-empty-state { padding: 56px 24px; background: var(--al-paper); border: 1px dashed #D6CDBB; border-radius: var(--al-radius); text-align: center; color: var(--al-muted); }
.al-empty-state svg { color: var(--al-brass); }
.al-empty-state h2 { margin: 12px 0 8px !important; padding: 0 !important; color: var(--al-ink) !important; font-size: 28px !important; font-weight: 600 !important; text-align: center !important; }
.al-empty-state p { max-width: 460px; margin: 0 auto 20px; line-height: 1.6; }

.al-pagination { display: flex; justify-content: center; margin-top: 36px; }
.al-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.al-pagination li { margin: 0; float: none; }
.al-pagination a, .al-pagination span, .al-pagination .searchPaginationSelected {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px !important; box-sizing: border-box;
  border: 1px solid var(--al-line) !important; border-radius: var(--al-radius) !important;
  background: var(--al-paper) !important; background-image: none !important; box-shadow: none !important;
  color: var(--al-ink) !important; font-size: 14px !important; font-weight: 700 !important; text-decoration: none !important;
}
.al-pagination a:hover { border-color: var(--al-brass) !important; color: var(--al-brass-text) !important; }
.al-pagination .searchPaginationSelected, .al-pagination span.active, .al-pagination a.active { background: var(--al-ink) !important; border-color: var(--al-ink) !important; color: #FFFFFF !important; }

.al-save-search { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 26px 28px; background: var(--al-paper); border: 1px solid var(--al-line); border-left: 4px solid var(--al-brass); border-radius: var(--al-radius); }
.al-save-search h2 { margin: 0 0 4px !important; padding: 0 !important; color: var(--al-ink) !important; font-size: 24px !important; font-weight: 600 !important; text-align: left !important; }
.al-save-search p { margin: 0; color: var(--al-muted); font-size: 14px; }
.al-save-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.al-save-form input[type="email"] { width: 260px !important; height: 48px !important; margin: 0 !important; padding: 0 14px !important; border: 1px solid #CFC7B7 !important; border-radius: var(--al-radius) !important; box-shadow: none !important; background: var(--al-paper) !important; font-size: 15px !important; }
html body .al-save-form button.al-btn { height: 48px !important; margin: 0 !important; padding: 0 22px !important; border: 0 !important; background: var(--al-brass) !important; background-image: none !important; box-shadow: none !important; color: #FFFFFF !important; text-transform: none !important; font-size: 15px !important; border-radius: var(--al-radius) !important; }
.al-save-msg { flex-basis: 100%; margin: 0 !important; font-size: 14px !important; font-weight: 600; }
.al-save-msg.is-ok { color: var(--al-success) !important; }
.al-save-msg.is-error { color: var(--al-danger) !important; }

@media (max-width: 960px) {
  .al-search-layout { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
  .al-filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1100;
    width: min(340px, 88vw); max-height: none; border-radius: 0; border: 0;
    transform: translateX(-102%); transition: transform 0.25s ease; box-shadow: var(--al-shadow);
  }
  .al-filters-is-open .al-filters { transform: none; }
  .al-filters-close { display: inline-flex; }
  .al-filters-open { display: inline-flex !important; }
  .al-results-bar { justify-content: space-between; }
  .al-sort > span { display: none; }
}

@media (max-width: 767px) {
  .al-search-layout { padding-bottom: 96px; }
  .al-save-search { padding: 20px; }
  .al-save-form, .al-save-form input[type="email"] { width: 100% !important; }
  html body .al-save-form button.al-btn { width: 100% !important; }
}
/* legacy floats before the content (flash/location modal) squeeze new block-formatting layouts */
.container > .al-wrap, .container > .al-auth, #al-item, .al-search-layout { clear: both; }

/* ---------- Flash messages ---------- */
.flash-wrap { float: none !important; width: auto !important; max-width: var(--al-wrap); margin: 0 auto !important; padding: 0 var(--al-gutter) !important; border: 0 !important; box-sizing: border-box; background: transparent !important; }
.flash-wrap .flashmessage {
  position: relative !important;
  margin: 20px 0 0 !important;
  padding: 14px 44px 14px 18px !important;
  border: 1px solid #C9D7E8 !important;
  border-left-width: 4px !important;
  border-radius: var(--al-radius) !important;
  background: #F2F6FB !important;
  box-shadow: none !important;
  color: var(--al-ink) !important;
  font-family: var(--al-font-ui) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: left !important;
}
.flash-wrap .flashmessage-ok { border-color: #A6D9BF !important; background: #ECFDF3 !important; }
.flash-wrap .flashmessage-error { border-color: #F1C4BF !important; background: #FEF3F2 !important; }
.flash-wrap .flashmessage-warning { border-color: #E9D7B4 !important; background: #FBF4E6 !important; }
.flash-wrap .flashmessage .ico-close, .flash-wrap .flashmessage a.close { position: absolute !important; right: 14px !important; top: 12px !important; color: var(--al-muted) !important; }

#body-search .al-sort { white-space: nowrap; }
@media (max-width: 767px) {
  #body-search .al-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ======================================================================
   Account area
   ====================================================================== */
.al-account-page .container-outer > .container { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.al-account-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 72px; clear: both; }
.al-account-side { position: sticky; top: 150px; }
.al-account-main { min-width: 0; }
.al-account-main > #main, .al-account-layout > #main { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.al-account-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.al-account-head h2 { margin: 0 !important; padding: 0 !important; color: var(--al-ink) !important; font-size: 30px !important; font-weight: 600 !important; text-align: left !important; }
.al-account-head .al-btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

.al-acc-nav { background: var(--al-paper); border: 1px solid var(--al-line); border-radius: var(--al-radius); overflow: hidden; }
.al-acc-user { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--al-line-soft); }
.al-acc-user img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; }
.al-acc-user strong { display: block; color: var(--al-ink); font-size: 15px; }
.al-acc-user span { display: block; color: var(--al-muted); font-size: 12px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-acc-group { padding: 10px 0; border-bottom: 1px solid var(--al-line-soft); }
.al-acc-group:last-child { border-bottom: 0; }
.al-acc-title { padding: 4px 18px 6px; color: var(--al-muted); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.al-acc-nav ul { margin: 0; padding: 0; list-style: none; }
.al-acc-nav li { margin: 0; float: none; width: auto; }
.al-acc-nav li a {
  display: flex !important; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 18px !important; border-left: 3px solid transparent;
  color: var(--al-ink) !important; font-size: 14px !important; font-weight: 600 !important; text-align: left !important; text-decoration: none !important;
}
.al-acc-nav li a:hover { background: var(--al-ivory); color: var(--al-brass-text) !important; }
.al-acc-nav li a.is-active { border-left-color: var(--al-brass); background: #FBF7EF; color: var(--al-brass-text) !important; }
.al-acc-nav li a em { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--al-ivory); color: var(--al-muted); font-size: 12px; font-style: normal; font-weight: 700; text-align: center; }
.al-acc-nav .al-acc-logout { color: var(--al-danger) !important; }
.al-acc-nav .al-acc-plugins li a i { display: none; }
/* compact version inside the header account menu */
#al-header .al-acc-nav.is-compact { border: 0; border-radius: 0; background: transparent; }
#al-header .al-acc-nav.is-compact .al-acc-group { padding: 6px 0; }
#al-header .al-acc-nav.is-compact li a { padding: 8px 18px !important; }

/* listing rows */
.al-listing-rows { display: flex; flex-direction: column; gap: 12px; }
.al-listing-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; background: var(--al-paper); border: 1px solid var(--al-line); border-radius: var(--al-radius); }
.al-listing-thumb { display: block; width: 120px; height: 90px; overflow: hidden; border-radius: 3px; background: var(--al-line-soft); }
.al-listing-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-listing-thumb .al-card-noimg { font-size: 0; }
.al-listing-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.al-listing-cat { color: var(--al-muted); font-size: 12px; font-weight: 600; }
.al-listing-info h3 { margin: 6px 0 6px !important; padding: 0 !important; font-size: 20px !important; font-weight: 600 !important; line-height: 1.2 !important; text-align: left !important; }
.al-listing-info h3 a { color: var(--al-ink) !important; text-decoration: none !important; }
.al-listing-info h3 a:hover { color: var(--al-brass-text) !important; }
.al-listing-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; color: var(--al-muted); font-size: 13px; }
.al-listing-meta strong, .al-listing-meta strong * { color: var(--al-ink); font-size: 15px; font-weight: 800; }
.al-listing-meta .price-converted { color: var(--al-muted) !important; font-size: 12px !important; font-weight: 500 !important; }
.al-status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; }
.al-status.is-active { background: #ECFDF3; color: var(--al-success); }
.al-status.is-pending { background: #FBF4E6; color: #8A5A00; }
.al-status.is-expired { background: #F2F4F7; color: #475467; }
.al-status.is-sold { background: #FEF3F2; color: var(--al-danger); }
.al-status.is-reserved { background: #FBF4E6; color: var(--al-brass-text); }
.al-status.is-premium { background: var(--al-ink); color: var(--al-gilt); }
.al-listing-actions { display: flex; align-items: center; gap: 8px; }
.al-listing-actions .al-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.al-more { position: relative; }
.al-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--al-line); border-radius: var(--al-radius); background: var(--al-paper); color: var(--al-ink); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.al-more summary::-webkit-details-marker { display: none; }
.al-more[open] summary, .al-more summary:hover { border-color: var(--al-ink); }
.al-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; padding: 6px 0; background: var(--al-paper); border: 1px solid var(--al-line); border-radius: var(--al-radius); box-shadow: var(--al-shadow); }
.al-more-menu a { display: block; padding: 9px 16px; color: var(--al-ink) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.al-more-menu a:hover { background: var(--al-ivory); }
.al-more-menu a.is-danger { color: var(--al-danger) !important; border-top: 1px solid var(--al-line-soft); margin-top: 4px; }

/* settings */
.al-account-main .al-form + .al-settings-grid, .al-account-main .al-settings-grid + .al-danger-zone { margin-top: 24px; }
.al-account-main > .al-form > .al-panel + .al-panel { margin-top: 0; }
.al-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.al-settings-grid .al-panel + .al-panel { margin-top: 0; }
.al-form-actions { display: flex; justify-content: flex-end; }
.al-avatar-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.al-avatar-row img { width: 72px !important; height: 72px !important; border-radius: 50% !important; object-fit: cover; }
.al-avatar-row strong { display: block; color: var(--al-ink); font-size: 15px; }
.al-avatar-row span { display: block; margin-bottom: 8px; color: var(--al-muted); font-size: 13px; }
.al-avatar-row .al-btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
.al-danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-color: #F1C4BF; }
.al-danger-zone .al-panel-title { font-size: 22px !important; margin-bottom: 4px !important; }
.al-danger-zone .al-muted { margin: 0; }
#location-picker { position: relative; }
#location-picker .shower-wrap { position: relative; }
#location-picker .loader { display: none; }
.al-form .al-panel { display: flex; flex-direction: column; gap: 16px; }
.al-form .al-panel .al-panel-title { margin-bottom: 0 !important; }

/* alerts (legacy markup inside the account layout) */
.al-account-layout #main.alerts .inside { padding: 0 !important; }

@media (max-width: 960px) {
  .al-account-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 18px; }
  .al-account-side { position: static; }
  .al-acc-nav:not(.is-compact) { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .al-acc-nav:not(.is-compact)::-webkit-scrollbar { display: none; }
  .al-acc-nav:not(.is-compact) .al-acc-user, .al-acc-nav:not(.is-compact) .al-acc-title { display: none; }
  .al-acc-nav:not(.is-compact) .al-acc-group { padding: 0; border: 0; }
  .al-acc-nav:not(.is-compact) ul { display: flex; }
  .al-acc-nav:not(.is-compact) li a { padding: 12px 14px !important; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .al-acc-nav:not(.is-compact) li a.is-active { border-bottom-color: var(--al-brass); }
}

@media (max-width: 767px) {
  .al-account-layout { padding-bottom: 96px; }
  .al-listing-row { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .al-listing-thumb { width: 88px; height: 72px; }
  .al-listing-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .al-settings-grid { grid-template-columns: 1fr; }
  .al-account-head h2 { font-size: 26px !important; }
}
.al-alerts { display: flex; flex-direction: column; gap: 16px; }
.al-alerts .al-panel + .al-panel { margin-top: 0; }
.al-alert-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.al-alert-head h3 { margin: 0 0 2px !important; padding: 0 !important; color: var(--al-ink) !important; font-size: 22px !important; font-weight: 600 !important; text-align: left !important; }
.al-alert-head span { color: var(--al-muted); font-size: 13px; }
.al-alert-head .al-btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
.al-alert-grid { margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }

/* Reset for the new forms: legacy head.php / custom-home.css force a 48px icon
   gutter with ID selectors + !important; :is(#body-…) carries ID weight. */
html body:is(#body-user-profile, #body-item, #body-contact, #body-user-register, #body-item-post, #body-item-edit, #body-search, #body-user-items, #body-user-alerts, #body-item-send-friend, #body-user-recover, #body-user-forgot_password, #body-user-public-profile) .al-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not(.iti__tel-input),
html body:is(#body-user-profile, #body-item, #body-contact, #body-user-register, #body-item-post, #body-item-edit, #body-search, #body-user-items, #body-user-alerts, #body-item-send-friend, #body-user-recover, #body-user-forgot_password, #body-user-public-profile) .al-form select,
html body:is(#body-user-profile, #body-item, #body-contact, #body-user-register, #body-item-post, #body-item-edit, #body-search, #body-user-items, #body-user-alerts, #body-item-send-friend, #body-user-recover, #body-user-forgot_password, #body-user-public-profile) .al-form textarea {
  padding-left: 14px !important;
  padding-right: 14px !important;
  text-indent: 0 !important;
  background-color: var(--al-paper) !important;
  border: 1px solid #CFC7B7 !important;
  border-radius: var(--al-radius) !important;
  box-shadow: none !important;
  height: 48px !important;
  font-size: 15px !important;
}
html body:is(#body-user-profile, #body-item, #body-contact, #body-user-register, #body-item-send-friend, #body-user-public-profile) .al-form textarea { height: 140px !important; padding-top: 12px !important; }
html body:is(#body-user-profile, #body-item, #body-contact, #body-user-register, #body-item-post, #body-item-edit, #body-search) .al-form select { padding-right: 36px !important; }
html body:is(#body-user-profile, #body-item, #body-contact, #body-user-register, #body-item-post, #body-item-edit) .al-form input.iti__tel-input {
  height: 48px !important;
  border: 1px solid #CFC7B7 !important;
  border-radius: var(--al-radius) !important;
  background-color: var(--al-paper) !important;
  box-shadow: none !important;
  font-size: 15px !important;
}
html body:is(#body-user-profile, #body-item, #body-contact, #body-user-register) .al-form input:focus,
html body:is(#body-user-profile, #body-item, #body-contact, #body-user-register) .al-form select:focus,
html body:is(#body-user-profile, #body-item, #body-contact, #body-user-register) .al-form textarea:focus { border-color: var(--al-brass) !important; box-shadow: 0 0 0 3px rgba(166, 124, 46, 0.2) !important; }
html body .al-form #location-picker::before, html body .al-form #location-picker::after, html body .al-form #location-picker > i { display: none !important; }
html body .al-form .input-box > i.fa { display: none !important; }
.al-settings-grid .al-form .al-btn { align-self: flex-start; }

/* header account button must not stretch */
#al-header .al-account-btn { width: auto !important; height: auto !important; min-height: 44px !important; margin: 0 !important; box-shadow: none !important; background-image: none !important; text-transform: none !important; letter-spacing: 0 !important; }
html body #body-user-profile .al-form #location-picker input#term,
html body#body-user-profile .al-form #location-picker input#term.term { padding-left: 14px !important; }

/* legacy sets body height to the viewport, so the html background showed below it */
html { background: var(--al-ivory) !important; }
html body { height: auto !important; min-height: 100vh; }
html body#body-user-profile .al-form #location-picker input#term.term { background-image: none !important; }
html body#body-user-profile .al-form #location-picker .loader, html body#body-user-profile .al-form #location-picker > span ~ i { display: none !important; }

/* ======================================================================
   Sell / edit listing form (legacy markup, restyled)
   ====================================================================== */
html body:is(#body-item-post, #body-item-edit) .content.add_item { max-width: var(--al-wrap) !important; margin: 0 auto !important; padding: 28px var(--al-gutter) 72px !important; box-sizing: border-box; float: none !important; width: auto !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item fieldset {
  background: var(--al-paper) !important;
  border: 1px solid var(--al-line) !important;
  border-radius: var(--al-radius) !important;
  box-shadow: none !important;
}
html body:is(#body-item-post, #body-item-edit) .content.add_item fieldset > h2 {
  color: var(--al-ink) !important;
  font-family: var(--al-font-display) !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  border-bottom: 1px solid var(--al-line-soft) !important;
}

/* error summary: one calm panel instead of stacked yellow bars */
html body:is(#body-item-post, #body-item-edit) ul#error_list {
  margin: 0 0 24px !important;
  padding: 16px 20px 16px 40px !important;
  border: 1px solid #F1C4BF !important;
  border-left: 4px solid var(--al-danger) !important;
  border-radius: var(--al-radius) !important;
  background: #FEF3F2 !important;
  list-style: disc !important;
  color: var(--al-danger);
}
html body:is(#body-item-post, #body-item-edit) ul#error_list li { margin: 2px 0 !important; padding: 0 !important; background: none !important; border: 0 !important; list-style: disc !important; display: list-item !important; }
html body:is(#body-item-post, #body-item-edit) ul#error_list li label.error {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--al-danger) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
html body:is(#body-item-post, #body-item-edit) ul#error_list li label.error::before { display: none !important; content: none !important; }
html body:is(#body-item-post, #body-item-edit) ul#error_list li:has(> label.error:empty),
html body:is(#body-item-post, #body-item-edit) ul#error_list li:has(> label.error[style*="display: none"]) { display: none !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item input.error,
html body:is(#body-item-post, #body-item-edit) .content.add_item textarea.error { border-color: var(--al-danger) !important; background-color: #FFFBFA !important; }

/* category tiles: names must be readable */
html body:is(#body-item-post, #body-item-edit) #flat-cat-fancy .flat-wrap,
html body:is(#body-item-post, #body-item-edit) #flat-cat .flat-wrap { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 10px !important; }
html body:is(#body-item-post, #body-item-edit) .flat-wrap .single { width: auto !important; margin: 0 !important; float: none !important; border: 1px solid var(--al-line) !important; border-radius: var(--al-radius) !important; background: var(--al-paper) !important; box-shadow: none !important; }
html body:is(#body-item-post, #body-item-edit) .flat-wrap .single:hover { border-color: var(--al-brass) !important; background: #FBF7EF !important; }
html body:is(#body-item-post, #body-item-edit) .flat-wrap .single.active,
html body:is(#body-item-post, #body-item-edit) .flat-wrap .single.selected { border-color: var(--al-brass) !important; box-shadow: 0 0 0 2px rgba(166, 124, 46, 0.25) !important; }
html body:is(#body-item-post, #body-item-edit) .flat-wrap .single,
html body:is(#body-item-post, #body-item-edit) .flat-wrap .single * { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; color: var(--al-ink) !important; }
html body:is(#body-item-post, #body-item-edit) .flat-wrap .single.info { display: none !important; }
html body:is(#body-item-post, #body-item-edit) .flat-wrap .single i, html body:is(#body-item-post, #body-item-edit) .flat-wrap .single .parent-icon { color: var(--al-brass) !important; }

/* upload */
html body:is(#body-item-post, #body-item-edit) .upload-guide-banner { background: var(--al-ivory) !important; border: 1px solid var(--al-line) !important; border-radius: var(--al-radius) !important; }
html body:is(#body-item-post, #body-item-edit) .upload-guide-banner .guide-item { background: var(--al-paper) !important; border-color: var(--al-line) !important; border-radius: 999px !important; color: var(--al-ink) !important; }
html body:is(#body-item-post, #body-item-edit) .upload-guide-banner .guide-item i { color: var(--al-brass) !important; }
html body:is(#body-item-post, #body-item-edit) .qq-upload-drop-area,
html body:is(#body-item-post, #body-item-edit) .drag_drop { border-color: #D6CDBB !important; background: #FCFAF6 !important; border-radius: var(--al-radius) !important; }
html body:is(#body-item-post, #body-item-edit) .qq-upload-button { border: 1px solid var(--al-line) !important; border-radius: var(--al-radius) !important; box-shadow: none !important; background: var(--al-paper) !important; }
html body:is(#body-item-post, #body-item-edit) .qq-upload-button:hover { border-color: var(--al-brass) !important; }
html body:is(#body-item-post, #body-item-edit) .qq-upload-button i,
html body:is(#body-item-post, #body-item-edit) .qq-upload-button .fa,
html body:is(#body-item-post, #body-item-edit) .qq-upload-button svg { color: var(--al-brass) !important; fill: currentColor; }
html body:is(#body-item-post, #body-item-edit) .qq-upload-button [class*="info"],
html body:is(#body-item-post, #body-item-edit) .qq-upload-button .upload-hint { background: var(--al-ivory) !important; color: var(--al-brass-text) !important; }

/* price block: flatten the box-in-box */
html body:is(#body-item-post, #body-item-edit) .price-wrap .inside { border: 0 !important; padding: 0 !important; box-shadow: none !important; background: transparent !important; }
html body:is(#body-item-post, #body-item-edit) .simple-select .text { border: 1px solid #CFC7B7 !important; border-radius: var(--al-radius) !important; background: var(--al-paper) !important; box-shadow: none !important; color: var(--al-ink) !important; font-weight: 600 !important; }
html body:is(#body-item-post, #body-item-edit) .simple-select .list { border: 1px solid var(--al-line) !important; border-radius: var(--al-radius) !important; box-shadow: var(--al-shadow) !important; }
html body:is(#body-item-post, #body-item-edit) .simple-select .list .option.selected { background: #FBF7EF !important; color: var(--al-brass-text) !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html body:is(#body-item-post, #body-item-edit) .content.add_item textarea { border-color: #CFC7B7 !important; border-radius: var(--al-radius) !important; background-color: var(--al-paper) !important; box-shadow: none !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item input:focus,
html body:is(#body-item-post, #body-item-edit) .content.add_item textarea:focus { border-color: var(--al-brass) !important; box-shadow: 0 0 0 3px rgba(166, 124, 46, 0.2) !important; }

/* publish */
html body:is(#body-item-post, #body-item-edit) .content.add_item button[type="submit"] {
  min-width: 240px;
  height: 52px !important;
  padding: 0 32px !important;
  border: 0 !important;
  border-radius: var(--al-radius) !important;
  background: var(--al-brass) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transform: none !important;
}
html body:is(#body-item-post, #body-item-edit) .content.add_item button[type="submit"]:hover { background: var(--al-brass-text) !important; }
html body:is(#body-item-post, #body-item-edit) .post-navigation .btn { border-radius: var(--al-radius) !important; background-image: none !important; box-shadow: none !important; text-transform: none !important; }
html body:is(#body-item-post, #body-item-edit) .post-navigation .btn-primary { background: var(--al-ink) !important; border-color: var(--al-ink) !important; color: #FFFFFF !important; }

/* ---------- Public profile, contact, 404 ---------- */
.al-profile-page .container-outer > .container,
.al-contact-page .container-outer > .container,
#body-404 .container-outer > .container { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.al-profile { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 72px; clear: both; }
.al-profile-side { position: sticky; top: 150px; }
.al-profile-main { min-width: 0; }
.al-profile-main .al-section-head h2 { font-size: 32px !important; }
.al-profile-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.al-profile-main #al-contact { margin-top: 32px; }
.al-profile-about { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--al-line-soft); color: #2B3445; font-size: 14px; line-height: 1.6; }
.al-profile-plugin { margin-top: 14px; font-size: 14px; }
.al-meta a { color: var(--al-brass-text) !important; }

.al-contact { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 72px; clear: both; }
.al-help-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; color: #2B3445; font-size: 14px; line-height: 1.6; }
.al-help-list li { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--al-line-soft); }
.al-help-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.al-help-list strong { display: block; color: var(--al-ink); }
html body#body-contact .al-form button.al-btn { align-self: flex-start; }

.al-404 { padding-top: 48px; padding-bottom: 80px; clear: both; }
.al-404-search { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 10px; }
.al-404-search input { flex: 1; height: 48px !important; margin: 0 !important; padding: 0 14px !important; border: 1px solid #CFC7B7 !important; border-radius: var(--al-radius) !important; background: var(--al-paper) !important; box-shadow: none !important; }
html body .al-404-search button.al-btn { height: 48px !important; margin: 0 !important; padding: 0 22px !important; border: 0 !important; border-radius: var(--al-radius) !important; background: var(--al-ink) !important; background-image: none !important; color: #FFFFFF !important; text-transform: none !important; box-shadow: none !important; }
.al-404-links { justify-content: center; gap: 24px; }

@media (max-width: 960px) {
  .al-profile, .al-contact { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .al-profile-side { position: static; }
}
@media (max-width: 767px) {
  .al-profile, .al-contact, .al-404 { padding-bottom: 96px; }
  .al-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Legacy forms not rebuilt yet (recover / reset / send to friend): Heritage buttons and prices */
html body #i-forms button[type="submit"],
html body #sendfriend button[type="submit"],
html body form#sendfriend button,
html body .user_forms button[type="submit"] {
  background: var(--al-brass) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: var(--al-radius) !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
}
html body #i-forms button[type="submit"]:hover,
html body #sendfriend button[type="submit"]:hover { background: var(--al-brass-text) !important; }
html body #i-forms .user_forms, html body .user_forms .inner { border-radius: var(--al-radius) !important; box-shadow: none !important; }
html body #i-forms h2 { font-family: var(--al-font-display) !important; font-weight: 600 !important; color: var(--al-ink) !important; }
#body-item-send-friend .price, #body-item-send-friend .price * { color: var(--al-ink) !important; }
#body-item-send-friend .price .price-converted { color: var(--al-muted) !important; font-weight: 500 !important; }
#body-user-recover #i-forms h2 { display: none !important; }
#al-footer { border-top: 1px solid rgba(232, 226, 212, 0.12); }

/* ---------- Header search + Sell button hardening ----------
   legacy "#body-item-post form { gap: 30px !important }" and ".btn, button { height: 36px }"
   reached the header search; "a { color: … !important }" turned the Sell label navy */
html body #al-header form.al-search { gap: 0 !important; padding: 0 !important; margin: 0 !important; flex-direction: row !important; }
html body #al-header form.al-search .al-search-btn {
  height: auto !important;
  align-self: stretch;
  margin: 0 !important;
  border-radius: 0 !important;
  background-image: none !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html body #al-header a.al-sell,
html body #al-header a.al-sell:hover,
html body #al-header a.al-sell:visited { color: #FFFFFF !important; }
html body #al-header a.al-signin { color: var(--al-ink) !important; }
html body #al-header a.al-signin:hover { color: var(--al-brass-text) !important; }

/* ---------- Sell form: price block with native selects ---------- */
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .price-type-row,
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .price-value-row,
html body:is(#body-item-post, #body-item-edit) .status-wrap > div { display: flex !important; flex-direction: column !important; gap: 6px !important; margin: 0 0 16px !important; padding: 0 !important; width: auto !important; float: none !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .price-label,
html body:is(#body-item-post, #body-item-edit) .status-wrap label { margin: 0 !important; padding: 0 !important; color: var(--al-ink) !important; font-size: 14px !important; font-weight: 700 !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item .al-native.al-native { position: relative; display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item select.al-select.al-select.al-select,
html body:is(#body-item-post, #body-item-edit) .content.add_item .status-wrap select.al-x, html body:is(#body-item-post, #body-item-edit) .content.add_item .status-wrap select:not(.al-none):not(.al-none2) {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 40px 0 14px !important;
  border: 1px solid #CFC7B7 !important;
  border-radius: var(--al-radius) !important;
  background: var(--al-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center !important;
  box-shadow: none !important;
  color: var(--al-ink) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
html body:is(#body-item-post, #body-item-edit) .content.add_item select.al-select.al-select.al-select:focus,
html body:is(#body-item-post, #body-item-edit) .content.add_item .status-wrap select.al-x, html body:is(#body-item-post, #body-item-edit) .content.add_item .status-wrap select:not(.al-none):not(.al-none2):focus { border-color: var(--al-brass) !important; outline: none !important; box-shadow: 0 0 0 3px rgba(166, 124, 46, 0.2) !important; }

/* amount + currency as one joined field */
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .price-amount-currency.price-amount-currency {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #CFC7B7 !important;
  border-radius: var(--al-radius) !important;
  background: var(--al-paper) !important;
  overflow: hidden;
  box-sizing: border-box !important;
}
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .price-amount-currency.price-amount-currency:focus-within { border-color: var(--al-brass) !important; box-shadow: 0 0 0 3px rgba(166, 124, 46, 0.2) !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .price-amount-currency.price-amount-currency input#price {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--al-ink) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-indent: 0 !important;
}
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .price-amount-currency.price-amount-currency input#price[readonly] { background: #F6F3EC !important; color: var(--al-muted) !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .price-amount-currency.price-amount-currency .al-native { flex: 0 0 96px !important; width: 96px !important; border-left: 1px solid var(--al-line) !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .price-amount-currency.price-amount-currency select.al-select {
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: #FBF9F4 !important;
  padding: 0 32px 0 14px !important;
  background-position: right 10px center !important;
  font-weight: 700 !important;
}
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .price-amount-currency.price-amount-currency .simple-currency.disabled { opacity: 0.55; pointer-events: none; }
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .price-amount-currency.price-amount-currency .price-tag-icon,
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .price-amount-currency.price-amount-currency > i { display: none !important; }

/* shipping select written with inline styles */
html body:is(#body-item-post, #body-item-edit) .shipping-wrap { border-color: var(--al-line) !important; border-radius: var(--al-radius) !important; box-shadow: none !important; }
html body:is(#body-item-post, #body-item-edit) .shipping-wrap select { border-radius: var(--al-radius) !important; border-color: #CFC7B7 !important; background-color: var(--al-paper) !important; }

html body:is(#body-item-post, #body-item-edit) .content.add_item select.al-select.al-select.al-select,
html body:is(#body-item-post, #body-item-edit) .content.add_item .status-wrap select:not(.al-none):not(.al-none2) { text-transform: none !important; line-height: 46px !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap .inside.inside { border: 0 !important; padding: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item .price-wrap.price-wrap,
html body:is(#body-item-post, #body-item-edit) .content.add_item .shipping-wrap.shipping-wrap { border: 0 !important; padding: 0 !important; margin: 0 0 16px !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item .shipping-wrap label { color: var(--al-ink) !important; font-size: 14px !important; font-weight: 700 !important; margin: 0 0 6px !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item .shipping-wrap label i { display: none !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item .shipping-wrap select.simple-select.simple-select {
  appearance: none !important; -webkit-appearance: none !important;
  height: 48px !important; padding: 0 40px 0 14px !important;
  border: 1px solid #CFC7B7 !important; border-radius: var(--al-radius) !important;
  background: var(--al-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center !important;
  color: var(--al-ink) !important; font-size: 15px !important; font-weight: 600 !important;
}

/* category tiles (sell / edit form) */
html body:is(#body-item-post, #body-item-edit) .al-cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0; }
html body:is(#body-item-post, #body-item-edit) .content.add_item button.al-cat-pick {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: auto !important; height: auto !important; min-height: 96px; margin: 0 !important; padding: 14px 10px !important;
  border: 1px solid var(--al-line) !important; border-radius: var(--al-radius) !important;
  background: var(--al-paper) !important; background-image: none !important; box-shadow: none !important;
  color: var(--al-ink) !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1.25 !important;
  text-align: center; text-transform: none !important; letter-spacing: 0 !important; white-space: normal !important; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
html body:is(#body-item-post, #body-item-edit) .content.add_item button.al-cat-pick:hover { border-color: var(--al-brass) !important; background: #FBF7EF !important; }
html body:is(#body-item-post, #body-item-edit) .content.add_item button.al-cat-pick.is-selected { border-color: var(--al-brass) !important; background: #FBF7EF !important; box-shadow: inset 0 0 0 1px var(--al-brass) !important; color: var(--al-brass-text) !important; }
html body:is(#body-item-post, #body-item-edit) .al-cat-pick .cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--al-ivory); color: var(--al-brass); font-size: 16px; }
html body:is(#body-item-post, #body-item-edit) .al-cat-pick .cat-icon i { color: var(--al-brass) !important; }
html body:is(#body-item-post, #body-item-edit) .al-cat-pick.is-selected .cat-icon { background: var(--al-brass); }
html body:is(#body-item-post, #body-item-edit) .al-cat-pick.is-selected .cat-icon i { color: #FFFFFF !important; }

/* ======================================================================
   Listing card: fixed structure so every card in a row is identical
   (category 1 line, title 2 lines, place 1 line, price block fixed)
   ====================================================================== */
.al-grid { grid-auto-rows: 1fr; align-items: stretch; }
.al-grid > .al-card { height: 100%; min-width: 0; }
.al-card-body { min-width: 0; }
.al-card-cat { line-height: 16px; height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-card .al-card-title { line-height: 1.2 !important; height: 2.4em; overflow: hidden; }
.al-card-place { display: flex; align-items: center; gap: 5px; height: 18px; line-height: 18px; min-width: 0; }
.al-card-place svg { flex: 0 0 auto; color: var(--al-brass); }
.al-card-place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-card .al-card-price {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--al-line-soft);
}
.al-card-body > .al-card-place { margin-bottom: 14px; }
.al-card .al-card-price-label { display: block; height: 16px; padding: 0; line-height: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.al-card .al-card-price-value {
  display: block;
  height: 42px;
  margin-top: 2px;
  overflow: hidden;
  text-align: left;
  font-size: 19px;
  line-height: 24px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.al-card .al-card-price-value .price-converted { display: block; height: 18px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 767px) {
  .al-card .al-card-title { font-size: 17px !important; }
  .al-card-place { font-size: 12px; }
  .al-card-body > .al-card-place { margin-bottom: 10px; }
  .al-card .al-card-price { padding-top: 10px; }
  .al-card .al-card-price-value { font-size: 16px; line-height: 20px; height: 38px; }
  .al-card .al-card-price-value .price-converted { font-size: 12px; }
  .al-card-badge { left: 8px; top: 8px; padding: 4px 8px; font-size: 11px; }
}

/* ======================================================================
   Phone input (intl-tel-input), one look on every form
   ====================================================================== */
html body .iti { display: block !important; position: relative !important; width: 100% !important; float: none !important; }
html body .iti .iti__country-container { position: absolute !important; top: 0 !important; bottom: 0 !important; left: 0 !important; right: auto !important; z-index: 2; padding: 1px !important; }
html body .iti .iti__selected-country,
html body #al-item #contact_form .iti button.iti__selected-country,
html body:is(#body-item, #body-user-public-profile, #body-item-send-friend, #body-item-post, #body-item-edit) form .iti button.iti__selected-country {
  display: flex !important; align-items: center !important; gap: 6px; height: 100% !important; width: auto !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 10px 0 12px !important; border: 0 !important; border-right: 1px solid var(--al-line) !important;
  border-radius: var(--al-radius) 0 0 var(--al-radius) !important; background: var(--al-ivory) !important; box-shadow: none !important;
  color: var(--al-ink) !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1 !important; cursor: pointer;
}
html body .iti .iti__selected-country:hover,
html body:is(#body-item, #body-user-public-profile, #body-item-send-friend) form .iti button.iti__selected-country:hover,
html body #al-item #contact_form .iti button.iti__selected-country:hover,
html body .iti .iti__selected-country:focus-visible { background: #EFE8DA !important; outline: none; }
html body .iti .iti__selected-dial-code { margin-left: 2px !important; color: var(--al-ink) !important; font-weight: 600 !important; }
html body .iti .iti__arrow { margin-left: 4px !important; border-top-color: var(--al-muted) !important; }
html body .iti .iti__arrow--up { border-bottom-color: var(--al-muted) !important; border-top-color: transparent !important; }

html body .iti input.iti__tel-input,
html body #al-item #contact_form .iti input.iti__tel-input,
html body #i-forms .iti input.iti__tel-input:not([type="radio"]):not([type="checkbox"]),
html body:is(#body-item-post, #body-item-edit) .content.add_item .iti input.iti__tel-input,
html body:is(#body-user-profile, #body-item, #body-contact, #body-user-register, #body-item-post, #body-item-edit, #body-user-public-profile, #body-item-send-friend) .al-form .iti input.iti__tel-input {
  float: none !important; display: block !important; width: 100% !important; height: 48px !important; min-height: 48px !important;
  margin: 0 !important; padding-right: 40px !important; text-indent: 0 !important;
  border: 1px solid #CFC7B7 !important; border-radius: var(--al-radius) !important; background: var(--al-paper) !important; box-shadow: none !important;
  color: var(--al-ink) !important; font-size: 15px !important; letter-spacing: 0.3px; font-variant-numeric: tabular-nums;
}
html body .iti input.iti__tel-input::placeholder { color: #9AA0AA !important; letter-spacing: 0.3px; }
html body .iti input.iti__tel-input:focus { border-color: var(--al-brass) !important; box-shadow: 0 0 0 3px rgba(166, 124, 46, 0.2) !important; outline: none !important; }
html body .iti.is-invalid input.iti__tel-input { border-color: var(--al-danger) !important; }
html body .iti.is-invalid input.iti__tel-input:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15) !important; }
/* valid number: green tick at the end of the field */
html body .iti::after { content: ""; position: absolute; top: 50%; right: 14px; width: 16px; height: 16px; margin-top: -8px; opacity: 0; pointer-events: none; transition: opacity 0.15s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157F3C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
html body .iti.is-valid::after { opacity: 1; }

/* country list: always below the field (or above when there is no room) */
html body .iti--inline-dropdown .iti__dropdown-content {
  top: calc(100% + 4px) !important; bottom: auto !important; left: 0 !important; margin: 0 !important;
  width: 340px; max-width: calc(100vw - 32px); z-index: 1300 !important;
  border: 1px solid var(--al-line) !important; border-radius: var(--al-radius) !important; background: var(--al-paper) !important;
  box-shadow: 0 12px 32px rgba(18, 31, 58, 0.16) !important; overflow: hidden;
}
html body .iti.al-dropup .iti__dropdown-content { top: auto !important; bottom: calc(100% + 4px) !important; }
html body .iti .iti__search-input,
html body .iti--container .iti__search-input {
  display: block !important; width: 100% !important; height: 44px !important; margin: 0 !important; padding: 0 14px !important; text-indent: 0 !important;
  border: 0 !important; border-bottom: 1px solid var(--al-line) !important; border-radius: 0 !important; background: var(--al-paper) !important;
  box-shadow: none !important; font-size: 15px !important; outline: none !important;
}
html body .iti .iti__country-list { max-height: 260px; }
html body .iti__country { padding: 9px 14px !important; font-size: 14px; color: var(--al-ink); }
html body .iti__country.iti__highlight { background: var(--al-ivory) !important; }
html body .iti__country-name { margin-right: 6px; }
html body .iti__dial-code { color: var(--al-muted) !important; }

/* phones: full-screen country picker above the sticky header and bottom dock */
html body .iti--fullscreen-popup.iti--container { position: fixed !important; inset: 0 !important; width: auto !important; height: auto !important; margin: 0 !important; z-index: 100000 !important; padding: 24px 16px !important; }
html body .iti--fullscreen-popup .iti__dropdown-content { border-radius: var(--al-radius) !important; overflow: hidden; }
html body .iti--fullscreen-popup .iti__country-list { max-height: none; }

html body .al-phone-error { margin-top: 6px; color: var(--al-danger); font-size: 13px; font-weight: 600; line-height: 1.4; }
html body .al-phone-error[hidden] { display: none !important; }
/* the flag replaces the theme's phone icon (legacy shows .input-box i with !important) */
html body .input-box.al-phone-box > i.fa,
html body #i-forms .input-box.al-phone-box > i.fa,
html body:is(#body-item-post, #body-item-edit) .content.add_item .input-box.al-phone-box > i.fa { display: none !important; }

/* ---------- Search: price range ---------- */
.al-price-range { margin: 0; padding: 0; border: 0; min-width: 0; }
.al-price-range legend { display: block; margin: 0 0 6px; padding: 0; color: var(--al-ink); font-size: 14px; font-weight: 700; }
.al-price-range-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.al-price-range-row label { display: block; margin: 0 !important; min-width: 0; }
.al-price-range-sep { color: var(--al-muted); }
.al-price-range input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.al-price-range input::-webkit-outer-spin-button, .al-price-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.al-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.al-auth-foot { margin: 18px 0 0; text-align: center; font-size: 14px; }
.al-auth-foot a { color: var(--al-brass-text); font-weight: 700; }

/* ---------- Item: inline question form ---------- */
.al-comment-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--al-line-soft); }
.al-comment-form h3 { margin: 0 0 12px !important; font-size: 20px !important; }
.al-comment-signin { margin: 18px 0 0; }

/* ---------- Share (email to a friend) ---------- */
.al-share { max-width: 760px; padding-top: 28px; padding-bottom: 56px; }
.al-share-item { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 14px; text-decoration: none !important; color: var(--al-ink) !important; }
.al-share-thumb { flex: 0 0 96px; width: 96px; height: 72px; overflow: hidden; border-radius: var(--al-radius); background: var(--al-line-soft); }
.al-share-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.al-share-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.al-share-text strong { font-family: var(--al-font-display); font-size: 20px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-share-price { font-weight: 800; }
.al-share-price .price-converted { margin-left: 6px; color: var(--al-muted); font-weight: 500; font-size: 13px; }
.al-share-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .al-share { padding-top: 18px; }
  .al-share-thumb { flex-basis: 72px; width: 72px; height: 56px; }
  .al-share-text strong { font-size: 17px; }
}

/* flash close: legacy draws a grey disc with an invisible "x"; show a clear × */
html body .flash-wrap .flashmessage { position: relative !important; padding-right: 52px !important; }
html body .flash-wrap .flashmessage .ico-close,
html body .flash-wrap #flashmessage.flashmessage .ico-close {
  transform: none !important;
  display: flex !important; align-items: center; justify-content: center;
  position: absolute !important; top: 50% !important; right: 12px !important; width: 32px !important; height: 32px !important;
  margin: -16px 0 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
  background: transparent !important; box-shadow: none !important; cursor: pointer;
  color: transparent !important; font-size: 0 !important; line-height: 0 !important; text-indent: 0 !important;
}
html body .flash-wrap .flashmessage .ico-close::before,
html body .flash-wrap #flashmessage.flashmessage .ico-close::before { content: "\00D7" !important; font-family: var(--al-font-ui) !important; color: var(--al-muted) !important; font-size: 24px !important; line-height: 1 !important; font-weight: 400 !important; position: static !important; transform: none !important; }
html body .flash-wrap .flashmessage .ico-close:hover { background: rgba(18, 31, 58, 0.06) !important; }
html body .flash-wrap .flashmessage .ico-close::after { display: none !important; }

/* legacy form / fieldset chrome (cards, shadows, padding) inside the new layouts */
html body #body-item-send-friend .al-share form#sendfriend,
html body#body-item-send-friend .al-share form#sendfriend,
html body#body-item #al-item form#comment_form,
html body#body-search .al-filter-form fieldset.al-price-range {
  float: none !important; width: auto !important; max-width: none !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
}
html body#body-item-send-friend .al-share form#sendfriend { padding: 0 !important; margin-top: 18px !important; }
html body#body-search .al-filter-form fieldset.al-price-range { padding: 0 !important; }
html body#body-search .al-filter-form fieldset.al-price-range legend { float: none; width: auto; margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; font-size: 14px !important; }
html body#body-search .al-filter-form .al-price-range-row input { width: 100% !important; min-width: 0 !important; padding-left: 12px !important; padding-right: 12px !important; }
html body#body-item #al-item form#comment_form { padding: 20px 0 0 !important; margin-top: 20px !important; border-top: 1px solid var(--al-line-soft) !important; }

html body#body-item #al-item #comment_form button.al-btn {
  width: auto !important; min-width: 120px; height: 46px !important; margin: 4px 0 0 !important; padding: 0 26px !important;
  border: 0 !important; border-radius: var(--al-radius) !important; background: var(--al-ink) !important; background-image: none !important;
  box-shadow: none !important; color: #FFFFFF !important; font-size: 15px !important; font-weight: 700 !important;
}
html body#body-item #al-item #comment_form button.al-btn:hover { background: #22304F !important; }
