/* =====================================================================
   ROOT / GLOBAL
===================================================================== */

:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --border-subtle: #e5e7eb;
  --border-strong: #d1d5db;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --danger: #b91c1c;

  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 16px 40px rgba(0, 0, 0, 0.24);
}

/* Global reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

body {
  overflow: hidden;
}

/* =====================================================================
   MAIN LAYOUT
===================================================================== */

#map {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* TOP BAR */
#topBar {
  position: fixed;
  top: 0.6rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 20000;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  pointer-events: none;
  min-height: 3.1rem; /* Prevent collapse */
}

/* Hamburger */
#hamburgerButton {
  pointer-events: auto;
  border: none;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* SEARCH BAR — 320px width on desktop */
#searchBarWrapper {
  pointer-events: auto;
  flex: 0 0 320px;
  max-width: 320px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.3rem 0.45rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  position: relative; /* anchor for floating dropdown */
}

#search {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.4rem;
  background: transparent;
}

#search::placeholder {
  color: #9ca3af;
}

#searchClear,
#searchButton {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  font-size: 0.9rem;
  color: #6b7280;
}

#searchClear:hover,
#searchButton:hover {
  color: #111827;
}

/* TOP BAR BUTTONS */
#topBarButtons {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#topBarButtons {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto; /* pushes buttons to the right */
}

.topbar-btn {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  
  /* Match search bar height */
  padding: 0.55rem 1rem;         /* Increase vertical padding */
  height: 2.6rem;               /* Exactly matches search wrapper height */
  
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);

  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.close-btn {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  
  padding: 0.45rem 0.9rem;
  height: 2.4rem;

  font-size: 0.8rem;
  cursor: pointer;
  color: #111827;

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

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease;
}

.close-btn:hover {
  background: #f3f4f6;
}



/* =====================================================================
   SEARCH RESULTS DROPDOWN (FLOATING)
===================================================================== */

#searchResults {
  position: absolute;
  top: calc(100% + 0.45rem); /* Drops directly below the search bar */
  left: 0;
  width: 100%;
  z-index: 20001;

  background: #ffffff;
  border-radius: 1rem;
  padding: 0.6rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);

  display: none;              /* Shown via JS when there are results */
  max-height: 40vh;           /* Desktop max height */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.search-results-header {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.result-item {
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.4rem;
  cursor: pointer;
  transition: 0.15s ease;
}

.result-item:last-child {
  margin-bottom: 0;
}

.result-item:hover {
  background: #ffffff;
  border-color: #d1d5db;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.result-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.result-meta {
  font-size: 0.78rem;
  color: #6b7280;
}

/* =====================================================================
   SIDEBAR (Filters)
===================================================================== */

#sidebar {
  position: fixed;
  top: 4.9rem;
  left: 0.75rem;
  width: 320px; /* <-- Keeping sidebar width at 320px */
  height: calc(100vh - 5.8rem);
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  z-index: 1000;
  padding: 0.9rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

#sidebar.collapsed-desktop {
  transform: translateX(-120%);
}

/* Sidebar drag handle for mobile */
.sidebar-handle {
  display: none;
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 0 auto 0.6rem;
}

/* Sidebar header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.sidebar-header-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
}

.sidebar-header-actions button {
  border: 1px solid #d1d5db;
  background: #eef2f7;
  color: #111827;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
}

/* Info bar */
#infoBar {
  font-size: 0.78rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.7rem;
}

/* Filters */
.filter-group {
  margin-bottom: 1rem;
}

.filter-group h4 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
}

.filter-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

.filter-buttons button {
  padding: 0.42rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-size: 0.78rem;
  background: #ffffff;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.filter-buttons button.active {
  background: #dbeafe;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.cat-dot-large {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
}

/* Reset button */
.reset-filters-btn {
  width: 100%;
  padding: 0.45rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 0.78rem;
  cursor: pointer;
}

/* =====================================================================
   MAP CONTROLS (UNIFIED)
===================================================================== */

#mapControls {
  position: fixed;
  right: 0.9rem;
  bottom: 1.2rem;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* shared floating style for all map controls */
.floating-btn {
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0,0,0,0.30);
  font-size: 1.2rem;
}

/* map style toggle as pill with icon + label */
#mapStyleToggle {
  padding: 0.38rem 0.75rem;
  width: auto;
  min-width: 2.6rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.map-style-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* style menu anchored above the style toggle */
#mapStyleMenu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.3rem;
  border: 1px solid #d1d5db;
  display: none;
  z-index: 11001;
  box-shadow: 0 16px 30px rgba(0,0,0,0.32);
}

#mapStyleMenu.open {
  display: block;
}

.style-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.6rem;
  font-size: 0.82rem;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
}

.style-option.active {
  background: #dbeafe;
  border-color: #2563eb;
}

/* GPS: reuse floating-btn, keep pulse animation */
#gpsButton.gps-active {
  animation: gpsPulse 1s ease-out infinite;
}

