/* ========================================
   Grain Texture Overlay
   Usage: add class="grain relative" to any section
   ======================================== */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ========================================
   Credential Marquee Keyframes
   ======================================== */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee-scroll 35s linear infinite;
  white-space: nowrap;
}
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* ========================================
   Floating Label Input Effect
   ======================================== */
.floating-label-group {
  position: relative;
}
.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label,
.floating-label-group textarea:focus + label,
.floating-label-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.5rem) scale(0.85);
  color: #2C4C3B;
}
.floating-label-group label {
  position: absolute;
  left: 1rem;
  top: 0.875rem;
  font-size: 0.875rem;
  color: #6C7A7D;
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
  transform-origin: left;
}

/* ========================================
   Hero Fog Canvas Positioning
   ======================================== */
#hero-fog {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  z-index: 2;
}

/* ========================================
   Hero Line Clip (for GSAP y: 110% reveal)
   ======================================== */
.hero-line-wrap {
  overflow: hidden;
  display: block;
}

/* ========================================
   Leaflet Custom Price-Tag Marker
   ======================================== */
.leaflet-price-tag {
  background: #2C4C3B;
  color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.leaflet-price-tag.active,
.leaflet-price-tag:hover {
  background: #C08261;
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(192, 130, 97, 0.5);
}
.leaflet-price-tag::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #2C4C3B;
}
.leaflet-price-tag.active::after {
  border-top-color: #C08261;
}

/* ========================================
   Safari glassmorphism fix
   ======================================== */
.backdrop-blur-xl {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.backdrop-blur-sm {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
