:root {
  --wp360-ink: #17211f;
  --wp360-muted: #63736f;
  --wp360-surface: #ffffff;
  --wp360-soft: #f3f7f5;
  --wp360-line: #dbe5df;
  --wp360-teal: #0e7468;
  --wp360-teal-dark: #07564d;
  --wp360-coral: #c85d42;
  --wp360-gold: #d79f3d;
  --wp360-shadow: 0 20px 60px rgba(15, 31, 28, 0.12);
}

.wp360-body {
  margin: 0;
  background: var(--wp360-surface);
  color: var(--wp360-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.wp360-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--wp360-line);
  backdrop-filter: blur(16px);
}

.wp360-nav,
.wp360-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.wp360-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wp360-brand,
.wp360-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wp360-ink);
  font-weight: 800;
  text-decoration: none;
}

.wp360-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wp360-teal);
  color: #fff;
  font-size: 0.82rem;
}

.wp360-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wp360-nav-links a {
  padding: 10px 12px;
  color: var(--wp360-muted);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}

.wp360-nav-links a:hover,
.wp360-nav-links a:focus-visible {
  color: var(--wp360-ink);
  background: var(--wp360-soft);
  outline: none;
}

.wp360-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--wp360-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.wp360-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--wp360-ink);
}

.wp360-main {
  min-height: 70vh;
}

.wp360-hero {
  min-height: min(760px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 26, 24, 0.84), rgba(10, 26, 24, 0.48), rgba(10, 26, 24, 0.14)),
    var(--wp360-hero-image) center / cover;
}

.wp360-hero-inner {
  padding: 92px 0 132px;
}

.wp360-hero h1,
.wp360-page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 5.6rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.wp360-hero p,
.wp360-page-hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
}

.wp360-kicker {
  margin: 0 0 12px;
  color: var(--wp360-coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wp360-hero .wp360-kicker,
.wp360-page-hero .wp360-kicker {
  color: #f5be68;
}

.wp360-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.wp360-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.wp360-button-primary {
  background: var(--wp360-teal);
  color: #fff;
}

.wp360-button-primary:hover,
.wp360-button-primary:focus-visible {
  background: var(--wp360-teal-dark);
}

.wp360-button-secondary {
  background: #fff;
  color: var(--wp360-ink);
  border-color: var(--wp360-line);
}

.wp360-button-secondary:hover,
.wp360-button-secondary:focus-visible {
  border-color: var(--wp360-teal);
}

.wp360-section {
  padding: 76px 0;
}

.wp360-section-muted {
  background: var(--wp360-soft);
}

.wp360-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.wp360-section-heading h2,
.wp360-split h2,
.wp360-seo-band h2 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.wp360-text-link {
  color: var(--wp360-teal);
  font-weight: 800;
  text-decoration: none;
}

.wp360-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.wp360-card-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wp360-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--wp360-line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(15, 31, 28, 0.08);
}

.wp360-card-media {
  display: block;
  aspect-ratio: 2 / 1;
  background: var(--wp360-soft);
}

.wp360-card-media img,
.wp360-topic img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wp360-card-body {
  padding: 18px;
}

.wp360-card-meta,
.wp360-detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--wp360-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wp360-card-meta a,
.wp360-detail-kicker a {
  color: var(--wp360-teal);
  text-decoration: none;
}

.wp360-card h3 {
  min-height: 3.1em;
  margin: 10px 0 8px;
  font-size: 1.16rem;
  line-height: 1.28;
}

.wp360-card h3 a {
  text-decoration: none;
}

.wp360-card p {
  min-height: 4.5em;
  margin: 0;
  color: var(--wp360-muted);
}

.wp360-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--wp360-muted);
  font-size: 0.92rem;
}

.wp360-card-action {
  color: var(--wp360-coral);
  font-weight: 900;
  text-decoration: none;
}

.wp360-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 36px;
  align-items: start;
}

.wp360-pill-grid,
.wp360-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wp360-pill,
.wp360-location-list a {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 144px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--wp360-line);
  border-radius: 8px;
  color: var(--wp360-ink);
  font-weight: 800;
  text-decoration: none;
}

.wp360-pill small {
  color: var(--wp360-muted);
  font-weight: 600;
}

.wp360-seo-band {
  background: #15312d;
  color: #fff;
}

.wp360-seo-band p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.wp360-page-hero {
  padding: 92px 0 72px;
  background: #183632;
  color: #fff;
}

.wp360-filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  background: var(--wp360-soft);
  border: 1px solid var(--wp360-line);
  border-radius: 8px;
}

.wp360-filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--wp360-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.wp360-filter-panel input,
.wp360-filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--wp360-ink);
  border: 1px solid var(--wp360-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.wp360-result-bar,
.wp360-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--wp360-muted);
  font-weight: 800;
}

.wp360-pagination {
  justify-content: center;
  margin: 34px 0 0;
}

