body {
  margin: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top left, #E8F1FF 0, #ffffff 45%, #faf5ff 100%);
  color: #ffffff;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top left, #E8F1FF 0, #ffffff 45%, #faf5ff 100%);
  color: #ffffff;
  overflow-x: hidden; /* 🔒 prevent stray horizontal scroll */
}

/* ───── NAVBAR ───── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 2000;
  height: 72px;
  padding: 0 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
  grid-column: 2;
}

.nav-logo {
  width: 160px;
  height: auto;
  grid-column: 1;
  justify-self: start;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 3;
  justify-self: end;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: #000e33;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 18px;
  background: transparent;
}


.nav-item:hover i {
  transform: translateY(1px);
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0066ff, #c27aff);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: left center;
  transition: opacity 0.22s ease, transform 0.25s ease;
}

.nav-item:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease, background 0.2s ease;
}
.icon-btn:hover {
  color: #000e33;
  background: rgba(0, 0, 0, 0.04);
}
.create-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  box-shadow: none;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.create-btn:hover {
  box-shadow: 0 6px 22px rgba(0, 102, 255, 0.38);
  transform: translateY(-1px);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.avatar:hover {
  transform: scale(1.03);
  box-shadow: none;
}


.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.menu-toggle {
  display: none;
}

a {
  text-decoration: none;
  color: white;
}
.hamburger {
  color: #000e33;
  font-size: 22px;
  cursor: pointer;
  display: none;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 16px 24px 24px;
  gap: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.menu-toggle:checked ~ .mobile-menu {
  display: flex;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #ffffff;
  border-radius: 14px;
  padding: 6px;
  min-width: 190px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #000e33 !important;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown a:hover {
  background: rgba(75, 91, 213, 0.08);
  color: #4b5bd5 !important;
}
.empty-state p {
  font-size: 0.95rem;
  color: #999;

  margin: 0 0 20px 0;
  max-width: 400px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
    background-color: #ffffff;

  min-height: 300px;
}

.explore-btn {
  border: none;
  border-radius: 20px;
  padding: 11px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
}


.explore-btn:active {
  transform: translateY(0);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;  /* ensures perfect circle */
  object-fit: cover;   /* no stretching, no squashing */
  display: block;
}


@media (max-width: 1100px) {
  .navbar {
    padding: 0 32px;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-logo {
    width: 180px;
  }

  .nav-left {
    gap: 20px;
  }
}



@media (max-width: 768px) {
  /* ───── GLOBAL OVERFLOW FIX ───── */
  * {
    max-width: 100vw;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .nav-logo {
    width: 170px;
  }

  .nav-left {
    display: none;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-right .create-btn {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* Mobile menu link styling */
  .mobile-menu {
    z-index: 9999;
  }

  .mobile-menu a {
    color: #000e33 !important;
    text-decoration: none;
  }

  .mobile-menu .nav-item {
    color: #000e33  ;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
  }

  .mobile-menu .create-btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }


}


@media (max-width: 900px) {
  .navbar {
    padding: 0 24px;
  }

  .nav-logo {
    width: 180px;
  }

  .nav-left {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
  }

   .mobile-menu .nav-item {
    color: #000e33  ;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
  }

  .controls-right .create-btn {
    font-size: 12px;
    width: 50%;
    white-space: nowrap;
  }
  .nav-logo {
    width: 170px;
  }

  .nav-left {
    display: none;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-right .create-btn {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

a {
  text-decoration: none;
}

.avatar:hover,
.create-btn:hover,
.notification-bell:hover,
.submit-btn:hover {
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.6),
              0 0 6px rgba(0, 102, 255, 0.6);
  transition: 0.3s ease-in-out;
  cursor: pointer;
}


/* hamburger toggle base */
.menu-toggle {
  display: none;
}

.hamburger {
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: none; /* shown in mobile breakpoint */
}
a {
  text-decoration: none;
  color: white;
}
.hamburger {
  color: #000e33;
  font-size: 22px;
  cursor: pointer;
  display: none;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 16px 24px 24px;
  gap: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.menu-toggle:checked ~ .mobile-menu {
  display: flex;
}

/* DROPDOWN MENU (DESKTOP) */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #000e33;
  border-radius: 12px;
  padding: 10px 0;
  min-width: 200px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.dropdown a {
  display: block;
  padding: 8px 18px;
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown a:hover {
  background: linear-gradient(135deg, #0066ff, #c27aff);
}

/* ───── NAVBAR RESPONSIVE BREAKPOINTS ───── */

/* slightly shrink padding on medium screens */
@media (max-width: 1100px) {
  .navbar {
    padding: 0 32px;
  }
}

/* tablet / large mobile */
@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-logo {
    width: 180px; /* scale logo down a bit */
  }

  .nav-left {
    gap: 20px;
  }
}

/* mobile layout: switch to flex, hide desktop nav items, show hamburger */
@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
  }

  .nav-logo {
    width: 170px;
  }

  .nav-left {
    /* hide center nav row; we’ll use .mobile-menu instead */
    display: none;
  }

  .nav-right {
    gap: 10px;
  }

  /* hide big create button on very small screens */
  .nav-right .create-btn {
    display: none;
  }

  /* show hamburger */
  .hamburger {
    display: block;
  }
}

a {
    text-decoration: none;
}



.avatar:hover,
.create-btn:hover,
.notification-bell:hover,
.rec-create-btn:hover,
.explore-btn:hover,
.circles-create-btn:hover,
.attach-link-small:hover,
.edit-avatar-btn:hover,
.save-btn:hover,
.sendButton:hover,
.primary-btn:hover,
.rr-btn-primary:hover,
.explore-btn:hover,
.share-profile-btn-corner:hover,
.rec-card-save-btn:hover,
.rec-detail-save-btn:hover
{
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.6),
              0 0 6px rgba(0, 102, 255, 0.6);
              transition: 0.3s ease-in-out;
              cursor: pointer;
}


/* Fix for My Collections sort dropdown positioning and sizing */
#my-collections-content .sort-dropdown {
  position: absolute;
  top: calc(40%); /* Adjust this value to move it up/down */
  right: 0;
  min-width: 200px; /* Reduce if it's too wide */
  max-width: 200px; /* Add max-width to prevent it getting too large */
  z-index: 100;
}

#my-collections-content .sort-option {
  padding: 10px 16px; /* Reduce padding if buttons are too large */
  font-size: 14px; /* Reduce font size if needed */
}
/* ───── NOTIFICATIONS IN NAVBAR ───── */

.notification-container {
  position: relative;
  display: flex;
  align-items: center;
    z-index: 2000001 !important; /* above nav dropdowns */

}

.notification-bell {
  position: relative;
}


.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  display: none;
  box-shadow: 0 0 0 2px #ffffff;;
}


.notification-modal {
  position: absolute;
  top: 52px;
  right: 0;
  width: 320px;
  max-height: 420px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%) !important;
  border-radius: 16px;
  color: #000e33;
  padding: 12px 0;
  border: 1px solid rgba(0, 14, 51, 0.06) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,0.5);
  overflow-y: auto;
  z-index: 2000001 !important;
}
.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 8px;
  border-bottom: 1px solid rgba(0, 14, 51, 0.08);

}
.notification-header h4 {
   font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.notif-close {
  background: none;
  border: none;
  color: #000e33;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

/* list + entries */

.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
    z-index: 2000001 !important; /* above nav dropdowns */

}
.notification-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
    border-bottom: 1px solid rgba(0, 14, 51, 0.06);
  z-index: 2000001 !important;
}


.notification-entry.unread {
  background: rgba(0, 102, 255, 0.06);
}
.notification-empty {
  padding: 12px 16px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* avatar */

.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 2px; /* gradient ring thickness */

  /* RoamRecs gradient ring */
  background: linear-gradient(135deg, #0066ff, #c27aff);

  flex-shrink: 0;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}


.notification-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.notification-avatar.monogram {
  border: 1px solid transparent;

  background:
    linear-gradient(135deg, #eef4ff 0%, #f5efff 55%, #f8f3ff 100%) padding-box,
    linear-gradient(135deg, #0066ff 0%, #c27aff 100%) border-box;

  color: #000e33;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.notification-avatar.monogram::after {
  content: attr(data-initials);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  border-radius: 50%;

  background:
    radial-gradient(circle at top left, rgba(0,102,255,0.22), transparent 45%),
    radial-gradient(circle at top right, rgba(194,122,255,0.28), transparent 45%),
    linear-gradient(135deg, #eef4ff 0%, #f5efff 55%, #f8f3ff 100%);

  color: #000e33;
}


/* text area */

.notification-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.notif-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.notif-name {
  font-weight: 600;
  color: #000e33;
  text-decoration: none;
}

.notif-name:hover {
  text-decoration: underline;
}

.trip-link {
  color: #4b5bd5;
  text-decoration: none;
}

.trip-link:hover {
  text-decoration: underline;
}

.comment-timestamp {
  font-size: 0.75rem;
  opacity: 0.65;
}

/* invite buttons */

.invite-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.invite-actions button {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}

.invite-actions button:first-child {
  background: #4b5bd5;
  color: #ffffff;
}

.invite-actions button:last-child {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
}

.invite-status {
  margin-top: 4px;
  font-size: 0.78rem;
  opacity: 0.8;
}

/* make dropdown nicer on mobile */
@media (max-width: 768px) {
  .notification-modal {
    right: 50%;
    transform: translateX(50%);
    width: min(360px, calc(100vw - 32px));
      z-index: 2000001 !important; /* above nav dropdowns */

  }
}

/* Gradient fallback avatar */
.gradient-avatar {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rr-footer {
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  color: #000e33;
  padding: 64px 24px 40px;
  border-top: 1px solid rgba(0, 14, 51, 0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
/* subtle hero-like glow */
.rr-footer::before{
  content:"";
  position:absolute;
  inset:-40%;
  pointer-events:none;
  background:
    radial-gradient(900px 420px at 18% 10%, rgba(0,102,255,0.18), transparent 60%),
    radial-gradient(900px 520px at 85% 25%, rgba(194,122,255,0.16), transparent 62%);
  filter: blur(40px);
  opacity: 0.8;
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Logo + tagline */
.footer-logo-wrapper{
  text-align: left;
  margin-bottom: 26px;
}

.footer-logo{
  height: 100px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}

.footer-tagline{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 14, 51, 0.65);
}

/* Columns */
.footer-columns{
  display: flex;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.footer-col{
  min-width: 160px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 14, 51, 0.5);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: #000e33;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #4b5bd5;
}

/* Divider */
.footer-divider {
  margin: 36px 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 14, 51, 0.08),
    transparent
  );
}


.footer-app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}


.footer-badges img {
  height: 40px;
  margin-right: 10px;
  opacity: 0.9;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.footer-badges img:hover {
  transform: translateY(-2px);
  opacity: 1;
}

/* App badges row + CTA */
.footer-app-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}


.footer-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;

  background: linear-gradient(90deg, #0066ff, #c27aff);
  box-shadow: 0 16px 40px rgba(75,91,213,0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}

.footer-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(75,91,213,0.34);
}

/* Bottom row */
.footer-bottom {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 20px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.footer-legal {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(0, 14, 51, 0.5);
  line-height: 1.4;
}


.footer-legal-subtle {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(0, 14, 51, 0.42);
  text-align: center;
}


.footer-socials {
  display: flex;
  gap: 12px;
  justify-self: end;
}

@media (max-width: 900px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
  }

  .footer-legal-subtle {
    text-align: left;
  }

  .footer-socials {
    justify-self: start;
  }
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 14, 51, 0.05);
  color: #000e33;
  transition: all 0.18s ease;
}

.footer-socials a:hover {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #fff;
}

.rr-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: radial-gradient(
    circle at top,
    rgba(194, 122, 255, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

.footer-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-heart i {
  font-size: 0.85rem;

  /* gradient heart */
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* fallback for non-webkit */
  color: #c27aff;
}

.footer-heart i {
  transition: transform 0.2s ease;
}

.footer-made:hover .footer-heart i {
  transform: scale(1.15);
}



.footer-made {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(0, 14, 51, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* gradient heart */
.footer-heart i {
  font-size: 0.85rem;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c27aff;
  transition: transform 0.2s ease;
}

/* subtle hover = feels alive */
.footer-made:hover .footer-heart i {
  transform: scale(1.15);
}

/* NYC link styling */
.footer-city-link {
  color: #000e33;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

/* subtle underline on hover */
.footer-city-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.footer-city-link:hover::after {
  transform: scaleX(1);
}

.footer-legal-subtle {
  font-size: 0.72rem;
  opacity: 0.6;
  margin-top: 4px;
}

.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-legal,
.footer-legal-subtle {
  margin: 0;
}

.footer-legal-subtle {
  font-size: 0.72rem;
  opacity: 0.6;
}

.profile-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #ffffff;
  padding-top: 60px;
  padding-bottom: 40px;
  color: #000e33;
  position: relative; /* For absolute positioning of button */
}

.profile-header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 0 48px; /* Add padding if not already there */
}

.edit-profile-btn-corner {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 14, 51, 0.2);
  background: transparent;
  color: #000e33;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s ease;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.share-profile-btn-corner {
  padding: 8px 14px;
  border-radius: 20px;

  /* gradient border */
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #0066ff, #c27aff) border-box;
  border: 1px solid transparent;

  color: #4b5bd5;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 600;
}


.edit-profile-btn-corner:hover {
  background: rgba(0, 14, 51, 0.05);
  border-color: rgba(0, 14, 51, 0.4);
}

.profile-actions-corner {
  position: absolute;
  top: 20px;
  right: 60px;
  display: flex;
  gap: 10px;
  z-index: 10;
}


/* Large Profile Avatar */
.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.edit-avatar-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
}



/* Profile Info Section */
.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-name-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-name {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
    color: #000e33;
  background-clip: text;
}

.edit-profile-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 10px 20px;
  background: transparent;
  color: #000e33;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s ease;
}

.edit-profile-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Editable field styling */
.profile-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  opacity: 0.85;
  color: #4b5bd5;
  position: relative;
}


.profile-header {
  position: relative;
}
.profile-actions-corner {
  position: absolute;
  top: -12px;          /* pull above avatar */
  right: 24px;
  display: flex;
  gap: 10px;
  z-index: 10;
}
@media (max-width: 900px) {
  .profile-actions-corner {
    flex-direction: column;
    align-items: flex-end;
    top: 12px;
    right: 16px;
    gap: 8px;
  }
}


.editable-field {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: 0.2s ease;
}

.editable-field:hover {
  background: rgba(255, 255, 255, 0.05);
}

.editable-field.empty {
  opacity: 0.5;
  font-style: italic;
}

.edit-field-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: 0.2s ease;
  font-size: 0.75rem;
}

.edit-field-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.edit-container {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edit-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #000e33;
  font-size: 0.95rem;
  font-family: inherit;
}

.edit-input:focus {
  outline: none;
  border-color: #4b5bd5;
  background: rgba(255, 255, 255, 0.08);
}

.edit-actions {
  display: flex;
  gap: 10px;
}

.save-btn,
.cancel-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s ease;
}

