/**
 * Shared demo page styles — all 20 industry template demos.
 * Industry-specific styles embedded in each demo EJS.
 */

/* ── Demo site shell ── */
.demo-site {
  --ds-bg: #060C1A;
  --ds-surface: rgba(255,255,255,0.04);
  --ds-border: rgba(77,201,255,0.12);
  --ds-text: #fff;
  --ds-muted: rgba(255,255,255,0.45);
  --ds-cyan: #4DC9FF;
  --ds-blue: #0066FF;
  --ds-glow: 0 0 20px rgba(77,201,255,0.25);

  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
}

/* ── Demo nav bar (top of each demo page) ── */
.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(6,12,26,0.95);
  border-bottom: 1px solid var(--ds-border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.demo-nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ds-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.demo-nav-badge {
  font-size: 0.6rem;
  font-family: 'Orbitron', sans-serif;
  padding: 3px 10px;
  border: 1px solid var(--ds-cyan);
  border-radius: 100px;
  color: var(--ds-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}
.demo-nav-actions { display: flex; gap: 10px; align-items: center; }
.demo-nav-cta {
  padding: 8px 18px;
  background: var(--ds-blue);
  color: #fff;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.demo-nav-cta:hover { opacity: 0.85; }

/* ── Demo section styling ── */
.demo-section {
  padding: 60px 24px;
  border-bottom: 1px solid var(--ds-border);
}
.demo-section-sm {
  padding: 40px 24px;
  border-bottom: 1px solid var(--ds-border);
}
.demo-container {
  max-width: 1100px;
  margin: 0 auto;
}
.demo-container-sm {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Demo typography ── */
.demo-h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  -webkit-text-stroke: 1px #000;
  color: #fff;
  margin-bottom: 16px;
}
.demo-h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  -webkit-text-stroke: 0.8px #000;
  color: #fff;
  margin-bottom: 12px;
}
.demo-h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  -webkit-text-stroke: 0.5px #000;
  color: #fff;
  margin-bottom: 8px;
}
.demo-p { color: var(--ds-muted); font-size: 0.9rem; line-height: 1.6; }
.demo-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ds-cyan);
  opacity: 0.8;
  margin-bottom: 10px;
}
.demo-grad { background: linear-gradient(135deg, var(--ds-cyan), var(--ds-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Demo cards ── */
.demo-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.demo-card:hover {
  border-color: rgba(77,201,255,0.35);
  box-shadow: var(--ds-glow);
}
.demo-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(77,201,255,0.08);
  border: 1px solid rgba(77,201,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ── Demo grid layouts ── */
.demo-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.demo-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.demo-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 768px) {
  .demo-grid-2, .demo-grid-3, .demo-grid-4 { grid-template-columns: 1fr; }
  .demo-nav { flex-wrap: wrap; gap: 8px; }
}

/* ── Demo buttons ── */
.demo-btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s;
}
.demo-btn-primary {
  background: var(--ds-blue);
  color: #fff;
  -webkit-text-stroke: 0.3px rgba(0,0,0,0.3);
}
.demo-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.demo-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--ds-border);
}
.demo-btn-outline:hover { border-color: var(--ds-cyan); color: var(--ds-cyan); }
.demo-btn-cta {
  background: var(--ds-cyan);
  color: #000;
  font-weight: 700;
  -webkit-text-stroke: 0;
}
.demo-btn-cta:hover { filter: brightness(1.1); }

/* ── Demo form elements ── */
.demo-input, .demo-select, .demo-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--ds-border);
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.demo-input:focus, .demo-select:focus, .demo-textarea:focus {
  border-color: var(--ds-cyan);
  box-shadow: 0 0 0 2px rgba(77,201,255,0.15);
}
.demo-input::placeholder, .demo-textarea::placeholder { color: rgba(255,255,255,0.3); }
.demo-label-form {
  display: block;
  font-size: 0.72rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  color: var(--ds-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.demo-form-group { margin-bottom: 16px; }

/* ── Demo tabs ── */
.demo-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ds-border);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  padding: 10px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ds-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: inherit;
}
.demo-tab:hover { color: #fff; }
.demo-tab.active {
  color: var(--ds-cyan);
  border-bottom-color: var(--ds-cyan);
}
.demo-tab-content { display: none; }
.demo-tab-content.active { display: block; }

/* ── Demo accordion ── */
.demo-accordion-item {
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.demo-accordion-trigger {
  width: 100%;
  padding: 14px 18px;
  background: var(--ds-surface);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: background 0.2s;
}
.demo-accordion-trigger:hover { background: rgba(77,201,255,0.05); }
.demo-accordion-trigger::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--ds-cyan);
  font-weight: 300;
  transition: transform 0.2s;
}
.demo-accordion-item.open .demo-accordion-trigger::after { transform: rotate(45deg); }
.demo-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0,0,0,0.2);
}
.demo-accordion-item.open .demo-accordion-body { max-height: 400px; }
.demo-accordion-content { padding: 14px 18px; font-size: 0.85rem; color: var(--ds-muted); line-height: 1.6; }

