/* Auth widget styles — login button + user menu. Imported on every page
   that renders an `.auth-slot` element. */

.auth-slot {
  display: inline-flex;
  align-items: center;
}
.auth-login {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.auth-login:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}
@media (max-width: 700px) {
  .auth-login { padding: 6px 10px; font-size: 12px; }
}
/* Dark-bg login button variant for non-green nav (loc pages etc.) */
.auth-slot.dark .auth-login {
  background: #146c43;
  color: #fff;
  border-color: #146c43;
}
.auth-slot.dark .auth-login:hover {
  background: #1a8d59;
  border-color: #1a8d59;
}

.auth-user {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.auth-trigger {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-trigger:hover {
  background: rgba(255,255,255,0.25);
}
.auth-trigger img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.auth-initial {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.auth-menu {
  position: absolute;
  top: 44px;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  padding: 6px;
  z-index: 10000;
}
.auth-menu-name {
  padding: 8px 12px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 4px;
}
.auth-menu a, .auth-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #1f2937;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
}
.auth-menu a:hover, .auth-menu button:hover {
  background: #f3f4f6;
}
.auth-menu .auth-logout {
  color: #b91c1c;
}

/* Favorite button — used on /loc/<slug> pages and other place cards. */
.favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #f5f1e8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.favorite-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
}
.favorite-btn[data-favorited="true"] {
  background: #146c43;
  border-color: #146c43;
  color: #fff;
}
.favorite-btn .fav-heart {
  font-size: 17px;
  line-height: 1;
}
.favorite-btn .fav-heart.fav-on {
  color: #ff5252;
}
.favorite-btn[data-favorited="true"] .fav-heart.fav-on {
  color: #fff;
}

/* Light-bg variant (popups on map, list cards) */
.favorite-btn.light {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #1f2937;
  font-size: 12.5px;
  padding: 6px 10px;
}
.favorite-btn.light:hover {
  background: #f3f4f6;
}
.favorite-btn.light[data-favorited="true"] {
  background: #fff;
  border-color: #ff2d4f;
  color: #ff2d4f;
  box-shadow: 0 1px 6px rgba(255,45,79,0.35);
}
.favorite-btn.light[data-favorited="true"] .fav-heart,
.favorite-btn.light[data-favorited="true"] .fav-heart.fav-on {
  color: #ff2d4f;
}