.save-btn {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: white;
}


#addToSelectedBtn{
  margin-bottom: 10px;
}
.cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.profile-bio {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

/* Stats Row */
.profile-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-item.clickable {
  cursor: pointer;
  transition: 0.2s ease;
}


.stat-item.clickable:hover .stat-number {
  color: #c27aff;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: 0.2s ease;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.75;
  text-transform: uppercase;
  color: #000e33;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════════════════
   PROFILE TABS NAVIGATION
   ═══════════════════════════════════════════════════════ */
.profile-tabs-section {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 14, 51, 0.2);
  position: sticky;
  top: 100px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-tabs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.profile-tabs {
  display: flex;
  justify-content: center;
  gap: 48px; /* Increased from 8px to 32px */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tab {
  border: none;
  background: transparent;
  color: #000e33;
  padding: 18px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  white-space: nowrap;
  transition: 0.3s ease;
}

.profile-tab i {
  font-size: 1rem;
}

.profile-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0066ff, #c27aff);
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: 0.3s ease;
}

.profile-tab:hover {
  color: rgba(0, 14, 51, 0.9);
}

.profile-tab.active {
  color: transparent; /* Make text transparent so gradient shows */
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600; /* Make it slightly bolder */
}

.profile-tab.active::after {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   PROFILE CONTENT AREA
   ═══════════════════════════════════════════════════════ */

.profile-content {
  padding: 60px 48px 100px;
  min-height: 60vh;
  background-color: #ffffff;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
    background-color: #ffffff;

}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  position: relative;
  flex-wrap: wrap;
  gap: 16px;
  overflow: visible; /* Allow dropdowns to extend beyond */
}

.content-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px; /* Adjust width as needed */
  height: 3px;
  background: linear-gradient(90deg, #0066ff, #c27aff);
  border-radius: 2px;
}

.content-header h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: #000e33;
  background-clip: text;
}
.content-actions {
  display: flex;
  gap: 12px;
  overflow: visible; /* Allow dropdowns to extend beyond */
}

.filter-btn,
.sort-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 10px 20px;
  background: transparent;
  color: #000e33;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s ease;
}

.filter-btn:hover,
.sort-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════
   REC CARDS GRID
   ═══════════════════════════════════════════════════════ */

.recs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.rec-card,
.collection-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  color: #000e33;
  overflow: hidden;
  border: none;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255,255,255,0.06);

  transition: 0.3s ease;
  cursor: pointer;
}

.rec-card:hover,
.collection-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(194, 122, 255, 0.35);
}


.rec-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
  display: flex;
  justify-content: flex-end; /* Changed from space-between */
  align-items: flex-start;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Make parent card relative for absolute overlay positioning */
.rec-card-image {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: visible; /* Changed from hidden to allow dropdown overflow */
  background: rgba(0, 0, 0, 0.2);
}

/* Buttons container - this is what needs to be relative for dropdown */
.rec-card-actions,
.collection-card-actions {
  position: relative;
  display: flex;
  gap: 8px;
}
.rec-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-card:hover .rec-card-overlay {
  opacity: 1;
}

.rec-card-action,
.collection-card-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.rec-card-action:hover,
.collection-card-action:hover {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  transform: scale(1.1);
}

/* Rec Options Dropdown */
.rec-options-dropdown,
.collection-options-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 14, 51, 0.15);
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.rec-options-dropdown.active,
.collection-options-dropdown.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.rec-options-dropdown-item,
.collection-options-dropdown-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.9rem;
  color: #000e33;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.rec-options-dropdown-item:first-child,
.collection-options-dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}

.rec-options-dropdown-item:last-child,
.collection-options-dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.rec-options-dropdown-item:hover,
.collection-options-dropdown-item:hover {
  background: rgba(0, 102, 255, 0.08);
}

.rec-options-dropdown-item.delete:hover,
.collection-options-dropdown-item.delete:hover{
  background: rgba(255, 59, 48, 0.08);
  color: #ff3b30;
}

.rec-options-dropdown-item i,
.collection-options-dropdown-item i {
  width: 16px;
  text-align: center;
}


.rec-card:hover .rec-card-overlay {
  opacity: 1;
}

.rec-card-content {
  padding: 16px;
}

.rec-card-title,
.collection-card-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.rec-card-location,
.collection-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 12px;
  color: #4b5bd5;
}

.rec-card-stats {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  opacity: 0.75;
}

.collection-card-stats {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

.collection-card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.collection-card-stats-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.75; /* 👈 ONLY stats fade */
}

/* Button stays fully opaque */
.collection-card-save-btn {
  margin-left: auto;
  opacity: 1;
}

.rec-card-stats span,
.collection-card-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════════════════════
   COLLECTION CARDS GRID
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   LIKED SUB-TABS
   ═══════════════════════════════════════════════════════ */

.liked-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;

}

.liked-sub-tab {
  border: none;
  background: transparent;
  color: #000e33;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: 0.3s ease;
}

.liked-sub-tab::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0066ff, #c27aff);
  opacity: 0;
  transition: 0.3s ease;
}



.liked-sub-tab.active {
  color: #000e33;
}

.liked-sub-tab.active::after {
  opacity: 1;
}

.liked-sub-content {
  display: none;
}

.liked-sub-content.active {
  display: block;
}

/* ═══════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════ */

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  opacity: 0.8;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.4;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.empty-state h3 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #000e33;
}

.empty-state p {
  margin: 0 0 28px;
  font-size: 1.05rem;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════
   FOOTER (Same as your existing)
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .navbar {
    padding: 0 32px;
  }

  .profile-hero,
  .profile-tabs-container,
  .profile-content {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-logo {
    width: 180px;
  }

  .nav-left {
    gap: 20px;
  }

  .profile-hero {
    padding: 40px 20px 30px;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-info {
    align-items: center;
  }

  .profile-follow-section {
    justify-content: center;
  }

  .social-handles {
    justify-content: center;
    gap: 10px;
  }

  .social-link {
    font-size: 0.82rem;
    padding: 7px 13px;
  }

  .profile-avatar {
    width: 150px;
    height: 150px;
  }

  .profile-name {
    font-size: 2rem;
  }

  .profile-name-row {
    justify-content: center;
  }

  .profile-bio {
    max-width: 100%;
  }

  .profile-stats {
    justify-content: center;
  }
  .profile-location {
    justify-content: center;
    text-align: center;
  }
  .profile-tabs-container,
  .profile-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
  }

  .nav-logo {
    width: 170px;
  }

  .nav-left {
    display: none;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-right .create-btn {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .profile-hero {
    padding: 30px 16px 20px;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
  }

  .profile-name {
    font-size: 1.6rem;
  }

  .profile-stats {
    gap: 16px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-divider {
    height: 30px;
  }

  .profile-tabs-container {
    padding: 0 16px;
  }

  .profile-tab {
    padding: 14px 16px;
    font-size: 0.85rem;
  }

  .profile-content {
    padding: 40px 16px 80px;
  }

  .content-header h2 {
    font-size: 1.5rem;
  }

  .recs-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .collections-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .empty-state {
    padding: 60px 20px;
  }

  .empty-state i {
    font-size: 3rem;
  }

  .empty-state h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .profile-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .stat-item {
    flex: 0 0 calc(33.333% - 8px);
  }

  .stat-divider {
    display: none;
  }

  .recs-grid {
    grid-template-columns: 1fr;
  }
}

.nav-monogram {
  width: 90%;
  height: 90%;
  border-radius: 50%;
background:
  radial-gradient(circle at top left, rgba(0,102,255,0.22), transparent 45%),
  radial-gradient(circle at top right, rgba(194,122,255,0.28), transparent 45%),
  linear-gradient(135deg, #eef4ff 0%, #f5efff 55%, #f8f3ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 600;
  font-size: 0.85rem;
  color: #000e33;

  border: 1px solid rgba(194,122,255,0.14);
}

.rr-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;

  /* 🔑 FIX */
  z-index: 100000;
}


.rr-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Google Places Autocomplete Dropdown Styling */
.pac-container {
  background: rgba(2, 8, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin-top: 4px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.pac-item {
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
}

.pac-item:first-child {
  border-top: none;
}

.pac-item:hover {
  background: rgba(194, 122, 255, 0.15);
}

.pac-item-selected {
  background: rgba(0, 102, 255, 0.15);
}

.pac-icon {
  display: none; /* Hide the default Google pin icon */
}

.pac-item-query {
  color: #ffffff;
  font-size: 0.95rem;
}

.pac-matched {
  font-weight: 600;
  color: #4b5bd5;
}

/* Edit container styling */
.edit-container {
  margin-top: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Name inputs side by side */
.name-inputs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.name-inputs .edit-input {
  flex: 1;
  min-width: 200px;
}

/* Input styling */
.edit-input {
  width: 100%;
  max-width: 500px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 14, 51, 0.25);
  background: rgba(0, 14, 51, 0.02);
  color: #000e33;
  font-size: 0.95rem;
  font-family: inherit;
  transition: 0.3s ease;
}

.edit-input:focus {
  outline: none;
  border-color: transparent;
  background: rgba(0, 14, 51, 0.04);
  box-shadow:
    0 0 0 2px #0066ff,
    0 0 0 3px #c27aff,
    0 0 16px rgba(194, 122, 255, 0.3);
}

.edit-input::placeholder {
  color: rgba(0, 14, 51, 0.4);
}

/* Textarea for bio */
.edit-textarea {
  width: 100%;
  max-width: 600px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 14, 51, 0.25);
  background: rgba(0, 14, 51, 0.02);
  color: #000e33;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  transition: 0.3s ease;
  line-height: 1.6;
}

.edit-textarea:focus {
  outline: none;
  border-color: transparent;
  background: rgba(0, 14, 51, 0.04);
  box-shadow:
    0 0 0 2px #0066ff,
    0 0 0 3px #c27aff,
    0 0 16px rgba(194, 122, 255, 0.3);
}

.edit-textarea::placeholder {
  color: rgba(0, 14, 51, 0.4);
}

/* Action buttons */
.edit-actions {
  display: flex;
  gap: 10px;
}

.save-btn,
.cancel-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s ease;
}

.save-btn {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: white;
}



.save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cancel-btn {
  background: transparent;
  border: 1px solid rgba(0, 14, 51, 0.3);
  color: #000e33;
}

.cancel-btn:hover {
  background: rgba(0, 14, 51, 0.05);
}

/* Make bio clickable */
.profile-bio {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
  max-width: 1200px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.2s ease;
}



.profile-bio.empty {
  opacity: 0.5;
  font-style: italic;
}

/* Make name clickable */
.profile-name {
  cursor: pointer;
  border-radius: 8px;
  transition: 0.2s ease;
}



/* Profile dropdown container */
.profile-container {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-container .avatar {
  cursor: pointer;
}

/* Profile dropdown menu */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px); /* Reduced gap from 12px to 8px */
  right: 0;
  background: #000e33;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 180px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(-10px);
  z-index: 1100;
}

/* Add invisible bridge between avatar and dropdown */
.profile-dropdown::before {
  content: '';
  position: absolute;
  top: -12px; /* Covers the gap */
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.profile-container:hover .profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px; /* Increased from 10px to 12px for easier clicking */
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.profile-dropdown a i {
  width: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.profile-dropdown a:hover {
  background: linear-gradient(135deg, #0066ff, #c27aff);
}

/* ═══════════════════════════════════════════════════════
   USER MODAL (Followers/Following/Groups)
   ═══════════════════════════════════════════════════════ */

.user-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.user-modal-content {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(0, 14, 51, 0.08);
  display: flex;
  justify-content: center; /* Changed from space-between */
  align-items: center;
  position: relative; /* For absolute positioning of close button */
}

.user-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000e33;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

/* Modern modal close button */
.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.close-icon {
  font-size: 22px;
  line-height: 1;
  color: #1a1a1a;
  opacity: 0.7;
}
#shareModalContent {
  position: relative;
}



.modal-close {
  position: absolute; /* Position it absolutely */
  right: 28px; /* Align to the right */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 14, 51, 0.15);
  background: transparent;
  color: #000e33;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: 0.2s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
}
.user-modal-body {
  padding: 16px 28px 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-list {
  max-width: 480px;   /* try 480–520px */
  margin: 0 auto 14px;
}


.modal-loading {
  text-align: center;
  padding: 40px 20px;
  color: #000e33;
  opacity: 0.6;
}

.modal-empty {
  text-align: center;
  padding: 40px 20px;
  color: #000e33;
  opacity: 0.6;
}

.modal-empty i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* User Item in Modal */
.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: 0.2s ease;
  cursor: pointer;
  margin-bottom: 8px;
}

.user-item:hover {
  background: rgba(0, 14, 51, 0.03);
}

.user-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-item-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-item-avatar .monogram {
  width: 95%;
  height: 95%;
  border-radius: 50%;

  background:
    radial-gradient(circle at top left, rgba(0,102,255,0.22), transparent 45%),
    radial-gradient(circle at top right, rgba(194,122,255,0.28), transparent 45%),
    linear-gradient(135deg, #eef4ff 0%, #f5efff 55%, #f8f3ff 100%);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 600;
  font-size: 1rem;
  color: #000e33;

  border: 1px solid rgba(194,122,255,0.14);
  overflow: hidden;
}

.user-item-info {
  flex: 1;
  min-width: 0;
}

.user-item-name {
  font-weight: 600;
  font-size: 1rem;
  color: #000e33;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-item-location {
  font-size: 0.85rem;
  color: #4b5bd5;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-item-action {
  flex-shrink: 0;
}

.follow-btn,
.unfollow-btn,
.view-group-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.follow-btn {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: white;
}

.follow-btn:hover {
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.6);
  transform: translateY(-2px);
}

.unfollow-btn {
  background: transparent;
  border: 1px solid rgba(0, 14, 51, 0.3);
  color: #000e33;
}

.unfollow-btn:hover {
  background: rgba(0, 14, 51, 0.05);
}

.view-group-btn {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: white;
}

.view-group-btn:hover {
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.6);
  transform: translateY(-2px);
}

/* Group Item in Modal */
.group-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: 0.2s ease;
  cursor: pointer;
  margin-bottom: 8px;
}

.group-item:hover {
  background: rgba(0, 14, 51, 0.03);
}

/* Group Item Icon - With Gradient Border for Monogram */
.group-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

/* Monogram style - inner dark background */
.group-item-icon.monogram {
  padding: 2px; /* Space for gradient border */
}

.group-item-icon.monogram span {
  width: 100%;
  height: 100%;
  background: #000e33;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 700;
}

/* Group Item Image - When there's an actual photo */
.group-item-image {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.group-item-image img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.group-item-info {
  flex: 1;
  min-width: 0;
}

.group-item-name {
  font-weight: 600;
  font-size: 1rem;
  color: #000e33;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-item-members {
  font-size: 0.85rem;
  color: #000e33;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .user-modal-content {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    margin-top: auto;
  }


  .user-modal-header {
    padding: 20px;
  }

  .user-modal-body {
    padding: 12px 20px 20px;
  }
}

.join-group-btn,
.leave-group-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.join-group-btn {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: white;
}

.join-group-btn:hover {
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.6);
  transform: translateY(-2px);
}

.leave-group-btn {
  background: transparent;
  border: 1px solid rgba(0, 14, 51, 0.3);
  color: #000e33;
}

.leave-group-btn:hover {
  background: rgba(0, 14, 51, 0.05);
}

/* ═══════════════════════════════════════════════════════
   CONFIRMATION MODAL
   ═══════════════════════════════════════════════════════ */

.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.confirm-modal.active {
  display: flex;
}

.confirm-modal-content {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
  text-align: center;
}

.confirm-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: #ff3b30;
}

