body {
  margin: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #000e33;
  color: #ffffff;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #000e33;
  color: #ffffff;
  overflow-x: hidden; /* 🔒 prevent stray horizontal scroll */
}


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

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  padding-bottom: 20px !important;
  padding: 0 48px;
z-index: 2000; /* above hero/search */

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
background: rgba(0, 14, 51, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* center nav items (Destinations / Recs / Network) */
.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
  grid-column: 2;
}

/* big logo on desktop */
.nav-logo {
  width: 225px;
  height: auto;
  grid-column: 1;
  justify-self: start;
}

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

.nav-item {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  position: relative;
}

.nav-item i {
  font-size: 0.65rem;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0066ff, #c27aff);
  opacity: 0;
  transform: translateY(4px);
  transition: 0.2s ease;
}

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

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #ffffff;
}

.create-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);
}

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

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


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

.hamburger {
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: none; /* shown in mobile breakpoint */
}

/* mobile slide-down menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;                 /* let it stretch edge-to-edge */
  /* remove width: 100%; */  /* or keep it and add box-sizing */
  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;   /* include padding inside width */
}
a {
  text-decoration: none;
  color: white;
}
/* when checkbox is checked, show mobile menu */
.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;
}



/* ───── PROFILE DROPDOWN ───── */
.profile-container {
  position: relative;
  display: flex;
  align-items: center;
}

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

.profile-dropdown {
  position: absolute;
  top: calc(100% + 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;
}

/* 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;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  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);
}

/* ───── RESPONSIVE BREAKPOINTS ───── */
@media (max-width: 1100px) {
  .navbar {
    padding: 0 32px 20px;
  }
}

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

  .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 20px;
  }

  .nav-logo {
    width: 170px;
  }

  .nav-left {
    display: none;
  }

  .nav-right {
    gap: 10px;
  }

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

  .hamburger {
    display: block;
  }
}

.avatar:hover,
.create-btn:hover,
.notification-bell:hover,
.rec-create-btn:hover,
.explore-btn:hover,
.circles-create-btn:hover,
.attach-link-small: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;
}


/* ───── NOTIFICATIONS IN NAVBAR ───── */

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

}

.notification-bell {
  position: relative;
}

/* red badge bubble */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;

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

  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;

  display: none; /* JS will show it */
  box-shadow: 0 0 0 2px #000e33; /* subtle outline so it pops off nav */
}


/* dropdown panel */
.notification-modal {
  position: absolute;
  top: 52px;
  right: 0;
  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; /* above nav dropdowns */
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.notification-header h4 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.notif-close {
  background: none;
  border: none;
  color: #ffffff;
  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(255,255,255,0.06);
    z-index: 2000001 !important; /* above nav dropdowns */

}

.notification-entry.unread {
  background: rgba(0, 102, 255, 0.08);
}

.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 {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  padding: 2px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;

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

.notification-avatar.monogram::after {
  content: attr(data-initials);
  background: #000e33;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-monogram {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000e33; /* inner dark circle */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
}



/* 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: #ffffff;
  text-decoration: none;
}

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

.trip-link {
  color: #c27aff;
  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;
}
/* Full white section */
.save-rec-wrapper {
  width: 100%;
  background: #ffffff;
  padding: 80px 0;
}

/* Inner container */
.save-rec-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.save-rec-container {
  box-sizing: border-box;
}


/* Title + subtitle */
.save-rec-title {
  font-size: 32px;
  font-weight: 600;
  color: #000e33;
  margin-bottom: 10px;
}

.save-rec-subtitle {
  font-size: 16px;
  color: #545459;
  margin-bottom: 50px;
}

/* Cards layout */
.save-rec-options {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Card */
.save-rec-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #ececec;
  padding: 40px 32px;
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000e33;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.save-rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.09);
}

/* Icon */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle img {
  width: 30px;
  height: 30px;
}
.icon-circle i {
  font-size: 28px;
  color: white;
}


/* Text */
.save-rec-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
}

.save-rec-card p {
  font-size: 14px;
  color: #5c5c5c;
}
.hidden {
  display: none;
}

/* Header row */
.save-rec-header {
  position: relative;
  margin: 0 auto 8px auto;
  text-align: center;
}

.save-rec-title {
  font-size: 32px;
  font-weight: 600;
  color: #000e33;
}

/* Subtitle stays centered below */
.save-rec-subtitle {
  font-size: 16px;
  color: #545459;
  margin-top: 8px;
  margin-bottom: 50px;
}

  /* Chevron back button */
  .back-btn {
    position: absolute;
    left: 15%;   /* ✅ nice balanced spacing */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: 15px;
    color: #4b5bd5;
    cursor: pointer;
  }


  .back-btn i {
    font-size: 14px;
  }

/* Search bar wrapper */
.search-box {
  max-width: 560px;
  margin: 40px auto 12px auto;
  padding: 0 4px;
  position: relative;
  border: 1px solid rgba(75, 91, 213, 0.18);

}

/* Input */
.search-input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border-radius: 999px;
  border: 1px solid rgba(75, 91, 213, 0.18);
  font-size: 16px;
  outline: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: #a0a0a0;
}

.search-input:focus {
  border-color: #4b5bd5;
  border: 1px solid rgba(75, 91, 213, 0.18);
}

/* Icon inside search */
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #a0a0a0;
}