@keyframes gpsPulse {
  0% { box-shadow: 0 0 0 0 rgba(56,189,248,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(56,189,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}

/* =====================================================================
   LEAFLET POPUPS + MARKERS
===================================================================== */

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #ffffff;
  color: #111827;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.popup-card {
  padding: 0.75rem;
  max-width: 280px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.popup-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.popup-category {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.35rem;
}

.popup-desc {
  font-size: 0.78rem;
  color: #374151;
  margin-bottom: 0.55rem;
}

.popup-gmaps-button {
  display: inline-block;
  margin: 10px 0;
  padding: 8px 14px;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.popup-image-wrapper img {
  width: 100%;
  border-radius: 0.75rem;
}

.fav-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.2rem;
  cursor: pointer;
}

.fav-btn.fav-active {
  color: #f97316;
}

.popup-button {
  display: inline-block;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #2563eb;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
}

.popup-button:hover {
  background: #2563eb;
  color: white;
}

/* Marker pins */
.custom-marker .marker-pin {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.marker-pin-selected {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.65);
}

.marker-emoji {
  transform: rotate(45deg);
  font-size: 13px;
}

.marker-highlight-ring {
  animation: markerPulse 0.8s ease-out forwards;
}

@keyframes markerPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  70% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* =====================================================================
   LIST VIEW PANEL
===================================================================== */

#listViewOverlay {
  position: fixed;
  top: 3.5rem;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 380px;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 26px rgba(0,0,0,0.22);
  z-index: 10500;
  overflow: hidden;

  /* Animation */
  transform: translateX(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#listViewOverlay.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.list-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-header-title {
  font-size: 0.88rem;
  font-weight: 600;
}

#listViewList {
  padding: 0.8rem;
  height: calc(100% - 3.2rem);
  overflow-y: auto;
}

.list-item {
  display: flex;
  gap: 0.55rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 0.6rem;
  border-radius: 0.9rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: 0.15s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.list-item:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 14px rgba(0,0,0,0.20);
}

.list-thumb {
  width: 110px;      /* wider */
  height: 110px;     /* same height → perfect square */
  border-radius: 0.85rem;
  background: #e5e7eb;
  overflow: hidden;
  flex-shrink: 0;
}

.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-details {
  flex: 1;
}

.list-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.list-fav-btn {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.1rem;
  cursor: pointer;
}

.list-fav-btn.fav-active {
  color: #f97316;
}

.list-meta {
  font-size: 0.78rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}


.list-meta-color {
  width: 10px;
  height: 10px;
  border-radius: 0.25rem;
  background: var(--accent);
  flex-shrink: 0;
}

.list-meta-category,
.list-meta-region {
  white-space: nowrap;
}

.list-desc {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.35;

  /* ← TRUE 3 lines: */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;

  /* ← REMOVE ANY max-height if you previously had it */
  max-height: unset;
}

/* =====================================================================
   MOBILE PLACE SHEET
===================================================================== */


/* Filter sheet layout */
.filter-sheet-inner {
  padding: 0 1rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(env(safe-area-inset-bottom) + 0.75rem);
}

.filter-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.filter-sheet-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.filter-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding-top: 0.5rem;
}
.place-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1rem 1rem 0 0;
  background: #ffffff;
  z-index: 12000;
  transform: translateY(110%);
  transition: transform 0.25s ease;
  max-height: calc(var(--vh, 1vh) * 80);
  box-shadow: 0 -16px 34px rgba(0,0,0,0.35);
  will-change: transform;
}

.place-sheet.visible {
  transform: translateY(0);
}

.place-sheet.expanded {
  max-height: calc(var(--vh, 1vh) * 90);
}

.sheet-handle {
  width: 52px;
  height: 5px;
  background: #d1d5db;
  border-radius: 999px;
  margin: 0.5rem auto;
}

.place-sheet-inner {
  padding: 0 1rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#sheetPreview {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.sheet-title-row {
  display: flex;
  justify-content: space-between;
}

#sheetTitle {
  font-weight: 600;
  font-size: 1rem;
}

#sheetFavBtn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #9ca3af;
  cursor: pointer;
}

#sheetFavBtn.fav-active {
  color: #f97316;
}

#sheetMeta {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

#sheetExpand {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: #eef2f7;
  border: 1px solid #d1d5db;
  font-size: 0.78rem;
  cursor: pointer;
}

#sheetDetails {
  overflow-y: auto;
  padding-top: 0.55rem;
}

#sheetImage {
  width: 100%;
  border-radius: 0.9rem;
  margin-bottom: 0.7rem;
}

#sheetDescription {
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 0.6rem;
}

#sheetMapsBtn {
  display: inline-block;
  padding: 0.48rem 0.75rem;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  border: 1px solid #2563eb;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
}

#sheetMapsBtn:hover {
  background: #2563eb;
  color: white;
}

/* =====================================================================
   RESPONSIVE (MOBILE)
===================================================================== */