.confirm-modal-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000e33;
}

.confirm-modal-message {
  margin: 0 0 28px;
  font-size: 1rem;
  color: #000e33;
  opacity: 0.7;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-delete-btn,
.confirm-cancel-btn {
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirm-delete-btn {
  background: #ff3b30;
  color: white;
}

.confirm-delete-btn:hover {
  background: #e02d21;
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.3);
}

.confirm-cancel-btn {
  background: transparent;
  border: 1px solid rgba(0, 14, 51, 0.2);
  color: #000e33;
}

.confirm-cancel-btn:hover {
  background: rgba(0, 14, 51, 0.05);
}

@media (max-width: 480px) {
  .confirm-modal-content {
    padding: 24px;
  }

  .confirm-modal-actions {
    flex-direction: column-reverse;
  }

  .confirm-delete-btn,
  .confirm-cancel-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════
   ADD TO COLLECTION MODAL
   ═══════════════════════════════════════════════════════ */

.collection-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.collection-modal-content {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.collection-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(0, 14, 51, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.collection-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000e33;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.collection-modal-body {
  padding: 20px 28px 28px;
  overflow-y: auto;
  overflow-x: hidden; /* ← Add this */
  flex: 1;
}

.collection-place-preview-name,
.collection-place-preview-address,
.collection-item-name {
  word-wrap: break-word;
  word-break: break-word;
}
/* Place Preview */
.collection-place-preview {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 14, 51, 0.03);
  border-radius: 12px;
  margin-bottom: 20px;
}

.collection-place-preview-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.collection-place-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-place-preview-info {
  flex: 1;
  min-width: 0;
}

.collection-place-preview-name {
  font-weight: 600;
  font-size: 1rem;
  color: #000e33;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-place-preview-address {
  font-size: 0.85rem;
  color: #4b5bd5;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Search */
.collection-search {
  margin-bottom: 16px;
}

.collection-search input {
  width: 90%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 14, 51, 0.15);
  background: rgba(0, 14, 51, 0.02);
  color: #000e33;
  font-size: 0.95rem;
  font-family: inherit;
}

.collection-search input:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}


/* Collections List */
.collections-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.collection-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
  margin-bottom: 8px;
  border: 2px solid transparent;
}

.collection-item:hover {
  background: rgba(0, 14, 51, 0.03);
}

.collection-item.selected {
  background: rgba(0, 102, 255, 0.08);
  border-color: #0066ff;
}

.collection-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.collection-item-info {
  flex: 1;
  min-width: 0;
}

.collection-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-item-name {
  font-weight: 600;
  font-size: 1rem;
  color: #000e33;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-item-count {
  font-size: 0.85rem;
  color: #000e33;
  opacity: 0.6;
}
.collection-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
  margin-bottom: 8px;
  border: 2px solid transparent;
}

.collection-item:hover {
  background: rgba(0, 14, 51, 0.03);
}

.collection-item.selected {
  background: rgba(0, 102, 255, 0.08);
  border-color: #0066ff;
}

.collection-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.collection-item-info {
  flex: 1;
  min-width: 0;
}

.collection-item-name {
  font-weight: 600;
  font-size: 1rem;
  color: #000e33;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-item-count {
  font-size: 0.85rem;
  color: #000e33;
  opacity: 0.6;
}

.collection-item-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0, 14, 51, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: 0.2s ease;
}

.collection-item.selected .collection-item-check {
  background: #0066ff;
  border-color: #0066ff;
  color: white;
}

/* Create New Collection */
.create-collection-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 2px dashed rgba(0, 14, 51, 0.2);
  background: transparent;
  color: #000e33;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s ease;
}

.create-collection-btn:hover {
  background: rgba(0, 14, 51, 0.03);
  border-color: #4b5bd5;
  color: #4b5bd5;
}

/* New Collection Form */
.new-collection-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 14, 51, 0.08);
}

.new-collection-form input {
  width: 90%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 14, 51, 0.15);
  background: rgba(0, 14, 51, 0.02);
  color: #000e33;
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 12px;
}

.new-collection-form input:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-actions {
  display: flex;
  gap: 10px;
}

.collections-list:empty::after {
  content: "No collections yet";
  display: block;
  text-align: center;
  padding: 40px 20px;
  color: #000e33;
  opacity: 0.5;
  font-style: italic;
}

/* ───────── Rec Card Skeleton Loader ───────── */

.recs-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.rec-skeleton-card {
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  overflow: hidden;
}

.rec-skeleton-image {
  height: 180px;
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0.08) 25%,
    rgba(255,255,255,0.18) 37%,
    rgba(255,255,255,0.08) 63%
  );
  background-size: 300% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.rec-skeleton-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rec-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0.08) 25%,
    rgba(255,255,255,0.18) 37%,
    rgba(255,255,255,0.08) 63%
  );
  background-size: 300% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.rec-skeleton-line.short {
  width: 55%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ───── Sort dropdown (My Recs) ───── */

.sort-dropdown {
  position: absolute;
  margin-top: 40px;
  right: 0;
  padding: 8px;
  background: #000e33;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3000;
}

.content-actions {
  position: relative; /* so dropdown anchors to this */
}

.sort-option {
  border: none;
  background: transparent;
  color: #ffffff;
  text-align: left;
  width: 100%;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.sort-option:hover {
  background: rgba(255,255,255,0.08);
}

.filter-dropdown {
  position: absolute;
  margin-top: 40px;
  right: 0;
  background: #000e33;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 220px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  z-index: 1500;
}

.filter-section {
  margin-bottom: 10px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-bottom: 6px;
}

.filter-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.filter-option.active {
  background: rgba(255, 255, 255, 0.16);
  font-weight: 600;
}

.destination-select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 13px;
}

/* Filter button active state */
.filter-btn.active {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 8px 20px rgba(0,0,0,0.3);
}

/* Optional tiny dot indicator */
.filter-btn.active {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

/* Gradient outline ring */
.filter-btn.active::before {
  content: '';
  position: absolute;
  inset: -2px;                  /* controls thickness */
  border-radius: 999px;         /* keeps pill shape */
  padding: 2px;
  background: linear-gradient(
    135deg,
    #0066ff,
    #c27aff
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.filter-btn {
  position: relative;
}


.rec-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 16px;
}

.rec-detail-modal-content {
  background: transparent;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Main card */
.rec-detail-card {
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 24px;
  padding: 24px 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

/* Close button */
.rec-detail-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100; /* Ensure close button appears above images */
}

/* Top header: image + info */
.rec-detail-header {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
}

.rec-detail-image img {
  width: 100%;
  border-radius: 18px;
  height: 180px;
  object-fit: cover;
  display: block;
}

.rec-detail-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
}

.rec-detail-address {
  margin: 0 0 6px;
  font-size: 14px;
  color: #4a4a4a;
}

.rec-detail-rating-row {
  font-size: 14px;
  margin-bottom: 6px;
}

.rec-detail-category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: #eef2ff;
  color: #3f51b5;
  margin-bottom: 8px;
}

.rec-detail-description {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 4px;
}

.rec-detail-website {
  display: inline-flex;                  /* fixes arrow alignment */
  align-items: center;
  gap: 6px;                              /* space between text + icon */
  margin-top: 6px;

  font-size: 13px;
  font-weight: 500;
  color: #4b5bd5;                       /* matches your link blue */
  text-decoration: none;

  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rec-detail-website i {
  font-size: 11px;
  opacity: 0.85;
}

.rec-detail-website:hover {
  text-decoration: underline;
  opacity: 0.9;
  transform: translateY(-0.5px);        /* subtle lift like your buttons */
}

/* Divider */
.rec-detail-divider {
  border: none;
  border-top: 1px solid #ececf5;
  margin: 18px 0;
}

/* Saved row */
.rec-detail-saved-row {
  font-size: 14px;
}

/* Notes */
.rec-detail-section {
  margin-top: 12px;
}

.rec-detail-section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
  color: #6b6f8a;
}

.rec-detail-notes-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #dde0f0;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

.rec-detail-primary-btn {
  margin-top: 8px;
  border-radius: 999px;
  padding: 8px 16px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: #000e33;
  color: #ffffff;
}

.rec-detail-secondary-btn {
  margin-top: 8px;
    border-radius: 999px;
    padding: 12px 16px;          /* ✅ same as primary */
    border: none;
    font-size: 14px;            /* ✅ same */
    font-weight: 500;           /* ✅ same */
    cursor: pointer;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);

  transition: all 0.2s ease;
}

.rec-detail-secondary-btn:hover {
   box-shadow: 0 0 12px rgba(194, 122, 255, 0.6),
              0 0 6px rgba(0, 102, 255, 0.6);
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.rec-detail-secondary-btn:active {
  transform: scale(0.97);
}


/* Visibility toggle */
.rec-detail-visibility-toggle {
  display: inline-flex;
  border-radius: 999px;
  background: #f3f4ff;
  padding: 2px;
  margin-top: 4px;
}

.rec-detail-visibility-toggle .vis-pill {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.rec-detail-visibility-toggle .vis-pill.active {
  background: #ffffff;
  box-shadow: 0 0 0 1px #dde0f0;
}

.rec-detail-visibility-help {
  margin-top: 6px;
  font-size: 12px;
  color: #6b6f8a;
}

/* Responsive */
@media (max-width: 640px) {
  .rec-detail-card {
    padding: 18px 16px 20px;
  }

  .rec-detail-header {
    grid-template-columns: 1fr;
  }

  .rec-detail-image img {
    height: 180px;
  }
}

/* ───── SAVED BY ROW – REC DETAIL MODAL ───── */

#recDetailModal .saved-by-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 8px;
  font-size: 14px;
  color: #5a5f7b;
}

#recDetailModal .saved-by-avatars {
  display: flex;
  align-items: center;
}

/* gradient ring */
#recDetailModal .saved-by-avatar-ring {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -10px; /* overlap */
}

/* inner circle */
#recDetailModal .saved-by-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#recDetailModal .saved-by-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* initials fallback */
#recDetailModal .saved-by-avatar-inner.monogram,
.rec-comment-avatar .comment-avatar-initials,
.rec-comment-avatar-fallback {
  font-size: 13px;
  font-weight: 600;
  color: #000e33;

  background:
    radial-gradient(circle at top left, rgba(0,102,255,0.22), transparent 45%),
    radial-gradient(circle at top right, rgba(194,122,255,0.28), transparent 45%),
    linear-gradient(135deg, #eef4ff 0%, #f5efff 55%, #f8f3ff 100%);

  border: 1px solid rgba(194,122,255,0.16);
}

/* text */
#recDetailModal .saved-by-text {
  font-size: 14px;
  color: #5a5f7b;
  white-space: nowrap;
  padding-left: 10px;
}

/* “1 friend” link */
#recDetailModal .saved-by-friends-link {
  color: #4b5bd5;
  font-weight: 500;
  cursor: pointer;
}

#recDetailModal .saved-by-friends-link:hover {
  text-decoration: underline;
}

/* small screens */
@media (max-width: 600px) {
  #recDetailModal .saved-by-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  #recDetailModal .saved-by-text {
    white-space: normal;
  }
}
/* ────────────────────────────────────────────── */
/* Friends who saved this modal – My Recs page   */
/* ────────────────────────────────────────────── */

.friends-saved-modal {
  position: fixed;
  inset: 0;
  z-index: 4000; /* ⬅️ higher than your rec detail modal */
  font-family: "Helvetica Neue", Arial, sans-serif;
}


.friends-saved-modal.hidden {
  display: none;
}

.friends-saved-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 4000;
}

/* Centered dark card */
.friends-saved-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 420px;
  width: 90%;
  background: #000e33;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  z-index: 4001; /* above its own backdrop */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header / title / close */
.friends-saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: center;
}

.friends-saved-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

.friends-saved-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
}

/* List area */
.friends-saved-list {
  max-height: 260px;
  overflow-y: auto;
  padding-top: 6px;
}

/* Each friend row */
.friends-saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  padding: 6px 4px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.friends-saved-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Avatar ring w/ RR gradient */
.friends-saved-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.friends-saved-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.friends-saved-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friends-saved-monogram {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #050b1f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.friends-saved-name {
  font-size: 14px;
  font-weight: 500;
}

/* Optional helper states (if you use them in JS) */
.friends-saved-loading,
.friends-saved-empty,
.friends-saved-error {
  font-size: 13px;
  color: #e5e7eb;
  padding: 6px 2px;
}

