:root {
  --banana: #f5c518;
  --banana-dark: #d4a305;
  --leaf: #2e7d32;
  --leaf-dark: #1b5e20;
  --ink: #24301f;
  --muted: #6b7263;
  --bg: #f7f5ec;
  --card: #ffffff;
  --border: #e3ddc9;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(36, 48, 31, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Header ===== */
.site-header {
  background: linear-gradient(135deg, var(--leaf-dark), var(--leaf));
  color: #fff;
  padding: 20px 0 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 2.2rem;
  background: var(--banana);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.brand h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.3px;
}

.tagline {
  margin: 2px 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.tabs {
  display: flex;
  gap: 4px;
}

.tab {
  flex: 1;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
}

.tab.active {
  background: var(--bg);
  color: var(--leaf-dark);
}

.tab .count {
  display: inline-block;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--banana);
  color: var(--ink);
  font-size: 0.8rem;
  margin-left: 6px;
}

/* ===== Panels ===== */
.panel { padding: 20px 0 40px; }
.hidden { display: none !important; }

.panel-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.filters input[type="search"],
.filters select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--card);
  min-width: 160px;
}

.filters input[type="search"] { flex: 1; }

/* ===== Buttons ===== */
.btn {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.btn-primary {
  background: var(--banana);
  border-color: var(--banana-dark);
}

.btn-primary:hover { background: var(--banana-dark); }

/* ===== Cards ===== */
.card-list {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--leaf-dark);
}

.card .subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  background: #e8f2e9;
  color: var(--leaf-dark);
  border: 1px solid #cfe3d1;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.type { background: #fdf3d0; color: #7a5c00; border-color: #f0e0a0; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0;
  font-size: 0.92rem;
}

.card-meta span { color: var(--ink); }
.card-meta .label { color: var(--muted); margin-right: 4px; }

.card .desc {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #3d4636;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.card-foot time {
  color: var(--muted);
  font-size: 0.82rem;
}

.call-btn {
  display: inline-block;
  background: var(--leaf);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
}

.call-btn:hover { background: var(--leaf-dark); }

.contact-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
}

.wa-btn:hover { background: #1da851; }

.wa-icon {
  background: #fff;
  color: #25d366;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1877f2;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
}

.fb-btn:hover { background: #145dbf; }

.fb-icon {
  background: #fff;
  color: #1877f2;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  font-family: Georgia, serif;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: calc(100vw - 32px);
  z-index: 100;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

/* ===== Dialogs / Forms ===== */
dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 560px;
  width: calc(100vw - 32px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

dialog::backdrop { background: rgba(27, 41, 22, 0.55); }

dialog form { padding: 22px 24px; }

dialog h2 {
  margin: 0 0 4px;
  color: var(--leaf-dark);
}

.form-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.req { color: var(--danger); }

dialog label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}

dialog input,
dialog select,
dialog textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

dialog textarea { resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
}

legend {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0 6px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  margin: 0;
  font-size: 0.9rem;
}

.checkbox-grid input {
  width: auto;
  margin: 0;
}

.form-error {
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--leaf-dark);
  color: #d9e6da;
  padding: 18px 0;
  font-size: 0.85rem;
  text-align: center;
}

.site-footer p { margin: 0; }

/* ===== Mobile ===== */
@media (max-width: 560px) {
  .panel-bar { flex-direction: column; align-items: stretch; }
  .panel-bar .btn { width: 100%; }
  .card-head { flex-direction: column; }
}
