.content-mode-switch {
  width: fit-content;
  max-width: 100%;
  margin: 1.8rem auto 0;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.content-mode-switch a {
  min-width: 112px;
  padding: 8px 15px;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 650;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.content-mode-switch a:hover { color: var(--text-main); background: rgba(255,255,255,0.04); }
.content-mode-switch a.active {
  color: #201d05;
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px rgba(241, 197, 14, 0.14);
}

.home-tour-preview { overflow: hidden; }
.home-tour-preview .section-lead { max-width: 720px; }

.home-tour-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}

.home-tour-preview-card {
  display: block;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.home-tour-preview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(241, 197, 14, 0.32);
  box-shadow: var(--shadow-soft);
}

.home-tour-preview-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    #0b0d10;
  background-size: 28px 28px;
}

.home-tour-preview-media::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.home-tour-preview-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.home-tour-preview-media.is-loaded img { opacity: 1; }
.home-tour-preview-card:hover .home-tour-preview-media.is-loaded img { transform: scale(1.015); }

.home-tour-preview-copy { display: block; padding: 1rem 1.05rem 1.1rem; }
.home-tour-preview-copy strong {
  display: block;
  color: var(--text-main);
  font-size: 0.94rem;
}
.home-tour-preview-copy span {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.home-tour-preview-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
}

@media (max-width: 820px) {
  .home-tour-preview-grid { grid-template-columns: 1fr; max-width: 620px; }
}

@media (max-width: 480px) {
  .content-mode-switch { display: flex; width: 100%; }
  .content-mode-switch a { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .home-tour-preview-card,
  .home-tour-preview-media img,
  .content-mode-switch a { transition-duration: 0.01ms !important; }
  .home-tour-preview-card:hover { transform: none; }
}