/* ───── SHARE REC MODAL ───── */

.share-rec-modal {
  position: fixed;
  inset: 0;
  z-index: 2600; /* above rec detail + friends modal */
}

.share-rec-modal.hidden {
  display: none;
}

.share-rec-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Centered dialog */
.share-rec-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  max-width: 90%;
  background: #000e33;
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

/* Close button */
.share-rec-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

/* Title + subtitle */
.share-rec-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.share-rec-subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  color: #b4b9d8;
}

/* Button column */
.share-rec-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

/* Each share button */
.share-rec-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 11px;
  border: none;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, transform 0.12s ease;
}

.share-rec-btn i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.share-rec-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* Spin animation on close hover */
.share-rec-close {
  transition: transform 0.35s ease;
}

.share-rec-close i {
  transition: transform 0.35s ease;
  display: inline-block;
}

.share-rec-close:hover i {
  transform: rotate(90deg);
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: white;
  margin: 80px auto;
  padding: 30px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}


.shareHeader {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000e33;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

#userSearch {
  margin-bottom: 16px;
  margin-top: 20px;
}

.userSearch input {
  width: 90%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 14, 51, 0.15);
  background: rgba(0, 14, 51, 0.02);
  color: #000e33;
  font-size: 0.95rem;
  font-family: inherit;
}

.userSearch input:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.user-results {
  max-height: 400px;
  overflow-y: auto;
}

.user-result-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.user-result-entry:hover {
  background-color: #f5f5f5;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar,
.monogram-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 15px;
  font-weight: 500;
  color: #000e33;
}

/* Gradient ring wrapper */
.avatar-gradient {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Inner avatar stays clean */
.user-avatar,
.monogram-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}


.sendButton {
  padding: 8px 20px;
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.modal-subtitle {
  margin: 12px 0 20px;
  padding-top: 8px;
  font-size: 0.95rem;
  color: #4a4f6b;
  text-align: center;
}

/* ─────────────────────────────────────────────
   SHARE MODAL (matches your group modal vibe)
───────────────────────────────────────────── */
#shareModal {
  display: none; /* you already toggle this */
  position: fixed;
  inset: 0;
  z-index: 9999;
}

#shareModalContent {
  width: min(560px, calc(100vw - 32px));
  margin: 8vh auto;
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  background: rgba(255,255,255,0.75);
  cursor: pointer;
  font-size: 26px;
  line-height: 34px;
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000e33;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.modal-subtitle {
  margin: 0 0 14px;
  color: rgba(26,26,26,0.7);
  font-size: 14px;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}

/* ─────────────────────────────────────────────
   SELECTABLE GROUP ROWS (reuses .group-item)
───────────────────────────────────────────── */

/* make label rows clickable without changing your existing .group-item layout */
.group-option {
  cursor: pointer;
  user-select: none;
}

/* hide checkbox but keep it accessible */
.group-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* right-side check indicator */
.check-pill {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.70);
  color: rgba(26,26,26,0.35);
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

/* selected state: highlight the row + check */
/* selected state: use inset ring so it can't be clipped */
.group-option:has(.group-check:checked) {
  box-shadow: inset 0 0 0 2px rgba(0, 102, 255, 0.55);
  background: rgba(255,255,255,0.98);
  border-radius: 24px; /* match your row radius if needed */
}