/* Dropdown results */
.search-results {
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(75, 91, 213, 0.18);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  margin-top: 8px;
  overflow: hidden;
}

/* hide when empty (we'll toggle with JS) */
.search-results.hidden {
  display: none;
}

.search-result-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}


.search-result-item:hover {
  background: #f7f7ff;
}

.search-result-main {
  font-size: 15px;
  font-weight: 500;
  color: #000e33;
}

.search-result-sub {
  font-size: 13px;
  color: #545459;
}

/* Selected place card */
.selected-place {
  max-width: 560px;
  margin: 24px auto 0 auto;
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.selected-place h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.selected-place p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 6px;
}

.save-place-btn {
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.save-place-btn:hover {
  filter: brightness(1.05);
}

/* Centered container for search bar */
#searchView {
  margin-top: 40px;
  text-align: center;
}

/* Main pill container */
.search-bar {
  max-width: 600px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 16px;

  background: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;

  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
  border: 1px solid rgba(75, 91, 213, 0.18);
}

/* Left circular icon */
.search-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e1e4f0;

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

  flex-shrink: 0;
}

.search-icon-circle i {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
}

/* Input styling */
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;

  font-size: 1rem;
  color: #000e33;
}

.search-bar input::placeholder {
  color: #9aa0b5;
}

/* DROPDOWN RESULTS (same as previous but cleaner) */
.search-results {
  max-width: 600px;
  margin: 0px auto 0 auto;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(75, 91, 213, 0.18);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.search-results.hidden {
  display: none;
}



.search-result-main {
  font-size: 15px;
  font-weight: 500;
  color: #000e33;
}

.search-result-sub {
  font-size: 13px;
  color: #545459;
}

/* Selected place card */
.selected-place {
  max-width: 600px;
  margin: 24px auto;
  padding: 20px;

  border-radius: 14px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  text-align: left;
}

#searchResults:empty {
  display: none !important;
  border: none !important;
  height: 0 !important;
  padding: 0 !important;
}

.search-stack {
  max-width: 600px;
  margin: 40px auto 0 auto;
}

/* Top row inside each result: name + tag */
.result-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Tag pill (Restaurant, City, etc.) */
.result-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4ff;
  color: #4b5bd5;
  flex-shrink: 0;
}

/* Highlight matching text */
.search-highlight {
  font-weight: 600;
  color: #000e33;
}

/* Active row for keyboard navigation */
.search-result-item.active {
  background: #f3f3ff;
}

/* Powered by Google footer */
.powered-by-google {
  text-align: right;
  padding: 6px 10px 8px 10px;
  background: #ffffff;
  border-top: 1px solid #f1f1f1;
}

.powered-by-google img {
  height: 16px;
  opacity: 0.8;
}

.search-result-item {
  position: relative; /* needed for absolute tag */
  padding: 18px 22px;
}

/* Centered text block */
.result-text-block {
  text-align: center;
  width: 100%;
}

/* Name (centered) */
.search-result-main {
  font-size: 16px;
  font-weight: 600;
  color: #000e33;
  margin-bottom: 4px;
}

/* Secondary text (centered + lighter) */
.search-result-sub {
  font-size: 14px;
  color: #545459;
}

/* Tag pill → absolute right */
.result-tag {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4ff;
  color: #4b5bd5;
}
.powered-by-google {
  text-align: right;
  padding: 6px 12px 10px 0;
  background: #ffffff;
  border-top: 1px solid #f3f3f3;
  border-radius: 0 0 12px 12px;
}

.powered-by-google img {
  height: 18px;
  opacity: 0.7;
}

.selected-place {
  max-width: 640px;
  margin: 32px auto 0 auto;
  text-align: left;
}

/* Card shell */
.place-card {
  border-radius: 20px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 20px 22px 18px 22px;
}

/* Top: photo + basic info */
.place-main {
  display: flex;
  gap: 18px;
}

.place-photo-wrapper {
  width: 140px;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f2f2f2;
}

.place-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.place-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: #000e33;
}

.place-address {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 2px 0;
}

.place-rating {
  font-size: 13px;
  color: #4b5563;
  margin: 0 0 6px 0;
}


.place-type-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f3f4ff;
  color: #4b5bd5;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
  width: auto;         /* important: don't stretch */
  max-width: max-content;
}

.search-highlight {
  font-weight: 700;
  color: #000e33;
}

/* Middle: notes & tags */
.place-extra {
  margin-top: 16px;
  border-top: 1px solid #f3f3f3;
  padding: 16px 18px 0 18px;  /* give side padding */
}

.field-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 8px;
}

.note-textarea {
  width: 100%;
  min-height: 90px;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;           /* fixes the weird monospace feel */
  line-height: 1.4;
  resize: vertical;
  background: #f9fafb;
}

.note-textarea::placeholder {
  color: #9ca3af;
  font-style: normal;
}

.visibility-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  margin-top: 4px;
}

.vis-pill {
  border: none;
  background: transparent;
  padding: 6px 16px;
  font-size: 12px;
  cursor: pointer;
  color: #4b5563;
}

.vis-pill.active {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #ffffff;
}

