html {
  scroll-behavior: smooth;
}

* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: "Product Sans", sans-serif;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

/* ---------- Splash with softened, zooming image ---------- */
/* SPLASH PART = UNTOUCHED */
#splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: radial-gradient(circle at top, #e0f2fe 0, #f8fafc 45%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.7s ease;
  transform: scale(1);
  transform-origin: center center;
  animation: splashBgZoom 60s ease-in-out infinite alternate;
}

/* Image layer: ONLY the photo, zooming */
#splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.weserv.nl/?url=ssl:visit.milandhoo.net/assets/milan.jpg&h=1200&w=1000&t=square&output=jpg&q=70');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;

  opacity: 0.35;

  transform: scale(1);
  transform-origin: center center;
  animation: splashBgZoom 10s ease-in-out infinite alternate;
}

/* Oval overlay that always stays on top and fades the whole photo */
#splash::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* circular fade */
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(248, 250, 252, 0.9) 70%,
    #ffffff 100%
  );
}


/* keep splash content above the overlays */
.splash-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #0f172a;
}

#splash.splash-hide {
  opacity: 0;
  pointer-events: none;
}

/* orbit ring */
.splash-orbit {
  position: absolute;
  inset: -10px;
  background: #ffffffb8;
  border-radius: 80px;
  opacity: 0.9;
  animation: splashOrbit 10s linear infinite;
}

.splash-orbit::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #0ea5e950;
  top: 10%;
  right: 18%;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.7);
}

.splash-title-small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: #0369a1;
  margin-bottom: 0px;
  animation: splashFadeUp 0.9s ease-out forwards;
  opacity: 0;
}

.splash-title-main {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0369a1;
  text-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
  animation: splashPop 1.1s cubic-bezier(0.19, 1, 0.22, 1) 0.15s forwards;
  opacity: 0;
}

@media (min-width: 640px) {
  .splash-title-main {
    font-size: 40px;
  }
}

.splash-underline {
  width: 120px;
  height: 2px;
  border-radius: 999px;
  margin: 24px auto 24px auto;
  background: linear-gradient(to right, transparent, rgba(56, 189, 248, 0.9), transparent);
  overflow: hidden;
  position: relative;
  opacity: 0;
  animation: splashFadeUp 0.8s ease-out 0.4s forwards;
}

.splash-underline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, #e0f2fe, transparent);
  transform: translateX(-100%);
  animation: splashShimmer 1.8s linear infinite 0.6s;
}

.splash-caption {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  letter-spacing: 0em;
  text-transform: uppercase;
  opacity: 0;
  animation: splashFadeUp 0.8s ease-out 0.55s forwards;
}

.splash-credit {
  opacity: 0;
  animation: splashFadeUp 0.8s ease-out 0.9s forwards;
}

/* background zoom animation */
@keyframes splashBgZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(3);
  }
}

/* existing keyframes */
@keyframes splashOrbit {
  0%   { transform: rotate(0deg) scale(1);   opacity: 0.9; }
  50%  { transform: rotate(180deg) scale(1.03); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.9; }
}

@keyframes splashPop {
  0%   { transform: translateY(12px) scale(0.9); opacity: 0; }
  60%  { transform: translateY(0) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1);   opacity: 1; }
}

@keyframes splashFadeUp {
  0%   { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}

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

.material-symbols-rounded {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

.auto-slider-img {
  will-change: transform;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #e5e7eb;
}

::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #e5e7eb;
}
  
#mainWrap {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#mainWrap.main-visible {
  opacity: 1;
  pointer-events: auto;
}

.leaflet-control-attribution {
  font-size: 9px !important;
  opacity: 0 !important;
}

/* ---------- Card Hover Elevation ---------- */
.card-hover {
  transform: translateY(0) scale(1); /* IMPORTANT */
  transition:
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-hover:hover {
  transform: translateY(-2px) scale(1);
  box-shadow:
    0 18px 45px -12px rgba(0,0,0,0.25),
    0 6px 15px -5px rgba(0,0,0,0.12);
}

/* =========================================================
   PATCH: Ultra-smooth 2-layer crossfade card slider
   (replaces heavy multi-keyframe slides)
   ========================================================= */
.card-slider {
  position: relative;
  overflow: hidden;
}

.card-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;

  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 4s ease;

  will-change: opacity, transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.card-slide.is-active {
  opacity: 1;
  transform: scale(1.08);
}
