/********************* MAP ************************************/
body.page-activity > footer {
  margin-top: 0;
}

#map {
  /* Landscape mobile fix */
  /* Fallback for very short screens (handles virtual keyboard cases) */
}
@media (max-width: 1024px) {
  #map {
    position: relative;
  }
}
@media (min-aspect-ratio: 4/3) and (max-width: 768px) {
  #map {
    overflow: hidden;
  }
}
@media (max-height: 500px) {
  #map {
    overflow: hidden;
  }
}

@media (max-width: 1024px) {
  .map-section {
    overflow: hidden;
  }
}

@media (max-width: 1024px) {
  .map--bg :first-child {
    display: none;
  }
}

.map__container {
  display: flex;
  position: relative;
  width: 100%;
}
@media (max-width: 1024px) {
  .map__container {
    margin-top: 4rem;
    bottom: -5px;
  }
}
@media (min-width: 1025px) {
  .map__container {
    margin-top: 8rem;
  }
}
@media (min-aspect-ratio: 4/3) and (max-width: 768px) {
  .map__container {
    transform-origin: bottom center;
  }
}

.activity-map {
  width: 100%;
}
@media (max-width: 1024px) {
  .activity-map {
    width: 230vw;
    margin-left: -76vw;
    margin-right: -36vw;
    scale: 1;
    z-index: 2;
  }
}

.map-mobile {
  display: none;
}
@media (min-width: 1025px) {
  .map-mobile {
    display: none;
  }
}