/* Bottom actions */
.place-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.place-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Buttons */
.primary-btn,
.secondary-btn {
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

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

.secondary-btn {
  background: #f3f4ff;
  color: #4b5bd5;
}


.place-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

/* Make sure place-main can shrink nicely */
.place-main {
  display: flex;
  gap: 18px;
  flex: 1;
}

.change-place-btn {
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  color: #4C6EF5;
  cursor: pointer;
  white-space: nowrap;
}

.visibility-row {
  margin-top: 16px;
}

.visibility-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  margin-top: 4px;
}

.vis-pill {
  border: none;
  background: transparent;
  padding: 6px 16px;
  font-size: 12px;
  cursor: pointer;
  color: #4b5563;
}

.vis-pill.active {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #ffffff;
}

.vis-hint {
  margin: 6px 0 0 0;
  font-size: 11px;
  color: #9ca3af;
}

.search-highlight {
  font-weight: 700;
  color: #000e33;
}

.save-rec-confirm {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  max-width: 360px;
  padding: 0;
}

.save-rec-confirm-content {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  padding: 14px 16px 14px 16px;
  border: 1px solid #e5e7eb;
}

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

.save-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  flex-shrink: 0;
  margin-right: 6px;
}

.save-rec-title-text {
  font-size: 32px;
  font-weight: 600;
  color: #000e33;
  flex: 1;
}

.save-rec-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #9ca3af;
}

.save-rec-confirm-sub {
  margin: 8px 0 12px 0;
  font-size: 13px;
  color: #6b7280;
}

.save-rec-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.save-rec-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* reuse your primary-btn / secondary-btn styles */
.place-card.saved-state {
  border: 1px solid #e5e7eb;
}

.saved-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.saved-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.saved-text {
  font-size: 16px;         /* Bigger */
  font-weight: 700;        /* Bolder */
  color: #000e33;
  letter-spacing: -0.2px;
}

.saved-notes-block {
  margin-top: 8px;
}

.saved-note-box {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 13px;
  color: #545459;
  white-space: pre-wrap;
}

.saved-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.saved-link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.add-trip-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-trip-modal.hidden {
  display: none;
}

.add-trip-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

.add-trip-dialog {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.35);
  max-width: 640px;
  width: 100%;
  padding: 20px 22px 22px;
}

.add-trip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.add-trip-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #000e33;
}

.add-trip-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #9ca3af;
}

.add-trip-subtitle {
  margin: 8px 0 16px 0;
  font-size: 13px;
  padding-bottom: 8px;
  color: #6b7280;
}

.add-trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* Trip card tiles */
.trip-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  background: #f9fafb;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.trip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
  border-color: #c4b5fd;
}

.add-trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.trip-card,
.new-trip-card {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* Center vertically */
  align-items: center;       /* Center horizontally */
  text-align: center;        /* Center text */
  padding: 20px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s ease;
  min-height: 110px;         /* Gives balanced height */
}

.trip-card:hover,
.new-trip-card:hover {
  background: #f9f9ff;
  border-color: #d5d7fe;
}

.trip-card-title,
.new-trip-card-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.trip-card-meta,
.new-trip-card-sub {
  font-size: 13px;
  color: #6b7280;
}

.new-trip-card {
  border: 2px dashed #b7bdfc;
  background: #fafaff;
}

.trip-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #000e33;
}

.trip-card-meta {
  font-size: 12px;
  color: #6b7280;
}

/* First tile: Create new trip */
.new-trip-card {
  background: #f4f5ff;
  border-style: dashed;
  border-color: #c4b5fd;
  align-items: flex-start;
}

.new-trip-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #4c6ef5;
}

.new-trip-card-sub {
  font-size: 12px;
  color: #6b7280;
}

.trip-loading {
  font-size: 13px;
  color: #6b7280;
}

.no-trips-text {
  font-size: 13px;
  color: #6b7280;
  grid-column: 1 / -1;
}

.add-trip-inline {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.add-trip-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.add-trip-subtitle {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #6b7280;
}

/* Simple text button for "Cancel" */
.link-btn {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  text-decoration: underline;
}

.new-trip-card {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical center */
  align-items: center;       /* horizontal center */
  text-align: center;
  padding: 20px 16px;
  border: 2px dashed #c7b5ff;
  border-radius: 16px;
  background: #fafaff;
  min-height: 110px;         /* ensures matching height to other cards */
}

.new-trip-card-title {
  font-weight: 600;
  font-size: 15px;
  color: #4f46e5;
  margin-bottom: 6px;
}

.new-trip-card-sub {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  max-width: 160px;  /* keeps the paragraph nicely centered */
}


.new-collection-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.new-collection-form {
  margin-top: 12px;
  padding: 20px;
  border-radius: 20px;
  background: #f8f8ff;         /* soft, consistent background */
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Text field */
.new-collection-form .input-text {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #e0e4ff;
  font-size: 14px;
  outline: none;
  width: 85%;
  background: #fff;
}

.new-collection-form .input-text:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.18);
}

/* Visibility row spacing */
.new-collection-form .visibility-row {
  margin-top: 12px;
}

/* Pills for Public / Private – match your vis-pill style */

/* Actions row – mirror the saved-actions-row layout */
.new-collection-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* Toggle container */
#newCollectionVisToggle {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #dcdcff;
  margin-top: 6px;
}

.saved-by-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #6b7280; /* soft gray */
}

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

.saved-by-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: white;
  z-index: 1;
  margin-left: -10px; /* overlap effect */
}

