/* Classes + Maps public guides — fits the existing Elysium layout */

.guide-wrap {
  margin: 0 12px 28px;
  color: #2b3038;
}

.guide-hero {
  background: #fff;
  border: 1px solid #ddd4c5;
  box-shadow: 0 2px 0 rgba(0,0,0,.04);
  padding: 22px 24px 18px;
  margin-bottom: 18px;
}

.guide-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  color: #3a2f55;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.guide-hero p {
  margin: 0;
  max-width: 62ch;
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

.guide-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 0;
}

.guide-toolbar input[type="search"],
.guide-toolbar select {
  border: 1px solid #c9c0b2;
  background: #faf7f1;
  padding: 8px 10px;
  min-height: 38px;
  font-size: 14px;
  color: #333;
  border-radius: 2px;
}

.guide-toolbar input[type="search"] {
  flex: 1 1 220px;
  min-width: 180px;
}

.guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-chip {
  border: 1px solid #c9c0b2;
  background: #f3eee4;
  color: #444;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
}

.guide-chip.is-active {
  background: #4a5d3a;
  border-color: #3f5232;
  color: #fff;
}

.guide-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  align-items: center;
}

.guide-pager a {
  border: 1px solid #c9c0b2;
  background: #f3eee4;
  color: #444;
  padding: 6px 10px;
  font-size: 13px;
  text-decoration: none;
}

.guide-pager a.is-active,
.guide-pager a:hover {
  background: #4a5d3a;
  border-color: #3f5232;
  color: #fff;
}

.guide-panel {
  background: #fff;
  border: 1px solid #ddd4c5;
  padding: 16px;
}

.guide-family-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.guide-family-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5ccbd;
  background: #faf7f1;
  padding: 8px 10px;
  cursor: pointer;
  min-width: 120px;
  text-decoration: none;
  color: #333;
}

.guide-family-tab img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.guide-family-tab strong {
  font-size: 13px;
}

.guide-family-tab.is-active,
.guide-family-tab:hover {
  border-color: #8a7348;
  background: #f7f1e4;
}

.guide-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a6540;
  margin: 0 0 4px;
}

.guide-family-title {
  margin: 0 0 8px;
  font-size: 22px;
  color: #3a2f55;
  font-family: "Oswald", "Arial Narrow", sans-serif;
}

.guide-family-desc {
  margin: 0 0 18px;
  color: #555;
  line-height: 1.55;
  max-width: 70ch;
}

.guide-path {
  border-top: 1px solid #ece4d7;
  padding-top: 14px;
  margin-top: 14px;
}

.guide-path-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 12px;
}

.guide-path-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #ebe3d4;
  color: #5a5040;
  padding: 3px 7px;
}

.guide-path-head h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.guide-path-head span {
  color: #777;
  font-size: 13px;
}

.guide-class-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.guide-class-card {
  border: 1px solid #e2d8c8;
  background: #fcfaf6;
  padding: 12px;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
}

.guide-class-card:hover {
  border-color: #8a7348;
  background: #fff;
}

.guide-class-card .lvl {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.guide-class-card h4 {
  margin: 4px 0 6px;
  font-size: 16px;
  color: #3a2f55;
}

.guide-class-card .role {
  font-weight: 600;
  font-size: 13px;
  color: #5d4a2e;
  margin-bottom: 6px;
}

.guide-class-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}

.guide-class-card .skclass {
  margin-bottom: 8px;
}

.maps-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px;
}

.maps-side {
  background: #fff;
  border: 1px solid #ddd4c5;
  padding: 12px;
}

.maps-side h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6a6256;
}

.maps-side .guide-chip {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
}

.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.map-card {
  border: 1px solid #ddd4c5;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.map-card:hover {
  border-color: #8a7348;
}

.map-card-media {
  aspect-ratio: 16 / 9;
  background: #1f2430;
  overflow: hidden;
}

.map-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-card-body {
  padding: 10px 12px 12px;
}

.map-card-body .tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: #ebe3d4;
  color: #5a5040;
  padding: 2px 6px;
  margin-bottom: 6px;
}

.map-card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #3a2f55;
  line-height: 1.25;
}

.map-card-body p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.45;
}

.map-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}

.map-detail-media {
  border: 1px solid #ddd4c5;
  background: #1f2430;
}

.map-detail-media img {
  width: 100%;
  height: auto;
  display: block;
}

.map-detail-copy h1 {
  margin: 0 0 8px;
  font-size: 26px;
  color: #3a2f55;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
}

.map-detail-copy .meta-line {
  color: #777;
  font-size: 13px;
  margin-bottom: 12px;
}

.map-detail-copy .guide-body {
  color: #444;
  line-height: 1.65;
  font-size: 15px;
}

.map-detail-copy .guide-body p {
  margin: 0 0 12px;
}

.guide-empty {
  padding: 28px 16px;
  text-align: center;
  color: #777;
}

.guide-back {
  display: inline-block;
  margin-bottom: 12px;
  color: #5d4a2e;
  text-decoration: none;
  font-size: 13px;
}

.guide-back:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .guide-class-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maps-layout,
  .map-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .guide-wrap {
    margin: 0 6px 20px;
  }

  .guide-hero,
  .guide-panel,
  .maps-side {
    padding: 14px;
  }

  .guide-hero h1 {
    font-size: 22px;
  }

  .guide-class-row {
    grid-template-columns: 1fr;
  }

  .guide-family-tab {
    min-width: calc(50% - 6px);
  }
}
