/* ========================================
   CITY FINDER – BOTTOM NAVBAR
   Inspired by the Affitto app design
   ======================================== */

/* Push page content above the navbar */
body {
  padding-bottom: 72px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 251, 249, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(46,125,50, 0.1);
  box-shadow: 0 -4px 24px rgba(46,125,50, 0.08);
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 520px;
  margin-inline: auto;
  height: 62px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  text-decoration: none;
  color: #6a8f6b;
  font-size: 0.65rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform 0.2s, stroke 0.2s;
}

.nav-item span {
  transition: color 0.2s;
}

.nav-item:hover {
  color: #2e7d32;
}

.nav-item:hover svg {
  transform: translateY(-2px);
}

/* Active state */
.nav-item.active {
  color: #2e7d32;
}

.nav-item.active svg {
  stroke: #2e7d32;
}

/* Active indicator dot */
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  background: #2e7d32;
  border-radius: 50%;
}

/* Centre CREATE button — pill style like the Affitto brand button */
.nav-item.nav-create {
  flex: 1.2;
}

.nav-create-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #2e7d32, #388e3c);
  color: white !important;
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 16px rgba(46,125,50, 0.35);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-create-pill svg {
  width: 16px;
  height: 16px;
  stroke: white;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.nav-create-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,50, 0.45);
}

.nav-create-pill:active {
  transform: scale(0.97);
}

/* Nav badge (for notifications, future use) */
.nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 16px);
  background: #2e7d32;
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  min-width: 14px;
  text-align: center;
  line-height: 1.4;
}

/* Avatar in nav (profile) */
.nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.nav-item:hover .nav-avatar {
  transform: translateY(-2px);
}

.nav-item.active .nav-avatar {
  box-shadow: 0 0 0 2px #2e7d32;
}