.wp360-pagination a {
  padding: 10px 14px;
  color: var(--wp360-teal);
  border: 1px solid var(--wp360-line);
  border-radius: 8px;
  text-decoration: none;
}

.wp360-empty {
  padding: 28px;
  background: var(--wp360-soft);
  border: 1px solid var(--wp360-line);
  border-radius: 8px;
  color: var(--wp360-muted);
  font-weight: 800;
}

.wp360-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.wp360-topic {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background: #183632;
}

.wp360-topic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 24, 0.04), rgba(10, 26, 24, 0.76));
}

.wp360-topic img {
  position: absolute;
  inset: 0;
}

.wp360-topic span,
.wp360-topic small {
  position: relative;
  z-index: 1;
}

.wp360-topic span {
  font-size: 1.16rem;
  font-weight: 900;
}

.wp360-topic small {
  color: rgba(255, 255, 255, 0.76);
}

.wp360-view-page {
  background: #071110;
}

.wp360-viewer-shell {
  min-height: 56vh;
}

.wp360-viewer {
  position: relative;
  width: 100%;
  height: clamp(520px, calc(100dvh - 112px), 860px);
  max-height: 860px;
  overflow: hidden;
  background: #020505;
  color: #fff;
  touch-action: none;
}

.wp360-viewer:fullscreen,
.wp360-viewer.wp360-viewer-fallback-fullscreen {
  width: 100vw;
  height: 100dvh;
  max-height: none;
}

.wp360-viewer.wp360-viewer-fallback-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
}

.wp360-viewer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.wp360-viewer-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  pointer-events: none;
}

.wp360-viewer-toolbar {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.wp360-viewer-toolbar button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(7, 17, 16, 0.72);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.wp360-viewer-toolbar .wp360-viewer-fullscreen {
  width: 52px;
}

.wp360-viewer-toolbar button:hover,
.wp360-viewer-toolbar button:focus-visible {
  background: rgba(14, 116, 104, 0.88);
  outline: none;
}

.wp360-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  padding: 46px 0 58px;
  color: #fff;
}

.wp360-detail-main h1 {
  max-width: 850px;
  margin: 12px 0 16px;
  font-size: 3.8rem;
  line-height: 1.04;
}

.wp360-lede {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

.wp360-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.wp360-facts div,
.wp360-detail-side {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.wp360-facts dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wp360-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.wp360-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wp360-tag-row a {
  padding: 8px 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
}

.wp360-detail-side {
  align-self: start;
  display: grid;
  gap: 10px;
}

.wp360-credit {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.wp360-prose {
  max-width: 860px;
}

.wp360-prose h2 {
  margin: 28px 0 10px;
}

.wp360-prose p {
  color: var(--wp360-muted);
  font-size: 1.04rem;
}

.wp360-footer {
  padding: 44px 0;
  background: #f8faf8;
  border-top: 1px solid var(--wp360-line);
}

.wp360-footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wp360-footer p {
  margin: 8px 0 0;
  color: var(--wp360-muted);
}

.wp360-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.wp360-footer nav a {
  color: var(--wp360-muted);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .wp360-hero h1,
  .wp360-page-hero h1 {
    font-size: 4.1rem;
  }

  .wp360-section-heading h2,
  .wp360-split h2,
  .wp360-seo-band h2,
  .wp360-detail-main h1 {
    font-size: 2.5rem;
  }

  .wp360-card-grid,
  .wp360-card-grid-compact,
  .wp360-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wp360-filter-panel,
  .wp360-detail-grid,
  .wp360-split {
    grid-template-columns: 1fr;
  }

  .wp360-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .wp360-nav {
    min-height: 64px;
  }

  .wp360-nav-toggle {
    display: inline-block;
  }

  .wp360-nav-links {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--wp360-line);
    border-radius: 8px;
    box-shadow: var(--wp360-shadow);
  }

  .wp360-nav-links.is-open {
    display: flex;
  }

  .wp360-hero {
    min-height: 680px;
  }

  .wp360-hero-inner {
    padding: 70px 0 104px;
  }

  .wp360-hero h1,
  .wp360-page-hero h1 {
    font-size: 3rem;
  }

  .wp360-section,
  .wp360-page-hero {
    padding: 54px 0;
  }

  .wp360-card-grid,
  .wp360-card-grid-compact,
  .wp360-topic-grid {
    grid-template-columns: 1fr;
  }

  .wp360-card h3,
  .wp360-card p {
    min-height: 0;
  }

  .wp360-viewer {
    height: clamp(420px, calc(100dvh - 96px), 720px);
    max-height: 720px;
  }

  .wp360-facts {
    grid-template-columns: 1fr;
  }

  .wp360-footer-grid,
  .wp360-section-heading,
  .wp360-result-bar {
    align-items: start;
    flex-direction: column;
  }
}
