/* Shared logged-in app navigation + city selector */

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 35% at 100% 0%, rgba(31, 75, 110, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 30% at 0% 0%, rgba(240, 195, 90, 0.12), transparent 45%),
    linear-gradient(180deg, #e7eef4 0%, var(--paper) 45%, #f8fafc 100%);
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  background: rgba(243, 246, 248, 0.92);
  backdrop-filter: blur(12px);
}

.app-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.app-brand {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.app-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.app-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 0.9rem;
}

.app-nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(16, 24, 32, 0.62);
  text-decoration: none;
  transition: color 0.15s ease;
}

.app-nav-link:hover,
.app-nav-link.is-active {
  color: var(--ink);
}

.app-city-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(16, 24, 32, 0.14);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.app-city-button:hover {
  border-color: var(--steel);
  background: #fff;
}

.app-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(16, 24, 32, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.app-user-chip {
  display: none;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(16, 24, 32, 0.7);
}

/* Hamburger kept as a backup on very narrow screens; primary links stay visible. */
.app-menu-toggle {
  display: none;
}

.app-mobile-panel {
  border-top: 1px solid rgba(16, 24, 32, 0.08);
  background: rgba(243, 246, 248, 0.98);
  padding: 0.75rem 1.25rem 1rem;
}

.app-mobile-panel a,
.app-mobile-signout {
  display: block;
  width: 100%;
  padding: 0.65rem 0;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
}

.app-mobile-role {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(16, 24, 32, 0.55);
}

.city-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1rem 1rem;
  background: rgba(16, 24, 32, 0.45);
}

.city-modal {
  width: 100%;
  max-width: 28rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 24, 32, 0.92);
  color: #fff;
  padding: 1.25rem;
  backdrop-filter: blur(14px);
}

.city-modal h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.city-modal p {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
}

.city-result {
  width: 100%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0.85rem;
  text-align: left;
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.city-result:hover {
  border-color: rgba(240, 195, 90, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.city-result + .city-result {
  margin-top: 0.5rem;
}

@media (max-width: 700px) {
  .app-nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .app-nav-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .app-nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (min-width: 960px) {
  .app-user-chip {
    display: inline-block;
  }
}
