:root {
  --bg: #c98d61;
  --bg-deep: #ae6f47;
  --paper: #f8efe2;
  --paper-strong: #fff9f0;
  --card: #fffaf4;
  --line: #e5d1b8;
  --text: #33251c;
  --muted: #7a6557;
  --green: #a9c98a;
  --green-deep: #86a866;
  --green-soft: #dceacc;
  --pattern: rgba(255, 251, 243, 0.18);
  --gold: #b69465;
  --shadow: 0 20px 48px rgba(88, 56, 31, 0.15);
  --shadow-soft: 0 12px 28px rgba(76, 47, 26, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 248, 238, 0.4), transparent 30%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 35%, #e2bc98 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.background-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18px 18px, var(--pattern) 0 6px, transparent 7px),
    radial-gradient(circle at 40px 18px, var(--pattern) 0 6px, transparent 7px),
    radial-gradient(circle at 12px 38px, var(--pattern) 0 6px, transparent 7px),
    radial-gradient(circle at 46px 38px, var(--pattern) 0 6px, transparent 7px),
    radial-gradient(circle at 29px 54px, var(--pattern) 0 10px, transparent 11px),
    radial-gradient(circle at 64px 64px, var(--pattern) 0 6px, transparent 7px),
    radial-gradient(circle at 86px 64px, var(--pattern) 0 6px, transparent 7px),
    radial-gradient(circle at 58px 84px, var(--pattern) 0 6px, transparent 7px),
    radial-gradient(circle at 92px 84px, var(--pattern) 0 6px, transparent 7px),
    radial-gradient(circle at 75px 100px, var(--pattern) 0 10px, transparent 11px);
  background-size: 128px 128px;
}

.page-frame {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 28px));
  margin: 24px auto;
  padding: 12px;
  border-radius: 28px;
  background: rgba(96, 57, 28, 0.1);
  box-shadow: 0 30px 80px rgba(70, 39, 15, 0.22);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.topbar,
.hero-slider,
.intro-card,
.filter-panel,
.listing-card,
.latest-panel,
.trust-panel,
.wizard-card,
.seller-side-card,
.footer,
.modal-card {
  background: linear-gradient(180deg, var(--paper-strong) 0%, var(--paper) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  border-radius: 22px 22px 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f6e1c4 0%, #eccca7 100%);
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 1.8rem;
}

.brand-copy span,
.intro-card p,
.eyebrow,
.field span,
.listing-meta,
.listing-card p,
.result-count,
.soft-badge,
.latest-copy span,
.latest-price,
.trust-list,
.status-chip,
.review-note p,
.step-copy p {
  color: var(--muted);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.header-actions,
.filter-head,
.double-row,
.section-head,
.section-actions,
.mini-head,
.card-title-row,
.listing-meta,
.listing-footer,
.latest-item,
.wizard-head,
.wizard-actions,
.preview-box,
.range-header,
.auth-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions {
  justify-content: flex-end;
}

.main-layout {
  background: linear-gradient(180deg, #faf4e9 0%, #f5ead8 100%);
  border-radius: 0 0 22px 22px;
  overflow: hidden;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(160, 127, 91, 0.2);
  border-bottom: 1px solid rgba(179, 147, 111, 0.18);
}

.trust-item {
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.75), rgba(250, 241, 230, 0.95));
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-slider {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 0;
  border-top: 0;
  animation: floatIn 0.8s ease both;
}

.hero-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.hero-slide {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  height: 100%;
}

.hero-cat,
.hero-focus {
  background-size: cover;
  background-position: center;
}

.hero-focus {
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(54, 37, 23, 0.62), rgba(54, 37, 23, 0.12) 58%, rgba(54, 37, 23, 0.02));
}

.hero-copy {
  position: absolute;
  top: 34px;
  left: 30px;
  z-index: 1;
  max-width: 340px;
  color: white;
  animation: riseSoft 0.9s ease 0.15s both;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: 2.15rem;
  line-height: 1.05;
}

.hero-copy p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 249, 243, 0.95);
  color: #6f5b4c;
  font-size: 1.3rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  background: white;
}

