/* ============================================================
   EXTERIOR EXPLORER — Left Coast Exteriors
   Phase AB visual upgrade
   ============================================================ */

/* ── Layout ──────────────────────────────────────────────── */
.explorer-section {
  padding: var(--sp-12, 5rem) 0 var(--sp-16, 6rem);
  background: linear-gradient(180deg, #f4f6f4 0%, #f8f6f2 100%);
}
.explorer-header {
  text-align: center;
  margin-bottom: var(--sp-10, 3rem);
}
.explorer-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: var(--sp-3, 0.75rem);
  color: var(--color-heading, #111827);
  letter-spacing: -0.02em;
}
.explorer-sub {
  color: var(--color-text-muted, #6b7280);
  font-size: var(--text-lg, 1.1rem);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}
.explorer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8, 2.5rem);
  align-items: start;
}
@media (min-width: 960px) {
  .explorer-layout {
    grid-template-columns: 1fr 400px;
    gap: var(--sp-10, 3rem);
    align-items: start;
  }
}

/* ── House SVG ───────────────────────────────────────────── */
.house-wrap {
  position: relative;
  width: 100%;
}
.house-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 8px 32px rgba(0,0,0,0.10),
    0 20px 60px rgba(0,0,0,0.08);
}

/* ── SVG zone interaction ────────────────────────────────── */
.house-zone {
  cursor: pointer;
  transition: filter 0.22s ease, opacity 0.22s ease;
  outline: none;
}
.house-zone:focus-visible {
  outline: 3px solid #4a9fd4;
  outline-offset: 4px;
  border-radius: 4px;
}
.house-zone:hover {
  filter: brightness(1.10) drop-shadow(0 0 6px rgba(74,159,212,0.45));
}
/* Dim unselected zones when one is active — gentle, preserves architectural richness */
.house-svg.has-selection .house-zone:not(.is-selected) {
  opacity: 0.82;
  filter: saturate(0.78) brightness(0.95);
}
/* Selected zone highlight — reduced stdDeviation keeps glow tight to the component */
.house-zone.is-selected {
  filter: brightness(1.18) drop-shadow(0 0 7px rgba(74,159,212,0.55)) drop-shadow(0 0 3px rgba(74,159,212,0.35));
  opacity: 1 !important;
}

/* ── Service selector buttons ────────────────────────────── */
.service-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2, 0.5rem);
  margin-top: var(--sp-5, 1.25rem);
  justify-content: center;
}
.svc-btn {
  padding: 0.55rem 1.1rem;
  border: 2px solid #d1d5db;
  border-radius: 100px;
  background: #fff;
  color: var(--color-text, #374151);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
  min-height: 44px;
  min-width: 80px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.svc-btn:hover {
  border-color: var(--color-primary, #1e4d7b);
  background: #f0f6fc;
  box-shadow: 0 2px 8px rgba(30,77,123,0.12);
  transform: translateY(-1px);
}
.svc-btn[aria-pressed="true"],
.svc-btn.is-active {
  background: var(--color-primary, #1e4d7b);
  border-color: var(--color-primary, #1e4d7b);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30,77,123,0.28);
  transform: translateY(-1px);
}
.svc-btn:focus-visible {
  outline: 3px solid var(--color-primary, #1e4d7b);
  outline-offset: 2px;
}

/* ── Content panel ───────────────────────────────────────── */
.explorer-panel-col {
  position: sticky;
  top: 1.5rem;
}
.explorer-panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.05),
    0 12px 40px rgba(0,0,0,0.09);
  min-height: 340px;
}
/* Panel state transitions */
.panel-state {
  display: none;
}
.panel-state.is-active {
  display: block;
  animation: panel-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Panel header band */
.panel-header-band {
  background: linear-gradient(135deg, #1a3d6a 0%, #1e4d7b 60%, #2460a0 100%);
  padding: var(--sp-5, 1.25rem) var(--sp-6, 1.5rem) var(--sp-4, 1rem);
  display: flex;
  align-items: flex-end;
  gap: var(--sp-4, 1rem);
  min-height: 120px;
  position: relative;
  overflow: hidden;
}
.panel-header-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
/* Default panel has lighter band */
.panel-state--default .panel-header-band {
  background: linear-gradient(135deg, #2d5a8a 0%, #3a6fa0 100%);
}
.panel-mascot {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.panel-mascot img {
  height: 100px;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
}
.panel-title-group {
  flex: 1;
  position: relative;
  z-index: 1;
}
.panel-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 var(--sp-1, 0.25rem);
  letter-spacing: -0.02em;
}
.panel-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
}
/* Panel body content */
.panel-body-content {
  padding: var(--sp-5, 1.25rem) var(--sp-6, 1.5rem) var(--sp-6, 1.5rem);
}
.panel-body {
  font-size: 0.95rem;
  color: var(--color-text, #374151);
  line-height: 1.65;
  margin: 0 0 var(--sp-4, 1rem);
}
/* Manufacturer badge */
.panel-manufacturer {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2, 0.5rem);
  background: #f0f4f0;
  border: 1px solid #d4e4d4;
  border-radius: var(--radius-md, 6px);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2a5a2a;
  margin-bottom: var(--sp-4, 1rem);
}
.panel-manufacturer::before {
  content: "✓";
  color: #2a8a4a;
  font-size: 0.9rem;
}
.panel-credentials {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-5, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.panel-credentials li {
  font-size: 0.875rem;
  color: #4b5563;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.45;
}
.panel-credentials li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2d8a4e;
  font-weight: 800;
  font-size: 0.8rem;
}
.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3, 0.75rem);
  margin-bottom: var(--sp-5, 1.25rem);
  padding-bottom: var(--sp-4, 1rem);
  border-bottom: 1px solid #f0f0ec;
}
.panel-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-primary, #1e4d7b);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.panel-link:hover { opacity: 1; }
/* CTA button (full-width, prominent) */
.panel-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  background: var(--color-primary, #1e4d7b);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30,77,123,0.3);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}
.panel-cta::after {
  content: "→";
  font-size: 1.1em;
}
.panel-cta:hover {
  background: var(--color-primary-dark, #163a5f);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30,77,123,0.35);
}

/* ── No-JS fallback ──────────────────────────────────────── */
.explorer-nojs {
  background: #f3f4f6;
  padding: 1.5rem 0;
  text-align: center;
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .panel-state.is-active { animation: none; }
  .house-zone,
  .svc-btn { transition: none; }
  .svc-btn:hover,
  .svc-btn[aria-pressed="true"] { transform: none; }
  .panel-cta:hover { transform: none; }
}

/* ── Mobile adjustments ──────────────────────────────────── */
@media (max-width: 640px) {
  .explorer-section { padding: var(--sp-8, 2.5rem) 0; }
  .panel-header-band { min-height: 100px; padding: 1rem; }
  .panel-mascot img { height: 80px; }
  .panel-heading { font-size: 1.25rem; }
  .panel-body-content { padding: 1rem; }
  .svc-btn { font-size: 0.8rem; padding: 0.4rem 0.75rem; min-width: 70px; }
  .explorer-panel-col { position: static; }
}