/* ── Demo modal ── */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.demo-modal-overlay.open { display: flex; }
.demo-modal-box {
  background: #0a1428;
  border: 1px solid rgba(77,201,255,0.25);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
}
.demo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
}
.demo-modal-close:hover { background: rgba(255,255,255,0.15); }

/* ── Demo carousel ── */
.demo-carousel { position: relative; overflow: hidden; border-radius: 10px; }
.demo-carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s ease;
  cursor: grab;
}
.demo-carousel-track:active { cursor: grabbing; }
.demo-carousel-item { flex: 0 0 280px; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.demo-carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-carousel-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}
.demo-carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}
.demo-carousel-btn:hover { border-color: var(--ds-cyan); color: var(--ds-cyan); }

/* ── Demo table ── */
.demo-table { width: 100%; border-collapse: collapse; }
.demo-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.65rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ds-cyan);
  border-bottom: 1px solid var(--ds-border);
}
.demo-table td {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--ds-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.demo-table tr:hover td { background: rgba(77,201,255,0.03); }

/* ── Demo lightbox ── */
.demo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.demo-lightbox.open { display: flex; }
.demo-lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }

/* ── Demo confirmation / success ── */
.demo-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 8px;
  padding: 16px 20px;
  color: #4ade80;
  font-size: 0.88rem;
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.demo-success.show { display: flex; }

/* ── Demo counter animation ── */
.demo-counter { font-family: 'Orbitron', sans-serif; }

/* ── Demo hero section ── */
.demo-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
}
.demo-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.demo-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 30, 60, 0.30) 0%, rgba(15, 30, 60, 0.45) 100%);
  z-index: 1;
}
.demo-hero-content { position: relative; z-index: 2; }

/* ── Demo gallery grid ── */
.demo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.demo-gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  transition: transform 0.2s;
}
.demo-gallery-grid img:hover { transform: scale(1.02); }

/* ── Demo pricing card ── */
.demo-price-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
.demo-price-card.featured {
  border-color: var(--ds-cyan);
  box-shadow: var(--ds-glow);
}
.demo-price-amount {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ds-cyan);
}
.demo-price-period { font-size: 0.75rem; color: var(--ds-muted); }

/* ── Sticky CTA bar ── */
.demo-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6,12,26,0.97);
  border-top: 1px solid rgba(77,201,255,0.2);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 500;
  backdrop-filter: blur(12px);
}

/* ── Demo testimonials ── */
.demo-testimonial {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  padding: 20px;
}
.demo-stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 2px; }
.demo-reviewer { font-size: 0.8rem; color: var(--ds-muted); margin-top: 8px; }

/* ── Countdown timer ── */
.demo-countdown {
  display: inline-flex;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  color: var(--ds-cyan);
}
.demo-countdown-unit { text-align: center; }
.demo-countdown-num { font-size: 1.2rem; font-weight: 700; }

/* ── Before/After mini slider ── */
.demo-ba {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16/9;
  cursor: ew-resize;
}
.demo-ba img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-ba-after { clip-path: inset(0 50% 0 0); }
.demo-ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  z-index: 2;
}
.demo-ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #333;
}

/* ── Demo map embed ── */
.demo-map {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ds-border);
  aspect-ratio: 16/9;
}
.demo-map iframe { width: 100%; height: 100%; border: none; }

/* ── Badge / tag ── */
.demo-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(77,201,255,0.3);
  color: var(--ds-cyan);
}

/* ── Review carousel ── */
.demo-reviews-track { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.demo-reviews-track::-webkit-scrollbar { display: none; }
.demo-review-card { flex: 0 0 280px; scroll-snap-align: start; }

/* ── Amenities list ── */
.demo-amenity { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ds-muted); padding: 6px 0; }
.demo-amenity-icon { color: var(--ds-cyan); font-size: 0.9rem; }

/* ── Scroll animations ── */
.demo-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22,1,0.36,1);
}
.demo-reveal.visible { opacity: 1; transform: translateY(0); }
.demo-stagger { opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.22,1,0.36,1); }
.demo-stagger.visible { opacity: 1; transform: translateY(0); }