.saved-by-avatar::before {
  content: "";
  position: absolute;
  inset: 0; /* fill container */
  border-radius: 50%;
  padding: 2px; /* RING THICKNESS */
  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;
  z-index: -1;
}

/* overlap effect */
.saved-by-avatar + .saved-by-avatar {
  margin-left: -10px;
}

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

/* Monogram background if no image */
.saved-by-avatar.monogram {
  background: #333;
}

.saved-by-text {
  white-space: nowrap;
}

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

/* Inner circle */
.saved-by-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000e33;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  font-size: 13px;
}

/* Image case */
.saved-by-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Monogram fallback */
.saved-by-avatar-inner.monogram {
  background: #000e33;
}




.saved-by-friends-link {
  cursor: pointer;
  text-decoration: none;
  color: #4b5bd5;
  font-weight: 500;
}

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

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

/* Inner circle for avatar or monogram */
.friends-saved-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000e33; /* matches your dark modal background */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* Monogram text */
.friends-saved-monogram {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.friends-saved-title {
  text-align: center;
  width: 100%;
}

/* tighten navbar before we hit full mobile */
@media (max-width: 880px) {
  .navbar {
    padding: 0 16px;
    column-gap: 16px;
  }

  .nav-logo {
    width: 160px;
  }

  .nav-left {
    gap: 16px;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-item {
    font-size: 0.9rem;
  }
}

/* Save Rec section tweaks for smaller screens */
@media (max-width: 768px) {
  .save-rec-wrapper {
    padding: 60px 0;
  }

  .save-rec-container {
    padding: 0 16px;
  }

  .save-rec-title {
    font-size: 26px;
  }

  .save-rec-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .save-rec-card {
    width: 100%;
    max-width: 420px;
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .save-rec-title {
    font-size: 22px;
  }

  .save-rec-card {
    padding: 22px 18px;
  }

        .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;
  }

}
/* Place card responsive */
@media (max-width: 640px) {
  .selected-place {
    margin: 24px auto 0 auto;
    padding: 16px 14px;
  }

  .place-card {
    padding: 16px 14px;
  }

  .place-main {
    flex-direction: column;
    gap: 12px;
  }

  .place-photo-wrapper {
    width: 100%;
    height: 180px;   /* nice tall photo on mobile */
  }

  .place-extra {
    padding: 12px 0 0 0;  /* trim side padding so it doesn’t feel cramped */
  }

  .place-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    justify-content: center;
  }
}
/* Add-trip modal responsive */
@media (max-width: 600px) {
  .add-trip-dialog {
    max-width: calc(100vw - 32px);
    padding: 16px 14px 18px;
  }

  .add-trip-grid {
    grid-template-columns: 1fr; /* single column */
    gap: 10px;
  }

  .trip-card,
  .new-trip-card {
    min-height: 100px;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .save-rec-wrapper {
    padding: 40px 0;
  }

  .search-stack,
  .search-bar,
  .selected-place,
  .search-results {
    margin-left: 0;
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .search-bar {
    padding: 10px 14px;
    gap: 10px;
  }

  .search-icon-circle {
    width: 34px;
    height: 34px;
  }

  .search-result-item {
    padding: 14px 16px;
  }
}
/* ---- Upload / Paste View (light, pill-y like search) ---- */

#uploadView.rec-view {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 16px;       /* keeps space from viewport edge */
  box-sizing: border-box;
}


/* Header above textarea */
.upload-header {
  margin-bottom: 8px;
}

.upload-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(92, 92, 92, 0.9); /* #5c5c5c-ish */
}

.upload-hint {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: rgba(92, 92, 92, 0.7);
}



.paste-textarea:focus {
  border-color: #4b5bd5;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.1);
}

/* Divider "or" */
.upload-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(92, 92, 92, 0.7);
}

.upload-divider::before,
.upload-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0)
  );
}

.upload-divider::after {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.03)
  );
}

/* Upload dropzone – white card with subtle border */
.upload-box {
  border-radius: 24px;
  border: 1px dashed rgba(75, 91, 213, 0.25);
  background: #ffffff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
}

.upload-box:hover {
  border-color: #4b5bd5;
  transform: translateY(-1px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.09);
}

.upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0066ff, #c27aff);
}


.upload-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  color: rgba(92, 92, 92, 0.95);
}

.upload-subtitle {
  font-size: 0.8rem;
  margin: 2px 0 10px;
  color: rgba(92, 92, 92, 0.7);
}

/* Ghosty CTA button inside upload box */
.upload-cta {
  border-radius: 999px;
  border: 1px solid #4b5bd5;
  padding: 6px 16px;
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5bd5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  outline: none;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease,
    color 0.2s ease;
}

.upload-cta:hover {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.upload-cta:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* hide the real input, we use the label as the dropzone */
.upload-input-hidden {
  display: none;
}

/* Screenshot preview */
.upload-preview {
  margin-top: 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-height: 260px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.upload-preview img {
  width: 100%;
  display: block;
  object-fit: cover;
}


.attach-link-btn {
  display: block;                    /* NEW: forces own line */
  width: 100%;                       /* NEW: full width */
  margin-top: 12px;
  margin-bottom: 12px;               /* NEW: space before the pill */
  border-radius: 999px;
  border: none;
  padding: 12px 18px;                /* better vertical height */
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}

.--btn:hover {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.attach-link-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}


.current-link-pill {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  color: #5c5c5c;
}

.current-link-pill {
  display: inline-flex;
  margin-top: 0;              /* since button now creates spacing */
  margin-bottom: 12px;
}

.current-link-pill span:first-child {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5bd5; /* your accent */
}

.clear-link-btn {
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.35);
  padding: 0 0 0 4px;
}

/* --- Row container --- */
.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.paste-link-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: 24px;
  border: 1px solid rgba(75, 91, 213, 0.18);
  background: #ffffff;
  color: #545459;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  outline: none;
}