/* gradient check */
.group-option:has(.group-check:checked) .check-pill {
  background: linear-gradient(90deg, #0066ff, #c27aff);
  border-color: #4b5bd5;
  color: #ffffff;
  transform: scale(1.05);
}


/* Share button (map to your existing primary button if you have one) */
.primary-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  background: linear-gradient(90deg, #0066ff, #c27aff);
  color: #ffffff;
}
/* =========================
   COMMENTS (RoamRecs style)
   ========================= */
/* =========================
   COMMENTS (white card mode)
   ========================= */

.rec-comments-panel{
  margin-top: 10px;
  border-radius: 22px;
  border: 1px solid rgba(107, 95, 255, 0.16);
  background: rgba(107, 95, 255, 0.04);
  box-shadow: 0 14px 30px rgba(10, 12, 30, 0.10);
  overflow: hidden;
}

.rec-comments-scroll{
  max-height: 220px;
  overflow-y: auto;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rec-comments-scroll::-webkit-scrollbar{ width: 10px; }
.rec-comments-scroll::-webkit-scrollbar-thumb{
  background: rgba(107, 95, 255, 0.18);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
}
.rec-comments-scroll::-webkit-scrollbar-track{
  background: rgba(0, 0, 0, 0.04);
}

.rec-comments-loading,
.rec-comments-empty,
.rec-comments-error{
  text-align: center;
  padding: 14px 0 8px;
  color: rgba(20, 20, 30, 0.55);
  font-size: 0.92rem;
}


.rec-comment-row {
  display: flex;
  gap: 12px;
  padding: 12px 14px; /* ✅ Increased from 8px 10px */
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(107, 95, 255, 0.14);
  box-shadow: 0 10px 20px rgba(10, 12, 30, 0.08);
}

.rec-comment-author {
  margin: 0;
}

.rec-comment-avatar,
.comment-avatar{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #0066ff 0%, #c27aff 100%) border-box;
}

/* Saved bookmark styling */
.rec-save-stat.saved {
  color: #ff1744; /* Hot pink */
}

.rec-save-stat.saved i {
  color: #ff1744;
}

.rec-comment-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px; /* ✅ Increased from 2px to 4px */
}

.rec-comment-header{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0 !important;
}

.rec-comment-actions{
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.rec-comment-time {
  font-size: 12px;
  line-height: 0;
  color: rgba(20, 20, 30, 0.45);
}

.rec-comment-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #000e33;
  margin: 0;
}

.rec-comment-name:hover{
  color: #4b5bd5;
}

.rec-comment-text {
  color: rgba(20, 20, 30, 0.82);
  font-size: 0.93rem;
  margin: 0;
}

.rec-comment-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-comment-delete-btn,
.rec-comment-report-btn{
  border: 1px solid rgba(20, 20, 30, 0.10);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(20, 20, 30, 0.70);
  padding: 6px 12px; /* ✅ Use padding instead of fixed height */
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.rec-comment-delete-btn:hover{
  background: rgba(255, 107, 107, 0.10);
  border-color: rgba(255, 107, 107, 0.25);
  transform: translateY(-1px);
}
.rec-comment-report-btn:hover{
  background: rgba(107, 95, 255, 0.10);
  border-color: rgba(107, 95, 255, 0.22);
  transform: translateY(-1px);
}

.rec-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

.rec-comment-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-comment-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #000e33;
  line-height: 1.1;
  margin: 0;
}

.rec-comment-time {
  font-size: 11px;
  color: rgba(20, 20, 30, 0.45);
  line-height: 1;
}

.rec-comment-compose{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;

  padding: 12px 14px 14px;
  border-top: 1px solid rgba(107, 95, 255, 0.14);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rec-comment-textarea{
  width: 95%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(107, 95, 255, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #000e33;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  resize: none;
  min-height: 46px;
  max-height: 110px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rec-comment-textarea::placeholder{
  color: rgba(20, 20, 30, 0.35);
}

.rec-comment-textarea:focus{
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

#recCommentSubmitBtn.rec-detail-primary-btn{
  margin-top: 0;
  padding: 10px 16px;
  border-radius: 999px;
}

@media (max-width: 520px){
  .rec-comment-compose{ grid-template-columns: 1fr; }
  #recCommentSubmitBtn.rec-detail-primary-btn{ width: 100%; }
}

.rec-comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.rec-comment-text { margin-top: 4px; }

.rr-confirm-overlay{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 12, 30, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rr-confirm-card{
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(107, 95, 255, 0.16);
  box-shadow: 0 30px 80px rgba(10, 12, 30, 0.28);
  padding: 18px 18px 16px;
  position: relative;
  transform: translateY(6px);
  animation: rrPopIn 160ms ease-out forwards;
}

@keyframes rrPopIn{
  to { transform: translateY(0); }
}

.rr-confirm-x{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(20, 20, 30, 0.10);
  background: rgba(255,255,255,0.9);
  cursor: pointer;
}

.rr-confirm-title{
  margin: 6px 44px 6px 2px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #000e33;
}

.rr-confirm-message{
  margin: 0 0 14px 2px;
  color: rgba(20, 20, 30, 0.65);
  line-height: 1.35;
  font-size: 0.95rem;
}

.rr-confirm-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.rr-confirm-btn{
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(20, 20, 30, 0.10);
  background: rgba(255,255,255,0.92);
}

.rr-confirm-cancel:hover{
  border-color: rgba(107, 95, 255, 0.18);
  background: rgba(107, 95, 255, 0.06);
}

.rr-confirm-danger{
  border-color: rgba(255, 107, 107, 0.30);
  background: rgba(255, 107, 107, 0.12);
  color: #7a1212;
}
.rr-confirm-danger:hover{
  background: rgba(255, 107, 107, 0.16);
}
.recs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 20px 0;
}

/* When loading, the skeleton becomes the grid itself */
.recs-loading-skeleton {
  display: contents; /* This makes skeleton cards behave as direct children of .recs-grid */
}

.skeleton-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Skeleton image area */
.skeleton-card-image {
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(
    90deg,
    #e0e0e0 0%,
    #f0f0f0 50%,
    #e0e0e0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  position: relative;
}

/* Skeleton content area */
.skeleton-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Skeleton title line */
.skeleton-title {
  height: 20px;
  width: 70%;
  background: linear-gradient(
    90deg,
    #e0e0e0 0%,
    #f0f0f0 50%,
    #e0e0e0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

/* Skeleton location line */
.skeleton-location {
  height: 16px;
  width: 50%;
  background: linear-gradient(
    90deg,
    #e0e0e0 0%,
    #f0f0f0 50%,
    #e0e0e0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

/* Skeleton stats line */
.skeleton-stats {
  height: 14px;
  width: 40%;
  background: linear-gradient(
    90deg,
    #e0e0e0 0%,
    #f0f0f0 50%,
    #e0e0e0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
  margin-top: 4px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive grid */
@media (max-width: 1200px) {
  .recs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .recs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .recs-grid {
    grid-template-columns: 1fr;
  }
}/* =========================
   COLLECTION IMAGE COLLAGE
   ========================= */
/* =========================
   COLLECTIONS GRID + CARDS
   ========================= */

.collections-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.collection-card{
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
}

.collection-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(194, 122, 255, 0.3);
}

/* =========================
   IMAGE COLLAGE (HEIGHT-BASED)
   ========================= */

.collection-card-images{
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;

  height: 240px;

  /* ❌ remove this */
  /* padding: 14px; */

  box-sizing: border-box;
}

/* shared “slot” wrapper */
.collection-image-slot{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}

.main {
  background-color: #ffffff;
}
/* main spans both rows */
.collection-main-image{
  grid-row: 1 / 3;
}

/* minis: each is a square-ish block because rows split the fixed height */
.collection-mini-images{
  display: contents; /* lets the two mini slots participate in the grid */
}

/* media fill */
.collection-image-slot img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* gradient fallback fills slot */
.collection-image-gradient{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter .25s ease, transform .25s ease;
}

.collection-card:hover .collection-image-gradient{
  filter: brightness(.95) saturate(1.05);
  transform: scale(1.02);
}

/* icon sizing */
.collection-image-gradient i{
  font-size: 2.2rem;
  color: rgba(255,255,255,0.45);
}

.collection-mini-slot .collection-image-gradient i{
  font-size: 1.35rem;
}

/* optional: slightly tighter rounding on minis */
.collection-mini-slot{
  border-radius: 12px;
}

/* =========================
   CONTENT
   ========================= */

.collection-card-content{
  padding: 16px;
}

.collection-card-meta{
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  opacity: 0.8;
}

.collection-card-meta span{
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Treat collage as the “image” section */
.collection-card-image{
  position: relative;
}

/* Overlay hidden by default */
.collection-card-overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}

/* Show overlay on hover */
.collection-card:hover .collection-card-overlay{
  opacity: 1;
  pointer-events: auto;
}

/* Actions in top-right */
.collection-card-actions{
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 10px;
}

/* Action buttons (copy your rec-card-action vibe) */
.collection-card-action{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
}

/* ===== RoamRecs Modal (Edit Collection) ===== */

.rr-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
}

.rr-modal-card{
  width: min(560px, 92vw);
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.35);
  position: relative;
  padding: 34px 34px 26px;
  text-align: center;
}

.rr-modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rr-modal-icon{
  width: 74px;
  height: 74px;
  border-radius: 22px;
  margin: 4px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,102,255,0.12), rgba(194,122,255,0.14));
  border: 1px solid rgba(0,0,0,0.06);
}

.rr-modal-icon i{
  font-size: 26px;
  color: #000e33;
  opacity: 0.9;
}

.rr-modal-title{
  margin: 0;
  font-size: 40px;
  line-height: 1.05;
  color: #000e33;
  letter-spacing: -0.02em;
}

.rr-modal-subtitle{
  margin: 10px 0 18px;
  color: rgba(11,27,58,0.65);
  font-size: 15px;
}

.rr-form{
  text-align: left;
  margin: 18px auto 0;
  max-width: 420px;
  display: grid;
  gap: 14px;
}

.rr-field{ display: grid; gap: 8px; }

.rr-label{
  font-size: 13px;
  font-weight: 700;
  color: rgba(11,27,58,0.75);
}

.rr-input{
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(11,27,58,0.14);
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  color: #0b1b3a;
  background: #fff;
}

.rr-input:focus{
  border-color: rgba(0,102,255,0.55);
  box-shadow: 0 0 0 4px rgba(0,102,255,0.10);
}

.rr-hint{
  font-size: 12px;
  color: rgba(11,27,58,0.55);
}

.rr-toggle-row{
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

/* Switch */
.rr-switch{
  position: relative;
  width: 54px;
  height: 32px;
  display: inline-block;
}

.rr-switch input{
  opacity: 0;
  width: 0;
  height: 0;
}

.rr-slider{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(11,27,58,0.14);
  transition: 0.2s ease;
  cursor: pointer;
}

.rr-slider::before{
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 4px;
  top: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: 0.2s ease;
}

.rr-switch input:checked + .rr-slider{
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
}

.rr-switch input:checked + .rr-slider::before{
  transform: translateX(22px);
}

.rr-modal-actions{
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 22px;
}

.rr-btn{
  height: 50px;
  border-radius: 18px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rr-btn-ghost{
  background: rgba(11,27,58,0.06);
  color: rgba(11,27,58,0.85);
}

.rr-btn-primary{
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.rr-btn:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

/* Segmented visibility toggle (refined) */
.rr-seg-toggle{
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11,27,58,0.06);
  border: 1px solid rgba(11,27,58,0.10);
}

.rr-seg-btn{
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1;             /* key: prevents vertical bloat */
  cursor: pointer;
  color: rgba(11,27,58,0.6);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.rr-seg-btn.active{
  background: #fff;
  color: rgba(11,27,58,0.95);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  border: 1px solid rgba(11,27,58,0.12);
}

/* --- VISIBILITY SEGMENTED TOGGLE (override-proof) --- */
.rr-modal .rr-seg-toggle{
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border-radius: 999px;
  background: rgba(11,27,58,0.06);
  border: 1px solid rgba(11,27,58,0.10);

  width: fit-content;
  justify-self: start; /* prevents stretching inside your grid */
  box-sizing: border-box;
}

.rr-modal .rr-seg-toggle .rr-seg-btn{
  all: unset; /* ✅ kills global button padding/font/line-height */
  box-sizing: border-box;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 34px;          /* ✅ controlled height */
  padding: 0 14px;       /* ✅ controlled width */
  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;

  color: rgba(11,27,58,0.62);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.rr-modal .rr-seg-toggle .rr-seg-btn.active{
  background: #fff;
  color: rgba(11,27,58,0.95);
  box-shadow: 0 6px 14px rgba(0,0,0,0.10);
  border: 1px solid rgba(11,27,58,0.10);
}

/* Close (X) micro-interaction */
.rr-modal-close i{
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* subtle rotate on hover */
.rr-modal-close:hover i{
  transform: rotate(90deg) scale(1.05);
  opacity: 0.8;
}

/* comment row layout */
.rr-comment{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,102,255,0.12);
}

/* avatar wrapper (this is the “hard stop”) */
.rr-avatar{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  flex: 0 0 52px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 3px solid rgba(0,102,255,0.75);
  background: #fff;
}

.rr-avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* prevents baseline weirdness */
}

.rr-avatar-mono{
  width: 100%;
  height: 100%;
  display: none;           /* shown via rr-avatar--mono */
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(11,27,58,0.9);
}

.rr-avatar--mono{
  background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(194,122,255,0.18));
}

.rr-comment-body{ min-width: 0; flex: 1; }
.rr-comment-head{
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.rr-comment-name{ font-weight: 800; color: #0b1b3a; }
.rr-comment-time{ color: rgba(11,27,58,0.55); font-size: 14px; }
.rr-comment-text{ color: rgba(11,27,58,0.85); font-size: 18px; line-height: 1.35; }


.rec-comment-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 14px;
  color: #000e33;
  text-transform: uppercase;

  border: 1px solid transparent;

  background:
    linear-gradient(135deg, #eef4ff 0%, #f5efff 55%, #f8f3ff 100%) padding-box,
    linear-gradient(135deg, #0066ff 0%, #c27aff 100%) border-box;

  overflow: hidden;
}


.rr-modal-card{
  position: relative;
  width: min(520px, calc(100vw - 32px));
  margin: 10vh auto 0;
}

/* Make textarea match rr-input sizing */
.rr-textarea{
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  line-height: 1.35;
}

/* Select sometimes looks different across browsers—this helps */
.rr-input select,
select.rr-input{
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(11,27,58,0.55) 50%),
    linear-gradient(135deg, rgba(11,27,58,0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.rr-input::placeholder,
.rr-textarea::placeholder {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: rgba(11,27,58,0.45);
}


.rr-input,
.rr-textarea,
select.rr-input {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.25;

  /* 🔑 fixes “weird typing” look */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  letter-spacing: -0.01em;
}


.collection-image-gradient {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: rgba(255,255,255,0.9);
}

.collection-image-gradient.shimmer {
  position: relative;
  overflow: hidden;
}

.collection-image-gradient.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shimmerMove 1.1s infinite;
}

@keyframes shimmerMove {
  100% { transform: translateX(100%); }
}


.collection-search-wrapper {
  position: relative;
  margin-right: 12px;
}


.collection-search-input {
  padding: 10px 40px 10px 16px;
  border: 1px solid rgba(201, 134, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #000e33;
  font-size: 14px;
  width: 250px;
  transition: all 0.3s ease;
}


.collection-search-input::placeholder {
  color: rgba(0, 14, 51, 0.4);
}

.collection-search-input:focus {
  outline: none;
  border-color: #4b5bd5;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(201, 134, 255, 0.1);
}

.collection-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

#my-collections-content .content-actions{
  position: relative;               /* anchor for dropdown */
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#my-collections-content .collection-search-wrapper{
  position: relative;
  display: inline-flex;
  align-items: center;
}

#my-collections-content .collection-search-input{
  height: 46px;
  padding: 0 14px 0 44px;          /* space for icon */
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  outline: none;
  min-width: 240px;
}

#my-collections-content .collection-search-icon{
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
  color: #0b1b3a;
}

/* Anchor point */
#my-collections-content .sort-wrapper {
  position: relative;
}

/* Dropdown styling */
#my-collections-content .collections-sort-dropdown {
  position: absolute;
  top: calc(100% + 10px);   /* directly under Sort pill */
  right: 0;                /* align with pill like recs */
  z-index: 1000;

  width: 100px !important;
  padding: 12px;
  border-radius: 18px;

  background: #0b1633;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}


#my-collections-content .collections-sort-dropdown .sort-option {
  width: 150%;
  background: transparent;
  border: 0;
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

#my-collections-content .collections-sort-dropdown .sort-option:hover {
  background: rgba(255,255,255,0.08);
}

#my-collections-content .collections-sort-dropdown .sort-option.active {
  background: rgba(255,255,255,0.15);
}

/* ═══════════════════════════════════════════════════════
   CREATOR BAR STYLES (for saved recs and collections)
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════
   CREATOR BAR STYLES WITH GRADIENT RINGS
   ═══════════════════════════════════════════════════════ */
/* Rec Creator Bar */
.rec-creator-bar {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.rec-creator-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #000e33;
}

/* Hover effect - change the name color when hovering the link */
.collection-creator-link:hover .collection-creator-name,
.rec-creator-link:hover .rec-creator-name {
  color: #4b5bd5;
}
/* ✅ Thinner gradient ring wrapper */
.rec-creator-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  padding: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ✅ Inner circle (white background for image) */
.rec-creator-avatar img {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
}

/* ✅ Initials (centered in gradient) */
.rec-creator-initials {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #000e33;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.rec-creator-name {
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

/* Collection Creator Bar */
.collection-creator-bar {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.collection-creator-bar {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.collection-creator-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  padding: 4px 8px;
  margin: -4px -8px; /* Negative margin to expand clickable area */
  border-radius: 6px;
  transition: background 0.15s ease;
  cursor: pointer;
}



/* ✅ Thinner gradient ring wrapper */
.collection-creator-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  padding: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ✅ Inner circle (white background for image) */
.collection-creator-avatar img {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
}

/* ✅ Initials (centered in gradient) */
.collection-creator-initials {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #000e33;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.collection-creator-name {
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

/* ✅ No hover effects - removed entirely */

/* Liked tab controls */
#liked-recs-subcontent .content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

#liked-recs-subcontent .content-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.share-profile-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 18px;
}

.share-profile-modal-card{
  width: min(520px, 100%);
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(0,14,51,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  padding: 18px 18px 16px;
  position: relative;
}

.share-profile-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border:none;
  cursor: pointer;
  display:flex;
  background-color: transparent;
  align-items:center;
  justify-content:center;
  color:#000e33;
}

.share-profile-close i {
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}

.share-profile-close:hover i {
  transform: rotate(90deg);
}

.share-profile-header{
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 44px; /* room for close button */
}

.share-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 2.5px; /* thickness of gradient ring */
  background: linear-gradient(135deg, #0066ff, #c27aff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-profile-avatar img,
.share-profile-avatar .avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f6ff;
}


.share-profile-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-profile-title{
  font-size: 1.05rem;
  font-weight: 700;
  color: #000e33;
}

.share-profile-subtitle{
  font-size: 0.9rem;
  color: rgba(0,14,51,0.70);
  margin-top: 2px;
}

.share-profile-qr-wrap{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(0,14,51,0.10);
  background: rgba(0,14,51,0.03);
  padding: 14px;
  display:flex;
  justify-content:center;
}

.share-profile-qr-wrap img{
  width: 230px;
  height: 230px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
}

.share-profile-link-row{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 14px;
}

.share-profile-link{
  flex: 1;
  min-width: 180px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,14,51,0.12);
  background: rgba(0,14,51,0.03);
  color: #000e33;
  font-size: 0.95rem;
}

.share-profile-action{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(75, 91, 213, 0.35);
  background: linear-gradient(
    135deg,
    rgba(75, 91, 213, 0.18),
    rgba(194, 122, 255, 0.16)
  );
  color: #4b5bd5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.share-profile-action:hover{
  background: linear-gradient(
    135deg,
    rgba(75, 91, 213, 0.26),
    rgba(194, 122, 255, 0.22)
  );
  border-color: rgba(75, 91, 213, 0.55);
  transform: translateY(-1px);
}


.share-profile-qr-wrap {
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  display: flex;
  justify-content: center;
}

.share-profile-qr-wrap img {
  background: #ffffff;
  padding: 12px;
  border-radius: 14px;
  width: 230px;
  height: 230px;
}
.share-profile-qr-caption {
  font-size: 0.8rem;
  color: rgba(0,14,51,0.6);
  margin-top: 8px;
  text-align: center;
}


.share-profile-action.primary{
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  background: rgba(0,102,255,0.10);
  border-color: rgba(0,102,255,0.22);
}

.share-profile-footnote{
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(0,14,51,0.60);
  text-align: center;
}

/* ========================================
   SORT DROPDOWN - PROPER SIZING
   ======================================== */

.sort-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;

  /* ✅ FIXED: Proper width constraints */
  min-width: 180px;
  max-width: 280px;
  width: auto;
  overflow: hidden;
}

.sort-option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #000e33;
  transition: background-color 0.2s;

  /* ✅ FIXED: Prevent text wrapping */
  white-space: nowrap;
}

.sort-option:hover {
  background: rgba(75, 91, 213, 0.12); /* soft indigo wash */
  color: #4b5bd5;}

.sort-option.active {
  background: rgba(75, 91, 213, 0.12); /* soft indigo wash */
  color: #4b5bd5;
  font-weight: 500;
}

/* Collection save stat - matches rec saved styling */
.collection-save-stat {
  position: relative;
  transition: color 0.2s ease;
}

.collection-save-stat.saved {
  color: #ff1744; /* Pink when saved */
}

.collection-save-stat.saved i {
  font-weight: 900; /* Solid bookmark when saved */
}

/* Optional: Add subtle animation on save */
.collection-save-stat.saved i {
  animation: savePopCollection 0.3s ease;
}

@keyframes savePopCollection {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.sort-option:first-child {
  border-radius: 12px 12px 0 0;
}

.sort-option:last-child {
  border-radius: 0 0 12px 12px;
}

/* Collections-specific overrides (if needed) */
#user-collections-content .sort-dropdown {
  min-width: 200px;
  max-width: 250px;
}

#user-collections-content .sort-option {
  padding: 12px 16px;
  font-size: 14px;
}

.profile-follow-section {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  position: relative;
}

.profile-options-btn {
  width: 44px;
  height: 44px;
  min-width: 44px; /* Prevent shrinking */
  border-radius: 50%;
  border: 1px solid rgba(0, 14, 51, 0.2);
  background: transparent;
  color: #000e33;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  padding: 0;
}

.profile-options-btn:hover {
  background: rgba(0, 14, 51, 0.05);
  border-color: rgba(0, 14, 51, 0.4);
}


.profile-options-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
    transition: background-color 0.2s;

}

.profile-option-item {
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: #000e33;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.profile-option-item:hover {
  background: #f5f5f5;
    background: rgba(75, 91, 213, 0.12); /* soft indigo wash */

}

.profile-option-item i {
  width: 18px;
  text-align: center;
  opacity: 0.7;
  font-size: 14px;
}

.profile-option-item.danger {
  color: #ff4757;
}

.profile-option-item.danger:hover {
  background: rgba(255, 71, 87, 0.1);
}

.profile-option-item.danger i {
  opacity: 1;
}


  /* Creator badge */
 .creator-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
  }
  .creator-badge i {
    font-size: 10px;
  }
  .social-handles {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(75, 91, 213, 0.08);
  border: 1px solid rgba(75, 91, 213, 0.2);
  color: #4b5bd5;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(75, 91, 213, 0.15);
  border-color: #4b5bd5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 91, 213, 0.2);
}

.social-link i {
  font-size: 1.1rem;
}

.social-link--instagram:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(193, 53, 132, 0.1));
  border-color: #E1306C;
  color: #E1306C;
}

.social-link--tiktok:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: #111;
  color: #111;
}

.social-link--website:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #059669;
}

.social-link-edit-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(75, 91, 213, 0.2);
  background: rgba(75, 91, 213, 0.06);
  color: #4b5bd5;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.social-link-edit-btn:hover {
  background: rgba(75, 91, 213, 0.15);
  border-color: #4b5bd5;
}


/* Destinations Grid */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 0;
}

/* Destination Card */
.destination-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.destination-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.destination-card-images {
  position: relative;
  height: 240px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
}

.destination-main-image {
  grid-row: 1 / 3;
  overflow: hidden;
}

.destination-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-mini-images {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.destination-mini-images img {
  width: 100%;
  height: calc(50% - 2px);
  object-fit: cover;
}

.destination-card-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
}


.destination-share-btn {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}



.destination-card-image {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 18px; /* match your card */
}

.destination-card-media {
  width: 100%;
  height: 100%;
}


