:root {
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f8fafc;
  --card: #fff;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 24px 24px 96px;
}

a { color: var(--tenant-primary, #1f8a4c); }

.seo-header {
  max-width: 1320px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seo-header-logo { width: 120px; height: auto; display: block; }

.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tenant-primary, #1f8a4c);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.seo-button:hover { filter: brightness(0.95); color: #fff; }

.seo-button svg { width: 18px; height: 18px; flex: 0 0 auto; }

.page-wrap { max-width: 1320px; margin: 0 auto; }

.card-shadow {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 32px;
}

h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; }

.seo-lead { margin: 0 0 16px; font-size: 18px; line-height: 1.45; color: #374151; }

.seo-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; font-size: 14px; }
.seo-breadcrumb a { text-decoration: none; }
.seo-breadcrumb a:hover { text-decoration: underline; }
.seo-breadcrumb-separator { color: var(--muted); }

.seo-filters-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.seo-transac-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; flex: 0 0 auto; }
.seo-transac-filters a {
  text-decoration: none;
  border: 1px solid #cfe9df;
  background: #f3faf7;
  color: var(--tenant-primary, #1f8a4c);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.seo-transac-filters a.is-current { background: var(--tenant-primary, #1f8a4c); color: #fff; border-color: transparent; }

.directory-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.directory-link-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fcfcfd;
  padding: 12px 14px;
  text-decoration: none;
  font-weight: 600;
}
.directory-link-item:hover { background: #f3faf7; }

.kpi-grid { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0 0 0 auto; }
.kpi-item { display: flex; align-items: baseline; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; background: #fcfcfd; }
.kpi-label { color: var(--muted); font-size: 13px; margin: 0; }
.kpi-value { font-weight: 700; font-size: 16px; line-height: 1.2; white-space: nowrap; }

h2 { margin: 0 0 12px; font-size: 22px; }

.seo-listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.seo-listing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.seo-listing-card:hover { border-color: var(--tenant-primary, #1f8a4c); }

.seo-listing-photo {
  position: relative;
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
}
.seo-listing-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.seo-listing-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.seo-listing-body { padding-top: 12px; }
.seo-listing-price { margin: 0 0 8px; font-size: 20px; line-height: 1.1; }
.seo-listing-meta { margin: 0 0 4px; color: #111827; font-size: 14px; }
.seo-cta-wrap { margin-top: 18px; display: flex; justify-content: center; }

.seo-empty { margin: 12px 0 0; color: #374151; line-height: 1.5; }
.seo-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.seo-empty-actions a.seo-text-link { align-self: center; font-weight: 700; text-decoration: none; }

.seo-market-intro { margin-top: 28px; }
.seo-market-intro p { color: #374151; line-height: 1.7; margin: 0 0 14px; }

.seo-opportunity-block { margin-top: 28px; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.seo-opportunity-grid { display: grid; grid-template-columns: minmax(280px, 1.05fr) minmax(0, 2fr); }
.seo-opportunity-col { padding: 34px 30px; border-right: 1px solid #e5e7eb; }
.seo-opportunity-desc { font-size: 18px; line-height: 1.45; color: #6b7280; margin: 0 0 32px; max-width: 420px; }
.seo-opportunity-col h2 { font-size: 36px; line-height: 1.2; font-weight: 700; margin: 0 0 22px; max-width: 410px; color: #111827; }
.seo-opportunity-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seo-opportunity-card { min-height: 360px; padding: 26px 26px 24px; border-left: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.seo-opportunity-card:nth-child(2n+1) { border-left: none; }
.seo-opportunity-card:nth-last-child(-n+2) { border-bottom: none; }
.seo-opportunity-card-visual { height: 200px; margin-bottom: 22px; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: 8px; overflow: hidden; }
.seo-opportunity-card-visual img { width: 100%; height: 100%; object-fit: contain; display: block; }
.seo-opportunity-card h3 { margin: 0 0 12px; line-height: 1.2; font-weight: 700; color: #111827; }
.seo-opportunity-card p { margin: 0; line-height: 1.5; color: #6b7280; }

.seo-faq { margin: 28px auto 12px; max-width: 900px; width: 100%; }
.seo-faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.seo-faq summary { cursor: pointer; font-weight: 700; }
.seo-faq details p { margin: 8px 0 0; line-height: 1.55; color: #374151; }
.seo-faq-cta-wrap { margin-top: 24px; display: flex; justify-content: center; }

.seo-related-kinds-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; }
.seo-related-kinds-title { margin: 0 0 10px; font-size: 18px; }
.seo-related-kinds-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0 8px; }
.seo-related-kinds-links a {
  text-decoration: none;
  border: 1px solid #cfe9df;
  background: #f3faf7;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.seo-related-kinds-links a:hover { background: #e8f6f0; }

.seo-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}
.seo-sticky-cta span { font-weight: 700; font-size: 14px; }

@media (max-width: 1100px) {
  .seo-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-opportunity-grid { grid-template-columns: 1fr; }
  .seo-opportunity-col { border-right: none; border-bottom: 1px solid #e5e7eb; }
}

@media (max-width: 768px) {
  body { padding: 12px 12px 108px; }
  .card-shadow { padding: 18px; }
  h1 { font-size: 24px; }
  .seo-filters-row { align-items: flex-start; flex-wrap: wrap; }
  .kpi-item { padding: 6px 8px; }
  .kpi-label { font-size: 11px; }
  .kpi-value { font-size: 14px; }
  .seo-header-logo { width: 96px; }
  .seo-listing-grid { grid-template-columns: 1fr; }
  .seo-opportunity-cards { grid-template-columns: 1fr; }
  .seo-opportunity-card { border-left: none; border-bottom: 1px solid #e5e7eb; min-height: unset; }
  .seo-opportunity-card:last-child { border-bottom: none; }
  .seo-opportunity-col h2 { font-size: 28px; }
  .seo-sticky-cta { display: flex; }
  .seo-header-cta { display: none; }
}
