/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.submit-progress-button {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1));
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 0% 100%;
}

.submit-progress-button--loading {
  cursor: wait !important;
  pointer-events: none;
  animation: submit-progress-fill 1.45s ease-in-out infinite;
}

@keyframes submit-progress-fill {
  0% {
    background-size: 0% 100%;
  }

  70% {
    background-size: 100% 100%;
  }

  100% {
    background-size: 100% 100%;
  }
}

.onboarding-progress-track {
  display: grid;
  grid-template-columns: repeat(var(--onboarding-progress-steps, 3), minmax(0, 1fr));
  gap: 0.25rem;
}

.onboarding-progress-segment {
  display: block;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
}

.onboarding-progress-segment--done {
  background-color: #10b981;
}

.onboarding-drawer-panel {
  bottom: 0;
  height: 100vh;
  min-height: 100vh;
}

@supports (height: 100dvh) {
  .onboarding-drawer-panel {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.social-like-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  transform-origin: center;
}

.social-like-icon--liked {
  fill: currentColor;
  stroke: currentColor;
}

.social-like-icon--pop {
  animation: social-like-pop 180ms ease-out;
}

.social-like-count--bump {
  animation: social-like-count-bump 220ms ease-out;
}

@keyframes social-like-pop {
  0% {
    transform: scale(0.86);
  }

  70% {
    transform: scale(1.16);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes social-like-count-bump {
  0% {
    opacity: 0.65;
    transform: translateY(0.35rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.leaflet-container {
  background: #f1f5f9 !important;
  border: 0 !important;
}

.leaflet-bar {
  border: none !important;
  border-radius: 1rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden;
}

.custom-div-icon {
  background: transparent !important;
  border: 0 !important;
}

.custom-marker {
  align-items: center;
  background-color: #ef4444;
  border: 3px solid white;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
  display: flex;
  height: 45px !important;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transform: rotate(-45deg);
  width: 45px !important;
}

.custom-marker img {
  background: white;
  border-radius: 0;
  display: block;
  flex-shrink: 0;
  height: 100%;
  object-fit: cover;
  transform: none;
  width: 100%;
}

.marker-avatar {
  background: white;
  border-radius: 9999px;
  height: 30px;
  overflow: hidden;
  transform: rotate(45deg) translateY(-1px);
  width: 30px;
}

.marker-guardian {
  background-color: #10b981 !important;
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.marker-current-user,
.marker-pet-detail {
  background-color: #7c3aed !important;
  border-color: white !important;
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.34);
}

.marker-lost {
  animation: lost-marker-pulse 1.6s ease-out infinite;
  border-color: #fecaca;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.38), 0 0 0 0 rgba(239, 68, 68, 0.34);
}

.marker-sighting {
  background-color: #f59e0b !important;
  border-color: #fef3c7 !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.34);
}

@keyframes lost-marker-pulse {
  0% {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.38), 0 0 0 0 rgba(239, 68, 68, 0.34);
  }

  70% {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.24), 0 0 0 13px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.38), 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.marker-social-post {
  background-color: #7c3aed !important;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
}

.marker-avatar--icon {
  align-items: center;
  color: #7c3aed;
  display: flex;
  justify-content: center;
}