.paste-textarea {
  flex: 1;
  width: 100%;
  min-height: 110px;
  max-height: 130px;
  padding: 10px 16px;
  border-radius: 24px;
  border: 1px solid rgba(75, 91, 213, 0.18);
  background: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  outline: none;
  resize: vertical;
  line-height: 1.4;
}




/* --- Small compact attach button --- */
.attach-link-small {
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  white-space: nowrap;  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #ffffff;
}



.tiktok-preview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 4px;
}

.tiktok-preview-author,
.tiktok-preview-duration {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
}


.tiktok-preview-loading,
.tiktok-preview-error {
  font-size: 12px;
  opacity: 0.9;
}

.tiktok-preview-loading {
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 16px !important;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tiktok-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.08);
  border-top-color: rgba(0,0,0,0.4);
  animation: tiktok-spin 0.7s linear infinite;
}

@keyframes tiktok-spin {
  to { transform: rotate(360deg); }
}

/* TikTok loading row */
.tiktok-preview-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Gradient ring spinner */
.tiktok-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;

  /* gradient ring in your brand colors */
  background: conic-gradient(
    from 0deg,
    #C986FF,
    #4B8FFF,
    #C986FF
  );

  /* hollow out the center to make it a ring */
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 0
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 0
  );

  animation: tiktok-spin 0.7s linear infinite;
}

@keyframes tiktok-spin {
  to {
    transform: rotate(360deg);
  }
}

.tiktok-places-label {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}


.tiktok-places-chips {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tiktok-place-chip {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tiktok-place-chip:hover {
  background: rgba(255, 255, 255, 0.22);
}


.tiktok-preview-card {
  background: #4b5263;
  border-radius: 24px;
  padding: 24px 24px 28px;
  color: #f9fafb;

  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;      /* mobile-first: everything stacked */
  gap: 24px;
  position: relative;
}
.tiktok-preview-main {
  flex: 1;
  min-width: 0;
}


.tiktok-preview-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: flex-end;
  z-index: 10; /* ✅ keeps it above other content */
}



/* Labels / text */
.tiktok-preview-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}



.tiktok-places-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tiktok-place-chip {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.16);
  color: #f9fafb;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.tiktok-place-chip:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.tiktok-place-card {
  background: #ffffff;                    /* same white as Don Angie */
  border-radius: 24px;
  padding: 16px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
    position: relative;

}

.tiktok-place-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}


.tiktok-place-name {
 font-size: 18px;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: #000e33;
}

.tiktok-place-type-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4ff;
  color: #4b5bd5;
}

.tiktok-place-type-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;            /* override old spacing */
  z-index: 2;
}

.tiktok-place-save-btn {
  margin-left: auto;
  padding: 6px 18px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  cursor: pointer;
}

.tiktok-place-save-btn.is-saved {
  background: #e5e7eb;
  color: #6b7280;
  box-shadow: none;
  cursor: default;
}
.tiktok-place-save-btn.is-saved:hover {
  transform: none;
  box-shadow: none;
  opacity: 1;
}
.tiktok-place-meta {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 2px 0;
}

.tiktok-place-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 6px 0;
}



/* Mobile tweaks */
@media (max-width: 768px) {
  .tiktok-preview-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .tiktok-preview-actions {
    align-self: stretch;
    justify-content: flex-end;
  }

  .tiktok-place-card {
    width: 100%;
    max-width: none;
  }
}

.tiktok-place-save-btn.saved {
  background: #ececec;
  color: #777;
  cursor: default;
}

.miniP {
  font-style: italic;
  font-size: 0.7em;
}
.tiktok-place-rating .fa-star {
  margin: 0 4px;
  /* no explicit color = default grey inherit */
  font-size: 13px;
}

.tiktok-place-card-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.tiktok-place-save-btn.saved {
  cursor: default;
}
.tiktok-place-rating .fa-star {
  margin: 0 4px;
  font-size: 13px; /* neutral grey via inherited color */
}



.tiktok-places-results {
  margin-top: 20px;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* TikTok selected card image wrapper */
.tiktok-place-thumb {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f1f1;
}

/* The image itself */
.tiktok-place-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tiktok-place-card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.place-rating i {
  color: #6b7280; /* soft gray */
  margin-right: 6px;
  font-size: 14px;
}


.tiktok-place-card {
  position: relative;
  background: #ffffff;
  border-radius: 26px;
  width: 100%;
  padding: 18px 24px;
  margin-bottom: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.tiktok-place-card-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* LEFT IMAGE — same size as screenshot & TikTok previews */
.tiktok-place-photo-wrapper {
  width: 140px;
  height: 140px;
  min-width: 140px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at top, #f6f7fb, #e3e6f0);
  margin-right: 18px;
}

.tiktok-place-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* fallback grey placeholder */
.tiktok-place-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(135deg, #eef1f7, #e3e6f0);
}


.tiktok-place-view-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5bd5;
  text-decoration: underline;
  text-underline-offset: 3px;

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


.tiktok-place-action-row {
  margin-top: 16px;
}

/* Manual text entry block */

.manual-rec-wrap {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 28px;
  background: #2f3441; /* similar to screenshot card bg */
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.manual-rec-label {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}

.manual-rec-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}

.manual-rec-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.manual-rec-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 13, 26, 0.9);
  color: #ffffff;
  font-size: 15px;
  outline: none;
}