.destination-share-btn {
  z-index: 5;
}
.destination-card-image{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

/* button is always there but hidden until hover */
.destination-share-btn{

  opacity: 0;

}

.destination-card:hover .destination-share-btn{
  opacity: 0;
  transform: translateY(0);
  pointer-events: auto;
}

.destination-share-btn:hover {
    background: linear-gradient(135deg, #0066ff, #c27aff);
  transform: scale(1.1);

}


.destination-card-content {
  padding: 20px;
}

.destination-card-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  color: #000e33;
  margin-bottom: 12px;
    font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.destination-card-count {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #000e33;
  opacity: 0.75;
  font-size: 0.85rem !important;
}

.destination-card-count i {
  color: #4b5bd5;
}

/* Back Button */
.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #666;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.back-btn:hover {
  background: #f9fafb;
  border-color: #9333ea;
  color: #9333ea;
}

.back-btn i {
  font-size: 0.85rem;
}
#user-recs-content .content-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inline-back-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0; /* ✅ Prevent button from shrinking */

  display: inline-flex; /* ✅ Changed from flex to inline-flex */
  align-items: center;
  justify-content: center;

  font-size: 1.1rem;
  color: #000e33;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 120ms ease, transform 120ms ease;
}

.inline-back-btn:hover {
  opacity: 1;
  transform: translateX(-2px);
}

/* ✅ ADD THIS - Destination card specific styles */
.destination-card-images {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 240px;
  box-sizing: border-box;
}

.destination-card-images .destination-main-image {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}

.destination-card-images .destination-mini-images {
  display: contents;
}

.destination-card-images .destination-mini-images > * {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}

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


.destination-card-images{
  position: relative;
}

.destination-card-images{
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 240px;
  box-sizing: border-box;
}

.destination-image-slot{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}

.destination-main-image{
  grid-row: 1 / 3;
}

.destination-mini-images{
  display: contents;
}


.destination-image-gradient {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.2),
    rgba(194, 122, 255, 0.2)
  );
}

/* 4) icon styling */
.destination-image-gradient i {
  font-size: 44px;
  color: #fff;
  opacity: 0.95;
}

/* Grid: more normal card sizing */
.destinations-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  align-items: start; /* ✅ prevents tall cards stretching */
}

/* Card */
.destination-card{
  border-radius: 16px;
  color: #000e33;
  overflow: hidden;
  border: none;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255,255,255,0.06);

  transition: 0.3s ease;
  cursor: pointer;
}

.destination-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(194, 122, 255, 0.35);
}
/* Image area: force a fixed height */
.destination-card-image,
.destination-card-images{
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(194, 122, 255, 0.2));
}

/* If you're using the ONE_IMAGE version, the img is directly inside .destination-card-image */
.destination-card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Content: tighten spacing */
.destination-card-content{
  padding: 12px 14px;
}

.destination-card-title{
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.destination-card-count{
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Optional: hover polish */
.destination-card:hover{
  transform: translateY(-2px);
  transition: transform 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

/* Mobile */
@media (max-width: 560px){
  .destinations-grid{
    grid-template-columns: 1fr;
  }
  .destination-card-image,
  .destination-card-images{
    height: 160px; /* a little taller on mobile looks nice */
    min-height: 160px;
  }
}

.destination-search input {
    padding: 10px 40px 10px 16px;
  border: 1px solid #c27aff!important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #000e33;
  font-size: 14px;
  transition: all 0.3s ease;
}

.destination-search-input{
  width: 85%;
  padding: 12px 40px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10) !important;
  outline: none;
    font-size: 14px;
}


.destination-search-input::placeholder {
  color: rgba(0, 14, 51, 0.4) !important;
}

.destination-search-input:focus {
  outline: none !important;
  border-color: #4b5bd5 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(201, 134, 255, 0.1) !important;
}

.destination-search-icon{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.65;
  display: none;
}

.destination-card-image{
  position: relative;
}
.destination-card-image{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  height: 180px;          /* <- tweak: 160–220 */
}


/* Make these super specific to override everything */
button.follow-btn.hidden,
button#followBtn.hidden {
  display: none !important;
}

button.follow-btn.visible,
button#followBtn.visible {
  display: block !important;
}

button.unfollow-btn.hidden,
button#unfollowBtn.hidden {
  display: none !important;
}

button.unfollow-btn.visible,
button#unfollowBtn.visible {
  display: block !important;
}

button.profile-options-btn.hidden,
button#profileOptionsBtn.hidden {
  display: none !important;
}

button.profile-options-btn.visible,
button#profileOptionsBtn.visible {
  display: block !important;
}

/* ✅ Footer container for stats + save button */
.rec-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.rec-card-stats {
  display: flex;
  gap: 1rem;
  flex: 1;
}

/* ✅ Save button styling */
.rec-card-save-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}



.rec-card-save-btn:active {
  transform: translateY(0);
}

.rec-card-save-btn i {
  font-size: 0.8rem;
}

/* ✅ Optional: Show button only on hover */
.rec-card-save-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rec-card:hover .rec-card-save-btn {
  opacity: 1;
  pointer-events: auto;
}

/* ✅ Mobile: always show button */
@media (max-width: 768px) {
  .rec-card-save-btn {
    opacity: 1;
    pointer-events: auto;
  }

  .rec-card-footer {
    flex-wrap: wrap;
  }

  .rec-card-save-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}


.rec-card-save-btn:active {
  transform: translateY(0);
}

/* ✅ Saved state */
.rec-card-save-btn.saved {
  background: #ececec;
  color: #777;
  cursor: default;
}


.rec-card-save-btn i {
  font-size: 0.8rem;
}

/* ✅ Optional: Show button only on hover */
.rec-card-save-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rec-card:hover .rec-card-save-btn {
  opacity: 1;
  pointer-events: auto;
}

/* ✅ Mobile: always show button */
@media (max-width: 768px) {
  .rec-card-save-btn {
    opacity: 1;
    pointer-events: auto;
  }

  .rec-card-footer {
    flex-wrap: wrap;
  }

  .rec-card-save-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
/* ✅ Actions container - stacked vertically */
.rec-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
/* Force this specific actions row to be horizontal */
#collectionDetailButtons{
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: nowrap; /* 👈 keep on one line */
}

/* Override common modal button styles that make them stack */
#collectionDetailButtons .rec-detail-primary-btn,
#collectionDetailButtons .rec-detail-secondary-btn{
  width: auto !important;
  display: inline-flex !important;
  white-space: nowrap;
}
/* Saved state for modal button */
#modalSaveCollectionBtn.saved {
  background: #ececec;
  color: #777;
  border-color: #d4d4d4;
}
/* Optional: if you want them to fill the row evenly instead */
#collectionDetailButtons.equal .rec-detail-primary-btn,
#collectionDetailButtons.equal .rec-detail-secondary-btn{
  flex: 1;
  justify-content: center;
}
#collectionDetailModal .rec-detail-actions{
  flex-direction: row !important;
}
.rec-detail-secondary-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px; /* 👈 controls spacing perfectly */
}

/* ✅ Modal save button */
.rec-detail-save-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}


.rec-detail-save-btn:active {
  transform: translateY(0);
}

/* ✅ Saved state for modal button */
.rec-detail-save-btn.saved {
  background: #ececec;
  color: #777;
  cursor: default;
}



.rec-detail-save-btn i {
  font-size: 0.85rem;
}

/* ✅ Responsive adjustments */
@media (max-width: 768px) {
  .rec-detail-actions {
    align-items: stretch;
  }

  .rec-detail-save-btn {
    width: 100%;
    justify-content: center;
  }
}

.collection-creator-bar .collection-creator-link {
  position: relative;
}

.collection-creator-link:hover {
  background: rgba(102, 126, 234, 0.08);
}

.collection-creator-link:hover .collection-creator-name {
  color: #667eea;
}

/* ═══════════════════════════════════════════════════════
   TYPE FILTER STYLES (matching my-recs.css exactly)
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════
   TYPE FILTER STYLES (matching my-recs.css exactly)
   ═══════════════════════════════════════════════════════ */

.filter-group {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-toggle-btn:hover {
  border-color: #4b5bd5;
  color: #4b5bd5;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-toggle-btn.active {
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  border-color: none;
  color: white;
  box-shadow: 0 4px 12px rgba(75, 91, 213, 0.25);
}

.filter-toggle-btn i {
  font-size: 14px;
}

/* ✅ Mobile responsiveness */
@media (max-width: 768px) {
  .filter-group {
    gap: 6px;
    padding: 12px 0;
  }

  .filter-toggle-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .filter-toggle-btn i {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .filter-group {
    flex-direction: column;
    gap: 8px;
  }

  .profile-follow-section {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
}

  .filter-toggle-btn {
    width: 100%;
    justify-content: center;
  }
        .notification-modal {
  position: absolute;
  top: 52px;
  right: 30px;
  width: 320px;
  max-height: 420px;
  background: rgba(2, 8, 32, 0.98);
  border-radius: 16px;
  padding: 12px 0;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 45px rgba(0,0,0,0.5);
  overflow-y: auto;
  z-index: 2000001 !important;
}


  .mobile-menu .create-btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }

}

/* ═══════════════════════════════════════════════════════
   CATEGORY PILL STYLES
   ═══════════════════════════════════════════════════════ */

.rec-category {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(75, 91, 213, 0.1);
  border: none;
  border-radius: 12px;
  font-size: 11px;
  margin-bottom: 6spx;
  font-weight: 600;
  color: #4b5bd5;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  margin: 6px 0;
}

/* ✅ Ensure proper spacing in rec card */
.rec-card-content .rec-category {
  margin-top: 6px;
  margin-bottom: 4px;
}

/* ✅ Mobile adjustments */
@media (max-width: 480px) {
  .rec-category {
    font-size: 10px;
    padding: 3px 8px;
  }
}


.collection-card-save-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  display: none; /* ✅ Hidden by default */
  align-items: center;
  gap: 6px;
  opacity: 1 !important;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff !important; /* ✅ Added !important to ensure white color */
  background: linear-gradient(135deg, #0066ff, #c27aff);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  transition: all 0.3s ease-in-out;
  margin-left: auto; /* ✅ Push to the right */
  opacity: 1;
  flex-shrink: 0;
  position: relative;
  z-index: 10; /* ✅ Keep this */
  pointer-events: auto; /* ✅ Keep this */
}

/* ✅ Make sure the icon inside is also white */
.collection-card-save-btn i {
  color: #ffffff;
}

.collection-card-save-btn:hover {
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.6),
              0 0 6px rgba(0, 102, 255, 0.6);
  transform: translateY(-1px); /* ✅ Subtle lift effect */
  cursor: pointer;
}

/* Show save button on card hover */
.collection-card:hover .collection-card-save-btn {
  display: flex; /* ✅ Show on hover */
}

/* Saved state */
.collection-card-save-btn.saved {
  background: #ececec;
  color: #777 !important; /* ✅ Gray when saved */
}

/* ✅ Make sure saved icon is also gray */
.collection-card-save-btn.saved i {
  color: #777;
}

.collection-card-save-btn.saved:hover {
  transform: none; /* ✅ No lift when saved */
  box-shadow: 0 10px 25px rgba(0,0,0,0.35); /* ✅ Keep original shadow */
}

@media (max-width: 768px) {

  /* Make actions row full-width */
  #my-collections-content .content-actions {
    width: 100%;
    justify-content: space-between;
  }

  /* Anchor dropdown properly */
  #my-collections-content .sort-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);

    width: min(90vw, 260px);
    max-width: calc(100vw - 32px);
  }

}
.collection-modal-content {
  position: relative;
  overflow: visible;
}

.collection-modal .modal-close {
  z-index: 9999;
}
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
/* Mobile: make the content header stack cleanly */
@media (max-width: 520px){
  #my-collections-content .content-header{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #my-collections-content .content-actions{
    width: 100%;
    justify-content: flex-end;
    position: relative; /* anchor dropdown */
  }

  #my-collections-content .sort-btn,
  #my-collections-content .filter-btn{
    padding: 10px 14px;
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

/* ───── AUTH OVERLAY ───── */

.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.auth-modal {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: authSlideUp 0.4s ease;
  position: relative;
}

@keyframes authSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 14, 51, 0.15);
  background: transparent;
  color: #000e33;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: 0.2s ease;
}

.auth-modal-close:hover {
  background: rgba(0, 14, 51, 0.05);
  transform: rotate(90deg);
}

.auth-modal-content h2 {
  margin: 0 0 15px 0;
  color: #000e33;
  font-size: 28px;
}

.auth-modal-content p {
  margin: 0 0 30px 0;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.auth-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-modal-buttons .primary-btn,
.auth-modal-buttons .secondary-btn {
  width: 100%;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-modal-buttons .primary-btn {
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  color: white;
  border: none;
}

.auth-modal-buttons .primary-btn:hover {
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.6),
              0 0 6px rgba(0, 102, 255, 0.6);
}

.auth-modal-buttons .secondary-btn {
  background: white;
  color: #4b5bd5;
  border: 2px solid #4b5bd5;
}

.auth-modal-buttons .secondary-btn:hover {
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.6),
              0 0 6px rgba(0, 102, 255, 0.6);
}

/* Hide navbar auth elements for non-authenticated users */
body:not(.authenticated) .notification-container,
body:not(.authenticated) .create-btn,
body:not(.authenticated) #navAvatar,
body:not(.authenticated) .nav-left,
body:not(.authenticated) .profile-container {
  display: none !important;
}

/* But show Sign Up button inside the guest mobile menu */
body:not(.authenticated) .guest-mobile-menu .create-btn {
  display: block !important;
}

/* Guest login/signup nav buttons */
.guest-nav-actions {
  display: none; /* hidden by default; shown for guests below */
  align-items: center;
  gap: 10px;
}

body:not(.authenticated) .guest-nav-actions {
  display: flex;
}

.guest-login-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.guest-login-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.guest-nav-left {
      display: none;
    }
    body:not(.authenticated) .guest-nav-left {
      display: flex !important;
    }
    /* Guest action buttons */
    .guest-nav-actions {
      display: none;
      gap: 10px;
      align-items: center;
    }
    body:not(.authenticated) .guest-nav-actions {
      display: flex;
    }

    .guest-nav-left {
  align-items: center;
  gap: 32px;
  justify-content: center;
  grid-column: 2;
      margin: 0;
    min-height: 100%;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #ffffff;
}

.guest-signup-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.guest-signup-btn:hover {
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.6),
              0 0 6px rgba(0, 102, 255, 0.6);
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

/* ── Members-only comment prompt ── */
.comments-member-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 14px;
  color: #555;
}

.comments-member-prompt i {
  font-size: 22px;
  color: #4b5bd5;
}

