/* ========================
   UNIVERSAL DRAWER MODAL
======================== */

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9989;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* ⬇️ Anchored to bottom */
}

.modal-box {
  position: relative;
  height:auto;
  overflow-y: auto;   /* ✅ enables scroll */
  overflow-x: hidden;
  background: #fff;
  width: 100%;   
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease-out;
  padding: 0;  
}

/* ========================
   CLOSE BUTTON
======================== */

.modal-close-button {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  font-size: 14px;
  background: none;
  border: none;
  color: #fff;
  background-color: #000a;
  padding: 2px 6px;
  border-radius: 5px;
}

.modal-close-button:hover {
  color: #000;
}
.media-close-button {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  font-size: 12px;
  background: none;
  border: none;
  color: #fff;
  background-color: #000a;
  padding: 3px 6px;
  border-radius: 12px;
}

.media-close-button:hover {
  color: #000;
}
/* ========================
   MODAL CONTENT SECTIONS
======================== */

.modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #ddd;
} 
#drawerModal .modal-box {
  overflow-y: auto;   
  overscroll-behavior: contain;      /* ✅ stops background scroll bleed */
  padding: 8px;
  max-width: 335px; 
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  position: relative;
}

/* Optional: Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1em;
}

.modal-footer {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-top: 1px solid #ddd;
  background-color: #fff;
}

/* ========================
   DRAG HANDLE (Optional)
======================== */
.modal-drag-handle {
  width: 50px;
  height: 5px;
  background: #ccc;
  border-radius: 4px;
  margin: 12px auto;
}

/* ========================
   SLIDE ANIMATION
======================== */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
/* 🔁 Exit animation class */
.modal-box.slide-down {
  animation: slideDown 0.2s ease-out forwards;
}

@keyframes slideDown {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}

#drawerContent {  
  flex: 1 1 auto;
  overflow-y: scroll; /* was auto */
  -webkit-overflow-scrolling: touch; /* enable momentum scroll on iOS */
  padding: 4px; 
}

.drawer-header {
  display: flex;
  width: 95%;
  justify-content: space-between;    /* Option 1: spaces evenly but might not be 100% equal width if the buttons shrink */
  /* OR, better: */
  justify-content: stretch;          /* Option 2: works with flex:1 on children for *truly* equal widths */
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px;
}

.drawer-footer {
  padding: 12px 16px;
  border-top: 1px solid #e0e0e0;
  background-color: #f9f9f9;
}

.modal-box.drawer-small {
  height: 30vh;
  overflow-y: auto;
}
.modal-box.drawer-medium {
  height: 50vh;
  overflow-y: auto;
}
.modal-box.drawer-tall {
  height: 75vh;
  overflow-y: auto;
}

.modal-box.drawer-default {
  height: 50vh;
  overflow-y: auto;
}

.inbox-header {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
}

.inbox-filter-button {
  padding: 6px 12px;
  font-size: 14px;
  border: none;
  background: #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.inbox-filter-button:hover {
  background: #ccc;
}

.inbox-thread-list {
  padding: 10px;
}
.inbox-thread-row {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.inbox-thread-content {
  padding-left: 10px;
  display: flex;
  min-width: 160px;;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* <-- fix */
}


.inbox-thread-handle {
  font-weight: bold;
  font-size: 14px;
}

.inbox-thread-snippet {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-thread-snippet.unread {
  font-weight: normal;
  color: #555;
  font-size: 12px;
  font-style: italic;
  margin-top: 6px;
}

.inbox-thread-meta {
  text-align: right;
  font-size: 12px;  
}

.inbox-thread-unread-badge {
  background: red;
  color: white;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  margin-top: 4px;
}
.inbox-thread-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.inbox-thread-time {
  color: #888;
  font-size: 12px;
}


#mediaModal {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.85);
  position: fixed;
  inset: 0;
  z-index: 9999;
}

#mediaWrapper {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mediaWrapper > #mediaModalImage,
#mediaWrapper > video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 0.2rem;
}


#mediaControls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}


#mediaDuration {
  position: absolute;
  bottom: 3.2rem;
  left: 1.2rem;
  font-size: 0.75rem;
  color: #f3f4f6;
  text-shadow: 0 0 2px black;
  pointer-events: auto;
}