@media (max-width: 768px) {
  /* Mobile: use filter sheet instead of sidebar */
  #sidebar {
    display: none;
  }

  #filterSheet {
    display: block;
    transform: translateY(calc(100% - 40px)); /* 24px peek */
    transition: transform 0.25s ease;
  }

  #filterSheet.visible {
    transform: translateY(0);
  }

  #filterSheet .peek-drag-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 1100;
  }

  /* Mobile list & saved view as bottom sheet / split view */
  #listViewOverlay {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(var(--vh, 1vh) * 55);
    max-height: calc(var(--vh, 1vh) * 70);
    border-radius: 1rem 1rem 0 0;
    transform: translateY(100%);
  }

  #listViewOverlay.open {
    transform: translateY(0);
  }

  #listViewOverlay .list-header {
    padding-top: 0.4rem;
  }

  #listViewList {
    height: calc(100% - 3.2rem);
  }

  .list-sheet-handle {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #d1d5db;
    margin: 0.4rem auto 0.1rem;
  }


  #sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    border-radius: 1rem 1rem 0 0;
    height: calc(var(--vh, 1vh) * 55);
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }

  #sidebar.open-mobile {
    transform: translateY(0);
  }

  #sidebar.collapsed-desktop {
    transform: translateY(100%);
  }

  #topBarButtons {
    flex-direction: column;
  }

  #searchBarWrapper {
    flex: 1;
    max-width: none; /* Full width on mobile */
  }

  /* Search results dropdown — mobile */
  #searchResults {
    max-height: 75vh;       /* Taller on mobile */
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* =====================================================================
   SKELETON
===================================================================== */

.skeleton {
  background: linear-gradient(90deg, #e5e7eb, #f3f4f6, #e5e7eb);
  background-size: 200% 100%;
  animation: skeleton-loading 1.2s ease-in-out infinite;
}

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








@media (min-width: 769px) {
  #filterSheet { display: none; }
}

.filter-drag-handle {
  width: 40px;
  height: 4px;
  background: #ccc;
  border-radius: 4px;
  margin: 8px auto;
}

.filter-sheet-header {
  display:flex;
  flex-direction:column;
  align-items:center;
}

.filter-drag-handle {
  margin: 8px auto;
}

@media (max-width: 768px) {
  #menuButton { display:none !important; }
}


@media (max-width: 768px) {
  #hamburgerButton {
    display: none !important;
  }
}


/* ListViewOverlay Mobile/Desktop Overrides */

@media (max-width: 768px) {
  #listViewOverlay {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: calc(var(--vh, 1vh) * 70) !important;
    border-radius: 1rem 1rem 0 0 !important;
    transform: translateY(100%) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: transform 0.25s ease !important;
    will-change: transform;
  }
  #listViewOverlay.open {
    transform: translateY(0) !important;
  }
}


@media (min-width: 769px) {
  #listViewOverlay {
    transform: translateX(110%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  #listViewOverlay.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}


/* Drag Handle Hitbox Expansion */

/* Expanded drag hitbox for all bottom sheet handles */
.list-sheet-handle,
.sheet-handle,
.peek-drag-area {
  position: relative;
}

.list-sheet-handle::after,
.sheet-handle::after,
.peek-drag-area::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 430px;
  height: 40px;
  transform: translate(-50%, -50%);
}


/* Close button visibility */
@media (max-width: 768px) {
  #closeListView { display: none !important; }
}

@media (min-width: 769px) {
  #closeListView { display: inline-block !important; }
}

/* Map control alignment */

#mapControls {
  right: 1rem !important;
  left: auto !important;
  bottom: 2.5rem !important;
}

/* map controls patch */

#mapControls {
  position: fixed;
  right: 1rem !important;
  bottom: 4rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 9000 !important;
}

#placeSheet,
#filterSheet,
#listViewOverlay {
  z-index: 12000 !important;
}


/* Map style toggle matches floating-btn dimensions */
#mapStyleToggle {
  width: 48px !important;
  height: 48px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

/* Align controls right and lift higher */
#mapControls {
  right: 0.75rem !important;
  bottom: 6rem !important;
}

/* Popup region and rows */
.popup-region { font-size: 13px; color: #555; margin-bottom: 4px; }
.popup-row { margin: 6px 0; font-size: 14px; }

/* Expandable section */
.popup-more-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.popup-more-section.expanded {
  max-height: 300px;
}

/* Share menu */
.popup-share-menu.hidden { display: none; }
.popup-share-menu { padding: 8px 0; border-top: 1px solid #eee; }
.popup-share-button { background: none; border: none; font-size: 18px; cursor: pointer; }

/* Buttons */
.popup-see-more {
  margin-top: 8px;
}

.sidebar-ad-fixed {
  width: 250px !important;
  height: 250px !important;
  overflow: hidden;
  margin: 0 auto; /* centers it */
}

.sidebar-ad-fixed iframe {
  width: 250px !important;
  height: 250px !important;
}

.image-credit {
  font-size: 10px;
  opacity: 0.55;
  margin-top: 4px;
  text-align: right;
}
