/* styles.css */
:root {
  --bg: #f4f7f5;
  --text: #2b2b2b;
  --primary: #2d6a4f;
  --primary-hover: #1b4332;
  --secondary: #d8e2dc;
  --accent: #f4a261;
  --card-bg: #ffffff;
  --border: #d0d7d3;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --transition: 0.2s ease;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

/* header */
.site-header {
  background: var(--primary);
  color: white;
  padding: 2rem 0;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}

.logo {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* sections */
.section {
  padding: 2.5rem 0;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.intro p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

/* ad slot container */
.ad-slot {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 20px auto;
  max-width: 720px;
  border: 1px dashed #ccc;
  border-radius: var(--radius);
  color: #666;
  font-size: 0.9rem;
}

/* toolbar */
.toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

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

.btn-outline:hover {
  background: var(--secondary);
}

/* checklist */
#checklist-container {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.loading {
  padding: 2rem;
  text-align: center;
  color: #999;
}

.room {
  border-bottom: 1px solid var(--border);
}

.room:last-child {
  border-bottom: none;
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--secondary);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.room-header:hover {
  background: #cbd5ce;
}

.room-header h3 {
  font-size: 1.3rem;
  color: var(--primary);
}

.arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.room.open .arrow {
  transform: rotate(-135deg);
}

.room-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.room.open .room-items {
  max-height: 2000px;
}

.items-list {
  padding: 1rem 1.5rem;
}

.item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef1ef;
}

.item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.item-check {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  flex: 0 0 auto;
}

.item-check input[type="checkbox"] {
  width: 1.3rem;
  height: 1.3rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.item-details {
  flex: 1 1 300px;
}

.item-details label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.item-notes {
  width: 100%;
  min-height: 60px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  margin-top: 0.5rem;
  background: #fdfdfd;
}

.item-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: center;
}

.photo-thumb {
  position: relative;
  display: inline-block;
}

.photo-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.delete-photo-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e63946;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-photo-btn {
  background: var(--secondary);
  border: 1px dashed var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.add-photo-btn:hover {
  background: #cbd5ce;
}

/* tips grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tip-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tip-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--primary);
}

/* FAQ */
.faq dl dt {
  font-weight: 600;
  margin-top: 1.2rem;
  color: var(--primary);
}

.faq dl dd {
  margin-bottom: 0.5rem;
  margin-left: 1rem;
}

.cta {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 2rem;
  font-weight: 500;
}

/* footer */
.site-footer {
  background: #e2e8e4;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #555;
}

.site-footer nav a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 0.5rem;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

/* responsive */
@media (max-width: 600px) {
  .logo {
    font-size: 2rem;
  }
  .toolbar {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .item {
    flex-direction: column;
  }
  .item-check {
    margin-bottom: 0.5rem;
  }
}

/* print */
@media print {
  body {
    background: white;
  }
  .site-header, .site-footer, .toolbar, .add-photo-btn, .delete-photo-btn, .ad-slot, #generate-report, #generate-report-2, #reset-checklist {
    display: none !important;
  }
  .room-header {
    background: white;
    color: black;
    border-bottom: 1px solid #000;
    padding: 0.5rem 0;
  }
  .arrow {
    display: none;
  }
  .room-items {
    max-height: none;
  }
  .item {
    page-break-inside: avoid;
  }
}



/* 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;
}
