* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
  color: #222;
  background: #f6f7f8;
}

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

.container { max-width: 1020px; margin: 0 auto; padding: 0 1.25rem; }

header, footer { background: #fff; }
header { border-bottom: 1px solid #e6e6e6; }
footer { border-top: 1px solid #e6e6e6; }

/* Header layout */
.header-inner { padding: 1.2rem 0; }

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Logo sizing (prevents huge logo) */
.brand .logo img,
.logo img {
  display: block;
  height: 45px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
/* Nav */
.nav{
  display:flex;
  gap:0.5rem;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  text-decoration: none;
}

.nav a:hover { background: #f3f4f6; }
.nav a.active { background: #1f2937; color: #fff; border-color: #1f2937; }

/* Content sections / boxes */
.section {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  padding: 1.35rem;
  margin: 1.25rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid #2b2b2b;
  background: #fff;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: #f3f4f6;
  text-decoration: none;
}

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

.btn-primary {
  background: #6BCB3D;
  color: #fff;
  border-color: #6BCB3D;
}

.btn-primary:hover {
  background: #5BB332;
  border-color: #5BB332;
}

.btn-secondary {
  background: #1f2937;
  color: #fff;
  border-color: #1f2937;
}

.btn-secondary:hover {
  background: #111827;
  border-color: #111827;
}

/* Homepage action row */
.actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.secondary-links { margin-left: 0.4rem; }
.secondary-links .dot { opacity: 0.55; margin: 0 0.35rem; }

.small { color: #6b7280; font-size: 0.92rem; }
.max-text { max-width: 44rem; }

.mt-xs { margin-top: 0.35rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 0.9rem; }

.h2-tight { font-size: 1.1rem; }
.list-pad { margin-top: 0.5rem; padding-left: 1.2rem; }

/* --- Privacy / Legal Pages --- */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.legal-page h3 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.legal-page p {
  margin-bottom: 0.8rem;
}

.legal-page ul {
  margin-bottom: 0.9rem;
}

.legal-page strong {
  font-weight: 600;
}

/* ------------------------------ */
/* Mobile Optimization Layer */
/* ------------------------------ */

@media (max-width: 768px) {

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 1rem;
    margin: 1rem 0;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }

  /* Stack header elements cleanly */
  .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }


  .nav a {
    flex: 1 1 48%;
    text-align: center;
  }

  /* Make action buttons full width */
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Improve form spacing */
  input, select, textarea {
    font-size: 16px; /* prevents iOS zoom */
  }
}
/* Badges */
.badge{
  display:inline-flex;
  align-items:center;
  gap:0.25rem;
  font-size:12px;
  line-height:1;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #e6e6e6;
  background:#f7f7f7;
  font-weight:700;
  vertical-align:middle;
  margin-left:8px;  /* keeps it from reading as part of the name */
  white-space:nowrap;
}

.badge-verified{
  border-color:#b9e3c6;
  background:#eaf7ef;
  color:#0f5132;
}

/* Quote badge (subtle) */
.badge-quote{
  border-color:#e6e6e6;
  background:#fafafa;
  color:#444;
  font-weight:600;
}
/* Media safety */
img { max-width: 100%; height: auto; }

/* Listing cards */
.listing-card{
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

.listing-card:hover{
  border-color: #d9d9d9;
}

/* PRO: subtle “premium” feel */
.listing-pro{
  border-left: 5px solid #0f5132;   /* deep green accent */
  background: #ffffff;
}

/* COMMUNITY: slightly softer / less prominent */
.listing-community{
  border-left: 5px solid #cfcfcf;
  background: #fcfcfc;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

/* Optional: type badge */
.type-pill{
  display:inline-flex;
  align-items:center;
  gap:0.25rem;
  font-size:12px;
  line-height:1;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #e6e6e6;
  background:#f7f7f7;
  font-weight:700;
  white-space:nowrap;
}

.type-pill.pro{
  border-color:#b9e3c6;
  background:#eaf7ef;
  color:#0f5132;
}

.type-pill.community{
  border-color:#e6e6e6;
  background:#fafafa;
  color:#555;
}