.hero-arrow.left {
  left: 10px;
}

.hero-arrow.right {
  right: 10px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
}

.hero-dots button.active {
  width: 24px;
  border-radius: 999px;
  background: white;
}

.intro-band,
.content-row,
.seller-section {
  padding: 18px;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.intro-card,
.filter-panel,
.latest-panel,
.trust-panel,
.wizard-card,
.seller-side-card {
  border-radius: 20px;
}

.intro-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.intro-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 148, 101, 0.12), transparent 70%);
}

.intro-card strong,
.trust-surface strong,
.review-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.content-row {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 16px;
}

.filter-panel {
  padding: 16px;
  align-self: start;
  box-shadow: var(--shadow-soft);
}

.filter-head h2,
.section-head h2,
.mini-head h3,
.wizard-head h3,
.seller-side-card h3 {
  margin: 0;
  font-size: 1.55rem;
}

.field {
  display: grid;
  gap: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbc7b2;
  background: #fffefb;
  color: var(--text);
}

.double-row {
  margin-top: 14px;
}

.double-row .field {
  flex: 1;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

#priceRange {
  width: 100%;
  accent-color: var(--green-deep);
}

.listing-area {
  min-width: 0;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-actions {
  margin-left: auto;
}

.section-subline {
  margin: 8px 0 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.soft-badge,
.status-chip,
.result-count {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0e4d4;
  font-size: 0.85rem;
  font-weight: 700;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.listing-card {
  overflow: hidden;
  border-radius: 18px;
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(78, 48, 26, 0.16);
  border-color: rgba(182, 148, 101, 0.4);
}

.card-media {
  position: relative;
  height: 190px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 18, 11, 0.02), rgba(28, 18, 11, 0.18));
  pointer-events: none;
}

.status-badge,
.favorite {
  position: absolute;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 251, 244, 0.92);
  box-shadow: 0 10px 18px rgba(54, 35, 20, 0.1);
}

.status-badge {
  left: 12px;
}

.favorite {
  right: 12px;
}

.card-body {
  padding: 14px;
}

.card-title-row {
  justify-content: space-between;
  align-items: flex-start;
}

.card-title-row h3 {
  margin: 0;
  font-size: 1.15rem;
}

.breed {
  font-size: 0.94rem;
  font-weight: 700;
}

.listing-meta {
  justify-content: space-between;
  margin: 10px 0;
  font-size: 0.82rem;
}

.listing-card p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.listing-footer {
  justify-content: space-between;
}

.price-block span {
  display: block;
  font-size: 0.82rem;
}

.price-block strong {
  font-size: 1.08rem;
}

.lower-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.latest-panel,
.trust-panel,
.wizard-card,
.seller-side-card {
  padding: 16px;
}

.wizard-card {
  position: relative;
  overflow: hidden;
}

.wizard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 36%);
  pointer-events: none;
}

.mini-head {
  justify-content: space-between;
}

.latest-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.latest-item {
  justify-content: space-between;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  transition: transform 0.22s ease, background 0.22s ease;
}

.latest-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.9);
}

.latest-thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.latest-copy {
  flex: 1;
}

.latest-copy strong,
.latest-copy span {
  display: block;
}

.trust-surface {
  min-height: 100%;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 249, 241, 0.86)),
    repeating-linear-gradient(45deg, rgba(220, 206, 184, 0.18) 0 12px, rgba(255, 255, 255, 0) 12px 24px);
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.assurance-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(182, 148, 101, 0.18);
}

.assurance-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.assurance-card strong {
  display: block;
  margin-bottom: 6px;
}

.assurance-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.trust-list {
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.8;
}

.seller-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
}