#mediaProgress {
  position: absolute;
  bottom: 2.5rem;
  left: 1rem;
  right: 1rem;
  height: 4px;
  background-color: #991b1b;
  appearance: none;
  border: none;
  border-radius: 2px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 51;
}

#mediaProgress::-webkit-slider-thumb,
#mediaProgress::-moz-range-thumb {
  width: 0;
  height: 0;
  background: transparent;
  border: none;
}


#mediaPlayBtn {
  position: absolute;
  bottom: 0.25rem;
  left: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 50;
}

#mediaPlayBtn:hover {
  transform: scale(1.1);
}


#mediaMuteBtn {
  position: absolute;
  bottom: 0.25rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  pointer-events: auto;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 50;
}

#mediaMuteBtn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.show {
  display: flex !important;
}
.external-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005;
}

.external-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  animation: fadeSlideIn 0.25s ease-in-out;
}

.external-modal-header {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #b22222;
}

.external-modal-body {
  font-size: 0.95rem;
  color: #222;
  margin-bottom: 18px;
}

.external-url-display {
  font-family: monospace;
  color: #555;
  background-color: #f1f1f1;
  padding: 6px;
  margin: 6px 0;
  word-break: break-all;
  border-radius: 4px;
}

.external-modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.external-modal-buttons .btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.external-modal-buttons .btn.proceed {
  background-color: #d40101;
  color: white;
}

.external-modal-buttons .btn.cancel {
  background-color: #ccc;
  color: #333;
}


/*
.media-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.media-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-video,
.modal-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  background: black;
}

.media-close-btn {
  position: absolute;
  top: -20px;
  right: -20px;
  background: #fff;
  color: #000;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.hidden {
  display: none;
}

.show {
  display: flex !important;
}
*/

.fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: none; /* or flex */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
}

.fullscreen-modal.active {
  display: flex;
  z-index: 101000
}

.fullscreen-modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 1;
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  background: #fff;  
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#addMediaFrame {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

@media (min-width: 768px), screen and (min-width: 1024px) {

#drawerModal .modal-box {    
    max-width: 550px;  
}
#floatingSearchBar.expanded {
    width: 640px !important;
    max-width: 640px !important;  
}

#searchResults {
  display: none;
  max-height: 730px !important;
}

/* Prevent scroll on tile wrapper */
.no-scroll {
  overflow: hidden !important;
  height: 100%;
}
.addlink-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
}

.addlink-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  animation: fadeSlideIn 0.25s ease-in-out;
}

.addlink-modal-header {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #004a99;
}

.addlink-modal-body {
  font-size: 0.95rem;
  color: #222;
  margin-bottom: 18px;
}

.addlink-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 0.95rem;
}

.addlink-validation-message {
  color: #c40000;
  font-size: 0.85rem;
  margin-top: 6px;
  min-height: 18px;
}

.addlink-modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.addlink-modal-buttons .btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.addlink-modal-buttons .btn.submit {
  background-color: #004a99;
  color: white;
}

.addlink-modal-buttons .btn.cancel {
  background-color: #ccc;
  color: #333;
}
}

/* floating search bar */
#floatingSearchBar {
  position: fixed;
  left: 50%;
  top: 34px;   
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  color: #eee;
  font-family: 'Inter', sans-serif;
  user-select: none;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 650;
  display: flex;
  align-items: center;
  padding: 6px 12px;  
  transform: translateX(-50%); 
}

/* Expanded state */
#floatingSearchBar.expanded {  
  background: rgb(178 202 233 / 85%);
  cursor: default;
  flex-direction: column;
  padding: 6px 9px;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 360px;
  max-width: 385px;
}

/* Label bar when collapsed */
#searchBarLabel {
  flex: 0 0 auto;   
  text-align: center;
  font-size: 14px;
  letter-spacing: 2px;
  pointer-events: auto;        /* so it can be clicked */
  cursor: pointer;             /* visual affordance */
}

