/* WhipWashPro -- Locations Cinematic. Namespaced: #wwp-locations-root, .wwp-locations-* */

#wwp-locations-root,
#wwp-locations-root *,
#wwp-locations-root *::before,
#wwp-locations-root *::after {
  box-sizing: border-box;
}

/* Defensive reset against the site theme's unscoped global styles on
   common tags (h2/h3/a/ul/li carry theme margin, list-style, link-color
   and hover rules elsewhere on this site -- confirmed bleed risk from the
   Customer Testimonials deploy's blockquote issue). */
#wwp-locations-root h2,
#wwp-locations-root h3,
#wwp-locations-root p,
#wwp-locations-root ul,
#wwp-locations-root li,
#wwp-locations-root a {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  font-family: inherit;
  background: none;
}
#wwp-locations-root a:hover,
#wwp-locations-root a:focus,
#wwp-locations-root a:active {
  text-decoration: none;
}
#wwp-locations-root blockquote::before,
#wwp-locations-root blockquote::after,
#wwp-locations-root a::before,
#wwp-locations-root a::after,
#wwp-locations-root li::before,
#wwp-locations-root li::after {
  content: none !important;
  background-image: none !important;
}

#wwp-locations-root {
  --wwp-l-navy: #04081a;
  --wwp-l-navy-2: #070d24;
  --wwp-l-card: rgba(10, 18, 40, 0.62);
  --wwp-l-card-border: rgba(120, 160, 230, 0.22);
  --wwp-l-blue: #1177fe;
  --wwp-l-blue-light: #4a9dff;
  --wwp-l-orange: #ff8a3d;
  --wwp-l-white: #ffffff;
  --wwp-l-ink-soft: rgba(226, 234, 250, 0.82);
  --wwp-l-ink-faint: rgba(196, 210, 235, 0.62);
  --wwp-l-radius: 20px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--wwp-l-navy);
  min-height: 980px;
}

@media (max-width: 1024px) {
  #wwp-locations-root { min-height: 0; }
}

/* ---------- Background stage ---------- */

.wwp-locations-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.wwp-locations-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  display: block;
}

.wwp-locations-stage-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--wwp-l-navy) 0%, rgba(4,8,26,0.94) 30%, rgba(4,8,26,0.62) 50%, rgba(4,8,26,0.2) 66%, rgba(4,8,26,0.04) 100%),
    linear-gradient(180deg, rgba(4,8,26,0.25) 0%, rgba(4,8,26,0.02) 18%, rgba(4,8,26,0.02) 72%, rgba(4,8,26,0.85) 100%);
}

.wwp-locations-route-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wwp-locations-pulse {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(74,157,255,0.55) 0%, rgba(74,157,255,0) 70%);
}

.wwp-locations-pulse-gta {
  width: 90px;
  height: 90px;
  top: 36%;
  left: 68%;
  animation: wwp-l-pulse 3.2s ease-in-out infinite;
}

@keyframes wwp-l-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.55; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .wwp-locations-pulse { animation: none !important; opacity: 0.7; }
}

@media (max-width: 1024px) {
  .wwp-locations-pulse { display: none; }
}

/* ---------- Layout shell ---------- */

.wwp-locations-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px 90px;
}

@media (max-width: 1024px) {
  .wwp-locations-inner { padding: 64px 24px 56px; }
}

@media (max-width: 430px) {
  .wwp-locations-inner { padding: 44px 16px 40px; }
}

/* ---------- Header ---------- */

.wwp-locations-header {
  max-width: 640px;
}

.wwp-locations-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--wwp-l-blue-light);
  margin-bottom: 14px;
}

.wwp-locations-heading {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.16;
  font-weight: 700;
  color: var(--wwp-l-white);
  margin-bottom: 18px;
}

.wwp-locations-heading-line { display: inline-block; }
.wwp-locations-heading-accent { color: var(--wwp-l-blue-light); display: block; margin-top: 2px; }

.wwp-locations-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--wwp-l-ink-soft);
  max-width: 46ch;
}

/* ---------- Panels ---------- */

.wwp-locations-panels {
  max-width: 780px;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.wwp-locations-panel {
  background: var(--wwp-l-card);
  border: 1px solid var(--wwp-l-card-border);
  border-radius: var(--wwp-l-radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}

.wwp-locations-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.wwp-locations-icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  background: rgba(74, 157, 255, 0.12);
  border: 1px solid rgba(74, 157, 255, 0.28);
  color: var(--wwp-l-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wwp-locations-icon-coming { color: var(--wwp-l-orange); background: rgba(255,138,61,0.12); border-color: rgba(255,138,61,0.3); }

.wwp-locations-icon-svg { width: 26px; height: 26px; fill: currentColor; }

.wwp-locations-panel-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--wwp-l-white);
  line-height: 1.25;
  margin-bottom: 4px;
}

.wwp-locations-panel-support {
  font-size: 14px;
  color: var(--wwp-l-ink-faint);
}

/* ---------- Active locations grid ---------- */

.wwp-locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.wwp-locations-item { display: block; }

.wwp-locations-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--wwp-l-white);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.wwp-locations-name { line-height: 1.3; }

.wwp-locations-arrow { width: 15px; height: 15px; flex: none; color: var(--wwp-l-blue-light); transition: transform 0.18s ease; }

