:root {
  --color-bg: #fdfdfc;
  --color-text: #2c3e50;
  --color-primary: #2e8b57;
  --color-primary-hover: #267348;
  --color-secondary: #eef2f0;
  --color-border: #dcdde1;
  --color-muted: #7f8c8d;
  --font-base: system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
  background: #fff;
}

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

.brand h1 {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.tagline {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.site-nav a {
  margin-left: 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover { color: var(--color-primary); }

.app-container {
  padding: 2.5rem 1.5rem;
}

.hero {
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

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

.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .workspace { grid-template-columns: 1fr; }
}

.controls-panel, .results-panel {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.preset-controls { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-secondary); }
.presets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

button {
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-preset {
  background: var(--color-secondary);
  border: 1px solid transparent;
  color: var(--color-text);
}

.btn-preset:hover { border-color: var(--color-primary); }

.btn-clear {
  background: transparent;
  border: 1px dashed var(--color-muted);
  color: var(--color-muted);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

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

.filter-group { margin-bottom: 1.5rem; }
.filter-group h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--color-text); }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-muted);
}

.empty-state svg { margin-bottom: 1rem; opacity: 0.5; }

.hidden { display: none !important; }

.active-state h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-secondary);
}
.active-state h3:first-child { margin-top: 0; }

.requirement-list, .packing-list, .saved-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.requirement-list li, .packing-list li, .saved-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.requirement-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.packing-list li::before {
  content: "□";
  position: absolute;
  left: 0;
  color: var(--color-muted);
  font-size: 1.2rem;
  top: 4px;
}

.actions { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.status-msg { font-size: 0.9rem; color: var(--color-primary); }

.content-block {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.content-block h2, .content-block h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.content-block h2:first-child { margin-top: 0; }
.content-block p { margin-bottom: 1rem; }
.content-block ul { margin-left: 1.5rem; margin-bottom: 1.5rem; }
.content-block li { margin-bottom: 0.5rem; }

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-nav { margin: 1rem 0; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.footer-nav a { color: var(--color-muted); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