.comments-member-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.comments-member-actions .primary-btn {
  padding: 8px 24px;
  font-size: 13px;
  border-radius: 999px;
  white-space: nowrap;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #fff;
  border: none;
  cursor: pointer;
    width: 100%;
  font-weight: 600;
}

.comments-member-actions .secondary-btn {
  padding: 8px 24px;
  font-size: 13px;
  border-radius: 999px;
  background: #fff;
  color: #4b5bd5;
  border: 2px solid #4b5bd5;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
}

/* Hide guest nav on mobile — placed last to override earlier rules */
@media (max-width: 768px) {
  .guest-nav-left,
  body:not(.authenticated) .guest-nav-left { display: none !important; }
  .guest-nav-actions,
  body:not(.authenticated) .guest-nav-actions { display: none !important; }
}

/* guest-mobile-menu styles */
.guest-mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(0, 14, 51, 0.96);
  padding: 20px 24px;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-sizing: border-box;
}
body.authenticated .guest-mobile-menu { display: none !important; }
body:not(.authenticated) .menu-toggle:checked ~ .guest-mobile-menu { display: flex; }


.navbar {
  position: sticky;
  top: 0;
  z-index: 2000;
  height: 72px;
  padding: 0 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
  grid-column: 2;
}

.nav-logo {
  width: 160px;
  height: auto;
  grid-column: 1;
  justify-self: start;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 3;
  justify-self: end;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: #000e33;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 18px;
  background: transparent;
}


.nav-item:hover i {
  transform: translateY(1px);
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0066ff, #c27aff);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: left center;
  transition: opacity 0.22s ease, transform 0.25s ease;
}

.nav-item:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease, background 0.2s ease;
}
.icon-btn:hover {
  color: #000e33;
  background: rgba(0, 0, 0, 0.04);
}
.create-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  box-shadow: none;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.create-btn:hover {
  box-shadow: 0 6px 22px rgba(0, 102, 255, 0.38);
  transform: translateY(-1px);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.avatar:hover {
  transform: scale(1.03);
  box-shadow: none;
}


.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.menu-toggle {
  display: none;
}

a {
  text-decoration: none;
  color: white;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #ffffff;
  border-radius: 14px;
  padding: 6px;
  min-width: 190px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #000e33 !important;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown a:hover {
  background: rgba(75, 91, 213, 0.08);
  color: #4b5bd5 !important;
}


.profile-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Transparent bridge so hover persists across the gap to the profile dropdown */
.profile-container::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 14px;
  background: transparent;
}

.profile-container .avatar {
  cursor: pointer;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #ffffff !important;
  border-radius: 16px;
  padding: 6px;
  min-width: 180px;
  border: none;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13), 0 1px 4px rgba(0, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(-8px);
  z-index: 1100;
}

/* Invisible bridge between avatar and dropdown */
.profile-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.profile-container:hover .profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown a {
  display: flex;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #000e33 !important;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.profile-dropdown a i {
  width: 15px;
  font-size: 0.85rem;
  opacity: 0.38;
  transition: opacity 0.15s ease;
}


/* Profile dropdown menu */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px); /* Reduced gap from 12px to 8px */
  right: 0;
  background: #000e33;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 180px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(-10px);
  z-index: 1100;
}