.wizard-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.wizard-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.wizard-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d7c3af;
  background: white;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wizard-dot.active {
  background: linear-gradient(180deg, #bfd8a5 0%, var(--green) 100%);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(134, 168, 102, 0.28);
}

.wizard-dot:hover {
  transform: translateY(-2px);
}

.wizard-page {
  display: none;
}

.wizard-page.active {
  display: block;
}

.step-copy {
  margin-bottom: 16px;
}

.step-copy h4 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full-width {
  grid-column: 1 / -1;
}

.preview-box {
  align-items: stretch;
}

.image-preview,
.review-note {
  flex: 1;
  min-height: 190px;
  border-radius: 16px;
  border: 1px dashed #d8c4af;
  background: rgba(255, 255, 255, 0.6);
}

.image-preview {
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 12px;
  color: var(--muted);
}

.review-note {
  padding: 16px;
}

.wizard-actions {
  justify-content: space-between;
  margin-top: 18px;
}

.seller-side-card h3 {
  margin-bottom: 12px;
}

.side-note {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(182, 148, 101, 0.18);
}

.side-note strong {
  display: block;
  margin-bottom: 6px;
}

.side-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  margin: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.92rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(42, 28, 19, 0.48);
  backdrop-filter: blur(6px);
}

.modal.hidden,
.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(700px, 100%);
  padding: 22px;
  border-radius: 22px;
  animation: modalIn 0.28s ease both;
}

.auth-card {
  width: min(460px, 100%);
}

.details-card {
  width: min(880px, 100%);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #f1e3d3;
}

.auth-tabs {
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  border: 1px solid #dfccb7;
  border-radius: 999px;
  padding: 10px 14px;
  background: white;
  font-weight: 700;
}

.auth-tab.active {
  background: linear-gradient(180deg, #bfd8a5 0%, var(--green) 100%);
  border-color: transparent;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.details-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.details-image {
  min-height: 360px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
}

.details-copy h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.detail-grid div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(182, 148, 101, 0.12);
}

.contact-box {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(182, 148, 101, 0.12);
}

.contact-box textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbc7b2;
  resize: vertical;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 249, 240, 0.92)),
    repeating-linear-gradient(45deg, rgba(224, 209, 188, 0.18) 0 10px, rgba(255, 255, 255, 0) 10px 20px);
  border: 1px dashed #d8c5b0;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.primary-action,
.ghost-action,
.link-button,
.search-btn,
.card-action {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-action,
.search-btn,
.card-action {
  background: linear-gradient(180deg, #bfd8a5 0%, var(--green) 100%);
  color: #24311b;
}

.ghost-action {
  background: var(--green-soft);
  color: #344227;
}

.primary-action:hover,
.ghost-action:hover,
.card-action:hover,
.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(76, 47, 26, 0.12);
  filter: saturate(1.03);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.contact-box textarea:focus {
  outline: none;
  border-color: rgba(182, 148, 101, 0.8);
  box-shadow: 0 0 0 4px rgba(182, 148, 101, 0.12);
}

.link-button {
  background: transparent;
  color: var(--muted);
  padding-inline: 0;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes riseSoft {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1040px) {
  .topbar,
  .trust-bar,
  .intro-band,
  .content-row,
  .lower-grid,
  .seller-section,
  .details-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assurance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-frame {
    width: min(100% - 12px, 1160px);
    margin: 8px auto;
    padding: 6px;
  }

  .topbar,
  .listing-grid,
  .page-grid,
  .double-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 12px;
  }

  .header-actions,
  .section-head,
  .section-actions,
  .wizard-head,
  .wizard-actions,
  .preview-box {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-slider {
    height: 320px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-cat {
    display: none;
  }

  .hero-copy {
    top: 22px;
    left: 18px;
    max-width: 250px;
  }

  .listing-grid,
  .intro-band {
    grid-template-columns: 1fr;
  }

  .footer {
    justify-content: center;
    flex-wrap: wrap;
  }
}