.manual-rec-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.manual-rec-input:focus {
  border-color: rgba(162, 128, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(162, 128, 255, 0.9);
}

.manual-rec-btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  background-image: linear-gradient(90deg, #0066ff, #c27aff);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.manual-rec-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  opacity: 0.96;
}

.manual-rec-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

/* Mobile: stack input + button */
@media (max-width: 640px) {
  .manual-rec-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .manual-rec-btn {
    width: 100%;
    text-align: center;
  }
}

/* Make the text version look like a bigger paste-link input */

.text-link-row {
  align-items: flex-start; /* button aligns to top of textarea */
}

/* Mobile: stack textarea + button like the top section does */
@media (max-width: 768px) {
  .text-link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .text-link-row .attach-link-small {
    width: 100%;
    margin-top: 12px;
    text-align: center;
  }
}



/* Titles / subtitles inside cards */
.rec-method-title {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: #7d8199;
}

.rec-method-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5a5f7b;
}
.tiktok-preview {
  margin-top: 24px;
}




/* Text area: same look as paste-link input but taller */
.text-link-row {
  align-items: flex-start;
}



/* Stack textarea + button on small screens */
@media (max-width: 768px) {
  .text-link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .text-link-row .attach-link-small {
    width: 100%;
    margin-top: 10px;
    text-align: center;
  }
}


/* Loosen up text spacing inside cards */
.rec-method-subtitle {
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Add visual separation from headers */
.upload-header {
  margin-bottom: 36px;
}


/* ---- Tablet / mobile: stack cards ---- */


@media (max-width: 768px) {
  /* text button full width on tiny screens */


  #uploadView .link-row {
    flex-direction: column;
    align-items: stretch;
  }

  #uploadView .link-row .attach-link-small {
    width: 100%;
    text-align: center;
  }
}

/* ===========================
   ADD YOUR REC – 3 square cards
   =========================== */
/* ===========================
   ADD YOUR REC – 3 square cards
   =========================== */

/* Layout of the 3 cards */
#uploadView .rec-methods {
  display: flex;
  flex-wrap: wrap;       /* allow wrapping instead of forcing one row */
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  margin-top: 40px;
  max-width: 100%;
}
/* True square cards on desktop */
#uploadView .rec-method-card {
  flex: 1 1 280px;       /* grow/shrink, base ~280px */
  max-width: 340px;      /* cap width so they don’t get huge */
  border-radius: 32px;
  padding: 24px 24px 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Title + subtitle */
#uploadView .rec-method-title {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #7b7f98;
  margin-bottom: 6px;
}

#uploadView .rec-method-subtitle {
  font-size: 15px;
  line-height: 1.45;
  color: #444a5c;
  margin-bottom: 10px;
}



/* Keep top text snug */
#uploadView .rec-method-content {
  margin-bottom: 8px;
}

/* Bottom area (input/textarea/upload + button) aligned across cards */

#uploadView .rec-method-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
#uploadView .link-row,
#uploadView .text-link-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

#uploadView .paste-link-input,
#uploadView .paste-textarea {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.9rem;
}

#uploadView .paste-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.4;
}

#uploadView .attach-link-small,
#uploadView #manualTextScanBtn {
  width: 100%;
  max-width: 220px;
  align-self: center;
  white-space: nowrap;
}

/* Upload box sitting inside one card */
#uploadView .upload-box-inline {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 18px;
}

@media (max-width: 1100px) {
  #uploadView .rec-method-card {
    max-width: 320px;   /* a bit smaller */
  }
}

/* Tablet: 2-up (wrap), still centered */
@media (max-width: 900px) {
  #uploadView .rec-methods {
    justify-content: center;
    max-width: 720px;
    margin: 32px auto 0;
  }

  #uploadView .rec-method-card {
    flex: 1 1 320px;
  }
}

/* Mobile: single column full-width (but padded) */
@media (max-width: 640px) {
  #uploadView.rec-view {
    padding: 0 12px;
  }

  #uploadView .rec-methods {
    max-width: 480px;
    gap: 20px;
  }

  #uploadView .rec-method-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}




#uploadView .paste-link-input,
#uploadView .paste-textarea {
  font-family: inherit;
  font-size: 0.9rem;
}


/* Row that holds input + button */
#uploadView .link-row,
#uploadView .text-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Make the pill input and textarea stretch */
#uploadView .paste-link-input,
#uploadView .paste-textarea {
  flex: 1 1 auto;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  box-sizing: border-box;
}

/* Text area should be a nice block */
#uploadView .paste-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.4;
}

/* Keep buttons from wrapping */
#uploadView .attach-link-small,
#uploadView #manualTextScanBtn {
  white-space: nowrap;
}

/* Upload box centered & sized nicely inside its card */
#uploadView .upload-box-inline {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

/* ===========================
   TIGHTEN SQUARE CARD HEIGHT
   =========================== */

