:root {
  --sky-gradient: linear-gradient(180deg, #BAE6FD 0%, #E0F2FE 55%, #FFFBF2 100%);
  --sea-gradient: linear-gradient(180deg, #38BDF8 0%, #0284C7 60%, #075985 100%);
}

html { scroll-behavior: smooth; }
body { background: #FFFBF2; }

::selection { background: #FCD34D; color: #0C4A6E; }

/* ——— Animated hero ——— */
.sky-bg {
  background: var(--sky-gradient);
  position: relative;
  overflow: hidden;
}

@keyframes sun-arc {
  0%   { transform: translate(-4vw, 18vh) scale(0.9); }
  50%  { transform: translate(40vw, -2vh) scale(1); }
  100% { transform: translate(84vw, 18vh) scale(0.9); }
}
.sun-orb {
  animation: sun-arc 60s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 60px rgba(252, 211, 77, 0.7));
}

@keyframes cloud-drift-1 {
  0%   { transform: translateX(-10%); }
  100% { transform: translateX(110vw); }
}
@keyframes cloud-drift-2 {
  0%   { transform: translateX(-20%); }
  100% { transform: translateX(120vw); }
}
.cloud-1 { animation: cloud-drift-1 80s linear infinite; }
.cloud-2 { animation: cloud-drift-2 110s linear infinite; animation-delay: -40s; }
.cloud-3 { animation: cloud-drift-1 95s linear infinite; animation-delay: -60s; }

@keyframes seagull-flight {
  0%   { transform: translate(-8vw, 0) scale(0.8); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(50vw, -6vh) scale(1); }
  90%  { opacity: 1; }
  100% { transform: translate(110vw, 2vh) scale(0.9); opacity: 0; }
}
.seagull { animation: seagull-flight 28s linear infinite; }
.seagull-2 { animation-delay: -10s; animation-duration: 34s; }
.seagull-3 { animation-delay: -22s; animation-duration: 40s; }

@keyframes wing-flap {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.4); }
}
.wing { animation: wing-flap 0.6s ease-in-out infinite; transform-origin: center; }

@keyframes wave-roll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.wave-layer { animation: wave-roll 18s linear infinite; }
.wave-layer-slow { animation: wave-roll 32s linear infinite; }

@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--tilt, 0deg)); }
}
.bob { animation: float-bob 6s ease-in-out infinite; }
.bob-2 { animation-delay: -2s; }

/* ——— Postcard look ——— */
.postcard {
  background: #FFFBF2;
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(2, 132, 199, 0.25), 0 12px 24px -8px rgba(2, 132, 199, 0.18);
  position: relative;
}
.postcard::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(12, 74, 110, 0.15);
  border-radius: 8px;
  pointer-events: none;
}
.stamp {
  background: #FFF6E2;
  border: 2px solid #FFFBF2;
  outline: 1px dashed rgba(12, 74, 110, 0.3);
  outline-offset: 2px;
  box-shadow: 0 2px 0 rgba(2,132,199,0.18), 0 8px 24px -8px rgba(2,132,199,0.35);
}

/* ——— Placeholder image (striped) ——— */
.ph-img {
  background:
    repeating-linear-gradient(45deg,
      rgba(56,189,248,0.10) 0 12px,
      rgba(56,189,248,0.18) 12px 24px);
  border: 1px solid rgba(56,189,248,0.25);
  color: #075985;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.ph-img::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(2, 132, 199, 0.25);
  pointer-events: none;
}

/* ——— Amenity hover reveal ——— */
.amenity {
  transition: all .25s ease;
}
.amenity:hover {
  background: #FFF6E2;
  transform: translateY(-2px);
}
.amenity .amenity-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .3s ease, opacity .2s ease, margin .3s ease;
}
.amenity:hover .amenity-detail {
  max-height: 80px;
  opacity: 1;
  margin-top: 6px;
}

/* ——— Page transitions ——— */
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-in { animation: page-in 0.45s ease-out; }

/* ——— Postcard stamp tag ——— */
.tag-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF6E2;
  color: #075985;
  border: 1px dashed rgba(2, 132, 199, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ——— Scrolling marquee for sopot tags ——— */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 35s linear infinite;
  display: flex;
  gap: 24px;
  width: max-content;
}

/* ——— Virtual tour ——— */
.tour-progress {
  background: linear-gradient(90deg, #38BDF8, #FCD34D);
}

/* ——— Calendar ——— */
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
  font-weight: 500;
}
.cal-day:hover:not(.cal-day-busy):not(.cal-day-empty) {
  background: #E0F2FE;
}
.cal-day-busy {
  background: repeating-linear-gradient(45deg, #FCA5A5 0 4px, #FECACA 4px 8px);
  color: #7F1D1D;
  cursor: not-allowed;
  opacity: 0.75;
}
.cal-day-selected {
  background: #0EA5E9 !important;
  color: white;
}
.cal-day-in-range {
  background: #BAE6FD !important;
  color: #075985;
}
.cal-day-empty { cursor: default; }
.cal-day-today {
  outline: 2px solid #FCD34D;
  outline-offset: -2px;
}

/* ——— Nav active ——— */
.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all .2s ease;
  font-weight: 600;
}
.nav-link:hover { background: rgba(186, 230, 253, 0.5); }
.nav-link.active {
  background: #0C4A6E;
  color: #FFFBF2;
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(12, 74, 110, 0.92);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  backdrop-filter: blur(8px);
}

/* Hand-drawn underline */
.underline-wavy {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 6'><path d='M0 3 Q 7.5 0 15 3 T 30 3 T 45 3 T 60 3' fill='none' stroke='%23FBBF24' stroke-width='2.5' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: 60px 6px;
  padding-bottom: 8px;
}

/* Tape effect for placeholder photos */
.tape-tl::before, .tape-tr::before {
  content: "";
  position: absolute;
  top: -10px;
  width: 60px; height: 18px;
  background: rgba(252, 211, 77, 0.55);
  border: 1px solid rgba(245, 158, 11, 0.3);
  z-index: 2;
}
.tape-tl::before { left: 20px; transform: rotate(-6deg); }
.tape-tr::before { right: 20px; transform: rotate(8deg); }

/* Sea horizon under hero */
.sea-band {
  background: var(--sea-gradient);
  position: relative;
}

/* Disable smooth on hash route change */
html.no-smooth { scroll-behavior: auto; }
