/**
 * OnlineHotelier — Shared tool page blocks
 *
 * The FAQ accordion and the Related Tools & Guides block, lifted from the
 * Revenue Management Setup tool, which is the reference for how these should
 * look and behave. Loaded by every /tools/ page so the two blocks cannot drift
 * apart again.
 *
 * Pair with /tools/js/tool-blocks.js, which wires the accordion.
 */

/* ── Related Tools & Guides ────────────────────────────────────────────── */
.explore-tools {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.explore-tools h3 {
  color: var(--primary, #3E3D35);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.tools-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.tool-link:hover {
  background: var(--secondary-light, rgba(137, 130, 110, 0.12));
  transform: translateX(4px);
}

.tool-link .icon { font-size: 1.5rem; }

.tool-link .text h4 {
  color: var(--primary, #3E3D35);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.tool-link .text p {
  color: #666;
  font-size: 0.8rem;
}

/* ── FAQ accordion ─────────────────────────────────────────────────────── */
.faq-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.faq-section h3 {
  color: var(--primary, #3E3D35);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

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

.faq-question {
  font-weight: 600;
  color: var(--primary, #3E3D35);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--secondary, #89826E);
  font-weight: 400;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.open .faq-question::after { content: '\2212'; }

.faq-answer {
  display: none;
  padding-top: 0.75rem;
  color: #555;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

@media (max-width: 768px) {
  .explore-tools,
  .faq-section { padding: 1.25rem; }
  .tools-grid-mini { grid-template-columns: 1fr; }
}