.wwp-locations-link:hover,
.wwp-locations-link:focus-visible {
  background: rgba(17,119,254,0.22);
  border-color: rgba(74,157,255,0.5);
  transform: translateY(-2px);
}

.wwp-locations-link:hover .wwp-locations-arrow,
.wwp-locations-link:focus-visible .wwp-locations-arrow { transform: translateX(3px); }

.wwp-locations-link:focus-visible {
  outline: 3px solid var(--wwp-l-blue-light);
  outline-offset: 2px;
}

.wwp-locations-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  width: 100%;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--wwp-l-blue);
  color: var(--wwp-l-white);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(17,119,254,0.38);
  transition: background 0.18s ease, transform 0.18s ease;
}

.wwp-locations-cta:hover { background: #0e63d6; transform: translateY(-1px); }
.wwp-locations-cta:focus-visible { outline: 3px solid var(--wwp-l-blue-light); outline-offset: 3px; }
.wwp-locations-cta .wwp-locations-arrow { color: var(--wwp-l-white); }

/* ---------- Coming soon grid ---------- */

.wwp-locations-coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wwp-locations-coming-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 12px;
}

.wwp-locations-coming-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--wwp-l-ink-soft);
}

.wwp-locations-status {
  flex: none;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--wwp-l-orange);
  background: rgba(255,138,61,0.14);
  border: 1px solid rgba(255,138,61,0.3);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Reveal on scroll ---------- */

#wwp-locations-root.wwp-locations-js .wwp-locations-reveal,
#wwp-locations-root.wwp-locations-js .wwp-locations-item,
#wwp-locations-root.wwp-locations-js .wwp-locations-coming-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#wwp-locations-root.wwp-locations-js .wwp-locations-in-view {
  opacity: 1;
  transform: translateY(0);
}

#wwp-locations-root.wwp-locations-js .wwp-locations-item.wwp-locations-in-view:nth-child(1) { transition-delay: 0.02s; }
#wwp-locations-root.wwp-locations-js .wwp-locations-item.wwp-locations-in-view:nth-child(2) { transition-delay: 0.05s; }
#wwp-locations-root.wwp-locations-js .wwp-locations-item.wwp-locations-in-view:nth-child(3) { transition-delay: 0.08s; }
#wwp-locations-root.wwp-locations-js .wwp-locations-item.wwp-locations-in-view:nth-child(4) { transition-delay: 0.11s; }
#wwp-locations-root.wwp-locations-js .wwp-locations-item.wwp-locations-in-view:nth-child(5) { transition-delay: 0.14s; }
#wwp-locations-root.wwp-locations-js .wwp-locations-item.wwp-locations-in-view:nth-child(6) { transition-delay: 0.17s; }

@media (prefers-reduced-motion: reduce) {
  #wwp-locations-root.wwp-locations-js .wwp-locations-reveal,
  #wwp-locations-root.wwp-locations-js .wwp-locations-item,
  #wwp-locations-root.wwp-locations-js .wwp-locations-coming-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Tablet ---------- */

@media (min-width: 601px) and (max-width: 1024px) {
  .wwp-locations-stage { position: relative; height: 360px; }
  #wwp-locations-root { min-height: 0; }
  .wwp-locations-stage-img { object-position: 60% 35%; }
  .wwp-locations-stage-overlay {
    background: linear-gradient(180deg, rgba(4,8,26,0.55) 0%, rgba(4,8,26,0.2) 55%, var(--wwp-l-navy) 100%);
  }
  .wwp-locations-inner { padding-top: 28px; }
  .wwp-locations-header { max-width: 100%; text-align: left; }
  .wwp-locations-panels { max-width: 100%; }
  .wwp-locations-grid,
  .wwp-locations-coming-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  #wwp-locations-root { min-height: 0; background: var(--wwp-l-navy-2); }
  .wwp-locations-stage { position: relative; height: 400px; }
  .wwp-locations-stage-img { object-position: 60% 30%; }
  .wwp-locations-stage-overlay {
    background: linear-gradient(180deg, rgba(4,8,26,0.1) 0%, rgba(4,8,26,0.3) 60%, var(--wwp-l-navy-2) 100%);
  }
  .wwp-locations-inner { padding-top: 24px; }
  .wwp-locations-header { max-width: 100%; }
  .wwp-locations-heading { font-size: 27px; }
  .wwp-locations-panels { max-width: 100%; margin-top: 32px; gap: 20px; }
  .wwp-locations-panel { padding: 22px; }
  .wwp-locations-grid,
  .wwp-locations-coming-grid { grid-template-columns: 1fr; }
  .wwp-locations-link,
  .wwp-locations-coming-item { min-height: 48px; }
}

@media (max-width: 360px) {
  .wwp-locations-panel { padding: 18px; }
}

/* ---------- Full-bleed section background fix (outer gutter removal) ---------- */
/* Same fix as customer-testimonials-v2.css: elementor-element-e3eb7c3 is boxed,
   and #wwp-locations-root (overflow:hidden) can't be stretched to the viewport
   directly. This adds a decorative full-viewport-width background layer on the
   OUTER Elementor container so the color reaches true left/right viewport edges.
   Purely additive: no existing element, HTML, or content position is modified. */
.elementor-element-e3eb7c3::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: #04081a;
  z-index: -1;
  pointer-events: none;
}