#floatingSearchBar.expanded #searchBarLabel {
  display: block;        /* ensure it’s visible   */
  font-size: 14px;       /* a bit smaller         */  
  cursor: pointer;       /* still acts as toggle  */
  color: #575454;
  margin-bottom: 8px;
}
#floatingSearchBar:not(.expanded) #searchBarLabel {
  flex: 1 1 auto;          /* fill the whole row */
  text-align: center;      /* horiz-center text  */
  
}
#floatingSearchBar:not(.expanded) .inline-geocode { display: none; }
#searchBarContent {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* <— keeps everything at the top */
  align-items: stretch;          /* full width */
}

/* Search form container */
#searchFormContainer {
  display: none;
  flex-direction: row;
  gap: 8px;
}

#floatingSearchBar.expanded #searchFormContainer {
  display: flex;
}

/* Textarea */
#searchFormContainer textarea {
  width: 100%;
  height: 33px;
  resize: none;
  border-radius: 12px;
  border: 1px solid #555;
  padding: 6px 6px;
  font-size: 14px;
  font-family: inherit;  
  color: #000;
  outline: none;
  transition: border-color 0.2s ease;
}

#searchFormContainer textarea:focus {
  border-color: #0693e3;  
}

/* Search button */
#searchFormContainer button {
  height: 32px;
  border-radius: 12px;
  border: none;
  background-color: #0693e3;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#searchFormContainer button:hover {
  background-color: #005f9e;
}

/* Loading spinner */
#loadingSpinner {
  display: none;
  text-align: center;
  font-size: 18px;
  color: #06a;
}

/* Results container */
#searchResults {
  display: none;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 12px;
  background-color: #fff;
  border-radius: 12px;
  padding: 10px;
  color: #ddd;
  font-size: 14px;
}

/* Show results */
#floatingSearchBar.expanded #searchResults {
  display: block;
}

/* See on map button */
#viewOnMapBtn {
  display: none;
  margin-top: 8px;
  align-self: flex-end;
  background-color: #0a84ff;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

#viewOnMapBtn:hover {
  background-color: #065fc7;
}

/* Close button */
#closeSearchBarBtn {
  display: none;
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #eee;
  cursor: pointer;
  font-weight: 700;
  user-select: none;
}

#floatingSearchBar.expanded #closeSearchBarBtn {
  display: block;
}

/* Form styling */
.float-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;  
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.float-search-form textarea {
  flex-grow: 1;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-height: 36px;
  max-height: 48px;
}

.float-search-form button {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  background-color: #0077cc;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.float-search-form button:hover {
  background-color: #005fa3;
}
/* ─── resize handle ─────────────────────────────── */
.resize-handle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  cursor: se-resize;
  /* small diagonal “grip” */
}
.resize-handle::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(135deg, transparent 50%, #666 50%),
    linear-gradient(135deg, transparent 70%, #666 70%);
  background-size: 100% 2px, 2px 100%;
  background-repeat: no-repeat;
}

#floatingSearchBar:not(.expanded) .resize-handle {
  display: none;          /* only show when drawer is open */
}
#floatingSearchBar:not(.expanded) {
  justify-content: center;   /* <─ NEW */
}

.activity-list-container {
  padding: 1em .5em .5em .5em;
}
.activity-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f2f2f2;
  transition: background 0.15s;
  cursor: pointer;
  position: relative;
}
.activity-row:hover {
  background: #f6f8fa;
}
.activity-details {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-right: 10px;
}
.activity-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  cursor: pointer;
  border: 2px solid transparent;
}
.activity-avatar:hover {
  border: 2px solid #2684ff;
  box-shadow: 0 2px 8px 0 rgba(38,132,255,0.10);
}
.activity-message {
  font-size: 14px;
  color: #222;
  margin-bottom: 3px;
  word-break: break-all;
  position: relative;
}

.activity-message b {
  cursor: pointer;
  color: #2684ff;
  transition: text-decoration 0.15s, color 0.15s;
  text-decoration: none;
}
.activity-message b:hover {
  text-decoration: underline;
  color: #1848a0;
}

