:root {
  --page-max-width: 1100px;
  --transition-speed: 0.25s;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #0f172a;
  color: #0b1120;
}

a {
  color: inherit;
}

a:hover {
  color: inherit;
}

.showcase-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: radial-gradient(circle at 12% 8%, rgba(96, 165, 250, 0.12), transparent 55%),
              radial-gradient(circle at 88% 12%, rgba(167, 139, 250, 0.12), transparent 55%),
              #f8fafc;
}

.showcase-header {
  padding: 1.75rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 252, 0.88);
}

.showcase-header__inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.showcase-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0b1120;
}

.showcase-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.03);
  font-size: 0.92rem;
  color: #1f2937;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.showcase-header__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.page-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0;
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.page-picker__button {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #1e293b;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.page-picker__button:hover {
  background: rgba(30, 64, 175, 0.08);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.12);
}

.page-picker__button.is-active {
  background: #1d4ed8;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.25);
}

.showcase-content {
  flex: 1;
  width: 100%;
  padding: 1.25rem 1.25rem 2.5rem;
}

.showcase-page {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.showcase-hero {
  position: relative;
  border-radius: 26px;
  padding: clamp(1.8rem, 6vw, 3.6rem);
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.showcase-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.45));
  opacity: 0.35;
}

.showcase-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.showcase-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.showcase-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.showcase-hero p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.showcase-hero__cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.showcase-hero__cta:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.property-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.property-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.property-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.property-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.property-card__meta {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.property-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(29, 78, 216, 0.12);
  color: #1d4ed8;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 500;
}

.property-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

.property-card__footer a {
  color: #1d4ed8;
  font-weight: 600;
}

.empty-state {
  padding: 2.5rem;
  background: rgba(15, 23, 42, 0.06);
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 16px;
  text-align: center;
  color: #334155;
}

.refresh-actions {
  max-width: var(--page-max-width);
  margin: 1rem auto 0;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.refresh-actions button {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.refresh-actions button:hover {
  background: rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.status-message {
  font-size: 0.85rem;
  color: #475569;
}

.body-template-hotel .showcase-hero {
  background: linear-gradient(135deg, #be123c, #f97316);
}

.body-template-real-estate .showcase-hero {
  background: linear-gradient(135deg, #1d4ed8, #1e293b);
}

.body-template-school .showcase-hero {
  background: linear-gradient(135deg, #047857, #0ea5e9);
}

.body-template-church .showcase-hero {
  background: linear-gradient(135deg, #7c3aed, #f472b6);
}

.body-template-generic .showcase-hero {
  background: linear-gradient(135deg, #0f172a, #334155);
}

.body-template-hotel .property-card__meta span {
  background: rgba(239, 68, 68, 0.15);
  color: #be123c;
}

.body-template-real-estate .property-card__meta span {
  background: rgba(37, 99, 235, 0.15);
  color: #1d4ed8;
}

.body-template-school .property-card__meta span {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.body-template-church .property-card__meta span {
  background: rgba(124, 58, 237, 0.15);
  color: #7c3aed;
}

.body-template-generic .property-card__meta span {
  background: rgba(15, 118, 110, 0.15);
  color: #0f766e;
}

footer {
  margin-top: auto;
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
}

@media (max-width: 768px) {
  .showcase-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .page-picker {
    padding-top: 1rem;
  }

  .showcase-hero {
    border-radius: 22px;
  }

  .property-grid {
    gap: 1rem;
  }
}
