* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2a37;
  background: #f5f6fa;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f97316;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
}

.btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(120deg, #ff9f43, #f97316);
  color: #fff;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
}

.btn-outline {
  border: 1px solid #f97316;
  color: #f97316;
  background: transparent;
}

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

main {
  flex: 1;
}

.hero {
  background: url("https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1400&q=60")
      center/cover,
    linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(31, 41, 55, 0.85));
  color: #fff;
  padding: 4.5rem 1.5rem 5rem;
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.search-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(3px);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.search-field label {
  font-size: 0.9rem;
  color: #fef3c7;
  display: block;
  margin-bottom: 0.35rem;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.search-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1.2rem;
}

.section {
  padding: 3rem 1.5rem;
}

.section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section p.section-lead {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #f1f5f9;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.1);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff7ed;
  color: #f97316;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  margin: 0 0 0.5rem;
}

.category-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #6b7280;
}

.category-card ul li {
  margin-bottom: 0.35rem;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.listing-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease;
}

.listing-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.listing-card:hover {
  transform: translateY(-4px);
}

.listing-body {
  padding: 1rem 1.3rem 1.3rem;
}

.listing-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.listing-meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.listing-price {
  font-size: 1.2rem;
  color: #f97316;
  font-weight: 700;
}

.cta {
  text-align: center;
  padding: 3.5rem 1.5rem 4rem;
  background: linear-gradient(120deg, #f97316, #fb923c);
  color: #fff;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 1.5rem 2rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-grid h4 {
  color: #f8fafc;
  margin-bottom: 0.8rem;
}

.footer-grid ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.35rem;
}

.filters-bar {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.5rem;
}

.filter-pill {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
  cursor: pointer;
  background: #fff;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-pill.active {
  background: #fff7ed;
  border-color: #f97316;
  color: #f97316;
}

.listings-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
}

.sidebar-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.sidebar-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.sidebar-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #475569;
}

.sidebar-card li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.listings-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.listings-row {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 140px auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid #f1f5f9;
}

.listings-row img {
  width: 140px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
}

.row-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.row-meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
  color: #475569;
}

.tabs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.4rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #475569;
}

.tab-button.active {
  background: #fff7ed;
  border-color: #f97316;
  color: #f97316;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.mini-card {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.mini-card h4 {
  margin: 0;
}

.mini-card p {
  margin: 0.4rem 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.search-results {
  max-width: 1100px;
  margin: 0 auto;
}

.search-result-card {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.search-result-meta {
  color: #6b7280;
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
}

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

  .listings-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .listings-row img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.icp {
  text-align: center;
  padding: 30px 0 10px 0;
  font-size: 14px;
  color: #666;
}

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