.inline-comment {
  color: #444;
}
.activity-time {
  color: #aaa;
  font-size: 0.71em;
  margin-left: 10px;
  margin-right: 0;
  letter-spacing: 0.01em;
  font-weight: 400;
}
.object-thumb {
  width: 34px;
  height: 34px;
  margin-left: 16px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.85;
}
.object-thumb:hover {
  border: 2px solid #2684ff;
  opacity: 1;
}
.comment-likes2 img {
  border-radius: 50%;
  transition: box-shadow 0.15s, background 0.15s;
}
.comment-likes2 img:hover {
  background: #fde4e1;
  box-shadow: 0 0 0 2px #e74c3c50;
  opacity: 1 !important;
}
.comment-row-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 120px;
  margin: 0.25em 0 0.1em 0;
  padding-left: 2px;
  font-size: 0.96em;
}
.comment-row-actions a {
  color: #007bff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.12s;
}
.comment-row-actions a:hover {
  color: #222;
  text-decoration: underline;
}
.reply-field-container { margin-top: 5px; }

.comment-likes2 {  
  display: inline !important;
  vertical-align: middle;  
}

.followers-tabs-header {
  display: flex;
  gap: 1.3em;
  padding: 0.5em 0 1em 0;
  font-size: 1.11em;
}
.followers-tab {
  cursor: pointer;
  font-weight: 600;
  color: #888;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color 0.12s, border-color 0.12s;
}
.followers-tab.active {
  color: #222;
  border-color: #2167ca;
}
.followers-list-content { margin-top: 0.5em; }
.followers-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0.45em 0;
  border-bottom: 1px solid #f3f3f3;
}
.followers-avatar {
  width: 34px;
  height: 34px;
  border-radius: 100%;
  object-fit: cover;
  margin-right: 4px;
  background: #eee;
  cursor: pointer;
}
.followers-handle {
  font-size: 14px;
  color: #2167ca;
  font-weight: 600;
  cursor: pointer;
}

.followers-actions {
  display: flex;
  gap: .5em;
  align-items: center;
}
.followers-actions button {
  display: inline-flex;
  align-items: center;
  gap: .33em;
  border: none;
  border-radius: 16px;
  padding: 3.5px 12px 3.5px 12px;
  font-size: 12px;
  line-height: 1.15;
  background: #f6f7fa;
  color: #333;
  cursor: pointer;
  transition: 
    background 0.18s cubic-bezier(.42,0,.58,1),
    box-shadow 0.17s,
    color 0.16s;
  box-shadow: 0 0.5px 2px 0 rgba(50,60,120,.06);
  font-weight: 500;
  min-width: 0;
  min-height: 28px;
  letter-spacing: 0.01em;
}
.followers-actions button:hover,
.followers-actions button:focus {
  background: #eceffc;
  box-shadow: 0 1.5px 5px 0 rgba(80,120,200,0.10);
  color: #111;
}
.followers-actions .unfollow-btn {
  background: #ffe5e5;
  color: #d32f2f;
}
.followers-actions .unfollow-btn:hover,
.followers-actions .unfollow-btn:focus {
  background: #ffd0d0;
  color: #b81c1c;
}
.followers-actions .follow-back-btn {
  background: #e6f0ff;
  color: #246eea;
}
.followers-actions .follow-back-btn:hover,
.followers-actions .follow-back-btn:focus {
  background: #d5eaff;
  color: #1451b6;
}
.followers-actions .block-btn {
  background: #f7f7f7;
  color: #666;
}
.followers-actions .block-btn:hover,
.followers-actions .block-btn:focus {
  background: #ededed;
  color: #333;
}
.followers-actions .unblock-btn {
  background: #e7ffe7;
  color: #29924b;
}
.followers-actions .unblock-btn:hover,
.followers-actions .unblock-btn:focus {
  background: #cfffce;
  color: #217c3b;
}

.followers-actions button:active {
  filter: brightness(.96);
}

.followers-actions button:disabled {
  opacity: 0.53;
  pointer-events: none;
}
.followers-actions .follow-btn {
  background: #f4f8ff;
  color: #246eea;
}
.followers-actions .follow-btn:hover,
.followers-actions .follow-btn:focus {
  background: #e2edfc;
  color: #1451b6;
}