/* Pull the subtitle closer */
#uploadView .rec-method-subtitle {
  margin-bottom: 8px;
}

/* Reduce space above bottom controls */
#uploadView .rec-method-actions {
  margin-top: 12px;
}

/* Reduce textarea height slightly */
#uploadView .paste-textarea {
  min-height: 100px;
}

/* Slightly shrink upload box vertically */
#uploadView .upload-box-inline {
  padding-top: 18px;
  padding-bottom: 18px;
}
/* ===========================
   FINAL COMPACT SQUARE TUNING
   =========================== */

/* ===========================
   STACK BUTTONS UNDER INPUTS
   =========================== */

/* Turn rows into vertical stacks */
#uploadView .link-row,
#uploadView .text-link-row {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

/* Make buttons full-width and centered */
#uploadView .attach-link-small,
#uploadView #manualTextScanBtn {
  width: 100%;
  max-width: 220px;
  align-self: center;
}
#uploadView .rec-method-actions {
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 18px;
  padding-top: 18px;
}

/* Centered TikTok Results Panel */
.rec-results {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 36px;          /* space from the cards */
  padding: 0 20px;          /* mobile side padding */
}

/* Actual TikTok Card Container */

#tiktokPreviewContainer {
  width: 100%;
}


/* Give chips some vertical breathing room */
.tiktok-places-chips {
  margin-top: 14px;
  row-gap: 10px;
}

.tiktok-preview-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 36px;
  letter-spacing: 0.02em;
}

.screenshot-result-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.screenshot-preview {
  width: 160px;
  flex-shrink: 0;
}

.screenshot-preview img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.screenshot-results-content {
  flex: 1;
}

/* ✅ FORCE THE RESULTS AREA TO BE WIDE */
.rec-results,
#recResults {
  width: 100%;
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 0 16px;             /* side padding for small screens */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

/* Text-mode preview: chips on top, cards full width underneath */
.text-preview-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.text-preview-card .tiktok-places-results {
  width: 100%;
}

/* Shared results area for TikTok / screenshot / text cards */
.tiktok-places-results {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.tiktok-place-card {
  width: 100%;
}

.tiktok-place-card-inner {
  width: 100%;
}
.rr-footer{
  background: #000e33; /* match hero base */
  color: rgba(255,255,255,0.88);
  padding: 28px 0 56px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* 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;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.68);
}

/* 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{
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}

.footer-col a{
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(203,213,225,0.90); /* slate-ish */
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}

.footer-col a:hover{
  color: #ffffff;
  transform: translateX(1px);
}

/* Divider */
.footer-divider{
  margin: 34px 0 26px;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-app-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.footer-badges img {
  width: 130px;
}
/* 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{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.62);
  max-width: 560px;
}

.footer-socials a{
  margin-left: 12px;
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  transition: opacity .15s ease, transform .15s ease;
}

.footer-socials a:hover{
  opacity: 0.8;
  transform: translateY(-1px);
}
/* Friends who saved this modal */
.friends-saved-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;           /* above nav + other content */
}

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


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

/* Centered white 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: 1;  /* above backdrop */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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


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

.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/ gradient like your nav */
.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 {
  font-size: 13px;
  letter-spacing: 0.03em;
}

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

.friends-saved-monogram {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #050b1f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.friends-saved-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  max-height: 70vh;
  transform: translate(-50%, -50%);
  background: #000e33;
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  overflow-y: auto;
  background-color: #000e33;
}




.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: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000e33;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: white;
}

.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);
}

.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);
}


/* Keep actions under the text, not off to the side */
.tiktok-preview-actions {
  margin-top: 12px;
}


/* Each place card */
.tiktok-place-card {
  width: 100%;
}

/* TikTok place results = single column, full-width */
.tiktok-places-results {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;  /* 👈 one card per row */
  gap: 18px;
  align-items: stretch;    /* cards fill the width */
}

.place-website {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  color: #4b5bd5;
  text-decoration: none;
}

.place-website i {
  font-size: 11px;
}

.place-website:hover {
  text-decoration: underline;
}



/* Each place card fills its grid cell nicely */
.tiktok-place-card {
  width: 100%;
  max-width: none;   /* remove the single-card width limit */
}

/* Smaller dialog just for the TikTok Add to Collection modal */
#tiktokAddToTripModal .add-trip-dialog {
  width: 90%;
  max-width: 460px;          /* smaller than the main one */
  max-height: 70vh;          /* cap height so it never takes full screen */
  overflow-y: auto;          /* scroll inside if content is tall */
  padding: 20px 24px 24px;   /* a bit tighter padding */
  border-radius: 20px;
}
/* Scrollable collections list inside the smaller TikTok modal */
#tiktokAddToTripModal .add-trip-grid {
  max-height: 50vh;
  overflow-y: auto;
  margin-top: 16px;
  padding-right: 4px;          /* room for scrollbar */
}

/* Optional: nicer scrollbar on desktop */
#tiktokAddToTripModal .add-trip-grid::-webkit-scrollbar {
  width: 6px;
}

#tiktokAddToTripModal .add-trip-grid::-webkit-scrollbar-track {
  background: transparent;
}

#tiktokAddToTripModal .add-trip-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
}
@media (max-width: 600px) {
  #tiktokAddToTripModal .add-trip-dialog {
    max-width: 94%;
    max-height: 80vh;
    padding: 16px 18px 20px;
  }
}