/* Add invisible bridge between avatar and dropdown */
.profile-dropdown::before {
  content: '';
  position: absolute;
  top: -12px; /* Covers the gap */
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.profile-container:hover .profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px; /* Increased from 10px to 12px for easier clicking */
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.profile-dropdown a i {
  width: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.profile-dropdown a:hover {
  background: linear-gradient(135deg, #0066ff, #c27aff);
}

.profile-dropdown a i {
  width: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.profile-dropdown a:hover {
  background: rgba(75, 91, 213, 0.08) !important;
  color: #4b5bd5 !important;
}

.profile-dropdown a:hover i {
  opacity: 0.85;
}

.profile-dropdown a:hover {
  background: linear-gradient(135deg, #0066ff, #c27aff);
}


.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 16px 24px 24px;
  gap: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.menu-toggle:checked ~ .mobile-menu {
  display: flex;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #ffffff;
  border-radius: 14px;
  padding: 6px;
  min-width: 190px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #000e33 !important;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown a:hover {
  background: rgba(75, 91, 213, 0.08);
  color: #4b5bd5 !important;
}
/* ───── NAVBAR RESPONSIVE ───── */

@media (max-width: 1100px) {
  .navbar {
    padding: 0 32px;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-logo {
    width: 180px;
  }

  .nav-left {
    gap: 20px;
  }
}



@media (max-width: 768px) {
  /* ───── GLOBAL OVERFLOW FIX ───── */
  * {
    max-width: 100vw;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .nav-logo {
    width: 170px;
  }

  .nav-left {
    display: none;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-right .create-btn {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* Mobile menu link styling */
  .mobile-menu {
    z-index: 9999;
  }

  .mobile-menu a {
    color: #000e33 !important;
    text-decoration: none;
  }

  .mobile-menu .nav-item {
    color: #000e33  ;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
  }

  .mobile-menu .create-btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }


}


@media (max-width: 900px) {
  .navbar {
    padding: 0 24px;
  }

  .nav-logo {
    width: 180px;
  }

  .nav-left {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
  }

   .mobile-menu .nav-item {
    color: #000e33  ;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
  }

  .controls-right .create-btn {
    font-size: 12px;
    width: 50%;
    white-space: nowrap;
  }
  .nav-logo {
    width: 170px;
  }

  .nav-left {
    display: none;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-right .create-btn {
    display: none;
  }

  .hamburger {
    display: block;
  }
}


.guest-login-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;

  color: #000e33 !important;

  /* 👇 FIXED */
  background: rgba(0, 14, 51, 0.04);
  border: 1px solid rgba(0, 14, 51, 0.15) !important;

  box-shadow: 0 6px 16px rgba(0, 14, 51, 0.08);

  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.guest-login-btn:hover {
  background: rgba(0, 14, 51, 0.07) !important;
  border-color: rgba(0, 14, 51, 0.25) !important;
  transition: 0.3s ease-in-out;
}

.guest-mobile-menu {
  background-color: white !important;
}


.nav-create-menu {
  position: relative;
}

.nav-create-trigger {
  white-space: nowrap;
}

.nav-create-chevron {
  font-size: 0.72rem;
  margin-left: 2px;
  opacity: 0.85;
}

.nav-create-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 14, 51, 0.08);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 2500;
}

.nav-create-menu:hover .nav-create-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-create-dropdown button {
  width: 100%;
  border: none;
  background: transparent;
  color: #000e33;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}

.nav-create-dropdown button:hover {
  background: rgba(75, 91, 213, 0.08);
  color: #4b5bd5;
}

.nav-create-menu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 14px;
  background: transparent;
}

/* ═══════════════════════════════════════════════════════
   PROFILE REDESIGN — match my-recs
   Sidebar profile (LEFT) + full-bleed tile grid (CENTER)
   Brand: #0066ff → #c27aff, #4b5bd5, #000e33
   These rules are appended last and use body-prefixed
   selectors + !important where the original rules in this
   file used absolute selectors (sticky tabs, padding, etc.)
   ═══════════════════════════════════════════════════════ */

:root { --rr-sidebar-w: 300px; --rr-nav-h: 72px; }

/* ---------- Tile cards (recs + collections) full-bleed ---------- */
body .rec-card,
body .collection-card {
  position: relative;
  aspect-ratio: 0.84;
  border-radius: 0 !important;
  background: #e9ecf5;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s ease;
  padding: 0;
}

body .rec-card:hover,
body .collection-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
  opacity: 0.94;
}

/* Always-on dark gradient overlay so bottom text reads on any photo */
body .rec-card::after,
body .collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.14) 32%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ---------- Rec card image fills tile ---------- */
body .rec-card .rec-card-image {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-top: 0 !important;
  background: #e9ecf5;
  overflow: hidden !important;
}

body .rec-card .rec-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Collection card collage full-bleed ---------- */
body .collection-card .collection-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body .collection-card .collection-card-images {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  height: 100%;
  width: 100%;
  padding: 0;
  border-radius: 0;
}

body .collection-card .collection-mini-images {
  display: contents;
}

body .collection-card .collection-image-slot,
body .collection-card .collection-main-image,
body .collection-card .collection-mini-slot {
  border-radius: 0;
  overflow: hidden;
  background: #e9ecf5;
}

body .collection-card .collection-main-image { grid-row: 1 / 3; }

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

body .collection-card .collection-image-gradient {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body .collection-card .collection-image-gradient i { color: rgba(255, 255, 255, 0.9); }

/* ---------- Hover-action overlay & badges sit above gradient ---------- */
body .rec-card-overlay,
body .collection-card-overlay {
  position: absolute;
  inset: 0;
  background: transparent !important;
  padding: 10px;
  z-index: 3;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 0.2s ease;
}

body .rec-card:hover .rec-card-overlay,
body .collection-card:hover .collection-card-overlay { opacity: 1; }

body .rec-card-overlay > *,
body .collection-card-overlay > * { pointer-events: auto; }

body .rec-card-action,
body .collection-card-action {
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

/* ---------- Tile content overlay (title + meta) ---------- */
body .rec-card .rec-card-content,
body .collection-card .collection-card-content {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  top: auto;
  padding: 0 !important;
  z-index: 2;
  color: #fff;
  background: transparent;
}

body .rec-card-title,
body .collection-card-title {
  color: #fff !important;
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

body .rec-card-location,
body .collection-card-location {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0;
  opacity: 1;
  gap: 4px;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

body .rec-card-location i,
body .collection-card-location i {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
}

body .rec-card .rec-card-stats,
body .collection-card .collection-card-stats {
  margin-top: 4px;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

body .rec-card .rec-card-stats i,
body .collection-card .collection-card-stats i { color: rgba(255, 255, 255, 0.78); }

body .rec-card .rec-card-footer,
body .collection-card .collection-card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body .rec-card .rec-card-save-btn,
body .collection-card .collection-card-save-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body .rec-card .rec-card-save-btn:hover,
body .collection-card .collection-card-save-btn:hover {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  border-color: transparent;
}

body .rec-card .rec-category,
body .rec-card .rec-card-rating {
  display: inline-block;
  margin: 0 0 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
  padding: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ---------- Full-bleed grids ---------- */
body .recs-grid,
body .collections-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0 !important;
  margin-left: -20px;
  margin-right: -20px;
}

/* ---------- Filter chips (gradient-fill when active) ---------- */
body .filter-toggle-btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid #e3e5ea;
  color: #000e33;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body .filter-toggle-btn:hover {
  background: rgba(75, 91, 213, 0.06);
  border-color: rgba(75, 91, 213, 0.3);
  color: #000e33;
}

body .filter-toggle-btn.active {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  border-color: transparent;
  color: #fff;
}

body .filter-toggle-btn.active i { color: #fff; }

/* ---------- Tabs: gradient underline only (no gradient text fill) ---------- */
body .profile-tab {
  padding: 14px 4px !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b6b6b !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  gap: 6px;
}

body .profile-tab:hover { color: #000e33 !important; }

body .profile-tab.active {
  font-weight: 700 !important;
  background: linear-gradient(135deg, #0066ff, #c27aff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

body .profile-tab.active i {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

body .profile-tab::after {
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  border-radius: 999px !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, #0066ff, #c27aff) !important;
  opacity: 0;
}

body .profile-tab.active::after { opacity: 1; }

body .profile-tabs-section {
  border-bottom: 1px solid rgba(0, 14, 51, 0.08);
}

body .profile-tabs {
  justify-content: flex-start;
  gap: 28px;
}

/* ---------- Content area spacing ---------- */
body .profile-content .content-header {
  padding: 0 20px 14px;
  margin-bottom: 14px;
}
body .profile-content .content-header::after { display: none !important; }
body .profile-content .content-header h2 { font-size: 1.4rem; }

/* ---------- Map filter chips: color dot ---------- */
.my-map-chip-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.filter-toggle-btn.active .my-map-chip-dot {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* ---------- Map tab ---------- */
#user-map-content .content-header {
  padding-bottom: 0;
  margin-bottom: 12px;
}
#user-map-content .content-header::after { display: none !important; }

.my-map-count {
  font-size: 0.85rem;
  color: #6b6b6b;
  font-weight: 500;
}

.my-map-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 32px 14px;
}

.my-map-wrapper {
  position: relative;
  margin: 0;
  height: calc(100vh - var(--rr-nav-h) - 220px);
  min-height: 440px;
  background: #e9ecf5;
  overflow: hidden;
}

.my-map {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.my-map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #eef2ff, #f5edff);
  color: #4b5bd5;
  text-align: center;
  padding: 24px;
}

.my-map-empty i { font-size: 2.4rem; margin-bottom: 6px; opacity: 0.7; }
.my-map-empty h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #000e33; }
.my-map-empty p  { margin: 0; font-size: 0.9rem; color: #6b6b6b; }

.my-map .gm-style-iw-c {
  border-radius: 16px !important;
  padding: 0 !important;
}
.my-map .gm-style-iw-d {
  padding: 0 !important;
  overflow: hidden !important;
}

/* ─────────────────────────────────────────────────────
   DESKTOP — fixed left sidebar profile, content fills right
   ───────────────────────────────────────────────────── */
@media (min-width: 900px) {
  body .profile-hero {
    position: fixed !important;
    top: var(--rr-nav-h) !important;
    left: 0 !important;
    bottom: 0 !important;
    width: var(--rr-sidebar-w) !important;
    max-width: var(--rr-sidebar-w) !important;
    box-sizing: border-box !important;
    overflow-y: auto;
    padding: 16px 22px 32px !important;
    border-right: 1px solid rgba(0, 14, 51, 0.08);
    border-bottom: none;
    background: #fff;
    z-index: 50;
    color: #000e33;
  }

  body .profile-hero .profile-header {
    max-width: 100%;
    padding: 0;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    display: flex;
  }

  body .profile-hero .profile-avatar-wrapper {
    width: 140px;
    flex: 0 0 140px;
    align-self: center;
  }

  body .profile-hero .profile-avatar {
    width: 140px;
    height: 140px;
    padding: 4px;
    box-shadow: none;
  }
  body .profile-hero .profile-avatar img { width: 100%; height: 100%; }

  body .profile-hero .profile-info {
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 6px;
    display: flex;
    flex-direction: column;
  }

  body .profile-hero .profile-name-row { justify-content: center; flex-wrap: wrap; }

  body .profile-hero .profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #000e33;
  }

  body .profile-hero .profile-location {
    justify-content: center;
    font-size: 0.875rem;
    color: #4b5bd5;
    font-weight: 500;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  body .profile-hero .profile-bio {
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #000e33;
    opacity: 1;
    margin: 6px 0 0;
  }

  body .profile-hero .social-handles {
    width: 100%;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
  }

  body .profile-hero .profile-follow-section {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
  }

  /* Stats — vertical list inside sidebar */
  body .profile-hero .profile-stats {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 14, 51, 0.08);
    display: flex;
  }

  body .profile-hero .stat-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(0, 14, 51, 0.05);
    gap: 12px;
    display: flex;
  }

  body .profile-hero .stat-item:last-child { border-bottom: none; }

  body .profile-hero .stat-number {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000e33;
    background: none;
    -webkit-text-fill-color: initial;
    -webkit-background-clip: initial;
    background-clip: initial;
    order: 2;
  }

  body .profile-hero .stat-label {
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    color: #6b6b6b;
    opacity: 1;
    font-weight: 500;
    order: 1;
  }

  body .profile-hero .stat-divider { display: none; }

  /* Push tabs + content right of sidebar */
  body .profile-tabs-section {
    margin-left: var(--rr-sidebar-w) !important;
    top: var(--rr-nav-h) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body .profile-tabs-container {
    padding: 0 32px !important;
    max-width: 100% !important;
  }
  body .profile-tabs { justify-content: center !important; }

  body section.profile-content {
    margin-left: var(--rr-sidebar-w) !important;
    padding: 24px 0 20px !important;
    overflow-x: hidden;
  }

  body section.profile-content .content-container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  body section.profile-content .content-header {
    padding: 0 32px 14px !important;
  }
  body section.profile-content .filter-group,
  body section.profile-content .tab-content > .content-actions {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  body .recs-grid,
  body .collections-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 1200px) {
  body .recs-grid,
  body .collections-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1500px) {
  body .recs-grid,
  body .collections-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

/* ─────────────────────────────────────────────────────
   MOBILE — stacked profile, 2-col tiles
   ───────────────────────────────────────────────────── */
@media (max-width: 899px) {
  body .profile-hero {
    position: relative;
    padding: 16px 0 22px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-right: none;
    width: auto;
    overflow-y: visible;
  }

  body .profile-hero .profile-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 0 20px;
    text-align: left;
    flex-wrap: wrap;
    max-width: 100%;
    display: flex;
  }

  body .profile-hero .profile-avatar-wrapper { width: 108px; flex: 0 0 108px; }
  body .profile-hero .profile-avatar { width: 108px; height: 108px; padding: 4px; box-shadow: none; }
  body .profile-hero .profile-avatar img { width: 100%; height: 100%; }

  body .profile-hero .profile-info {
    flex: 1;
    min-width: 200px;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
    display: flex;
    flex-direction: column;
  }

  body .profile-hero .profile-name-row { justify-content: flex-start; gap: 10px; margin: 0; }
  body .profile-hero .profile-name { font-size: 1.35rem; line-height: 1.2; }

  body .profile-hero .profile-location {
    font-size: 0.85rem;
    color: #4b5bd5;
    opacity: 1;
    justify-content: flex-start;
    margin: 2px 0;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  body .profile-hero .profile-bio {
    flex-basis: 100%;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #000e33;
    opacity: 1;
    margin-top: 10px;
    text-align: left;
  }

  body .profile-hero .social-handles { margin-top: 8px; gap: 10px; flex-basis: 100%; display: flex; flex-wrap: wrap; }

  body .profile-hero .profile-follow-section {
    flex-basis: 100%;
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }

  body .profile-hero .profile-stats {
    width: 100%;
    flex-basis: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 4px;
    margin-top: 10px;
    flex-wrap: nowrap;
    padding-top: 0;
    border-top: none;
    display: flex;
  }

  body .profile-hero .stat-item {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: none;
    display: flex;
  }

  body .profile-hero .stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: #000e33;
    background: none;
    -webkit-text-fill-color: initial;
    -webkit-background-clip: initial;
    background-clip: initial;
  }

  body .profile-hero .stat-label {
    font-size: 0.625rem;
    text-transform: none;
    letter-spacing: 0;
    color: #6b6b6b;
    opacity: 1;
    font-weight: 500;
  }

  body .profile-hero .stat-divider { display: none; }

  body .profile-tabs-section { margin-left: 0 !important; }
  body .profile-tabs-container { padding: 0 16px !important; }
  body .profile-tabs { gap: 22px; justify-content: center !important; }
  body .profile-tab { padding: 12px 2px !important; font-size: 0.875rem; }

  body .profile-content { margin-left: 0 !important; padding: 16px 0 40px !important; }
  body .content-container { padding: 0 16px !important; }
  body .content-header { padding: 0 16px 12px !important; }

  body .recs-grid,
  body .collections-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-left: -16px;
    margin-right: -16px;
    gap: 0 !important;
  }

  body .rec-card-title,
  body .collection-card-title { font-size: 0.95rem !important; }

  .my-map-filter-row {
    padding: 4px 16px 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .my-map-filter-row .filter-toggle-btn { flex: 0 0 auto; }

  .my-map-wrapper {
    height: calc(100vh - var(--rr-nav-h) - 180px);
    min-height: 520px;
    margin: 0 -16px;
  }

  #userMap,
  .my-map-wrapper > div {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 480px) {
  body .profile-tabs { gap: 18px; }
  body .profile-tab { font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════════════════
   DESTINATION CARDS — match rec/collection tiles
   ═══════════════════════════════════════════════════════ */
body .destination-card {
  position: relative !important;
  aspect-ratio: 0.84 !important;
  border-radius: 0 !important;
  background: #e9ecf5 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  cursor: pointer;
  transition: opacity 0.2s ease;
  padding: 0 !important;
}

body .destination-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
  opacity: 0.94;
}

body .destination-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.14) 32%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
  z-index: 1;
}

body .destination-card .destination-card-image,
body .destination-card .destination-card-images {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border-radius: 0 !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  padding: 0 !important;
}

body .destination-card .destination-card-images .destination-mini-images { display: none !important; }

body .destination-card .destination-card-media,
body .destination-card .destination-main-image,
body .destination-card .destination-image-gradient {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

body .destination-card .destination-image-gradient {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #0066ff, #c27aff) !important;
  color: #fff !important;
  font-size: 1.6rem !important;
}

body .destination-card .destination-card-images img,
body .destination-card .destination-card-media img,
body .destination-card .destination-main-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body .destination-card .destination-card-content {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  top: auto !important;
  padding: 0 !important;
  z-index: 2 !important;
  color: #fff !important;
  background: transparent !important;
}

body .destination-card-title {
  color: #fff !important;
  font-size: 1.4rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  margin: 0 0 4px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

body .destination-card-count {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  margin: 0 !important;
  opacity: 1 !important;
  gap: 4px;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

body .destination-card-count i {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
}

body .destinations-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0 !important;
  margin-left: -20px;
  margin-right: -20px;
}

@media (min-width: 900px) {
  body .destinations-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 1200px) {
  body .destinations-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1500px) {
  body .destinations-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

@media (max-width: 899px) {
  body .destinations-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-left: -16px;
    margin-right: -16px;
  }
  body .destination-card-title { font-size: 0.95rem !important; }
}

/* ═══════════════════════════════════════════════════════
   HEART SAVE BUTTON — top-right of rec / collection tiles
   Always visible, toggles outline → solid on .saved
   ═══════════════════════════════════════════════════════ */
body .rec-card > .rec-card-save-btn,
body .collection-card > .collection-card-save-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  backdrop-filter: blur(6px) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 1 !important;
  z-index: 4 !important;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: none !important;
}

body .rec-card > .rec-card-save-btn:hover,
body .collection-card > .collection-card-save-btn:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  transform: scale(1.05);
}

body .rec-card > .rec-card-save-btn i,
body .collection-card > .collection-card-save-btn i {
  font-size: 0.95rem !important;
  color: #fff !important;
  line-height: 1 !important;
}

body .rec-card > .rec-card-save-btn.saved i,
body .collection-card > .collection-card-save-btn.saved i {
  color: #ec4899 !important;
}

/* ═══════════════════════════════════════════════════════
   USER MODAL SEARCH (followers / following / groups)
   ═══════════════════════════════════════════════════════ */
.user-modal-search {
  position: relative;
  padding: 0 20px;
  margin: 6px 0 14px;
}

.user-modal-search-input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border-radius: 999px;
  border: 1px solid rgba(0, 14, 51, 0.12);
  background: #fff;
  color: #000e33;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.user-modal-search-input::placeholder { color: rgba(0, 14, 51, 0.42); }

.user-modal-search-input:focus {
  border-color: rgba(75, 91, 213, 0.55);
  box-shadow: 0 0 0 3px rgba(75, 91, 213, 0.12);
}

.user-modal-search-icon {
  position: absolute;
  top: 50%;
  left: 32px;
  transform: translateY(-50%);
  color: #4b5bd5;
  font-size: 0.85rem;
  pointer-events: none;
}

.modal-no-match {
  text-align: center;
  color: rgba(0, 14, 51, 0.55);
  font-size: 0.9rem;
  padding: 16px 0;
}

/* Creator avatar pill on saved collection tiles (matches my-recs) */
body .collection-card .gt-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  pointer-events: none;
}

body .collection-card .gt-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  flex-shrink: 0;
}

body .collection-card .gt-avatar img,
body .collection-card .gt-avatar .collection-creator-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}

body .collection-card .gt-avatar .collection-creator-initials {
  background: #000e33;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
}

/* Top-of-tile category pill (matches my-recs) */
body .rec-card .rec-category-pill {
  position: absolute !important;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  z-index: 4;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-transform: capitalize;
}

/* ───── Rec detail modal — match my-recs ───── */
body .rec-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 14, 51, 0.48) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 22px;
}

body .rec-detail-modal[style*="display: flex"],
body .rec-detail-modal.is-open {
  display: flex !important;
}

body .rec-detail-modal-content {
  width: min(760px, 94vw) !important;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 30px !important;
  background: #ffffff !important;
  box-shadow: 0 30px 90px rgba(0, 14, 51, 0.32) !important;
  position: relative;
  padding: 0 !important;
}

body .rec-detail-card {
  background: #ffffff !important;
  color: #000e33 !important;
  border-radius: 30px !important;
  overflow: hidden;
  padding: 0 !important;
  display: block !important;
}

body .rec-detail-header {
  display: block !important;
  padding: 0 !important;
}

body .rec-detail-image {
  position: relative;
  height: 320px !important;
  width: 100% !important;
  overflow: hidden;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  border-radius: 0 !important;
  margin: 0 !important;
}

body .rec-detail-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block;
}

body .rec-detail-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.18) 45%,
    rgba(0,14,51,0.72) 100%
  );
  pointer-events: none;
}

body .rec-detail-main {
  padding: 24px 28px 26px !important;
  width: auto !important;
}

body .rec-detail-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem) !important;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #000e33 !important;
  margin: 0 0 10px !important;
}

body .rec-detail-address {
  color: rgba(0, 14, 51, 0.62) !important;
  font-size: 0.95rem;
  margin: 0 0 10px !important;
}

body .rec-detail-category-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b5bd5 !important;
  background: rgba(75, 91, 213, 0.08) !important;
  border: 1px solid rgba(75, 91, 213, 0.12);
  margin-bottom: 12px;
  width: fit-content;
}

body .rec-detail-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.82);
  color: #000e33;
  z-index: 5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

body .rec-detail-rating-row {
  color: rgba(0, 14, 51, 0.72) !important;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

body .rec-detail-description {
  color: rgba(0, 14, 51, 0.78) !important;
  font-size: 0.98rem;
  line-height: 1.55;
}

body #recDetailModal .saved-by-row {
  display: flex;
  align-items: center;
  padding: 0 28px !important;
  gap: 12px;
  margin: 20px 0 8px;
  font-size: 14px;
  color: #5a5f7b;
}

body .rec-detail-section {
  padding: 0 28px;
}

/* ═══════════════════════════════════════════════════════
   MOBILE OPTIMIZATION (tabs + content)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body .profile-tabs-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body .profile-tabs-container::-webkit-scrollbar { display: none; }
  body .profile-tabs {
    flex-wrap: nowrap !important;
    gap: 18px !important;
    justify-content: space-around !important;
    padding: 0 4px;
  }
  body .profile-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 6px !important;
    gap: 6px;
    font-size: 0.85rem !important;
    justify-content: center;
  }
  body .profile-tab i { font-size: 0.95rem; display: inline-block; }

  body .content-header { padding: 0 14px 10px !important; }
  body .content-header h2 { font-size: 1.25rem !important; }

  /* Full-bleed grids on mobile (match destinations) */
  body .recs-grid,
  body .collections-grid,
  body .destinations-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding: 0 !important;
  }
  body .rec-card,
  body .collection-card,
  body .destination-card {
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
  }

  /* Centered profile hero info on mobile (header copied from my-recs feel) */
  body .profile-hero .profile-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 0 16px !important;
  }
  body .profile-hero .profile-info {
    align-items: center !important;
    text-align: center !important;
    width: 100%;
  }
  body .profile-hero .profile-name-row {
    justify-content: center !important;
  }
  body .profile-hero .profile-location {
    justify-content: center !important;
  }
  body .profile-hero .social-handles {
    justify-content: center !important;
  }
  body .profile-hero .profile-bio {
    text-align: center !important;
  }
  body .profile-hero .profile-follow-section {
    justify-content: center !important;
    width: 100%;
  }
  body .profile-hero .profile-stats {
    justify-content: space-between !important;
    width: 100%;
  }

  .filter-group {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .filter-group::-webkit-scrollbar { display: none; }
  .filter-group .filter-toggle-btn { flex: 0 0 auto; }
}

@media (max-width: 480px) {
  body .profile-tab {
    flex-direction: column;
    gap: 4px !important;
    padding: 10px 4px !important;
    font-size: 0.72rem !important;
    line-height: 1.1;
  }
  body .profile-tab i { font-size: 1.05rem; }

  body .content-header h2 { font-size: 1.15rem !important; }

  body .filter-toggle-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  body .filter-toggle-btn i { font-size: 0.8rem; }
}
