/* ============================================
   LOCATION DETAIL PAGE - Brutalist Corporate
   Matches Home Page Design System
   ============================================ */

/* 1. Marquee Section (Shared with Home) */
.marquee-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-sm) 0;
  overflow: hidden;
  z-index: 10;
  position: relative;
}

.marquee-track {
  display: flex;
  width: fit-content;
  gap: 0;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  padding-right: var(--space-xl);
  will-change: transform;
}

.marquee-content span {
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
}

.marquee-content .separator { opacity: 0.4; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 2. Hero Grid (Architectural Layout) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--color-white);
  border-bottom: var(--border-width) solid var(--border-color);
  position: relative;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: minmax(500px, 65vh) auto;
  }
}

.hero-cell {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: var(--border-width) solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-cell {
    border-bottom: none;
    border-right: var(--border-width) solid var(--border-color);
    padding: var(--space-2xl) var(--space-3xl);
  }

  /* Block 1: Title (Top Left) */
  .hero-cell--title {
    grid-column: 1 / 8;
    grid-row: 1 / 2;
    align-items: flex-start;
    border-bottom: var(--border-width) solid var(--border-color);
  }

  /* Block 2: Visual (Right Column) */
  .hero-cell--visual {
    grid-column: 8 / -1;
    grid-row: 1 / -1;
    padding: 0;
    border-right: none;
    background-color: var(--color-black);
  }

  /* Block 3: Intro (Bottom Left) */
  .hero-cell--intro {
    grid-column: 1 / 5;
    grid-row: 2 / 3;
    background-color: var(--color-off-white);
  }

  /* Block 4: CTA (Bottom Center) */
  .hero-cell--cta {
    grid-column: 5 / 8;
    grid-row: 2 / 3;
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
  }
}

/* Typography & Elements */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-black);
  margin: var(--space-md) 0 0 0;
}

.text-stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--color-primary);
  display: block;
}

.hero-lead {
  font-size: var(--font-size-md);
  color: var(--color-dark-gray, #4A4A4A) !important;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: auto;
}

.stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-primary, #903D3E);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray);
}

/* Visual Image */
.hero-cell--visual .img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-cell--visual:hover .img-cover { transform: scale(1.05); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}

/* Breadcrumbs */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}
.breadcrumbs a { color: var(--color-gray); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .active { color: var(--color-black); font-weight: 700; }

/* 3. USPs Grid (Matches Categories/Features) */
.usps-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: var(--border-width) solid var(--border-color);
  background: var(--color-white);
}

@media (min-width: 768px) {
  .usps-grid { grid-template-columns: repeat(3, 1fr); }
}

.usp-item {
  padding: var(--space-2xl) var(--space-xl);
  border-bottom: var(--border-width) solid var(--border-color);
  text-align: center;
  transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
  .usp-item {
    border-right: var(--border-width) solid var(--border-color);
    border-bottom: none;
  }
  .usp-item:last-child { border-right: none; }
}

.usp-item:hover { background-color: var(--color-off-white); }

.usp-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.usp-item h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: var(--color-black, #1A1A1A) !important;
}

.usp-item p {
  color: var(--color-dark-gray);
  font-size: var(--font-size-sm);
}

/* 4. Main Content (Architectural Layout) */
.content-wrapper {
  background: var(--color-white);
}

.content-row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: var(--border-width) solid var(--border-color);
}

@media (min-width: 1024px) {
  .content-row {
    grid-template-columns: 300px 1fr;
    min-height: 400px;
    /* Create full-height column background and border for the left side */
    background: linear-gradient(
      to right, 
      var(--color-off-white) 0px, 
      var(--color-off-white) 300px, 
      var(--border-color) 300px, 
      var(--border-color) 301px, 
      var(--color-white) 301px
    );
  }
}

.content-label {
  background: var(--color-off-white);
  padding: var(--space-xl);
  border-bottom: var(--border-width) solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .content-label {
    border-bottom: none;
    border-right: none; /* Handled by row gradient */
    padding: var(--space-2xl);
    
    /* Sticky positioning */
    position: sticky;
    top: 80px; /* Matches header height approx */
    align-self: start;
    height: auto;
    max-height: calc(100vh - 100px);
  }
}