/* Wrapper panel – same idea as your other grey result shells */
.maps-attach-panel {
  background: #f5f6fb;            /* copy this from your other grey panel */
  border-radius: 40px;
  padding: 20px 24px;
  box-shadow: 0 24px 70px rgba(26, 34, 68, 0.16);
  display: flex;
  justify-content: flex-start;    /* keep card on the left instead of hugging the right */
}

/* Card layout */
.maps-attach-card {
  display: flex;
  gap: 16px;
  background: #f5f5f7;
  border-radius: 26px;
  padding: 16px;
}

.maps-attach-image {
  flex: 0 0 180px;
  height: 120px;
  border-radius: 22px;
  overflow: hidden;
  background: #e5e5ea;
}

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


/* Text/content area */
.maps-attach-content {
  flex: 1;
}

.maps-attach-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Reuse your existing title/tag styles if you have them;
   these are just safety defaults */
.maps-attach-header .place-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.maps-attach-header .place-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 93, 255, 0.08);
}

/* Rating / address row */
.place-meta {
  margin-top: 4px;
  font-size: 14px;
  color: #555b7a;
}

.place-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* Buttons row */
.maps-attach-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.tiktok-place-description {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  font-style: italic;
  padding: 0;
}

.place-description {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  font-style: italic;
}

.tiktok-handle {
  margin-left: 6px;
  color: #c27aff;
  text-decoration: none;
  font-weight: 500;
}

.tiktok-handle:hover {
  text-decoration: underline;
}

.tiktok-place-chip.active {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.tiktok-place-chip.active:hover {
  transform: translateY(-1px);
}

/* --- Keep TikTok place cards inset inside the grey panel --- */
.tiktok-places-results {
  width: 100%;
  max-width: 100%;
  padding: 0 12px 16px;   /* ← adds left/right breathing room */
  box-sizing: border-box;
}

/* Each place card fills its padded area */
.tiktok-place-card {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .tiktok-preview-card {
    padding: 16px 12px 18px;  /* slightly smaller padding on the grey block */
  }

  .tiktok-places-results {
    padding: 0 8px 12px;      /* a bit less inset but still off the edges */
  }

  .tiktok-place-card {
    padding: 14px 14px 16px;  /* trims inner padding so content doesn’t feel cramped */
  }
}

@media (max-width: 768px) {
  /* Stack image above text so buttons have room */
  .tiktok-place-card-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tiktok-place-photo-wrapper {
    width: 100%;
    height: 190px;
    min-width: 0;
    margin-right: 0;
    margin-bottom: 12px;
  }

  /* Move the pill into the normal flow so it never gets cut off */
  .tiktok-place-type-pill {
    position: static;
    margin-top: 6px;
  }

  /* Stack the buttons full-width under the description */
  .tiktok-place-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 14px;
  }

  .tiktok-place-action-row > * {
    width: 100%;
    text-align: center;
    justify-content: center; /* for flex buttons */
  }

  .tiktok-place-save-btn {
    justify-content: center;
  }

  .tiktok-place-view-btn {
    display: inline-flex;
    justify-content: center;
  }
  .tiktok-place-action-row {
  display: flex;
  flex-wrap: wrap;        /* lets the second button move to a new line if needed */
  gap: 10px;
  align-items: center;
  justify-content: flex-start;  /* keep same alignment as now */
  margin-top: 16px;
}

/* Each child is treated like a button block */
.tiktok-place-action-row > * {
  flex: 0 0 auto;
}
}

/* ✅ NEW: Compact side-by-side layout */
.tiktok-preview-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  position: relative; /* ✅ Add this */
}

.tiktok-thumbnail-compact {
  flex-shrink: 0;
  width: 120px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}

.tiktok-thumbnail-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-thumb-placeholder i {
  color: white;
  font-size: 32px;
  opacity: 0.9;
}

.tiktok-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.tiktok-preview-meta {
  flex: 1;
  min-width: 0;
  /* Remove padding-right */
}


.tiktok-preview-title {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 4px 0 8px 0;
  /* Limit to 4 lines */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tiktok-preview-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tiktok-preview-author {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.tiktok-preview-link-inline {
  /* Remove position: absolute */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--purple);
  text-decoration: none;
  margin-top: 8px;
  color: #c27aff !important;
}

.tiktok-preview-link-inline:hover {
  text-decoration: underline;
}

.tiktok-preview-link-inline i {
  font-size: 11px;
}

.tiktok-places-section {
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

/* Keep existing chip styles */
.tiktok-places-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .tiktok-preview-header {
    flex-direction: column;
  }

  .tiktok-thumbnail-compact {
    width: 100%;
    height: 200px;
  }

  .tiktok-preview-author-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.tiktok-places-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tiktok-save-all-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tiktok-save-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tiktok-save-all-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-group label i {
  margin-right: 6px;
  color: #667eea;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Courier New', monospace;
}

.form-help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}
/* Extraction disclaimer styling */
.extraction-disclaimer {
  margin-bottom: 24px; /* ✅ Space below since it's at the top */
  padding: 12px 16px;
   background: rgba(75, 91, 213, 0.12);
  border-left: 3px solid #4b5bd5;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 20px;
  color: #666;
}

.extraction-disclaimer i {
  color: #4b5bd5;
  margin-right: 8px;
  font-size: 0.95rem;
}