.followers-tabs-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 1.2em;
  padding: 2px 0 9px 0;
  border-bottom: 1.5px solid #f2f3f6;
  margin-bottom: 7px;
  background: none;
}
.followers-tab {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  color: #999;
  background: none;
  border: none;
  padding: 6px 9px 3px 9px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: color .17s;
}
.followers-tab.active, .followers-tab:hover {
  color: #2352db;
  background: #f5f8ff;
}
.followers-tab.active::after {
  content: '';
  display: block;
  position: absolute;
  left: 17%;
  right: 17%;
  bottom: -7px;
  height: 2.5px;
  border-radius: 2px;
  background: #2352db;
}


.activity-tab {
  flex: 1;
  background: none;
  border: none;
  color: #232323;
  font-size: 1.06em;
  padding: 8px 0 6px 0;
  margin: 0 6px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s, box-shadow 0.15s;
  font-weight: 500;
  outline: none;
  position: relative;
  letter-spacing: .01em;
}

.activity-tab.active {
  color: #007bff;
  font-weight: 600;  
}

.activity-tab.active::after {
  content: '';
  display: block;
  margin: 2px auto 0 auto;
  height: 3px;
  width: 65px;
  background: linear-gradient(90deg, #007bff, rgb(122, 178, 241));
  border-radius: 3px;
}

.activity-tab:hover:not(.active) {
  color: #fff;
  background: #faf5f5;
  box-shadow: 0 1px 4px -3px #b51a1a22;
}
/* Result rows */
.result-row {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.result-row:last-child {
  border-bottom: none;
}
.result-title {
  font-weight: 600;
  color: #0a60b6;
  text-decoration: none;
}
.result-title:hover {
  text-decoration: underline;
}
.result-type {
  font-size: 12px;
  color: #888;
  margin-left: 8px;
}
.result-snippet {
  font-size: 13px;
  color: #555;
}

/* Show all on map button */
#showAllOnMapBtn {
  display: inline-block;  
  align-self: flex-end;
  background-color: #0693e3;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 3px 4px;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.18s;
}
#showAllOnMapBtn:hover {
  background: #128143;
}
/* Results container */
#searchResults {
  display: none;
  max-height: 550px;
  overflow-y: auto;
  margin-top: 8px;
  background-color: #fff;
  border-radius: 10px;
  padding: 4px;
  color: #252525;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
#searchResults .results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-card {
  border-bottom: 1px solid #e6e6e6;
  padding: 14px 0 10px 0;
  margin-bottom: 1px;
  font-size: 1em;
}
.result-mainrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 3px;
}
.result-link-btn {
  background: #204488;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 7px 17px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1.1em;
  letter-spacing: 0.03em;
}
.result-link-btn:hover {
  background: #285bc7;
}
.result-title-main {
  font-size: 1.1em;
  font-weight: bold;
  color: #1a2c44;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.result-block {
  color: #333;
  font-size: 0.97em;
  margin-bottom: 3px;
  line-height: 1.35;
  word-break: break-all;
}
.result-date {
  color: #888;
  font-size: 0.93em;
  margin-top: 2px;
}
.result-link {
  font-weight: bold;
  font-size: 1.1em;
  color: #204488;
  text-decoration: underline;
  margin-right: 14px;
  cursor: pointer;
}
.result-link:hover {
  color: #1456a0;
  text-decoration: underline;
}
/* wrapper to position icon relative to textarea */
.floatSearchWrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* give textarea room for the button */
.floatSearchWrapper #floatSearchInput {
  padding-right: 36px; /* adjust if your icon is bigger */
}

/* give space so text doesn't overlap the icon */
.floatSearchWrapper #floatSearchInput { padding-right: 40px; }

/* the icon “inside” the field, isolated from any generic button styles */
.face-scan-trigger {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 2;
  user-select: none;
}

.face-scan-trigger svg { opacity: .6; transition: opacity .15s; }
.face-scan-trigger:hover svg,
.face-scan-trigger:focus svg { opacity: 1; }

.media-owner-link.disabled {
  pointer-events: none;
  cursor: default;
  opacity: .7; /* optional */
  text-decoration: none;
}
.search-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 8px;
}
.search-summary { color: #222; }
.search-summary .search-limited { margin-left: 6px; opacity: .7; }
.search-view-on-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
}
.search-view-on-map img { width: 16px; height: 16px; }