.centers--label {
  position: absolute;
  overflow: hidden;
  font-weight: 200;
  line-height: 1.1;
}
@media (max-width: 1024px) {
  .centers--label {
    left: 4%;
    top: 10%;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    font-size: 1.8rem;
    line-height: 1.3;
    border-radius: 1.5rem;
    opacity: 0;
    z-index: 1;
  }
}
@media (min-width: 1025px) {
  .centers--label {
    font-size: clamp(1rem, 0.67vw + 0.313rem, 1.6rem);
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 1024px) {
  .centers--label.visible {
    opacity: 1;
    z-index: 2;
  }
}

.centers--label span {
  text-wrap: unset;
  display: block;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (min-width: 1025px) {
  .centers--label span {
    height: 0;
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
}

.centers--label.visible span {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  height: 100%;
}

@media (min-width: 1025px) {
  .centers--label[data-city=bat-yam] {
    top: 38%;
    left: 42%;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=tel-aviv] {
    top: 35%;
    left: 40%;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=herzliya] {
    top: 32.3%;
    left: 41%;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=jerusalem] {
    top: 58.2%;
    left: 59%;
    text-align: center;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=beer-sheva] {
    top: 69.1%;
    left: 51%;
    text-align: left;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=alfei-menashe] {
    top: 40.5%;
    left: 65.5%;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=ramat-gan] {
    top: 40.5%;
    left: 56.3%;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=harduf] {
    top: 15.5%;
    left: 68%;
    text-align: left;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=ashkelon] {
    top: 49.8%;
    left: 39.5%;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=haifa] {
    top: 14.2%;
    left: 56%;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=safed] {
    top: 12.4%;
    left: 75.8%;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=afula] {
    top: 25%;
    left: 68.7%;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=tzur-moshe] {
    top: 30%;
    left: 62.7%;
  }
}

@media (min-width: 1025px) {
  .centers--label[data-city=raanana] {
    top: 33.8%;
    left: 57.1%;
  }
}

.activity-map .city--pin:hover ~ .city--label {
  fill: #0f668c;
}

.city--pin {
  transform: translateY(-120px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease-out, scale 0.6s ease-out;
  -webkit-tap-highlight-color: transparent;
}

.city--pin:focus-visible {
  outline: 2px solid var(--color-border) !important;
  outline-offset: 2px;
  border-radius: 2px;
}

.city--pin:focus {
  outline: none;
}

.city--wrapper.dropped .city--pin {
  transform: translateY(0);
  opacity: 1;
}

.city--wrapper.dropped .city--pin:hover {
  transform: translateY(-1px);
}

.city--label {
  font-weight: 500;
  fill: #76408f;
  font-size: 1.8rem;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (max-width: 1024px) {
  .city--label {
    font-size: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .city--wrapper[data-city=herzliya] .city--label, .city--wrapper[data-city=tel-aviv] .city--label, .city--wrapper[data-city=bat-yam] .city--label {
    transform: translateX(-20px);
  }
}

.city--label.city-revealed {
  clip-path: inset(0 0 0 0);
}

.pin--shadow ellipse {
  transition: clip-path 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  clip-path: inset(100% 0 0 0);
}

.pin--shadow.shadow-revealed ellipse {
  clip-path: inset(0 0 0 0);
}

/********************* BLOB - ADVOT MODEL ************************************/
.test-blob .layer-2-wrapper {
  transition: clip-path 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (max-width: 1150px) {
  .test-blob .layer-2-wrapper {
    clip-path: inset(100% 0 0 0);
  }
}
@media (min-width: 1151px) {
  .test-blob .layer-2-wrapper {
    clip-path: inset(0 0 0 0);
  }
}

/********************* SCROLL FADE UP ************************************/
.section--hidden {
  opacity: 0;
  transform: translateY(100px);
}

.section--visible {
  opacity: 1;
  transform: translateY(0);
  transform-style: preserve-3d;
  transition: opacity 1s cubic-bezier(0.32, 1.11, 1, 0.99), transform 1s cubic-bezier(0.32, 1.11, 1, 0.99);
}

/********************* BLOBS ************************************/
/* Method 1: Subtle Scale Animation */
.subtle-pulse path {
  animation: subtlePulse 6s ease-in-out infinite;
  transform-origin: center;
}

.subtle-pulse path:nth-child(1) {
  animation-delay: 0s;
}

.subtle-pulse path:nth-child(2) {
  animation-delay: 0.3s;
}

.subtle-pulse path:nth-child(3) {
  animation-delay: 0.6s;
}

.subtle-pulse path:nth-child(4) {
  animation-delay: 0.9s;
}

.subtle-pulse path:nth-child(5) {
  animation-delay: 1.2s;
}

.subtle-pulse path:nth-child(6) {
  animation-delay: 1.5s;
}

.subtle-pulse path:nth-child(7) {
  animation-delay: 1.8s;
}

.subtle-pulse path:nth-child(8) {
  animation-delay: 2.1s;
}

.subtle-pulse path:nth-child(9) {
  animation-delay: 2.4s;
}

@keyframes subtlePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
/* Method 2: Wave Motion */
.wave-motion path {
  animation: waveMotion 5s ease-in-out infinite;
  transform-origin: center;
}

.wave-motion path:nth-child(odd) {
  animation-direction: alternate;
  animation-delay: 0s;
}

.wave-motion path:nth-child(even) {
  animation-direction: alternate-reverse;
  animation-delay: 1s;
}

@keyframes waveMotion {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  33% {
    transform: scale(1.015) rotate(0.5deg);
  }
  66% {
    transform: scale(0.985) rotate(-0.5deg);
  }
}
/* Method 3: Breathing Effect */
.breathing path {
  animation: breathing 6s ease-in-out infinite;
  transform-origin: center;
}

.breathing path:nth-child(1) {
  animation-delay: 0s;
}

.breathing path:nth-child(2) {
  animation-delay: 0.2s;
}

.breathing path:nth-child(3) {
  animation-delay: 0.4s;
}

.breathing path:nth-child(4) {
  animation-delay: 0.6s;
}

.breathing path:nth-child(5) {
  animation-delay: 0.8s;
}

.breathing path:nth-child(6) {
  animation-delay: 1s;
}

.breathing path:nth-child(7) {
  animation-delay: 1.2s;
}

.breathing path:nth-child(8) {
  animation-delay: 1.4s;
}

.breathing path:nth-child(9) {
  animation-delay: 1.6s;
}

@keyframes breathing {
  0%, 100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.025);
    opacity: 0.3;
  }
}
/* Method 4: Ripple Effect */
.ripple-effect path {
  animation: ripple 8s linear infinite;
  transform-origin: center;
}

.ripple-effect path:nth-child(1) {
  animation-delay: 0s;
}

.ripple-effect path:nth-child(2) {
  animation-delay: 0.5s;
}

.ripple-effect path:nth-child(3) {
  animation-delay: 1s;
}

.ripple-effect path:nth-child(4) {
  animation-delay: 1.5s;
}

.ripple-effect path:nth-child(5) {
  animation-delay: 2s;
}

.ripple-effect path:nth-child(6) {
  animation-delay: 2.5s;
}

.ripple-effect path:nth-child(7) {
  animation-delay: 3s;
}

.ripple-effect path:nth-child(8) {
  animation-delay: 3.5s;
}

.ripple-effect path:nth-child(9) {
  animation-delay: 4s;
}

@keyframes ripple {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1.08);
  }
  75% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
