@font-face {
  font-family: safety;
  src: url("/fonts/safety.otf");
}

@font-face {
  font-family: cause;
  src: url("/fonts/cause.ttf");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1;
  font-family: safety;
}

body {
  background: linear-gradient(to bottom, hsla(0, 100%, 98%, 1), hsla(0, 100%, 99%, 1));
  padding: 1rem;
  color: hsla(0, 0%, 15%, 1);
  scroll-behavior: smooth;
}

header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  background: linear-gradient(135deg, hsla(150, 60%, 50%, 1), hsla(200, 100%, 70%, 1));
  color: hsla(0, 0%, 98%, 1);
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
}

.name {
  font-weight: bolder;
  text-align: center;
  margin-left: 0.5rem;
}

.name-safe {
  font-family: safety;
  font-size: 2rem;
}

.name-bites {
  font-family: cause;
  font-size: 2.25rem;
}

.moto {
  font-size: 0.75rem;
  opacity: 0.75;
  text-align: center;
  margin-left: 0.5rem;
  margin-top: -0.25rem;
}

.moto-your,.moto-our {
  font-family: cause;
  font-size: 0.85rem;
}

.moto-safety,.moto-priority {
  font-family: safety;
  font-size: 0.65rem;
}

.icons {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  padding-top: 0.75rem;
}

.icons button {
  background: transparent;
  border: none;
  display: flex;
}

#favs svg,#sets svg {
  height: 1.5rem;
}

#favs svg {
  fill: hsla(0, 60%, 55%, 0.85);
}

#sets svg {
  fill: hsla(0, 0%, 30%, 0.85);
}

#ser {
  background: transparent;
  border: none;
  display: flex;
  padding-left: 0.6rem;
}

#ser svg {
  height: 1.25rem;
}

#ser-lens {
  stroke: hsla(0, 0%, 30%, 0.9);
  fill: hsla(200, 5%, 30%, 0.5);
}

#ser-handle {
  stroke: hsla(0, 0%, 30%, 0.9);
}

.search-box {
  background: #FAFAFA;
  border-radius: 1.5rem;
  display: flex;
  flex: 1;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.search-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.search-box:focus-within {
  border-color: #2dbf73;
  box-shadow: 0 0 0 4px rgba(45, 191, 115, 0.15);
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  background: transparent;
  color: #222;
  padding: 0.6rem 0 0.6rem 0.6rem;
  font-family: cause;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
}

.search-box input::placeholder {
  color: hsla(200, 5%, 30%, 0.5);
  font-weight: bold;
}

.content {
  padding: 1rem;
  padding-bottom: 100px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.map-title,.top-places-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.25rem;
  text-align: center;
  color: hsla(200, 5%, 30%, 0.75);
}

#map-title-hygiene,#top-places-title-places {
  font-family: cause;
  font-size: 1.5rem;
  font-weight: bold;
}

#map {
  background: #F5F5F5;
  border-radius: 1.5rem;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

#map,#map * {
  font-family: cause;
  font-weight: bolder;
  color: hsla(200, 5%, 30%, 0.9);
}

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.Excellent {
  background: hsla(120, 60%, 50%, 0.85);
}

.Good {
  background: hsla(50, 100%, 60%, 0.85);
}

.Average {
  background: hsla(28, 100%, 63%, 0.85);
}

.legends {
  background: hsla(0, 0%, 100%, 0.25);
  backdrop-filter: blur(0.1rem);
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  font-size: 0.6rem;
  z-index: 9999;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.legend {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.place-card {
  background: #FAFAFA;
  border-radius: 1.5rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  align-items: flex-start;
  transition: all 0.3s ease;
}

.card-image {
  width: 100%;
  aspect-ratio: 2.39 / 1;
  border-radius: 1rem;
  overflow: hidden;
  background: #eee;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-data {
  width: 100%;
}

.card-name {
  display: flex;
  justify-content: space-between;
  width: 100%;
  text-align: center;
  align-items: center;
  padding: 0.5rem;
}

.place-card:hover {
  transform: scale(1.01);
  transform: translateY(-1.5%);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.place-card h4 {
  font-size: 1rem;
  color: hsla(200, 5%, 30%, 0.85);
  text-align: center;
  white-space: nowrap;
}

.place-card p {
  font-size: 0.75rem;
  color: #777777bb;
  margin-bottom: 6px;
  text-align: left;
  padding: 0.5rem;
  line-height: 1rem;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bolder;
  color: white;
  text-align: center;
  font-family: cause;
}

.bottom-nav {
  z-index: 9999;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  background: #FAFAFA;
  border-top: 1px solid #ddd;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.08);
  border-radius: 20px 20px 0 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
  margin: 0.5rem;
  height: 1rem;
}

.nav-item {
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #494c4edd;
  cursor: pointer;
  transition: 0.3s;
}

.nav-item.active,.nav-item:hover {
  color: #2dbf73;
  font-weight: bold;
  transform: scale(1.1);
}