.content-label h2 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.content-number {
  font-family: var(--font-mono);
  font-size: 4rem;
  color: var(--color-light-gray);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.content-label h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
  color: var(--color-black, #1A1A1A) !important;
}

.content-body {
  padding: var(--space-xl);
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--color-dark-gray, #4A4A4A);
  max-width: 800px;
}

.content-body p {
  color: var(--color-dark-gray, #4A4A4A);
  margin-bottom: var(--space-md, 1rem);
}

@media (min-width: 1024px) {
  .content-body { padding: var(--space-3xl); }
}

.content-body h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--color-black, #1A1A1A);
  text-transform: uppercase;
}

.content-body ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
  border-left: 2px solid var(--color-primary, #903D3E);
}

.content-body li {
  list-style: none;
  margin-bottom: var(--space-sm);
  color: var(--color-dark-gray, #4A4A4A);
}

.content-body strong {
  color: var(--color-black, #1A1A1A);
  font-weight: 600;
}

/* 5. Products Section - Match Featured Packages Design */
.products-section {
  padding: var(--space-5xl) 0;
  background-color: var(--color-white);
  border-bottom: var(--border-width) solid var(--border-color);
}

.products-section .section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  padding-left: var(--space-xl);
}

@media (min-width: 768px) {
  .products-section .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.products-section .section-header h2 {
  font-size: var(--font-size-xxxl);
  margin: 0;
  line-height: var(--line-height-none);
}

.products-section .btn-link {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: var(--font-size-md);
}

.products-section .btn-link:hover {
  color: var(--color-primary-dark);
}

/* Gapless Grid - Match Featured Packages */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: var(--border-width) solid var(--border-color);
  border-left: var(--border-width) solid var(--border-color);
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Product Card - Architectural Style */
.product-card {
  background-color: var(--color-white);
  border-right: var(--border-width) solid var(--border-color);
  border-bottom: var(--border-width) solid var(--border-color);
  border-top: none;
  border-left: none;
  border-radius: 0;
  overflow: hidden;
  transition: z-index 0s, transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  position: relative;
  z-index: 1;
}

.product-card:hover {
  z-index: 10;
  transform: scale(1.02);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
}

.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.product-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--color-concrete);
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: var(--space-xl);
  border-top: var(--border-width) solid var(--border-color);
}

.product-category {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.product-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.product-price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
}

.product-price span {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-gray);
  font-family: var(--font-body);
}

.loading-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl);
  color: var(--color-gray);
  border-right: var(--border-width) solid var(--border-color);
  border-bottom: var(--border-width) solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.loading-placeholder::before {
  content: '';
  width: 48px;
  height: 48px;
  background-image: url('/images/Group 39530.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: spin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 6. Statement CTA */
.statement-section {
  padding: var(--space-6xl) 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  border-bottom: var(--border-width) solid var(--color-black);
}

.statement-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.statem.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
  color: var(--color-black, #1A1A1A);
}

.text-stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--color-black, #1A1A1A);
  display: block;
}

.hero-lead {
  font-size: var(--font-size-xl);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  color: var(--color-dark-gray, #4A4A4A);
}

.statement-text {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2xl);
  opacity: 0.9;
  line-height: 1.6;
}

.statement-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn--outline-white {
  background: transparent;
  border: 1px solid var(--color-white);
  color: var(--color-white);
}
.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* 7. Sub-municipalities */
.sub-municipalities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.sub-municipality-card {
  padding: var(--space-md);
  background: var(--color-concrete, #F4F4F4);
  border: 1px solid var(--color-light-gray, #E5E5E5);
  transition: all 0.2s ease;
}

.sub-municipality-card:hover {
  background: var(--color-white);
  border-color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.sub-municipality-name {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--color-black);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.sub-municipality-zip {
  font-size: var(--font-size-sm);
  color: var(--color-gray);
  font-family: var(--font-mono);
}
[data-animate] {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Only hide elements when JS has initialized the observer */
.js-animate-ready [data-animate] {
  opacity: 0;
}

.js-animate-ready [data-animate="fade-up"] { transform: translateY(30px); }
.js-animate-ready [data-animate="scale"] { transform: scale(0.95); }

[data-animate].visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
