/* THEMEPARK_HOME_CMS_V12 */
.themepark-home-body {
  --tp-ink: #172033;
  --tp-muted: #647086;
  --tp-surface: rgba(255,255,255,.92);
  --tp-border: rgba(148,163,184,.22);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 224, 130, .26), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(91,108,240,.18), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #eef6ff 48%, #fff7ed 100%);
}
.tp-admin-toolbar {
  position: sticky;
  top: 72px;
  z-index: 40;
  width: min(1180px, calc(100% - 28px));
  margin: 10px auto -6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border: 1px solid rgba(99,102,241,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 30px rgba(30,41,59,.08);
  backdrop-filter: blur(12px);
  font-size: .9rem;
  font-weight: 800;
}
.tp-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: #4f46e5;
  text-decoration: none;
}
.tp-admin-link.muted-link { color: #334155; background: #eef2ff; }
.tp-editable { position: relative; }
.tp-pencil {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #111827;
  color: white;
  text-decoration: none;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 14px 30px rgba(15,23,42,.24);
  font-size: 1.1rem;
}
.tp-pencil-card { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 1rem; }
.tp-hero {
  width: min(1220px, calc(100% - 28px));
  min-height: clamp(560px, 70vh, 780px);
  margin: 22px auto 34px;
  border-radius: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 32px 90px rgba(15,23,42,.16);
  isolation: isolate;
  color: var(--tp-ink);
}
.tp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 36%, rgba(255,255,255,.36) 100%),
    var(--tp-hero-image) center / cover no-repeat;
  z-index: -2;
}
.tp-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% -8%;
  height: 42%;
  background: radial-gradient(ellipse at center, rgba(34,197,94,.22), transparent 70%);
  z-index: -1;
}
.tp-theme-park-night .tp-hero-bg { background: linear-gradient(115deg, rgba(13,19,40,.96) 0%, rgba(30,41,59,.82) 45%, rgba(15,23,42,.26) 100%), var(--tp-hero-image) center / cover no-repeat; }
.tp-theme-park-night { color: #f8fafc; }
.tp-theme-park-night .tp-muted, .tp-theme-park-night .tp-body-text, .tp-theme-park-night .tp-subtitle { color: rgba(248,250,252,.82); }
.tp-theme-pastel .tp-hero-bg { background: linear-gradient(115deg, rgba(255,246,250,.97), rgba(238,242,255,.88), rgba(220,252,231,.42)), var(--tp-hero-image) center / cover no-repeat; }
.tp-theme-clean .tp-hero-bg { background: linear-gradient(115deg, rgba(255,255,255,.98), rgba(248,250,252,.92)), var(--tp-hero-image) center / cover no-repeat; }
.tp-hero-inner {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  padding: clamp(34px, 6vw, 72px);
}
.tp-hero-layout-center { grid-template-columns: 1fr; text-align: center; }
.tp-hero-layout-center .tp-park-sign { max-width: 760px; margin: 0 auto; }
.tp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #4f46e5;
  font-weight: 900;
  letter-spacing: .09em;
  font-size: .82rem;
}
.tp-badge, .tp-card-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #475569;
  border: 1px solid rgba(148,163,184,.28);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
}
.tp-hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(2.35rem, 8vw, 5.7rem);
  line-height: .96;
  letter-spacing: -.07em;
}
.tp-subtitle {
  margin: 0;
  font-size: clamp(1.2rem, 3.1vw, 2rem);
  line-height: 1.42;
  font-weight: 900;
  color: #334155;
}
.tp-body-text {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--tp-muted);
  font-weight: 700;
  line-height: 1.9;
  white-space: pre-wrap;
}
.tp-hero-logo img { max-width: min(220px, 52vw); max-height: 110px; object-fit: contain; }
.tp-hero-actions, .tp-card-actions, .tp-buddy-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.tp-main-button { box-shadow: 0 18px 35px rgba(79,70,229,.24); }
.tp-park-sign {
  display: grid;
  gap: 18px;
  justify-items: center;
}
.tp-park-sign-card {
  width: min(420px, 100%);
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.62));
  border: 1px solid rgba(255,255,255,.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 26px 60px rgba(15,23,42,.14);
  transform: rotate(2deg);
}
.tp-sign-icon { font-size: clamp(4rem, 11vw, 7rem); }
.tp-park-sign-card strong { display: block; margin-top: 12px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
.tp-park-sign-card small { color: var(--tp-muted); font-weight: 900; }
.tp-mini-map {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.tp-mini-map span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(148,163,184,.22);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}
.tp-section {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 34px;
}
.tp-section-head {
  display: grid;
  justify-items: center;
  text-align: center;
  margin: 0 auto 24px;
  max-width: 780px;
}
.tp-section-head h2, .tp-buddy-card h2, .tp-bottom-card h2 { margin: 0; font-size: clamp(1.8rem, 4.6vw, 3.2rem); letter-spacing: -.04em; }
.tp-section-head p, .tp-buddy-card p, .tp-bottom-card p { color: var(--tp-muted); font-weight: 700; line-height: 1.85; white-space: pre-wrap; }
.tp-attraction-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.tp-attraction-card {
  grid-column: span 4;
  min-height: 360px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.86);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.78));
  box-shadow: 0 22px 60px rgba(15,23,42,.12);
}
.tp-attraction-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 7px solid var(--tp-card-accent);
  pointer-events: none;
}
.tp-card-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  right: -80px;
  top: -80px;
  background: color-mix(in srgb, var(--tp-card-accent) 22%, transparent);
  filter: blur(10px);
}
.tp-card-wide { grid-column: span 8; grid-template-columns: 230px 1fr; grid-template-rows: 1fr; align-items: stretch; }
.tp-card-tall { grid-column: span 4; min-height: 500px; }
.tp-card-compact { grid-column: span 3; min-height: 260px; }
.tp-card-icon {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: color-mix(in srgb, var(--tp-card-accent) 16%, white);
  font-size: 3rem;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tp-card-accent) 25%, transparent);
}
.tp-card-image {
  min-height: 150px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(241,245,249,.9);
}
.tp-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-card-content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; }
.tp-card-content h3 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.03em; }
.tp-card-body { margin: 0; color: var(--tp-muted); font-weight: 700; line-height: 1.75; white-space: pre-wrap; }
.tp-card-points {
  display: grid;
  gap: 7px;
  margin: 3px 0 0;
  padding: 0;
  list-style: none;
}
.tp-card-points li {
  position: relative;
  padding-left: 1.3em;
  color: #334155;
  font-weight: 800;
  line-height: 1.5;
}
.tp-card-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tp-card-accent);
}
.tp-card-actions { margin-top: auto; }
.tp-buddy-card, .tp-bottom-card, .tp-history-card, .tp-license-card {
  border-radius: 32px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.86);
  box-shadow: 0 22px 60px rgba(15,23,42,.1);
}
.tp-buddy-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at 84% 24%, rgba(249,115,22,.18), transparent 25%),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,247,237,.9));
}
.tp-buddy-illustration {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 360px;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900;
}
.tp-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.tp-stat {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 22px 16px;
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 40px rgba(15,23,42,.08);
  border: 1px solid rgba(255,255,255,.9);
}
.tp-stat strong { font-size: clamp(1.8rem, 5vw, 3rem); color: #4f46e5; line-height: 1; }
.tp-stat span { color: var(--tp-muted); font-weight: 900; }
.tp-bottom-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.tp-history-card .section-head { margin-bottom: 16px; }
.tp-license-section { margin-bottom: 56px; }

/* Admin editor */
.themepark-admin-body { background: #f5f7fb; }
.tp-admin-page { width: min(1220px, calc(100% - 28px)); }
.tp-admin-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.tp-admin-nav { position: sticky; top: 96px; display: grid; gap: 10px; padding: 18px; }
.tp-admin-nav a { text-decoration: none; color: #334155; font-weight: 900; padding: 10px 12px; border-radius: 14px; background: #f8fafc; }
.tp-admin-savebox { display: grid; gap: 8px; margin-top: 8px; }
.tp-admin-main { display: grid; gap: 18px; }
.tp-editor-card { scroll-margin-top: 110px; }
.tp-editor-card label, .tp-card-editor label { display: grid; gap: 7px; font-weight: 900; color: #334155; }
.tp-editor-card input[type="text"], .tp-editor-card input[type="number"], .tp-editor-card input[type="color"], .tp-editor-card select, .tp-editor-card textarea,
.tp-card-editor input[type="text"], .tp-card-editor input[type="number"], .tp-card-editor input[type="color"], .tp-card-editor select, .tp-card-editor textarea {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 11px 12px;
  background: #fff;
  font: inherit;
}
.tp-editor-card textarea, .tp-card-editor textarea { resize: vertical; }
.tp-form-grid { display: grid; gap: 14px; margin: 14px 0; }
.tp-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-card-editor-list { display: grid; gap: 12px; }
.tp-card-editor {
  border: 1px solid #dbe3ef;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}
.tp-card-editor summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #fff, #f8fafc);
}
.tp-card-editor summary strong { font-size: 1.05rem; }
.tp-card-editor summary small { color: #64748b; font-weight: 900; }
.tp-card-editor summary em { margin-left: auto; font-style: normal; color: #16a34a; font-weight: 900; }
.tp-card-editor summary em.is-off { color: #94a3b8; }
.tp-card-summary-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tp-card-accent) 18%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tp-card-accent) 28%, transparent);
}
.tp-card-editor-body { display: grid; gap: 12px; padding: 16px; }
.tp-admin-bottom-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

@media (max-width: 980px) {
  .tp-hero-inner { grid-template-columns: 1fr; }
  .tp-attraction-card, .tp-card-wide, .tp-card-tall, .tp-card-compact { grid-column: span 6; grid-template-columns: 1fr; }
  .tp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-buddy-card, .tp-bottom-card { grid-template-columns: 1fr; }
  .tp-admin-grid { grid-template-columns: 1fr; }
  .tp-admin-nav { position: static; }
}
@media (max-width: 680px) {
  .tp-admin-toolbar { top: 8px; border-radius: 22px; justify-content: center; }
  .tp-hero { width: calc(100% - 18px); min-height: auto; margin-top: 12px; border-radius: 28px; }
  .tp-hero-inner { padding: 26px 18px 32px; }
  .tp-hero h1 { font-size: clamp(2.15rem, 15vw, 3.4rem); }
  .tp-park-sign-card { min-height: 220px; transform: none; }
  .tp-section { width: calc(100% - 18px); margin-bottom: 24px; }
  .tp-attraction-grid { grid-template-columns: 1fr; }
  .tp-attraction-card, .tp-card-wide, .tp-card-tall, .tp-card-compact { grid-column: 1; min-height: auto; }
  .tp-card-image { min-height: 180px; }
  .tp-hero-actions .button, .tp-card-actions .button, .tp-buddy-actions .button, .tp-bottom-card .button { width: 100%; justify-content: center; }
  .tp-stat-grid { grid-template-columns: 1fr; }
  .tp-form-grid.two, .tp-form-grid.four { grid-template-columns: 1fr; }
  .tp-card-editor summary { align-items: flex-start; }
  .tp-card-editor summary em { margin-left: 0; }
}

/* THEMEPARK_INLINE_EDITOR_V13 */
.tp-admin-toolbar button.tp-admin-link {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.tp-pencil {
  border: 3px solid rgba(255,255,255,.9);
  cursor: pointer;
  line-height: 1;
}
.tp-drag-handle {
  position: absolute;
  top: 10px;
  right: 54px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255,255,255,.92);
  border: 2px solid rgba(15,23,42,.12);
  box-shadow: 0 10px 22px rgba(15,23,42,.14);
  font-weight: 900;
  cursor: grab;
  user-select: none;
}
.tp-attraction-card[draggable="true"] { cursor: grab; }
.tp-attraction-card.is-dragging,
.tp-card-editor.is-dragging {
  opacity: .45;
  transform: scale(.985);
}
.tp-inline-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,23,42,.48);
  backdrop-filter: blur(5px);
}
.tp-inline-editor-panel {
  position: fixed;
  z-index: 1001;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(520px, calc(100vw - 28px));
  overflow: auto;
  border-radius: 30px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(148,163,184,.28);
  box-shadow: 0 32px 90px rgba(15,23,42,.34);
  transform: translateX(calc(100% + 34px));
  transition: transform .16s ease;
}
.tp-inline-editor-panel.is-open { transform: translateX(0); }
.tp-inline-editor-form { padding: 24px; }
.tp-inline-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.tp-inline-editor-head h2 { margin: 0; font-size: clamp(1.45rem, 4vw, 2.15rem); }
.tp-inline-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: #111827;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
.tp-inline-editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tp-inline-field {
  display: grid;
  gap: 7px;
  font-weight: 900;
  color: #334155;
}
.tp-inline-field-full,
.tp-inline-checkbox { grid-column: 1 / -1; }
.tp-inline-field input,
.tp-inline-field textarea,
.tp-inline-field select {
  width: 100%;
  border: 1px solid rgba(148,163,184,.42);
  border-radius: 16px;
  padding: 11px 12px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-weight: 700;
}
.tp-inline-field textarea { resize: vertical; line-height: 1.65; }
.tp-inline-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
}
.tp-inline-checkbox input { width: auto; }
.tp-inline-editor-status {
  min-height: 1.6em;
  margin: 14px 0;
  color: #4f46e5;
  font-weight: 900;
}
.tp-inline-editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), #fff 40%);
}
.tp-card-drag-handle {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  margin-right: 8px;
  color: #111827;
  background: #e0e7ff;
  font-weight: 900;
  cursor: grab;
}
.tp-card-editor[draggable="true"] summary { cursor: grab; }
@media (max-width: 720px) {
  .tp-inline-editor-panel { inset: auto 10px 10px; top: 10px; width: auto; border-radius: 24px; }
  .tp-inline-editor-fields { grid-template-columns: 1fr; }
  .tp-drag-handle { right: 50px; }
}
