/* ============================================
   Canggu Directory — Classic Content-First CSS
   Lightweight, high text-to-HTML ratio
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #222;
  background: #faf9f6;
}

a {
  color: #1a5276;
  text-decoration: underline;
}
a:hover {
  color: #0b3d5b;
}

/* Container */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  background: #1b2631;
  color: #ecf0f1;
  padding: 18px 0;
  border-bottom: 4px solid #c0392b;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.site-header .main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 14px;
  align-items: center;
}
.site-header .main-nav a {
  color: #ecf0f1;
  text-decoration: none;
  padding: 0 0 2px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
  display: inline-flex;
  align-items: center;
  height: 18px;
  box-sizing: border-box;
}
.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible {
  border-color: #ecf0f1;
}
.site-header .main-nav a.active {
  border-color: #c0392b;
  color: #fff;
  font-weight: 700;
}
.site-header .main-nav a + a::before {
  content: "";
  display: inline-flex;
  align-items: center;
  height: 14px;
  width: 1px;
  background: rgba(236,240,241,0.4);
  margin: 0 12px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid transparent;
  color: #ecf0f1;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle:focus-visible {
  outline: 2px solid #ecf0f1;
  outline-offset: 2px;
}
.site-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.site-tagline {
  font-size: 13px;
  color: #bdc3c7;
  font-style: italic;
}

/* ── Hero / Intro ── */
.hero {
  background: #fff;
  border-bottom: 2px solid #ddd;
  padding: 30px 0 24px;
}
.hero h1 {
  font-size: 28px;
  line-height: 1.3;
  color: #1b2631;
  margin-bottom: 16px;
}
.hero p {
  margin-bottom: 12px;
  color: #333;
}



/* ── Two-Column Layout ── */
.page-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  padding: 28px 0 40px;
}

/* ── Main Content ── */
.main-content {
  background: #fff;
  border: 1px solid #ccc;
  padding: 24px 28px;
  border-radius: 6px;
  min-width: 0;
  overflow-x: hidden;
}
.main-content h2 {
  font-size: 22px;
  color: #1b2631;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 6px;
  margin: 32px 0 14px;
}
.main-content h2:first-child {
  margin-top: 0;
}
.main-content h3 {
  font-size: 18px;
  color: #2c3e50;
  margin: 20px 0 10px;
}
.main-content p {
  margin-bottom: 14px;
  color: #333;
}
.main-content ul,
.main-content ol {
  margin: 0 0 16px 24px;
}
.main-content li {
  margin-bottom: 6px;
}

/* ── Data Table (Featured Snippet bait) ── */
.data-table-wrapper {
  overflow-x: auto;
  margin: 16px 0 24px;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.data-table-wrapper table {
  min-width: 600px;
  width: 100%;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 15px;
}
.data-table caption {
  font-weight: 700;
  text-align: left;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}
.data-table th {
  background: #1b2631;
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
}
.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #ddd;
}
.data-table tr:nth-child(even) td {
  background: #f4f1eb;
}
.data-table tr:hover td {
  background: #e8e4dc;
}

/* ── Sidebar ── */
.sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}
.sidebar-box {
  background: #fff;
  border: 1px solid #ccc;
  padding: 18px 16px;
  margin-bottom: 20px;
}
.sidebar-box h3 {
  font-size: 16px;
  color: #1b2631;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.sidebar-box ul {
  list-style: none;
}
.sidebar-box li {
  padding: 5px 0;
  border-bottom: 1px dotted #ddd;
  font-size: 14px;
}
.sidebar-box li:last-child {
  border-bottom: none;
}
.sidebar-box li a {
  text-decoration: none;
  display: block;
}
.sidebar-box li a:hover {
  color: #c0392b;
}

/* ── Footer ── */
.site-footer {
  background: #1b2631;
  color: #bdc3c7;
  padding: 28px 0;
  text-align: center;
  font-size: 14px;
  border-top: 4px solid #c0392b;
}
.site-footer p {
  margin-bottom: 10px;
}
.cta-text {
  color: #ecf0f1;
  font-size: 16px;
  margin-bottom: 14px;
}
.btn-whatsapp {
  display: inline-block;
  background: #1a7a3e;
  color: #fff;
  padding: 10px 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.btn-whatsapp:hover {
  background: #145f30;
  color: #fff;
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: #f0ede6;
  padding: 10px 0;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #ddd;
}
.breadcrumb a {
  color: #1a5276;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* ── Listing Cards ── */
.listing {
  border: 1px solid #ddd;
  background: #fff;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.listing h3 {
  margin-top: 0;
  font-size: 19px;
  color: #1b2631;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* ── Definition List (listing metadata) ── */
.listing-meta {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.listing-meta dt {
  float: left;
  clear: left;
  width: 100px;
  font-weight: 600;
  color: #555;
}
.listing-meta dd {
  margin-left: 110px;
  margin-bottom: 6px;
  color: #333;
}

/* ── In-Content CTA Box ── */
.content-cta {
  background: #fdf6ee;
  border: 2px solid #e8d5b7;
  padding: 22px 24px;
  margin: 28px 0;
  text-align: center;
}
.content-cta h3 {
  color: #1b2631;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  border-bottom: none;
}
.content-cta p {
  font-size: 15px;
  margin-bottom: 14px;
}
.content-cta .btn-whatsapp {
  margin-bottom: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-header .main-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px 16px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0;
    margin: 0;
  }
  .site-header .main-nav.open {
    max-height: 800px;
    padding: 6px 0 12px;
  }
  .site-header .main-nav a {
    padding: 6px 0;
    border-bottom: none;
    border-left: none;
  }
  .site-header .main-nav a + a::before {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    margin-top: 8px;
    border-color: #ecf0f1;
    background: rgba(255, 255, 255, 0.1);
  }
  .page-body {
    grid-template-columns: 1fr;
  }
  .main-content {
    padding: 24px 16px;
  }
  .sidebar {
    position: static;
  }
  .hero h1 {
    font-size: 22px;
  }
  .data-table {
    font-size: 13px;
  }
  .data-table th,
  .data-table td {
    padding: 7px 8px;
  }
}

/* ── Forms ── */
.contact-form {
  margin-top: 20px;
  max-width: 600px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2c3e50;
  font-size: 14px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  background: #faf9f6;
  transition: all 0.2s ease-in-out;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a5276;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(26, 82, 118, 0.1);
}
.btn-submit {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-submit:hover {
  background: #a93226;
}

/* ── FAQ Accordion ── */
.faq-list details {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.faq-list details:hover {
  border-color: #1a5276;
}
.faq-list summary {
  font-weight: 600;
  padding: 16px 20px;
  cursor: pointer;
  color: #1b2631;
  font-size: 16px;
  list-style: none;
  position: relative;
  outline: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #c0392b;
  font-weight: 400;
}
.faq-list details[open] summary::after {
  content: '-';
}
.faq-list .faq-content {
  padding: 0 20px 18px;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

