.lpi-location-template {
  --lpi-max: 1200px;
  --lpi-pad: max(5vw, 2rem);
  --lpi-bg: #f8fafc;
  --lpi-card: rgba(255, 255, 255, 0.85);
  --lpi-card-hover: #ffffff;
  --lpi-text: #0f172a;
  --lpi-muted: #475569;
  --lpi-accent: #2563eb;
  --lpi-accent-hover: #1d4ed8;
  --lpi-accent-light: #eff6ff;
  --lpi-border: rgba(226, 232, 240, 0.8);
  --lpi-gradient-bg: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 100%);
  --lpi-gradient-cta: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  --lpi-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --lpi-shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 10px -4px rgba(0, 0, 0, 0.04);
  --lpi-shadow-lg: 0 20px 35px -5px rgba(37, 99, 235, 0.1), 0 8px 15px -6px rgba(37, 99, 235, 0.05);

  color: var(--lpi-text);
  background: var(--lpi-bg);
  background-image: var(--lpi-gradient-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

.lpi-location-template *,
.lpi-location-template *::before,
.lpi-location-template *::after {
  box-sizing: border-box;
}

.lpi-location-template .lpi-wrap {
  width: min(var(--lpi-max), 100%);
  margin: 0 auto;
  padding-left: var(--lpi-pad);
  padding-right: var(--lpi-pad);
}

.lpi-location-template .lpi-hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
}

.lpi-location-template .lpi-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 1rem;
  background: var(--lpi-accent-light);
  color: var(--lpi-accent);
  border-radius: 999px;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: var(--lpi-shadow-sm);
}

.lpi-location-template h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lpi-text);
}

.lpi-location-template .lpi-lead {
  margin: 0 auto;
  max-width: 70ch;
  color: var(--lpi-muted);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.lpi-location-template .lpi-grid {
  display: grid;
  gap: 2rem;
}

.lpi-location-template .lpi-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lpi-location-template .lpi-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lpi-location-template .lpi-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 10;
}

/* Premium Card Style */
.lpi-location-template .lpi-card {
  background: var(--lpi-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--lpi-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--lpi-shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.lpi-location-template .lpi-card:hover {
  background: var(--lpi-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--lpi-shadow-md);
  border-color: rgba(37, 99, 235, 0.2);
}

.lpi-location-template .lpi-card h2,
.lpi-location-template .lpi-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lpi-text);
}

.lpi-location-template p,
.lpi-location-template li {
  color: var(--lpi-muted);
  line-height: 1.7;
}

.lpi-location-template p:not(:last-child) {
  margin-bottom: 1rem;
}

.lpi-location-template ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.lpi-location-template .lpi-card ul {
  list-style: none !important;
  list-style-type: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.lpi-location-template .lpi-card ul li {
  position: relative;
  padding-left: 1.75rem !important;
  margin-left: 0 !important;
  margin-bottom: 0.75rem;
  list-style: none !important;
  list-style-type: none !important;
  background-image: none !important;
  text-indent: 0 !important;
}

.lpi-location-template .lpi-card ul li::marker {
  content: none !important;
  display: none !important;
}

.lpi-location-template .lpi-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lpi-accent);
  font-weight: 900;
}

/* Process Steps */
.lpi-location-template .lpi-process {
  counter-reset: lpi-step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, 1fr); /* Force 4 columns on desktop */
}

.lpi-location-template .lpi-process li {
  background: var(--lpi-card);
  border: 1px solid var(--lpi-border);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.5rem 3.5rem;
  position: relative;
  box-shadow: var(--lpi-shadow-sm);
  transition: transform 0.2s ease;
}

.lpi-location-template .lpi-process li:hover {
  transform: translateY(-3px);
  box-shadow: var(--lpi-shadow-md);
}

.lpi-location-template .lpi-process li::before {
  counter-increment: lpi-step;
  content: counter(lpi-step);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--lpi-accent-light);
  color: var(--lpi-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  position: absolute;
  left: 1rem;
  top: 1.5rem;
}

/* Map Container */
.lpi-location-template .lpi-map-container {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--lpi-shadow-md);
  border: 1px solid var(--lpi-border);
  aspect-ratio: 21 / 9; /* Slightly wider for a more cinematic look */
  background: #f1f5f9;
  position: relative;
}

.lpi-location-template .lpi-map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Accordion FAQs */
.lpi-location-template details {
  background: var(--lpi-card);
  border: 1px solid var(--lpi-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--lpi-shadow-sm);
  transition: all 0.3s ease;
}

.lpi-location-template details[open] {
  box-shadow: var(--lpi-shadow-md);
  border-color: rgba(37, 99, 235, 0.3);
}

.lpi-location-template summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--lpi-text);
  list-style: none; /* Hide default arrow */
  position: relative;
  padding-right: 2rem;
}

.lpi-location-template summary::-webkit-details-marker {
  display: none;
}

.lpi-location-template summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--lpi-accent);
  transition: transform 0.3s ease;
}

.lpi-location-template details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.lpi-location-template details p {
  margin-top: 1rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--lpi-border);
}

/* Premium CTA */
.lpi-location-template .lpi-cta {
  border-radius: 24px;
  padding: 3rem;
  background: var(--lpi-gradient-cta);
  color: #ffffff;
  box-shadow: var(--lpi-shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lpi-location-template .lpi-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.lpi-location-template .lpi-cta h2 {
  color: #ffffff !important;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.lpi-location-template .lpi-cta p {
  color: #ffffff !important;
  font-size: 1.125rem;
  max-width: 60ch;
  margin: 0 auto 2rem;
}

.lpi-location-template .lpi-cta-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.lpi-location-template a.lpi-cta-button,
.lpi-location-template .lpi-cta-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 24px;
  margin: 0;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #ffffff;
  color: var(--lpi-accent) !important;
  text-decoration: none !important;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Fix for WordPress wpautop injecting <br> tags based on HTML newlines */
.lpi-location-template a.lpi-cta-button br,
.lpi-location-template .lpi-cta-button br,
.lpi-location-template a.lpi-cta-button p,
.lpi-location-template .lpi-cta-button p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lpi-location-template a.lpi-cta-button:hover,
.lpi-location-template .lpi-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: #f8fafc;
}

.lpi-location-template a.lpi-cta-button.secondary,
.lpi-location-template .lpi-cta-button.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.lpi-location-template a.lpi-cta-button.secondary:hover,
.lpi-location-template .lpi-cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.lpi-location-template .lpi-cta-button::before,
.lpi-location-template .lpi-cta-button::after {
  content: none !important;
}


.lpi-location-template .lpi-kpis {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lpi-location-template .lpi-kpis li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

@media (max-width: 900px) {
  .lpi-location-template .lpi-grid-3,
  .lpi-location-template .lpi-grid-2,
  .lpi-location-template .lpi-process {
    grid-template-columns: 1fr;
  }

  .lpi-location-template .lpi-cta-button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .lpi-location-template .lpi-hero {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .lpi-location-template .lpi-section {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }
  
  .lpi-location-template .lpi-cta {
    padding: 2rem 1.5rem;
  }
  
  .lpi-location-template .lpi-cta h2 {
    font-size: 2rem;
  }
}
