#mallorca .guide-top {
  display: block;
  width: min(1100px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 0 !important;
}

#mallorca .guide-top .section-heading {
  width: min(820px, 100%);
  max-width: none;
  margin: 0;
  justify-self: start;
  text-align: left;
}

#mallorca .guide-tabs {
  display: none !important;
}

#mallorca .guide-chapter-section {
  width: min(1100px, 100%);
  margin: 0 auto;
}

#mallorca .guide-chapter-section + .guide-chapter-section {
  margin-top: 0;
  padding-top: clamp(24px, 3vw, 36px);
}

#mallorca .guide-chapter-heading {
  margin-bottom: clamp(22px, 3vw, 32px);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(31, 40, 33, 0.18);
  transition: margin-bottom 180ms ease;
}

#mallorca .guide-chapter-heading h3 {
  width: 100%;
  margin: 0;
  color: var(--olive-dark);
  font-family: var(--display, Georgia, serif);
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  font-weight: 400;
  line-height: 1.05;
}

#mallorca .guide-chapter-toggle {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

#mallorca .guide-chapter-toggle:hover {
  color: #b87652;
}

#mallorca .guide-chapter-toggle:focus-visible {
  outline: 3px solid rgba(216, 138, 36, 0.36);
  outline-offset: 5px;
}

#mallorca .guide-chapter-number {
  color: #b87652;
  font-family: var(--sans, Arial, sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

#mallorca .guide-chapter-title {
  min-width: 0;
}

#mallorca .guide-chapter-action {
  position: relative;
  width: 28px;
  height: 28px;
  justify-self: end;
  border: 1px solid rgba(31, 40, 33, 0.34);
  border-radius: 50%;
}

#mallorca .guide-chapter-action::before,
#mallorca .guide-chapter-action::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}

#mallorca .guide-chapter-action::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

#mallorca .guide-chapter-toggle[aria-expanded="true"] .guide-chapter-action::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

#mallorca .guide-chapter-section.is-collapsed .guide-chapter-heading {
  margin-bottom: 0;
}

#mallorca .guide-chapter-section > .guide-panel {
  display: grid;
  width: 100%;
  animation: guideChapterIn 240ms ease both;
}

#mallorca .guide-chapter-section > .guide-panel[hidden] {
  display: none !important;
}

@keyframes guideChapterIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  #mallorca .guide-chapter-section + .guide-chapter-section {
    padding-top: 20px;
  }

  #mallorca .guide-chapter-heading {
    margin-bottom: 20px;
    padding-bottom: 13px;
  }

  #mallorca .guide-chapter-heading h3 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  #mallorca .guide-chapter-toggle {
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    gap: 10px;
    min-height: 54px;
  }

  #mallorca .guide-chapter-number {
    font-size: 0.72rem;
  }

  #mallorca .guide-chapter-action {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mallorca .guide-chapter-heading,
  #mallorca .guide-chapter-toggle,
  #mallorca .guide-chapter-action::before,
  #mallorca .guide-chapter-action::after,
  #mallorca .guide-chapter-section > .guide-panel {
    animation: none;
    transition: none;
  }
}
