:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --surface-soft: #f7f8fb;
  --text: #121826;
  --muted: #6b7280;
  --line: rgba(16, 24, 40, 0.09);
  --primary: #ff4d5e;
  --primary-dark: #e93247;
  --primary-soft: #fff0f2;
  --accent: #4f46e5;
  --shadow-sm: 0 8px 26px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --topbar-h: 72px;
  --sidebar-w: 220px;
  --detail-w: 396px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }


/*
 * Struktur inti Leaflet sebagai fallback lokal.
 * Aturan ini memastikan tile dan marker tetap diposisikan absolut apabila
 * stylesheet Leaflet dari CDN tidak terbaca saat file HTML dibuka langsung.
 */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}
.leaflet-container { overflow: hidden; outline-offset: 1px; }
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}
.leaflet-tile { visibility: hidden; }
.leaflet-tile-loaded { visibility: inherit; }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-zoom-hide { visibility: hidden; }

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--detail-w);
  grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  transition: grid-template-columns .26s cubic-bezier(.22,.8,.24,1);
}

/* Panel kanan hanya memakai ruang ketika pengguna membuka marker atau aktivitas. */
body.detail-panel-hidden:not(.workspace-active) .app-shell {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) 0;
}
body.detail-panel-hidden:not(.workspace-active) .detail-panel {
  width: 0;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-left: 0;
  overflow: hidden;
}

.topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(300px, 620px) 1fr;
  align-items: center;
  gap: 18px;
  height: var(--topbar-h);
  padding: 0 20px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.brand-mark { width: 34px; height: 40px; display: grid; place-items: center; color: var(--primary); filter: drop-shadow(0 8px 10px rgba(255,77,94,.22)); }
.brand-mark svg { width: 34px; height: 40px; stroke: none; }

.global-search { position: relative; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border: 1px solid transparent; border-radius: 14px; background: #f2f4f7; transition: .2s ease; }
.global-search:focus-within { background: #fff; border-color: rgba(79,70,229,.25); box-shadow: 0 0 0 4px rgba(79,70,229,.08); }
.global-search svg { width: 19px; color: #344054; }
.global-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.global-search input::placeholder { color: #98a2b3; }
kbd { border: 1px solid #e4e7ec; border-bottom-width: 2px; border-radius: 7px; padding: 3px 7px; background: #fff; color: #98a2b3; font-size: 11px; }

.top-actions { justify-self: end; display: flex; align-items: center; gap: 5px; }
.top-action, .icon-button, .profile-menu { border: 0; background: transparent; cursor: pointer; }
.top-action { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 11px; color: #475467; font-size: 12px; font-weight: 600; transition: .2s; }
.top-action:hover, .top-action.active { background: #f5f6f8; color: #111827; }
.top-action svg { width: 17px; }
.icon-button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.icon-button:hover { background: #f5f6f8; }
.notification-dot { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border: 2px solid white; border-radius: 10px; background: var(--primary); color: white; font-size: 9px; font-weight: 800; }
.profile-menu { display: flex; align-items: center; gap: 10px; margin-left: 4px; padding: 5px 6px; border-radius: 14px; }
.profile-menu:hover { background: #f5f6f8; }
.profile-menu img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.profile-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { color: var(--muted); font-size: 10px; }
.profile-menu > svg { width: 14px; color: #667085; }

.sidebar { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 8px; padding: 18px 14px 16px; background: rgba(255,255,255,.95); border-right: 1px solid var(--line); z-index: 800; overflow-y: auto; }
.profile-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 4px 5px 15px; }
.profile-avatar-wrap { position: relative; }
.profile-avatar-wrap img { display: block; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.online-badge { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; background: #22c55e; border: 2px solid white; border-radius: 50%; }
.profile-card strong { display: block; font-size: 12px; }
.profile-card div > span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.level-badge { padding: 4px 7px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-dark); font-size: 9px; font-weight: 800; white-space: nowrap; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav-item { width: 100%; height: 42px; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: #4b5565; cursor: pointer; text-align: left; font-size: 12px; font-weight: 600; transition: .18s ease; }
.side-nav-item svg { width: 18px; }
.side-nav-item:hover { background: #f7f8fa; color: #111827; transform: translateX(2px); }
.side-nav-item.active { background: linear-gradient(135deg,#fff0f2,#fff7f8); color: var(--primary-dark); }
.nav-count { min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 10px; background: #eef2ff; color: #4f46e5; font-size: 9px; }
.sidebar-divider { height: 1px; background: var(--line); margin: 8px 5px 2px; }
.sidebar-label { margin: 10px 9px 3px; color: #98a2b3; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.category-list { display: flex; flex-direction: column; gap: 2px; }
.category-item { height: 35px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: #526071; cursor: pointer; text-align: left; font-size: 11px; font-weight: 600; transition: .18s; }
.category-item:hover, .category-item.active { background: #f6f7f9; color: #111827; }
.category-dot { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: white; font-size: 12px; box-shadow: inset 0 -2px 5px rgba(0,0,0,.08); }
.category-dot.all { background: #111827; }.category-dot.kuliner { background: #f59e0b; }.category-dot.ngopi { background: #ef4444; }.category-dot.olahraga { background: #3b82f6; }.category-dot.hiking { background: #22c55e; }.category-dot.fotografi { background: #8b5cf6; }.category-dot.event { background: #ec4899; }
.sidebar-promo { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; margin-top: auto; padding: 12px; border: 1px solid #f1e9ff; border-radius: 15px; background: linear-gradient(145deg,#fbf8ff,#fff); }
.promo-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #ede9fe; }
.sidebar-promo strong { font-size: 10px; }.sidebar-promo p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.sidebar-promo button { grid-column: 1/-1; height: 31px; border: 0; border-radius: 9px; background: #111827; color: white; cursor: pointer; font-size: 10px; font-weight: 700; }
.sidebar-footer { display: flex; flex-direction: column; gap: 7px; padding: 8px 6px 0; color: #98a2b3; font-size: 9px; }
.sidebar-footer div { display: flex; gap: 8px; }
.sidebar-footer a:hover { color: #111827; }

.map-stage { position: relative; grid-column: 2; grid-row: 2; min-width: 0; overflow: hidden; background: #dce7eb; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; background: #e9eff2; }
.leaflet-container { width: 100%; height: 100%; background: #e9eff2; }
.leaflet-tile { image-rendering: auto; }
.leaflet-pane.leaflet-activity-marker-pane { z-index: 650; }
.map-status-pill {
  position: absolute;
  z-index: 680;
  top: 72px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  color: #475467;
  font-size: 9px;
  font-weight: 750;
  pointer-events: none;
}
.map-status-indicator { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
.map-status-pill.loading .map-status-indicator { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.13); animation: mapStatusPulse 1s ease-in-out infinite; }
.map-status-pill.warning .map-status-indicator { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); animation: none; }
@keyframes mapStatusPulse { 50% { opacity: .42; transform: scale(.78); } }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow-sm) !important; overflow: hidden; border-radius: 13px !important; }
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 38px !important; border: 0 !important; color: #344054 !important; font-family: Manrope, sans-serif !important; }
.leaflet-control-attribution { margin: 0 10px 8px 0 !important; padding: 4px 7px !important; border-radius: 7px !important; background: rgba(255,255,255,.82) !important; backdrop-filter: blur(8px); font-size: 8px !important; }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 12px; }

.map-toolbar { position: absolute; z-index: 500; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.filter-chip-wrap { display: flex; gap: 8px; pointer-events: auto; }
.filter-chip, .primary-create { border: 1px solid rgba(16,24,40,.07); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); cursor: pointer; }
.filter-chip { height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border-radius: 12px; background: rgba(255,255,255,.94); color: #344054; font-size: 11px; font-weight: 650; }
.filter-chip:hover { background: white; transform: translateY(-1px); }
.filter-chip svg { width: 13px; }
.primary-create { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 13px; background: linear-gradient(135deg,var(--primary),#ff7b6b); color: white; font-size: 11px; font-weight: 800; box-shadow: 0 12px 26px rgba(255,77,94,.28); pointer-events: auto; }
.primary-create:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(255,77,94,.34); }
.primary-create svg { width: 16px; }

.map-controls-custom { position: absolute; right: 16px; top: 75px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.map-control-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); cursor: pointer; }
.map-control-button:hover { background: white; transform: translateY(-1px); }
.map-control-button svg { width: 18px; color: #344054; }

.discover-panel { position: absolute; z-index: 500; left: 16px; right: 16px; bottom: 16px; padding: 14px 16px 16px; border: 1px solid rgba(255,255,255,.68); border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 28px 70px rgba(15,23,42,.18); backdrop-filter: blur(22px); }
.discover-header { height: 34px; display: flex; align-items: flex-start; justify-content: space-between; }
.discover-tabs { display: flex; gap: 20px; }
.discover-tab { position: relative; padding: 0 1px 10px; border: 0; background: transparent; color: #7b8494; cursor: pointer; font-size: 10px; font-weight: 700; }
.discover-tab.active { color: #111827; }
.discover-tab.active::after { content:""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--primary); }
.text-button { border: 0; background: transparent; color: #667085; cursor: pointer; font-size: 9px; font-weight: 700; }
.text-button:hover { color: var(--primary-dark); }
.activity-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(162px, 1fr); gap: 10px; overflow-x: auto; padding-top: 8px; scrollbar-width: none; }
.activity-carousel::-webkit-scrollbar { display:none; }
.activity-card { min-width: 0; overflow: hidden; border: 1px solid #eaecf0; border-radius: 15px; background: white; cursor: pointer; transition: .22s ease; }
.activity-card:hover { transform: translateY(-4px); border-color: rgba(255,77,94,.2); box-shadow: 0 14px 28px rgba(15,23,42,.12); }
.activity-card-image { position: relative; height: 90px; overflow: hidden; background: #eef2f7; }
.activity-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.activity-card:hover .activity-card-image img { transform: scale(1.06); }
.card-category { position: absolute; left: 9px; bottom: 8px; padding: 4px 8px; border-radius: 7px; color: white; font-size: 8px; font-weight: 800; backdrop-filter: blur(6px); }
.activity-card-body { padding: 9px 10px 10px; }
.activity-card-body h4 { margin: 0; overflow: hidden; color: #1d2939; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.activity-card-body > p { margin: 4px 0 8px; overflow: hidden; color: #7b8494; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card-author { display: flex; align-items: center; min-width: 0; gap: 5px; color: #667085; font-size: 7px; }
.card-author img { width: 17px; height: 17px; border-radius: 50%; object-fit: cover; }
.card-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-actions { display: flex; gap: 7px; color: #667085; font-size: 7px; }
.card-actions span { display: flex; align-items: center; gap: 3px; }
.card-actions svg { width: 11px; }

.detail-panel { grid-column: 3; grid-row: 2; position: relative; z-index: 700; min-width: 0; background: var(--surface-solid); border-left: 1px solid var(--line); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d0d5dd transparent; opacity: 1; visibility: visible; transition: opacity .2s ease, visibility .2s ease; }
.detail-panel-close {
  position: sticky;
  z-index: 30;
  top: 12px;
  float: right;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 12px 12px -46px 0;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  background: rgba(15,23,42,.62);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}
.detail-panel-close:hover { background: rgba(15,23,42,.82); }

.detail-hero { cursor: zoom-in; }
.detail-photo-nav { position:absolute; z-index:4; top:50%; width:34px; height:34px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.32); border-radius:50%; background:rgba(15,23,42,.48); color:#fff; cursor:pointer; font-size:25px; line-height:1; opacity:0; transform:translateY(-50%); transition:.18s ease; backdrop-filter:blur(8px); }
.detail-photo-nav.previous { left:12px; }.detail-photo-nav.next { right:12px; }
.detail-hero:hover .detail-photo-nav,.detail-photo-nav:focus-visible { opacity:1; }
.detail-photo-count { position:absolute; z-index:4; top:13px; left:14px; padding:5px 9px; border:1px solid rgba(255,255,255,.24); border-radius:999px; background:rgba(15,23,42,.48); color:#fff; font-size:8px; font-weight:800; backdrop-filter:blur(8px); }
.detail-gallery-strip { display:grid; grid-auto-flow:column; grid-auto-columns:72px; gap:7px; overflow-x:auto; padding:10px 12px; border-bottom:1px solid var(--line); background:#fff; scrollbar-width:none; }
.detail-gallery-strip::-webkit-scrollbar { display:none; }
.detail-gallery-thumb { position:relative; height:52px; overflow:hidden; padding:0; border:2px solid transparent; border-radius:10px; background:#eef2f6; cursor:pointer; opacity:.72; transition:.18s ease; }
.detail-gallery-thumb:hover { opacity:1; transform:translateY(-1px); }.detail-gallery-thumb.active { border-color:var(--primary); opacity:1; box-shadow:0 0 0 2px rgba(255,77,94,.12); }
.detail-gallery-thumb img { width:100%; height:100%; object-fit:cover; }
.detail-gallery-thumb span { position:absolute; right:4px; bottom:4px; min-width:17px; height:17px; display:grid; place-items:center; padding:0 4px; border-radius:6px; background:rgba(15,23,42,.72); color:#fff; font-size:7px; font-weight:800; }

.photo-viewer { position:fixed; inset:0; z-index:5000; display:grid; grid-template-columns:70px minmax(0,1fr) 70px; align-items:center; gap:12px; padding:28px; background:rgba(5,10,18,.92); backdrop-filter:blur(18px); opacity:0; visibility:hidden; transition:.22s ease; }
.photo-viewer.open { opacity:1; visibility:visible; }
.photo-viewer-content { width:min(1120px,100%); height:min(86vh,820px); min-height:360px; display:grid; grid-template-rows:minmax(0,1fr) auto auto; justify-self:center; gap:12px; margin:0; }
.photo-viewer-content > img { width:100%; height:100%; min-height:0; object-fit:contain; border-radius:18px; background:#0b1220; box-shadow:0 30px 90px rgba(0,0,0,.35); }
.photo-viewer-content figcaption { display:flex; align-items:center; justify-content:space-between; gap:18px; color:#fff; }
.photo-viewer-content figcaption div { min-width:0; }.photo-viewer-content figcaption strong { display:block; font-size:14px; }.photo-viewer-content figcaption div span { display:block; margin-top:4px; overflow:hidden; color:rgba(255,255,255,.6); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }.photo-viewer-content figcaption > span { flex:0 0 auto; color:rgba(255,255,255,.72); font-size:10px; font-weight:800; }
.photo-viewer-close { position:absolute; top:18px; right:20px; z-index:2; width:42px; height:42px; border:1px solid rgba(255,255,255,.18); border-radius:50%; background:rgba(255,255,255,.1); color:#fff; cursor:pointer; font-size:28px; backdrop-filter:blur(8px); }
.photo-viewer-nav { width:50px; height:50px; display:grid; place-items:center; justify-self:center; border:1px solid rgba(255,255,255,.18); border-radius:50%; background:rgba(255,255,255,.1); color:#fff; cursor:pointer; font-size:34px; backdrop-filter:blur(8px); transition:.18s ease; }.photo-viewer-nav:hover,.photo-viewer-close:hover { background:rgba(255,255,255,.18); }
.photo-viewer-thumbs { display:flex; justify-content:center; gap:8px; overflow-x:auto; padding:2px; scrollbar-width:none; }.photo-viewer-thumbs::-webkit-scrollbar{display:none}.photo-viewer-thumb { flex:0 0 64px; width:64px; height:46px; overflow:hidden; padding:0; border:2px solid transparent; border-radius:9px; background:#111827; cursor:pointer; opacity:.52; }.photo-viewer-thumb.active { border-color:#fff; opacity:1; }.photo-viewer-thumb img { width:100%; height:100%; object-fit:cover; }
.detail-hero { position: relative; min-height: 222px; background-size: cover; background-position: center; }
.detail-gradient { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(8,12,20,.08),rgba(8,12,20,.75)); }
.detail-hero-content { position: absolute; left: 18px; right: 18px; bottom: 17px; color: white; }
.detail-category { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 8px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(17,24,39,.4); backdrop-filter: blur(8px); font-size: 9px; font-weight: 700; }
.detail-hero h2 { margin: 0 0 5px; font-size: 21px; letter-spacing: -.4px; }
.detail-hero p { margin: 0; color: rgba(255,255,255,.8); font-size: 10px; }
.mobile-close { display:none; position:absolute; z-index:2; top:12px; right:12px; width:34px; height:34px; border:1px solid rgba(255,255,255,.25); border-radius:50%; background:rgba(17,24,39,.42); color:white; cursor:pointer; font-size:24px; line-height:1; backdrop-filter:blur(8px); }
.detail-body { padding: 0 18px 26px; }
.detail-stats { display: grid; grid-template-columns: repeat(3,1fr); margin-top: -1px; border-bottom: 1px solid var(--line); }
.detail-stats div { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; text-align: center; }
.detail-stats div + div { border-left: 1px solid var(--line); }
.detail-stats strong { font-size: 12px; }.detail-stats span { color: #98a2b3; font-size: 8px; }
.author-row { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 16px 0 12px; }
.author-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author-row strong { display: block; font-size: 10px; }.author-row span { display: block; margin-top: 2px; color: #98a2b3; font-size: 8px; }
.follow-button { height: 30px; padding: 0 11px; border: 1px solid #ffd4d9; border-radius: 9px; background: #fff5f6; color: var(--primary-dark); cursor: pointer; font-size: 9px; font-weight: 800; }
.detail-description { margin: 0; color: #4b5565; font-size: 10px; line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { padding: 5px 8px; border-radius: 8px; background: #f2f4f7; color: #667085; font-size: 8px; font-weight: 600; }
.detail-actions { display: grid; grid-template-columns: repeat(3,auto) 34px; gap: 5px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.action-button { height: 32px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 9px; background: #f7f8fa; color: #667085; cursor: pointer; font-size: 8px; font-weight: 700; }
.action-button:hover { background: #f1f3f5; color: #111827; }
.action-button svg { width: 13px; }
.like-button.liked { background: #fff0f2; color: var(--primary); }
.like-button.liked svg { fill: currentColor; }
.share-button { width: 32px; height: 32px; background: #f7f8fa; }
.nearby-section { padding-top: 17px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.eyebrow { display: block; margin-bottom: 4px; color: #98a2b3; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.section-heading h3 { margin: 0; font-size: 14px; }
.section-heading button { border: 0; background: transparent; color: var(--primary-dark); cursor: pointer; font-size: 8px; font-weight: 800; }
.nearby-list { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.nearby-item { display: grid; grid-template-columns: 30px minmax(0,1fr) 60px; align-items: center; gap: 10px; padding: 9px; border-radius: 12px; cursor: pointer; transition: .18s; }
.nearby-item:hover { background: #f7f8fa; }
.nearby-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: white; font-size: 13px; }
.nearby-copy strong { display: block; overflow:hidden; font-size: 9px; text-overflow:ellipsis; white-space:nowrap; }.nearby-copy span { display:block; margin-top:3px; color:#98a2b3; font-size:7px; }
.nearby-item img { width: 60px; height: 42px; border-radius: 9px; object-fit: cover; }

.marker-wrap { width: 54px; height: 68px; position: relative; transform-origin: bottom center; transition: transform .18s ease; }
.marker-wrap:hover { transform: scale(1.08) translateY(-2px); }
.photo-marker { position: relative; width: 54px; height: 54px; padding: 3px; border: 3px solid var(--marker-color,#ff4d5e); border-radius: 50% 50% 50% 12px; background: white; box-shadow: 0 8px 18px rgba(15,23,42,.25); transform: rotate(-45deg); overflow: hidden; }
.photo-marker::after { content:""; position:absolute; inset:3px; border-radius:50%; box-shadow:inset 0 0 0 1px rgba(255,255,255,.35); }
.photo-marker img { position:relative; z-index:2; width:100%; height:100%; border-radius:50%; object-fit:cover; transform:rotate(45deg) scale(1.18); }
.marker-fallback { position:absolute; z-index:1; inset:3px; display:grid; place-items:center; border-radius:50%; background:color-mix(in srgb, var(--marker-color,#ff4d5e) 16%, white); font-size:20px; transform:rotate(45deg); }
.marker-pulse { position:absolute; left:21px; bottom:2px; width:12px; height:5px; border-radius:50%; background:rgba(15,23,42,.2); filter:blur(2px); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(255,77,94,.18) !important; }
.marker-cluster div { background: linear-gradient(135deg,#ff4d5e,#ff7967) !important; color:white !important; font-family:Manrope,sans-serif !important; font-weight:800 !important; box-shadow:0 8px 20px rgba(255,77,94,.25); }
.marker-cluster span { line-height:30px; }
.custom-tooltip { border:0 !important; border-radius:10px !important; box-shadow:var(--shadow-sm) !important; font-family:Manrope,sans-serif; font-size:10px; font-weight:700; }
.custom-tooltip::before { display:none; }

.modal-backdrop { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(15,23,42,.48); backdrop-filter: blur(7px); opacity: 0; visibility: hidden; transition: .2s ease; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal-card { width: min(680px,100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px; border: 1px solid rgba(255,255,255,.55); border-radius: 24px; background: white; box-shadow: 0 36px 90px rgba(15,23,42,.28); transform: translateY(14px) scale(.98); transition: .22s ease; }
.modal-backdrop.open .modal-card { transform: none; }
.modal-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:18px; }
.modal-header h2 { margin:0; font-size:20px; letter-spacing:-.4px; }
.modal-close { width:36px; height:36px; border:0; border-radius:50%; background:#f2f4f7; cursor:pointer; color:#667085; font-size:25px; line-height:1; }
.upload-zone { position:relative; min-height:155px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; overflow:hidden; border:1.5px dashed #d7dce4; border-radius:16px; background:#fafbfc; cursor:pointer; }
.upload-zone.dragover { border-color:var(--primary); background:#fff7f8; }
.upload-zone strong { font-size:11px; }.upload-zone span { color:#98a2b3; font-size:9px; }
.upload-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:#fff0f2; color:var(--primary); }
.upload-icon svg { width:20px; }
#previewImage { display:none; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.upload-photo-count { display:none; position:absolute; z-index:2; right:10px; bottom:10px; padding:6px 9px; border-radius:8px; background:rgba(15,23,42,.72); color:#fff !important; font-size:8px !important; font-weight:800; backdrop-filter:blur(8px); }
.upload-zone.has-preview #previewImage,.upload-zone.has-preview .upload-photo-count { display:block; }.upload-zone.has-preview .upload-icon,.upload-zone.has-preview strong,.upload-zone.has-preview > span:not(.upload-photo-count) { display:none; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.field { display:flex; flex-direction:column; gap:6px; }.field.full { grid-column:1/-1; }.field > span { color:#475467; font-size:9px; font-weight:750; }
.field input,.field select,.field textarea { width:100%; border:1px solid #e4e7ec; border-radius:11px; background:white; color:#1d2939; outline:none; font-size:10px; transition:.18s; }
.field input,.field select { height:40px; padding:0 11px; }.field textarea { resize:vertical; padding:10px 11px; line-height:1.6; }
.field input:focus,.field select:focus,.field textarea:focus { border-color:rgba(79,70,229,.45); box-shadow:0 0 0 4px rgba(79,70,229,.08); }
.location-input { display:grid; grid-template-columns:20px minmax(0,1fr) auto; align-items:center; gap:6px; height:42px; padding:0 6px 0 10px; border:1px solid #e4e7ec; border-radius:11px; }
.location-input svg { width:15px; color:var(--primary); }.location-input input { height:36px; padding:0; border:0; box-shadow:none !important; }.location-input button { height:30px; padding:0 9px; border:0; border-radius:8px; background:#f2f4f7; cursor:pointer; color:#475467; font-size:8px; font-weight:700; }
.coordinate-hint { margin-top:10px; padding:8px 10px; border-radius:9px; background:#f8fafc; color:#98a2b3; font-size:8px; }
.modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
.secondary-button,.submit-button { height:40px; padding:0 15px; border-radius:11px; cursor:pointer; font-size:10px; font-weight:800; }
.secondary-button { border:1px solid #e4e7ec; background:white; color:#475467; }.submit-button { border:0; background:linear-gradient(135deg,var(--primary),#ff7b6b); color:white; box-shadow:0 10px 20px rgba(255,77,94,.22); }

.toast { position:fixed; z-index:3000; right:22px; bottom:22px; min-width:270px; display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:10px; padding:12px 14px; border:1px solid rgba(255,255,255,.75); border-radius:15px; background:rgba(255,255,255,.94); box-shadow:var(--shadow-lg); backdrop-filter:blur(16px); transform:translateY(25px); opacity:0; pointer-events:none; transition:.25s ease; }
.toast.show { transform:none; opacity:1; }.toast-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; background:#dcfce7; color:#15803d; font-size:14px; font-weight:900; }.toast strong { display:block; font-size:10px; }.toast p { margin:3px 0 0; color:#667085; font-size:8px; }
.mobile-nav { display:none; }

body.dark-map .leaflet-tile-pane { filter: brightness(.62) saturate(.55) contrast(1.16) hue-rotate(175deg); }
body.dark-map .map-stage::after { content:""; position:absolute; inset:0; z-index:2; pointer-events:none; background:linear-gradient(180deg,rgba(7,12,22,.08),rgba(7,12,22,.18)); }
body.dark-map .map-toolbar,body.dark-map .map-controls-custom,body.dark-map .discover-panel { z-index:500; }

@media (max-width: 1280px) {
  :root { --sidebar-w: 190px; --detail-w: 350px; }
  .topbar { grid-template-columns: var(--sidebar-w) minmax(280px,500px) 1fr; }
  .top-action span { display:none; }
  .profile-copy { display:none; }
  .activity-carousel { grid-auto-columns: minmax(148px,1fr); }
}

@media (max-width: 1024px) {
  :root { --detail-w: 330px; }
  .app-shell { grid-template-columns: minmax(0,1fr) var(--detail-w); }
  body.detail-panel-hidden:not(.workspace-active) .app-shell { grid-template-columns: minmax(0,1fr) 0; }
  .topbar { grid-template-columns: 160px minmax(250px,1fr) auto; }
  .sidebar { display:none; }
  .map-stage { grid-column:1; }
  .detail-panel { grid-column:2; }
  .brand { font-size:18px; }
  .top-actions .top-action { display:none; }
  .primary-create span { display:none; }
  .primary-create { width:42px; padding:0; justify-content:center; border-radius:50%; }
}

@media (max-width: 760px) {
  :root { --topbar-h:64px; }
  html,body { overflow:hidden; }
  .app-shell { display:block; min-height:0; }
  .topbar { position:fixed; top:0; left:0; right:0; z-index:1200; display:grid; grid-template-columns:auto 1fr auto; height:var(--topbar-h); padding:0 12px; gap:10px; }
  .brand span:last-child { display:none; }.brand-mark,.brand-mark svg { width:30px; height:34px; }
  .global-search { height:40px; }.global-search kbd { display:none; }
  .top-actions .icon-button { display:none; }.profile-menu { padding:0; }.profile-menu > svg,.profile-copy { display:none; }.profile-menu img { width:34px; height:34px; }
  .map-stage { position:fixed; inset:var(--topbar-h) 0 0; }
  .map-toolbar { top:12px; left:10px; right:10px; }.filter-chip-wrap { width:calc(100% - 50px); overflow-x:auto; scrollbar-width:none; }.filter-chip-wrap::-webkit-scrollbar{display:none}.filter-chip{flex:0 0 auto;height:38px}.filter-chip:nth-child(3){display:none}.primary-create{width:40px;height:40px}
  .map-controls-custom { top:60px; right:10px; }
  .discover-panel { left:10px; right:10px; bottom:76px; padding:12px; border-radius:19px; }
  .discover-header { height:30px; }.discover-tabs{gap:15px}.activity-carousel{grid-auto-columns:150px;gap:8px}.activity-card-image{height:78px}.activity-card:nth-child(n+5){display:none}
  .detail-panel { position:fixed; z-index:1500; left:0; right:0; bottom:0; top:12vh; transform:translateY(110%); border:0; border-radius:24px 24px 0 0; box-shadow:0 -24px 60px rgba(15,23,42,.28); transition:transform .3s cubic-bezier(.22,.8,.24,1), opacity .2s ease, visibility .2s ease; }
  .detail-panel.open { transform:none; }
  .detail-panel-close { display:none; }
  body.detail-panel-hidden:not(.workspace-active) .detail-panel { width:auto; transform:translateY(110%); }.detail-hero{min-height:210px;border-radius:24px 24px 0 0;overflow:hidden}.mobile-close{display:block}.detail-photo-nav{opacity:1}.detail-gallery-strip{grid-auto-columns:82px;padding:10px 14px}
  .mobile-nav { position:fixed; z-index:1400; left:0; right:0; bottom:0; height:66px; display:grid; grid-template-columns:repeat(5,1fr); align-items:center; padding:4px 8px 6px; border-top:1px solid var(--line); background:rgba(255,255,255,.95); backdrop-filter:blur(18px); }
  .mobile-nav button { height:52px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:0; background:transparent; color:#98a2b3; font-size:8px; cursor:pointer; }.mobile-nav button svg{width:18px}.mobile-nav button.active{color:var(--primary)}.mobile-nav .mobile-add{width:46px;height:46px;justify-self:center;align-self:center;border-radius:50%;background:linear-gradient(135deg,var(--primary),#ff7b6b);color:white;box-shadow:0 10px 20px rgba(255,77,94,.3);transform:translateY(-10px)}.mobile-nav .mobile-add svg{width:22px}
  .modal-backdrop { padding:0; align-items:end; }.modal-card { width:100%; max-height:92vh; border-radius:24px 24px 0 0; padding:18px; }.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.upload-zone{min-height:125px}
  .toast { left:12px; right:12px; bottom:78px; min-width:0; }
  .photo-viewer { grid-template-columns:44px minmax(0,1fr) 44px; gap:4px; padding:68px 8px 18px; }.photo-viewer-content{height:calc(100vh - 92px);min-height:0}.photo-viewer-content>img{border-radius:12px}.photo-viewer-nav{width:40px;height:40px;font-size:28px}.photo-viewer-close{top:12px;right:12px}.photo-viewer-thumbs{justify-content:flex-start}.photo-viewer-content figcaption{padding:0 4px}
}

@media (max-width: 440px) {
  .filter-chip:nth-child(2){display:none}.activity-carousel{grid-auto-columns:142px}.discover-tab{font-size:9px}.text-button{display:none}.detail-actions{grid-template-columns:repeat(3,1fr) 32px}.action-button{font-size:0}.action-button svg{width:15px}.detail-panel{top:8vh}
}

/* Area terdekat berbasis lokasi pengguna */
.location-radius-chip {
  border-color: rgba(79,70,229,.18);
  background: rgba(238,242,255,.96);
  color: #4338ca;
}
.location-radius-chip svg { fill: none; stroke: currentColor; }
.map-control-button.active {
  border-color: rgba(79,70,229,.28);
  background: #4f46e5;
  box-shadow: 0 12px 26px rgba(79,70,229,.28);
}
.map-control-button.active svg { color: #fff; }
.activity-empty-state {
  width: min(420px, calc(100vw - 80px));
  min-height: 136px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px dashed #d8dee9;
  border-radius: 16px;
  background: rgba(248,250,252,.92);
  color: #667085;
}
.activity-empty-state strong { color: #1d2939; font-size: 12px; }
.activity-empty-state span { max-width: 340px; font-size: 9px; line-height: 1.55; }
.detail-empty-state {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: rgba(255,255,255,.97);
}
.detail-empty-state[hidden] { display: none !important; }
.detail-empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 17px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 25px;
  font-weight: 900;
}
.detail-empty-state h3 { margin: 0; color: #101828; font-size: 16px; }
.detail-empty-state p { max-width: 260px; margin: 8px 0 16px; color: #667085; font-size: 10px; line-height: 1.6; }
.detail-empty-state button {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: #4f46e5;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.leaflet-user-area-pane { z-index: 410; }

@media (max-width: 760px) {
  .location-radius-chip { display: flex; }
  .activity-empty-state { width: calc(100vw - 46px); min-height: 118px; }
  .detail-empty-state { border-radius: 24px 24px 0 0; }
}
.nearby-empty {
  padding: 14px;
  border: 1px dashed #e4e7ec;
  border-radius: 12px;
  background: #f8fafc;
  color: #667085;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

/* Interaksi sosial: suka, komentar, simpan, dan bagikan */
.save-button.saved { background:#eef2ff; color:#4f46e5; }
.save-button.saved svg { fill:currentColor; }
.action-button.active { background:#eef2ff; color:#4f46e5; }
.share-button:hover { background:#eef2ff; color:#4f46e5; }
.saved-count { background:#4f46e5; color:#fff; }

.comments-panel {
  margin: 0 0 17px;
  padding: 14px;
  border: 1px solid #e8ebf0;
  border-radius: 15px;
  background: #fbfcfd;
  animation: commentsIn .2s ease;
}
.comments-panel[hidden] { display:none !important; }
@keyframes commentsIn { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:none; } }
.comments-panel-header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:11px; }
.comments-panel-header strong { display:block; color:#1d2939; font-size:10px; }
.comments-panel-header span { display:block; margin-top:2px; color:#98a2b3; font-size:8px; }
.comments-panel-header button { width:26px; height:26px; display:grid; place-items:center; border:0; border-radius:8px; background:#f2f4f7; color:#667085; cursor:pointer; font-size:18px; line-height:1; }
.comment-list { display:flex; flex-direction:column; gap:10px; max-height:230px; overflow-y:auto; padding-right:3px; scrollbar-width:thin; }
.comment-item { display:grid; grid-template-columns:30px minmax(0,1fr); gap:8px; }
.comment-item > img { width:30px; height:30px; border-radius:50%; object-fit:cover; }
.comment-bubble { padding:8px 10px; border-radius:4px 12px 12px 12px; background:#fff; box-shadow:0 1px 2px rgba(16,24,40,.06); }
.comment-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.comment-meta strong { overflow:hidden; color:#344054; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.comment-meta span { flex:0 0 auto; color:#98a2b3; font-size:7px; }
.comment-bubble p { margin:4px 0 0; color:#475467; font-size:8px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.comment-empty { padding:15px; border:1px dashed #dfe3ea; border-radius:11px; color:#98a2b3; font-size:8px; text-align:center; }
.comment-form { display:grid; grid-template-columns:30px minmax(0,1fr) auto; align-items:end; gap:8px; margin-top:12px; padding-top:12px; border-top:1px solid #e8ebf0; }
.comment-form > img { width:30px; height:30px; border-radius:50%; object-fit:cover; align-self:start; }
.comment-input-wrap { position:relative; }
.comment-input-wrap textarea { width:100%; min-height:46px; resize:none; padding:8px 9px 18px; border:1px solid #dfe3ea; border-radius:10px; background:#fff; color:#344054; outline:none; font:inherit; font-size:8px; line-height:1.45; }
.comment-input-wrap textarea:focus { border-color:rgba(79,70,229,.45); box-shadow:0 0 0 3px rgba(79,70,229,.08); }
.comment-input-wrap span { position:absolute; right:7px; bottom:5px; color:#98a2b3; font-size:6px; }
.comment-form > button { height:32px; padding:0 10px; border:0; border-radius:9px; background:#4f46e5; color:#fff; cursor:pointer; font-size:8px; font-weight:800; }
.comment-form > button:hover { background:#4338ca; }

.share-modal { z-index:4200; }
.share-card { width:min(460px,100%); padding:20px; border:1px solid rgba(255,255,255,.65); border-radius:22px; background:#fff; box-shadow:0 34px 90px rgba(15,23,42,.3); transform:translateY(12px) scale(.985); transition:.22s ease; }
.share-modal.open .share-card { transform:none; }
.share-preview { display:grid; grid-template-columns:74px minmax(0,1fr); align-items:center; gap:11px; padding:10px; border:1px solid #e8ebf0; border-radius:14px; background:#fafbfc; }
.share-preview img { width:74px; height:58px; border-radius:10px; object-fit:cover; }
.share-preview strong { display:block; overflow:hidden; color:#1d2939; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.share-preview span { display:block; margin-top:4px; overflow:hidden; color:#98a2b3; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.share-options { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:14px; }
.share-options button { min-height:75px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; border:1px solid #e8ebf0; border-radius:13px; background:#fff; color:#475467; cursor:pointer; transition:.18s ease; }
.share-options button:hover { transform:translateY(-2px); border-color:#c7d2fe; background:#f5f7ff; color:#4338ca; }
.share-options button[hidden] { display:none; }
.share-options button span { width:31px; height:31px; display:grid; place-items:center; border-radius:10px; background:#eef2ff; color:#4f46e5; font-size:9px; font-weight:900; }
.share-options button strong { font-size:8px; }
.share-link-field { display:block; margin-top:14px; }
.share-link-field > span { display:block; margin-bottom:6px; color:#667085; font-size:8px; font-weight:800; }
.share-link-field > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; }
.share-link-field input { min-width:0; height:38px; padding:0 10px; border:1px solid #e4e7ec; border-radius:10px; background:#f8fafc; color:#667085; outline:none; font-size:8px; }
.share-link-field button { height:38px; padding:0 13px; border:0; border-radius:10px; background:#101828; color:#fff; cursor:pointer; font-size:8px; font-weight:800; }

@media (max-width: 760px) {
  .comments-panel { margin-left:-4px; margin-right:-4px; }
  .share-modal { align-items:end; padding:0; }
  .share-card { width:100%; border-radius:23px 23px 0 0; padding:18px; }
}

@media (max-width: 430px) {
  .share-options { grid-template-columns:repeat(2,1fr); }
  .share-options button { min-height:68px; }
}

/* =========================================================
   MARKER LOKASI: SATU MARKER DAPAT MEMUAT BANYAK UNGGAHAN
   ========================================================= */
.location-marker-wrap { width: 62px; }
.marker-activity-badge {
  position: absolute;
  z-index: 6;
  top: -5px;
  right: 0;
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .28);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}
.location-tooltip { min-width: 120px; padding: 7px 9px !important; line-height: 1.45; text-align: center; }
.location-tooltip strong { color: #101828; font-size: 10px; }

/* Tampilan ringkasan lokasi dan feed beberapa pengguna */
.location-group-view,
.activity-detail-view { min-height: 100%; background: #fff; }
.location-group-view[hidden],
.activity-detail-view[hidden] { display: none !important; }

.location-group-hero {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  background: #111827;
}
.location-group-hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  gap: 2px;
}
.location-group-hero-grid span {
  display: block;
  min-width: 0;
  min-height: 0;
  background-position: center;
  background-size: cover;
}
.location-group-hero-grid.photo-count-2 {
  grid-template-columns: 1.25fr .75fr;
}
.location-group-hero-grid.photo-count-3 {
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: 1fr 1fr;
}
.location-group-hero-grid.photo-count-3 span:first-child { grid-row: 1 / 3; }
.location-group-hero .detail-gradient {
  background: linear-gradient(180deg, rgba(6, 10, 18, .08) 20%, rgba(6, 10, 18, .86) 100%);
}
.location-group-hero-content {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #fff;
}
.location-group-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(10px);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}
.location-group-hero-content h2 { margin: 0; font-size: 22px; letter-spacing: -.55px; line-height: 1.15; }
.location-group-hero-content p { margin: 6px 0 0; color: rgba(255,255,255,.75); font-size: 9px; }

.location-group-body { padding: 0 16px 28px; }
.location-group-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.location-group-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 15px 5px;
}
.location-group-stats div + div { border-left: 1px solid var(--line); }
.location-group-stats strong { color: #101828; font-size: 13px; }
.location-group-stats span { color: #98a2b3; font-size: 8px; }

.location-community-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.location-avatar-stack { display: flex; align-items: center; padding-left: 8px; }
.location-avatar-stack img,
.location-avatar-stack > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-left: -8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f46e5;
  object-fit: cover;
  font-size: 8px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(15,23,42,.08);
}
.location-community-row strong { display: block; font-size: 10px; }
.location-community-row span { display: block; margin-top: 3px; color: #98a2b3; font-size: 8px; line-height: 1.45; }

.location-posts-section { padding-top: 17px; }
.location-posts-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.location-posts-heading h3 { margin: 0; font-size: 14px; }
.location-group-radius {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #667085;
  font-size: 7px;
  font-weight: 800;
}
.location-posts-list { display: flex; flex-direction: column; gap: 13px; }
.location-post-card {
  overflow: hidden;
  border: 1px solid #e7eaf0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.location-post-card:hover { transform: translateY(-2px); border-color: #d9dee8; box-shadow: 0 13px 28px rgba(15,23,42,.09); }
.location-post-author {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  cursor: pointer;
}
.location-post-author > img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.location-post-author strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.location-post-author span { display: block; margin-top: 3px; color: #98a2b3; font-size: 7px; }
.location-post-more { width: 29px; height: 29px; border: 0; border-radius: 9px; background: transparent; color: #98a2b3; cursor: pointer; font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.location-post-more:hover { background: #f2f4f7; color: #344054; }
.location-post-media {
  position: relative;
  width: 100%;
  height: 178px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #eef2f6;
  cursor: pointer;
}
.location-post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.location-post-card:hover .location-post-media img { transform: scale(1.025); }
.location-post-photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(15,23,42,.64);
  color: #fff;
  backdrop-filter: blur(8px);
  font-size: 7px;
  font-weight: 800;
}
.location-post-content { padding: 12px 12px 9px; cursor: pointer; }
.location-post-content h4 { margin: 0; color: #1d2939; font-size: 11px; }
.location-post-content p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: #667085;
  font-size: 8px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.location-post-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.location-post-tags span { padding: 4px 7px; border-radius: 7px; background: #f4f5f7; color: #667085; font-size: 7px; font-weight: 700; }
.location-post-footer { padding: 0 12px 11px; }
.location-post-metrics { display: flex; gap: 11px; padding: 0 1px 8px; color: #98a2b3; font-size: 7px; }
.location-post-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding-top: 9px; border-top: 1px solid #eef0f3; }
.location-post-actions button {
  min-width: 0;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 9px;
  background: #f8f9fb;
  color: #667085;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}
.location-post-actions button:hover { background: #f1f3f6; color: #344054; }
.location-post-actions button.active { background: #fff0f2; color: var(--primary); }
.location-post-actions button.saved { background: #eef2ff; color: #4f46e5; }

.activity-detail-view { position: relative; }
.detail-back-button {
  position: absolute;
  z-index: 8;
  top: 12px;
  left: 12px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px 0 7px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(15,23,42,.53);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-size: 8px;
  font-weight: 800;
}
.detail-back-button:hover { background: rgba(15,23,42,.72); }
.detail-back-button svg { width: 15px; }
.activity-detail-view .detail-photo-count { left: auto; right: 14px; }

@media (max-width: 760px) {
  .location-group-hero { min-height: 215px; border-radius: 24px 24px 0 0; }
  .location-group-hero .mobile-close { display: block; }
  .location-group-body { padding: 0 14px 90px; }
  .location-post-media { height: 205px; }
  .detail-back-button { top: 12px; left: 12px; }
}

@media (max-width: 430px) {
  .location-group-hero-content h2 { font-size: 19px; }
  .location-post-actions button span { display: none; }
  .location-post-actions button { font-size: 13px; }
  .location-group-radius { display: none; }
}


/* ========================================================================== */
/* Halaman komunitas: Feed, Teman, Notifikasi, Aktivitas Saya, Jelajahi       */
/* ========================================================================== */
body.workspace-active .app-shell { grid-template-columns: var(--sidebar-w) minmax(0, 1fr) 0; }
body.workspace-active .detail-panel { display: none; }
body.workspace-active .map-stage { background: #f5f7fb; }
body.workspace-active .category-list { opacity: .55; }
body.workspace-active .map-toolbar,
body.workspace-active .map-controls-custom,
body.workspace-active .map-status-pill,
body.workspace-active .discover-panel { pointer-events: none; }

.workspace-view { position: absolute; inset: 0; z-index: 720; overflow-y: auto; padding: 30px clamp(22px,4vw,54px) 54px; background: radial-gradient(circle at top right,rgba(255,77,94,.07),transparent 32%), #f6f8fb; scrollbar-width: thin; }
.workspace-header { max-width: 1180px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 auto 24px; }
.workspace-eyebrow { color: var(--primary-dark); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.workspace-header h1 { margin: 6px 0 7px; font-size: clamp(25px,3vw,38px); letter-spacing: -.04em; }
.workspace-header p { max-width: 680px; margin: 0; color: #667085; font-size: 12px; line-height: 1.7; }
.workspace-header-actions { flex: 0 0 auto; }
.workspace-content { max-width: 1180px; margin: 0 auto; }
.workspace-primary-button,.workspace-secondary-button { min-height: 40px; padding: 0 15px; border-radius: 12px; cursor: pointer; font-size: 10px; font-weight: 800; }
.workspace-primary-button { border: 0; background: #111827; color: #fff; box-shadow: 0 10px 22px rgba(17,24,39,.16); }
.workspace-secondary-button { border: 1px solid #e4e7ec; background: #fff; color: #344054; }
.workspace-toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.segmented-control { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #eaecf0; border-radius: 13px; background: #fff; box-shadow: 0 7px 24px rgba(15,23,42,.05); }
.segmented-control button { min-height: 33px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: #667085; cursor: pointer; font-size: 10px; font-weight: 750; }
.segmented-control button.active { background: #111827; color: #fff; box-shadow: 0 6px 16px rgba(17,24,39,.14); }
.workspace-result-count { color: #98a2b3; font-size: 10px; font-weight: 700; }
.workspace-empty { min-height: 340px; display: grid; place-items: center; align-content: center; padding: 36px; border: 1px dashed #d9dee8; border-radius: 22px; background: rgba(255,255,255,.72); text-align: center; }
.workspace-empty > span { font-size: 36px; }.workspace-empty h3 { margin: 12px 0 7px; }.workspace-empty p { max-width: 430px; margin: 0 0 18px; color: #7b8494; font-size: 11px; line-height: 1.65; }

.feed-layout { display: grid; grid-template-columns: minmax(0,720px) minmax(230px,1fr); align-items: start; gap: 22px; }
.feed-column { display: flex; flex-direction: column; gap: 18px; }
.community-feed-card { overflow: hidden; border: 1px solid #e6eaf0; border-radius: 22px; background: #fff; box-shadow: 0 14px 34px rgba(15,23,42,.07); }
.feed-author-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 17px; }
.feed-author-button { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.feed-author-button img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }.feed-author-button span { min-width: 0; }.feed-author-button strong { display: block; font-size: 11px; }.feed-author-button small { display: block; margin-top: 3px; overflow: hidden; color: #98a2b3; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.feed-category-badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 9px; background: color-mix(in srgb,var(--category-color) 10%,white); color: var(--category-color); font-size: 8px; font-weight: 800; }
.feed-photo-button { position: relative; width: 100%; height: clamp(280px,42vw,470px); overflow: hidden; padding: 0; border: 0; background: #eef2f6; cursor: pointer; }.feed-photo-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }.feed-photo-button:hover img { transform: scale(1.025); }.feed-photo-count { position: absolute; right: 13px; top: 13px; padding: 6px 9px; border-radius: 9px; background: rgba(15,23,42,.65); color: #fff; font-size: 8px; font-weight: 800; backdrop-filter: blur(8px); }
.feed-card-copy { padding: 16px 17px 13px; }.feed-card-copy h3 { margin: 0 0 7px; font-size: 16px; }.feed-card-copy p { margin: 0; color: #5f6b7b; font-size: 10px; line-height: 1.7; }.feed-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }.feed-tag-row span { padding: 5px 8px; border-radius: 8px; background: #f5f7fa; color: #667085; font-size: 8px; font-weight: 700; }
.feed-metrics { display: flex; gap: 16px; padding: 0 17px 12px; color: #7b8494; font-size: 8px; }.feed-metrics span:last-child { margin-left: auto; }
.feed-actions { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #eef0f4; }.feed-actions button { height: 45px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: #fff; color: #667085; cursor: pointer; font-size: 9px; font-weight: 750; }.feed-actions button + button { border-left: 1px solid #f0f2f5; }.feed-actions button:hover { background: #fafbfc; color: #111827; }.feed-actions button.active { color: var(--primary-dark); background: #fff7f8; }.feed-actions span { font-size: 15px; }
.feed-side-column { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; }.workspace-side-card { padding: 16px; border: 1px solid #e7ebf0; border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 10px 28px rgba(15,23,42,.05); }.side-card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }.side-card-heading h3 { margin: 0; font-size: 11px; }.side-card-heading button { border: 0; background: transparent; color: var(--primary-dark); cursor: pointer; font-size: 8px; font-weight: 800; }.mini-user-row,.mini-place-row { width: 100%; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px 0; border: 0; border-top: 1px solid #f0f2f5; background: transparent; text-align: left; }.mini-user-row img,.mini-place-row img { width: 36px; height: 36px; border-radius: 11px; object-fit: cover; }.mini-user-row img { border-radius: 50%; }.mini-user-row strong,.mini-place-row strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.mini-user-row span,.mini-place-row span { display: block; margin-top: 3px; color: #98a2b3; font-size: 7px; }.mini-user-row i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }.mini-place-row { cursor: pointer; }.mini-place-row:hover strong { color: var(--primary-dark); }.side-card-empty { color: #98a2b3; font-size: 9px; }

.friend-grid,.explore-user-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }.friend-card { position: relative; overflow: hidden; border: 1px solid #e5e9ef; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.06); }.friend-cover { height: 72px; background: linear-gradient(135deg,#ffdde1,#eef2ff 58%,#e0f2fe); }.friend-avatar { position: absolute; top: 38px; left: 18px; width: 68px; height: 68px; border: 4px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 7px 20px rgba(15,23,42,.14); }.friend-card-body { padding: 42px 16px 16px; }.friend-card-body h3 { margin: 0; font-size: 12px; }.friend-card-body > span { display: block; margin-top: 3px; color: #98a2b3; font-size: 8px; }.friend-card-body > p { min-height: 30px; margin: 10px 0; color: #667085; font-size: 8px; line-height: 1.6; }.friend-stats { display: grid; grid-template-columns: repeat(2,1fr); padding: 10px 0; border-top: 1px solid #f0f2f5; border-bottom: 1px solid #f0f2f5; }.friend-stats div { text-align: center; }.friend-stats div + div { border-left: 1px solid #eef0f4; }.friend-stats strong { display: block; font-size: 11px; }.friend-stats span { color: #98a2b3; font-size: 7px; }.friend-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }.friend-card-actions button { min-height: 32px; border: 1px solid #e4e7ec; border-radius: 9px; background: #fff; cursor: pointer; font-size: 8px; font-weight: 800; }.friend-card-actions button:first-child { border-color: #111827; background: #111827; color: #fff; }.friend-card-actions button.following { border-color: #d9dee8; background: #f6f7f9; color: #475467; }

.explore-hero-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 34px; margin-bottom: 30px; padding: clamp(25px,4vw,46px); overflow: hidden; border-radius: 26px; background: linear-gradient(135deg,#171b2e,#29264b 62%,#61334d); color: #fff; box-shadow: 0 24px 54px rgba(30,32,60,.22); }.explore-hero-card > div > span { color: #fda4af; font-size: 9px; font-weight: 800; letter-spacing: .14em; }.explore-hero-card h2 { max-width: 620px; margin: 9px 0 10px; font-size: clamp(24px,4vw,42px); letter-spacing: -.045em; }.explore-hero-card p { max-width: 570px; margin: 0; color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.75; }.explore-hero-card button { margin-top: 19px; padding: 11px 15px; border: 0; border-radius: 11px; background: #fff; color: #111827; cursor: pointer; font-size: 9px; font-weight: 800; }.explore-hero-stat { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 3px 10px; padding: 17px 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }.explore-hero-stat strong { font-size: 24px; }.explore-hero-stat span { color: rgba(255,255,255,.64); font-size: 8px; }
.workspace-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 28px 0 14px; }.workspace-section-heading span { color: #98a2b3; font-size: 8px; font-weight: 800; letter-spacing: .12em; }.workspace-section-heading h2 { margin: 5px 0 0; font-size: 18px; }.workspace-section-heading button { border: 0; background: transparent; color: var(--primary-dark); cursor: pointer; font-size: 9px; font-weight: 800; }
.explore-place-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }.explore-place-card { overflow: hidden; border: 1px solid #e5e9ef; border-radius: 18px; background: #fff; cursor: pointer; transition: .2s ease; }.explore-place-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,23,42,.1); }.explore-place-image { position: relative; height: 150px; overflow: hidden; }.explore-place-image img { width: 100%; height: 100%; object-fit: cover; }.explore-place-image span { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 8px; background: rgba(15,23,42,.66); color: #fff; font-size: 7px; font-weight: 800; backdrop-filter: blur(7px); }.explore-place-card > div:last-child { padding: 13px 14px 14px; }.explore-place-card h3 { margin: 0; font-size: 11px; }.explore-place-card p { margin: 5px 0 12px; overflow: hidden; color: #98a2b3; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.explore-place-card footer { display: flex; justify-content: space-between; color: #667085; font-size: 8px; }.explore-place-card footer strong { color: var(--primary-dark); }
.explore-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }.explore-category-grid button { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 66px; padding: 10px 13px; border: 1px solid #e5e9ef; border-radius: 16px; background: #fff; cursor: pointer; text-align: left; }.explore-category-grid button > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb,var(--category-color) 12%,white); font-size: 19px; }.explore-category-grid strong { display: block; font-size: 10px; }.explore-category-grid small { display: block; margin-top: 4px; color: #98a2b3; font-size: 8px; }.explore-category-grid i { color: #98a2b3; font-style: normal; }
.explore-user-row .friend-card:nth-child(n+5) { display: none; }

.profile-summary-card { display: grid; grid-template-columns: 76px minmax(180px,1fr) minmax(340px,auto); align-items: center; gap: 17px; padding: 22px; border: 1px solid #e4e8ee; border-radius: 22px; background: #fff; box-shadow: 0 13px 34px rgba(15,23,42,.06); }.profile-summary-card > img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }.profile-summary-card h2 { margin: 0; font-size: 18px; }.profile-summary-card p { margin: 5px 0 0; color: #98a2b3; font-size: 9px; }.profile-summary-stats { display: grid; grid-template-columns: repeat(4,1fr); }.profile-summary-stats div { min-width: 78px; padding: 5px 14px; text-align: center; }.profile-summary-stats div + div { border-left: 1px solid #eef0f4; }.profile-summary-stats strong { display: block; font-size: 16px; }.profile-summary-stats span { color: #98a2b3; font-size: 7px; }
.my-activity-list { display: flex; flex-direction: column; gap: 12px; }.my-activity-card { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 10px; border: 1px solid #e5e9ef; border-radius: 18px; background: #fff; }.my-activity-card > img { width: 150px; height: 105px; border-radius: 13px; object-fit: cover; }.my-activity-card > div:nth-child(2) > span { display: inline-flex; padding: 5px 8px; border-radius: 8px; background: color-mix(in srgb,var(--category-color) 10%,white); color: var(--category-color); font-size: 7px; font-weight: 800; }.my-activity-card h3 { margin: 8px 0 5px; font-size: 13px; }.my-activity-card p { margin: 0; color: #98a2b3; font-size: 8px; }.my-activity-metrics { display: flex; gap: 13px; margin-top: 12px; color: #667085; font-size: 8px; }.my-activity-actions { display: flex; flex-direction: column; gap: 6px; padding-right: 6px; }.my-activity-actions button { min-width: 82px; min-height: 31px; border: 1px solid #e4e7ec; border-radius: 9px; background: #fff; cursor: pointer; font-size: 8px; font-weight: 800; }.my-activity-actions button:first-child { border-color: #111827; background: #111827; color: #fff; }.my-activity-actions button.danger { color: #d92d20; }

.notification-panel { position: fixed; z-index: 1800; top: 62px; right: 180px; width: min(380px,calc(100vw - 24px)); overflow: hidden; border: 1px solid #e4e7ec; border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 26px 70px rgba(15,23,42,.22); backdrop-filter: blur(18px); }.notification-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px 12px; border-bottom: 1px solid #eef0f4; }.notification-panel-header h3 { margin: 3px 0 0; font-size: 14px; }.notification-panel-header button { border: 0; background: transparent; color: var(--primary-dark); cursor: pointer; font-size: 8px; font-weight: 800; }.notification-list { max-height: 420px; overflow-y: auto; }.notification-item { position: relative; width: 100%; display: grid; grid-template-columns: 44px minmax(0,1fr) 8px; align-items: start; gap: 10px; padding: 12px 15px; border: 0; border-bottom: 1px solid #f0f2f5; background: #fff; cursor: pointer; text-align: left; }.notification-item.unread { background: #fff8f9; }.notification-item:hover { background: #f8fafc; }.notification-avatar-wrap { position: relative; width: 42px; height: 42px; }.notification-avatar-wrap img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }.notification-avatar-wrap i { position: absolute; right: -2px; bottom: -2px; width: 19px; height: 19px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--primary); color: #fff; font-style: normal; font-size: 9px; }.notification-copy { color: #475467; font-size: 9px; line-height: 1.5; }.notification-copy strong { color: #111827; }.notification-copy small,.notification-copy time { display: block; }.notification-copy small { margin-top: 3px; overflow: hidden; color: #667085; text-overflow: ellipsis; white-space: nowrap; }.notification-copy time { margin-top: 4px; color: #98a2b3; font-size: 7px; }.notification-item > b { width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--primary); }.notification-footer-button { width: 100%; height: 42px; border: 0; background: #fff; color: var(--primary-dark); cursor: pointer; font-size: 9px; font-weight: 800; }.notification-workspace-list { overflow: hidden; border: 1px solid #e4e8ee; border-radius: 20px; background: #fff; }.notification-workspace-item { width: 100%; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 15px 17px; border: 0; border-bottom: 1px solid #eef0f4; background: #fff; cursor: pointer; text-align: left; }.notification-workspace-item.unread { background: #fff8f9; }.notification-workspace-item > span:nth-child(2) { color: #475467; font-size: 10px; line-height: 1.55; }.notification-workspace-item strong { color: #111827; }.notification-workspace-item small,.notification-workspace-item time { display: block; }.notification-workspace-item small { margin-top: 3px; color: #667085; }.notification-workspace-item time { margin-top: 4px; color: #98a2b3; font-size: 8px; }.notification-workspace-item > b { padding: 5px 8px; border-radius: 8px; background: #f2f4f7; color: #667085; font-size: 7px; }.notification-workspace-item.unread > b { background: #fff0f2; color: var(--primary-dark); }
.follow-button.following { border-color: #d9dee8; background: #f5f7fa; color: #475467; }

@media (max-width: 1180px) {
  .friend-grid,.explore-user-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .explore-place-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feed-layout { grid-template-columns: minmax(0,1fr) 250px; }
  .profile-summary-card { grid-template-columns: 70px minmax(160px,1fr); }.profile-summary-stats { grid-column: 1/-1; border-top: 1px solid #eef0f4; padding-top: 14px; }
}
@media (max-width: 900px) {
  .workspace-view { padding: 22px 18px 92px; }
  .workspace-header { align-items: flex-start; flex-direction: column; }
  .feed-layout { grid-template-columns: 1fr; }.feed-side-column { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .friend-grid,.explore-user-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .explore-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .notification-panel { right: 12px; top: 66px; }
}
@media (max-width: 760px) {
  body.workspace-active .app-shell { grid-template-columns: 1fr; }
  .workspace-view { z-index: 760; padding: 18px 13px 92px; }
  .workspace-header { margin-bottom: 17px; }.workspace-header h1 { font-size: 25px; }.workspace-header-actions { width: 100%; }.workspace-header-actions button { width: 100%; }
  .workspace-toolbar-row { align-items: flex-start; flex-direction: column; }.segmented-control { width: 100%; }.segmented-control button { flex: 1; }
  .feed-photo-button { height: 310px; }.feed-actions button { font-size: 0; }.feed-actions button span { font-size: 17px; }
  .feed-side-column { grid-template-columns: 1fr; }
  .friend-grid,.explore-user-row,.explore-place-grid,.explore-category-grid { grid-template-columns: 1fr; }
  .explore-hero-card { grid-template-columns: 1fr; }.explore-hero-stat { width: fit-content; }
  .profile-summary-card { grid-template-columns: 60px 1fr; }.profile-summary-card > img { width: 60px; height: 60px; }.profile-summary-stats { grid-template-columns: repeat(2,1fr); }.profile-summary-stats div:nth-child(3) { border-left: 0; }.profile-summary-stats div:nth-child(n+3) { border-top: 1px solid #eef0f4; padding-top: 12px; }
  .my-activity-card { grid-template-columns: 92px 1fr; }.my-activity-card > img { width: 92px; height: 100px; }.my-activity-actions { grid-column: 1/-1; flex-direction: row; padding: 0 2px 2px; }.my-activity-actions button { flex: 1; }
  .notification-panel { right: 8px; left: 8px; width: auto; }
}

/* Profil Explorer dan balasan komentar */
.profile-menu.active { background:#f3f4f7; box-shadow:inset 0 0 0 1px #e5e7eb; }
.profile-menu.active > svg { transform:rotate(180deg); }
.profile-menu > svg { transition:transform .2s ease; }
.profile-dropdown {
  position:fixed;
  z-index:1850;
  top:62px;
  right:18px;
  width:min(320px,calc(100vw - 24px));
  overflow:hidden;
  border:1px solid #e4e7ec;
  border-radius:19px;
  background:rgba(255,255,255,.98);
  box-shadow:0 28px 75px rgba(15,23,42,.24);
  backdrop-filter:blur(18px);
  animation:profileDropdownIn .18s ease;
}
.profile-dropdown[hidden] { display:none !important; }
@keyframes profileDropdownIn { from { opacity:0; transform:translateY(-7px) scale(.985); } to { opacity:1; transform:none; } }
.profile-dropdown-head { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:10px; padding:15px; border-bottom:1px solid #edf0f4; background:linear-gradient(145deg,#fff8f9,#fff); }
.profile-dropdown-head img { width:44px; height:44px; border-radius:50%; object-fit:cover; box-shadow:0 0 0 3px #fff,0 6px 14px rgba(15,23,42,.12); }
.profile-dropdown-head strong,.profile-dropdown-head span { display:block; }
.profile-dropdown-head strong { overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.profile-dropdown-head div > span { margin-top:3px; color:#98a2b3; font-size:8px; }
.profile-level-chip { padding:5px 7px; border-radius:8px; background:#fff0f2; color:var(--primary-dark); font-size:8px; font-weight:800; }
.profile-dropdown-menu { padding:7px; }
.profile-dropdown-menu > button { width:100%; display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:9px; padding:9px; border:0; border-radius:11px; background:transparent; color:#344054; cursor:pointer; text-align:left; }
.profile-dropdown-menu > button:hover { background:#f6f7f9; }
.profile-dropdown-menu > button > span { width:32px; height:32px; display:grid; place-items:center; border-radius:10px; background:#f2f4f7; color:#475467; font-size:13px; }
.profile-dropdown-menu strong,.profile-dropdown-menu small { display:block; }
.profile-dropdown-menu strong { font-size:9px; }
.profile-dropdown-menu small { margin-top:3px; color:#98a2b3; font-size:7px; }
.profile-logout-button { width:calc(100% - 14px); height:38px; margin:0 7px 7px; border:0; border-top:1px solid #eef0f4; border-radius:10px; background:#fff; color:#b42318; cursor:pointer; font-size:8px; font-weight:800; text-align:left; }
.profile-logout-button:hover { background:#fff5f4; }

.comment-thread { display:flex; flex-direction:column; gap:7px; }
.comment-replies { position:relative; display:flex; flex-direction:column; gap:7px; margin-left:37px; padding-left:11px; }
.comment-replies::before { content:""; position:absolute; left:0; top:0; bottom:8px; width:1px; background:#e4e7ec; }
.comment-reply-item { display:grid; grid-template-columns:26px minmax(0,1fr); gap:7px; }
.comment-reply-item > img { width:26px; height:26px; border-radius:50%; object-fit:cover; }
.comment-reply-item .comment-bubble { background:#f8fafc; }
.comment-bubble p b { color:#4f46e5; font-weight:800; }
.comment-reply-button { margin-top:5px; padding:0; border:0; background:transparent; color:#667085; cursor:pointer; font-size:7px; font-weight:800; }
.comment-reply-button:hover { color:#4f46e5; }
.comment-reply-context { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border:1px solid #dfe3ea; border-radius:10px; background:#f8fafc; }
.comment-reply-context[hidden] { display:none !important; }
.comment-reply-context span,.comment-reply-context strong { display:inline; font-size:7px; }
.comment-reply-context span { color:#98a2b3; }
.comment-reply-context strong { margin-left:4px; color:#4f46e5; }
.comment-reply-context button { width:22px; height:22px; display:grid; place-items:center; border:0; border-radius:7px; background:#e9edf3; color:#667085; cursor:pointer; font-size:15px; }

.explorer-profile-card { overflow:hidden; border:1px solid #e4e8ee; border-radius:24px; background:#fff; box-shadow:0 18px 45px rgba(15,23,42,.07); }
.explorer-profile-cover { min-height:150px; display:flex; align-items:flex-start; justify-content:space-between; padding:24px; background:radial-gradient(circle at 80% 25%,rgba(255,255,255,.22),transparent 26%),linear-gradient(135deg,#111827,#27354e 62%,#ff4d5e); color:#fff; }
.explorer-profile-cover span { font-size:9px; font-weight:800; letter-spacing:.16em; }
.explorer-profile-cover i { padding:7px 10px; border:1px solid rgba(255,255,255,.24); border-radius:999px; background:rgba(255,255,255,.1); font-size:8px; font-style:normal; font-weight:700; backdrop-filter:blur(10px); }
.explorer-profile-main { position:relative; display:grid; grid-template-columns:126px minmax(0,1fr) auto; align-items:start; gap:18px; padding:0 24px 24px; }
.explorer-profile-avatar { width:112px; height:112px; margin-top:-48px; border:5px solid #fff; border-radius:28px; object-fit:cover; box-shadow:0 14px 32px rgba(15,23,42,.18); }
.explorer-profile-identity { padding-top:17px; }
.explorer-profile-identity h2 { margin:0; font-size:21px; letter-spacing:-.03em; }
.explorer-profile-identity > div > span { display:block; margin-top:5px; color:#667085; font-size:9px; }
.explorer-profile-identity p { max-width:610px; margin:13px 0 0; color:#475467; font-size:10px; line-height:1.7; }
.explorer-interest-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.explorer-interest-row span { padding:5px 8px; border-radius:999px; background:#f2f4f7; color:#475467; font-size:7px; font-weight:700; }
.explorer-profile-stats { display:grid; grid-template-columns:repeat(2,minmax(76px,1fr)); gap:8px; padding-top:18px; }
.explorer-profile-stats div { padding:11px; border:1px solid #edf0f4; border-radius:13px; background:#fafbfc; text-align:center; }
.explorer-profile-stats strong,.explorer-profile-stats span { display:block; }
.explorer-profile-stats strong { font-size:15px; }
.explorer-profile-stats span { margin-top:3px; color:#98a2b3; font-size:7px; }
.profile-activity-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.profile-activity-tile { overflow:hidden; border:1px solid #e7ebf0; border-radius:18px; background:#fff; box-shadow:0 8px 24px rgba(15,23,42,.05); }
.profile-activity-tile > button { position:relative; width:100%; height:170px; padding:0; border:0; background:#eef1f5; cursor:pointer; }
.profile-activity-tile > button img { width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.profile-activity-tile:hover > button img { transform:scale(1.035); }
.profile-activity-tile > button > span { position:absolute; right:9px; top:9px; padding:5px 7px; border-radius:8px; background:rgba(17,24,39,.75); color:#fff; font-size:7px; font-weight:800; backdrop-filter:blur(8px); }
.profile-activity-tile > div { padding:13px; }
.profile-activity-category { display:inline-flex; padding:4px 7px; border-radius:999px; background:color-mix(in srgb,var(--category-color) 12%,white); color:var(--category-color); font-size:7px; font-weight:800; }
.profile-activity-tile h3 { margin:9px 0 4px; overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.profile-activity-tile p { margin:0; overflow:hidden; color:#98a2b3; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.profile-activity-tile footer { display:flex; align-items:center; gap:9px; margin-top:12px; padding-top:10px; border-top:1px solid #f0f2f5; color:#667085; font-size:7px; }
.profile-activity-tile footer time { margin-left:auto; }
.workspace-primary-button.following { background:#fff; color:#344054; box-shadow:inset 0 0 0 1px #d9dee7; }

.profile-edit-modal { z-index:4300; }
.profile-edit-card { width:min(650px,100%); max-height:min(90vh,760px); overflow-y:auto; padding:20px; border:1px solid rgba(255,255,255,.7); border-radius:23px; background:#fff; box-shadow:0 34px 90px rgba(15,23,42,.3); transform:translateY(12px) scale(.985); transition:.22s ease; }
.profile-edit-modal.open .profile-edit-card { transform:none; }
.profile-edit-avatar-row { display:grid; grid-template-columns:74px minmax(0,1fr); align-items:center; gap:13px; margin-bottom:18px; padding:12px; border:1px solid #e8ebf0; border-radius:15px; background:#fafbfc; }
.profile-edit-avatar-row img { width:74px; height:74px; border-radius:20px; object-fit:cover; }
.profile-edit-avatar-row strong,.profile-edit-avatar-row span { display:block; }
.profile-edit-avatar-row strong { font-size:11px; }
.profile-edit-avatar-row span { margin-top:4px; color:#98a2b3; font-size:8px; }

@media (max-width: 980px) {
  .explorer-profile-main { grid-template-columns:105px minmax(0,1fr); }
  .explorer-profile-avatar { width:96px; height:96px; }
  .explorer-profile-stats { grid-column:1/-1; grid-template-columns:repeat(4,1fr); padding-top:0; }
  .profile-activity-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .profile-dropdown { top:58px; right:8px; }
  .explorer-profile-cover { min-height:115px; padding:18px; }
  .explorer-profile-main { display:block; padding:0 15px 18px; }
  .explorer-profile-avatar { width:86px; height:86px; margin-top:-38px; border-radius:23px; }
  .explorer-profile-identity { padding-top:12px; }
  .explorer-profile-stats { grid-template-columns:repeat(2,1fr); margin-top:16px; }
  .profile-activity-grid { grid-template-columns:1fr; }
  .profile-activity-tile { display:grid; grid-template-columns:125px minmax(0,1fr); }
  .profile-activity-tile > button { height:100%; min-height:135px; }
  .comment-replies { margin-left:25px; }
  .profile-edit-card { border-radius:24px 24px 0 0; }
}

/* =========================================================
   Penyempurnaan prototype sebelum integrasi backend
   ========================================================= */
.map-toolbar-actions { display:flex; align-items:center; gap:8px; }
.theme-toggle-button { width:38px; height:38px; display:grid; place-items:center; border:1px solid rgba(16,24,40,.08); border-radius:12px; background:rgba(255,255,255,.95); box-shadow:var(--shadow-sm); cursor:pointer; font-size:17px; }
.theme-toggle-button:hover { transform:translateY(-1px); }
.filter-advanced-button { position:relative; }
.filter-advanced-button b { min-width:18px; height:18px; display:grid; place-items:center; margin-left:2px; border-radius:9px; background:var(--primary); color:#fff; font-size:8px; }
.active-filter-bar { position:absolute; z-index:680; top:62px; left:16px; right:16px; display:flex; align-items:center; flex-wrap:wrap; gap:7px; pointer-events:none; }
.active-filter-bar[hidden] { display:none !important; }
.active-filter-chip { pointer-events:auto; display:inline-flex; align-items:center; gap:6px; min-height:29px; padding:0 9px; border:1px solid rgba(79,70,229,.16); border-radius:999px; background:rgba(255,255,255,.96); box-shadow:0 8px 18px rgba(15,23,42,.08); color:#4338ca; font-size:8px; font-weight:800; backdrop-filter:blur(12px); }
.active-filter-chip button { width:17px; height:17px; display:grid; place-items:center; border:0; border-radius:50%; background:#eef2ff; color:#4338ca; cursor:pointer; font-size:11px; }
.map-status-pill { transition:top .2s ease; }
body.has-active-filters .map-status-pill { top:104px; }

.map-skeleton { position:absolute; inset:0; z-index:645; overflow:hidden; background:linear-gradient(135deg,#e8eef2,#dbe5e9); transition:opacity .35s ease,visibility .35s ease; }
.map-skeleton::before,.map-skeleton::after { content:""; position:absolute; border-radius:999px; background:rgba(255,255,255,.45); }
.map-skeleton::before { width:48%; height:10px; left:8%; top:23%; transform:rotate(-18deg); box-shadow:0 90px 0 rgba(255,255,255,.38),0 180px 0 rgba(255,255,255,.34),220px 30px 0 rgba(255,255,255,.3); }
.map-skeleton::after { width:12px; height:110%; left:54%; top:-4%; transform:rotate(21deg); }
.map-skeleton > span { position:absolute; width:60px; height:60px; border:7px solid rgba(255,255,255,.9); border-radius:50% 50% 50% 0; background:#ff7582; box-shadow:0 16px 30px rgba(15,23,42,.13); transform:rotate(-45deg); animation:skeletonPin 1.35s ease-in-out infinite alternate; }
.map-skeleton > span:nth-child(1){left:25%;top:31%}.map-skeleton > span:nth-child(2){left:58%;top:48%;animation-delay:.18s}.map-skeleton > span:nth-child(3){left:72%;top:22%;animation-delay:.32s}
.map-skeleton > span::after { content:""; position:absolute; width:17px; height:17px; left:15px; top:15px; border-radius:50%; background:#fff; }
.map-skeleton > div { position:absolute; inset:0; background:linear-gradient(100deg,transparent 25%,rgba(255,255,255,.42) 45%,transparent 65%); transform:translateX(-100%); animation:skeletonSweep 1.2s infinite; }
.map-skeleton.loaded { opacity:0; visibility:hidden; pointer-events:none; }
@keyframes skeletonSweep { to{transform:translateX(100%)} }
@keyframes skeletonPin { to{transform:rotate(-45deg) translate(0,-7px)} }

.enhanced-location-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
.enhanced-location-stats > div { min-height:68px; }
.enhanced-location-stats #locationDominantCategory { font-size:10px; }
.location-primary-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:12px 0; }
.location-primary-actions button { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:9px; padding:10px; border:1px solid #e8ebf0; border-radius:13px; background:#fff; cursor:pointer; text-align:left; }
.location-primary-actions button:hover { border-color:#d5d9e1; box-shadow:0 8px 18px rgba(15,23,42,.06); transform:translateY(-1px); }
.location-primary-actions button > span { width:32px; height:32px; display:grid; place-items:center; border-radius:10px; background:#f1f3f7; color:#344054; font-weight:900; }
.location-primary-actions strong,.location-primary-actions small { display:block; }
.location-primary-actions strong { font-size:8px; }.location-primary-actions small { margin-top:3px; color:#98a2b3; font-size:7px; }
.location-primary-actions button.saved { border-color:#c7d2fe; background:#eef2ff; color:#4338ca; }
.location-content-tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin:10px 0 12px; padding:4px; border-radius:12px; background:#f2f4f7; }
.location-content-tabs button { height:31px; border:0; border-radius:9px; background:transparent; color:#667085; cursor:pointer; font-size:8px; font-weight:800; }
.location-content-tabs button.active { background:#fff; color:#111827; box-shadow:0 5px 13px rgba(15,23,42,.08); }
.location-media-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.location-media-grid[hidden] { display:none !important; }
.location-media-grid button { position:relative; aspect-ratio:1; overflow:hidden; padding:0; border:0; border-radius:10px; background:#eef1f4; cursor:pointer; }
.location-media-grid img { width:100%; height:100%; object-fit:cover; transition:transform .22s ease; }.location-media-grid button:hover img{transform:scale(1.04)}
.location-media-grid span { position:absolute; right:5px; top:5px; padding:3px 5px; border-radius:6px; background:rgba(17,24,39,.72); color:#fff; font-size:7px; font-weight:800; }

.activity-trust-row { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:12px 0; }
.privacy-chip,.location-precision-chip { display:inline-flex; align-items:center; min-height:26px; padding:0 8px; border-radius:999px; font-size:7px; font-weight:800; }
.privacy-chip { background:#eef2ff; color:#4338ca; }.privacy-chip.private { background:#fff1f2;color:#be123c }.privacy-chip.friends { background:#ecfdf3;color:#027a48 }
.location-precision-chip { background:#f2f4f7; color:#667085; }.location-precision-chip.approximate { background:#fff7ed;color:#c2410c }
.detail-more-button { margin-left:auto; width:29px; height:29px; border:1px solid #e4e7ec; border-radius:9px; background:#fff; cursor:pointer; color:#667085; font-weight:800; }

/* Wizard publikasi */
.modal-card { width:min(760px,100%); }
.upload-stepper { display:grid; grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr) 36px minmax(0,1fr); align-items:center; gap:7px; margin:4px 0 18px; }
.upload-stepper > button { display:grid; grid-template-columns:31px minmax(0,1fr); align-items:center; gap:8px; padding:7px; border:0; border-radius:12px; background:transparent; color:#98a2b3; cursor:pointer; text-align:left; }
.upload-stepper > button > span { width:31px; height:31px; display:grid; place-items:center; border:1px solid #dfe3e8; border-radius:10px; background:#fff; font-size:9px; font-weight:800; }
.upload-stepper strong,.upload-stepper small { display:block; }.upload-stepper strong{font-size:8px}.upload-stepper small{margin-top:2px;font-size:6.5px}
.upload-stepper > button.active,.upload-stepper > button.done { color:#111827; }.upload-stepper > button.active > span { border-color:#ff9aa5;background:#fff0f2;color:var(--primary-dark);box-shadow:0 0 0 3px #fff4f5}.upload-stepper > button.done > span{border-color:#a7f3d0;background:#ecfdf3;color:#047857}
.upload-stepper > i { height:1px; background:#e4e7ec; }
.wizard-panel[hidden] { display:none !important; }.wizard-panel.active { animation:wizardPanelIn .18s ease; }
@keyframes wizardPanelIn { from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none} }
.upload-thumbnail-strip { display:flex; gap:8px; overflow-x:auto; margin-top:9px; }
.upload-thumbnail-strip:empty { display:none; }
.upload-thumbnail { position:relative; flex:0 0 62px; width:62px; height:62px; overflow:hidden; border:2px solid transparent; border-radius:11px; background:#eef1f5; cursor:pointer; }
.upload-thumbnail.active { border-color:var(--primary); }.upload-thumbnail img{width:100%;height:100%;object-fit:cover}.upload-thumbnail b{position:absolute;right:3px;top:3px;width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:rgba(17,24,39,.76);color:#fff;font-size:10px}
.field { position:relative; }.field-counter { position:absolute; right:10px; bottom:8px; color:#98a2b3; font-size:7px; }
.privacy-location-option { display:grid; grid-template-columns:18px 36px minmax(0,1fr); align-items:center; gap:10px; margin-top:14px; padding:12px; border:1px solid #e4e7ec; border-radius:14px; background:#fafbfc; cursor:pointer; }
.privacy-location-option input { width:16px;height:16px;accent-color:var(--primary) }.privacy-option-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#fff7ed;color:#c2410c;font-size:16px}.privacy-location-option strong,.privacy-location-option small{display:block}.privacy-location-option strong{font-size:9px}.privacy-location-option small{margin-top:4px;color:#667085;font-size:7px;line-height:1.45}
.privacy-note { display:flex; gap:8px; margin-top:9px; padding:9px 11px; border-radius:11px; background:#f8fafc; color:#667085; }.privacy-note p{margin:0;font-size:7px;line-height:1.5}
.publish-preview-card { display:grid; grid-template-columns:44% minmax(0,1fr); overflow:hidden; border:1px solid #e4e7ec; border-radius:19px; background:#fff; box-shadow:0 16px 40px rgba(15,23,42,.08); }
.publish-preview-media { position:relative; min-height:340px; background:#eef1f4; }.publish-preview-media img{width:100%;height:100%;object-fit:cover}.publish-preview-media>span{position:absolute;right:10px;top:10px;padding:5px 7px;border-radius:8px;background:rgba(17,24,39,.72);color:#fff;font-size:7px;font-weight:800}
.publish-preview-content { padding:18px; }.publish-preview-author{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px}.publish-preview-author img{width:36px;height:36px;border-radius:50%;object-fit:cover}.publish-preview-author strong,.publish-preview-author span{display:block}.publish-preview-author strong{font-size:9px}.publish-preview-author span{margin-top:2px;color:#98a2b3;font-size:7px}.publish-preview-author b{padding:5px 7px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:7px}
.publish-preview-category{display:inline-flex;margin-top:18px;padding:5px 8px;border-radius:999px;background:#fff0f2;color:var(--primary-dark);font-size:7px;font-weight:800}.publish-preview-content h3{margin:10px 0 5px;font-size:17px;line-height:1.3}.publish-preview-location{margin:0;color:#667085;font-size:8px}.publish-preview-content>p:not(.publish-preview-location){margin:15px 0 0;color:#475467;font-size:9px;line-height:1.65}.publish-preview-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:13px}.publish-preview-tags span{padding:4px 7px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:7px}.publish-preview-warning{margin-top:14px;padding:8px 10px;border-radius:10px;background:#fff7ed;color:#c2410c;font-size:7px;font-weight:700}
.publish-confirmation { display:flex; align-items:center; gap:8px; margin-top:12px; padding:9px 11px; border-radius:11px; background:#f8fafc; color:#475467; font-size:8px; }.publish-confirmation input{accent-color:var(--primary)}
.draft-status-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; color:#98a2b3; font-size:7px; }.draft-status-row button{padding:0;border:0;background:transparent;color:#b42318;cursor:pointer;font-size:7px;font-weight:800}.draft-status-row .saved{color:#027a48}
.wizard-actions { justify-content:flex-end; }.wizard-actions #cancelModalBtn{margin-right:auto}.publish-button{background:linear-gradient(135deg,#ff4d5e,#e93247)}

/* Filter drawer */
.filter-drawer { position:fixed; z-index:1900; top:78px; left:calc(var(--sidebar-w) + 16px); width:min(355px,calc(100vw - 32px)); overflow:hidden; border:1px solid #e4e7ec; border-radius:20px; background:rgba(255,255,255,.98); box-shadow:0 28px 75px rgba(15,23,42,.24); backdrop-filter:blur(18px); animation:filterDrawerIn .18s ease; }
.filter-drawer[hidden] { display:none !important; }@keyframes filterDrawerIn{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}
.filter-drawer-header { display:flex; align-items:center; justify-content:space-between; padding:15px 16px; border-bottom:1px solid #edf0f4; }.filter-drawer-header h3{margin:3px 0 0;font-size:16px}.filter-drawer-header button{width:29px;height:29px;border:0;border-radius:9px;background:#f2f4f7;cursor:pointer;font-size:18px}
.filter-drawer-body { display:grid; grid-template-columns:1fr 1fr; gap:11px; padding:15px; }.filter-drawer-body label{display:flex;flex-direction:column;gap:6px}.filter-drawer-body label>span{color:#475467;font-size:7px;font-weight:800}.filter-drawer-body select{width:100%;height:38px;padding:0 10px;border:1px solid #dfe3e8;border-radius:10px;background:#fff;color:#344054;font-size:8px}.filter-drawer-body .filter-checkbox{grid-column:1/-1;flex-direction:row;align-items:center;padding:10px;border-radius:10px;background:#f8fafc}.filter-checkbox input{accent-color:var(--primary)}
.filter-drawer-actions { display:flex; justify-content:flex-end; gap:8px; padding:12px 15px; border-top:1px solid #edf0f4; }.filter-drawer-actions button{height:36px;padding:0 13px;border:1px solid #dfe3e8;border-radius:10px;background:#fff;cursor:pointer;font-size:8px;font-weight:800}.filter-drawer-actions button:last-child{border-color:#111827;background:#111827;color:#fff}

/* Moderasi dan kontrol aktivitas */
.action-sheet-modal { z-index:4400; }.action-sheet-card{width:min(460px,100%);padding:20px;border-radius:23px;background:#fff;box-shadow:0 34px 90px rgba(15,23,42,.3);transform:translateY(12px) scale(.985);transition:.22s ease}.action-sheet-modal.open .action-sheet-card{transform:none}
.action-sheet-summary{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:11px;margin:15px 0;padding:10px;border:1px solid #e8ebf0;border-radius:14px;background:#fafbfc}.action-sheet-summary img{width:62px;height:62px;border-radius:11px;object-fit:cover}.action-sheet-summary strong,.action-sheet-summary span{display:block}.action-sheet-summary strong{font-size:10px}.action-sheet-summary span{margin-top:4px;color:#98a2b3;font-size:8px}
.action-sheet-list{display:flex;flex-direction:column;gap:6px}.action-sheet-list button{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:12px;background:#f8fafc;cursor:pointer;text-align:left}.action-sheet-list button:hover{background:#f1f3f6}.action-sheet-list button>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#fff;font-size:14px}.action-sheet-list strong,.action-sheet-list small{display:block}.action-sheet-list strong{font-size:9px}.action-sheet-list small{margin-top:3px;color:#98a2b3;font-size:7px}.action-sheet-list button.danger{color:#b42318;background:#fff7f6}.action-sheet-list button.warning{color:#b54708;background:#fffaeb}

.custom-photo-icon.selected-marker .marker-wrap { transform:translateY(-6px) scale(1.08); filter:drop-shadow(0 16px 16px rgba(15,23,42,.28)); }
.custom-photo-icon.selected-marker .photo-marker { box-shadow:0 0 0 4px #fff,0 0 0 7px var(--primary),0 16px 30px rgba(15,23,42,.22); }
.activity-card-image .card-photo-count { position:absolute; right:8px; bottom:8px; padding:4px 6px; border-radius:7px; background:rgba(17,24,39,.72); color:#fff; font-size:7px; font-weight:800; backdrop-filter:blur(8px); }
.activity-card-image .new-activity-badge { position:absolute; left:8px; bottom:8px; padding:4px 6px; border-radius:7px; background:#22c55e;color:#fff;font-size:7px;font-weight:800; }

/* Dark mode untuk prototype */
body.dark-ui { --bg:#0f172a;--surface:rgba(17,24,39,.96);--surface-solid:#111827;--surface-soft:#1f2937;--text:#f8fafc;--muted:#94a3b8;--line:rgba(255,255,255,.08); }
body.dark-ui .topbar,body.dark-ui .sidebar,body.dark-ui .detail-panel,body.dark-ui .discover-panel,body.dark-ui .filter-drawer,body.dark-ui .profile-dropdown,body.dark-ui .modal-card,body.dark-ui .share-card,body.dark-ui .profile-edit-card,body.dark-ui .action-sheet-card{background:rgba(17,24,39,.97);color:#f8fafc;border-color:rgba(255,255,255,.09)}
body.dark-ui .global-search,body.dark-ui .filter-chip,body.dark-ui .theme-toggle-button,body.dark-ui .location-primary-actions button,body.dark-ui .location-content-tabs,body.dark-ui .location-post-card,body.dark-ui .detail-stats>div,body.dark-ui .author-row,body.dark-ui .comments-panel,body.dark-ui .publish-preview-card,body.dark-ui .privacy-location-option,body.dark-ui .filter-drawer-body select,body.dark-ui .action-sheet-summary,body.dark-ui .action-sheet-list button{background:#1f2937;color:#e5e7eb;border-color:rgba(255,255,255,.09)}
body.dark-ui input,body.dark-ui textarea,body.dark-ui select{color:#f8fafc}body.dark-ui .field input,body.dark-ui .field textarea,body.dark-ui .field select{background:#111827;border-color:#334155}body.dark-ui .location-content-tabs button.active{background:#334155;color:#fff}body.dark-ui .publish-preview-content>p:not(.publish-preview-location),body.dark-ui .detail-description{color:#cbd5e1}body.dark-ui .active-filter-chip{background:#1f2937;color:#c7d2fe;border-color:#4338ca}

@media (max-width: 980px) {
  .filter-drawer{left:16px}.publish-preview-card{grid-template-columns:40% minmax(0,1fr)}.publish-preview-media{min-height:300px}
}
@media (max-width: 760px) {
  .filter-chip-wrap .filter-advanced-button{display:inline-flex}.map-toolbar-actions{margin-left:auto}.theme-toggle-button{width:36px;height:36px}.active-filter-bar{top:58px;left:8px;right:8px}.filter-drawer{top:68px;left:8px;width:calc(100vw - 16px)}
  .upload-stepper{grid-template-columns:1fr 12px 1fr 12px 1fr}.upload-stepper>button{display:flex;justify-content:center;padding:5px}.upload-stepper>button div{display:none}.upload-stepper>i{width:12px}
  .publish-preview-card{grid-template-columns:1fr}.publish-preview-media{min-height:220px;max-height:280px}.publish-preview-content{padding:14px}.location-primary-actions{grid-template-columns:1fr}.location-media-grid{grid-template-columns:repeat(3,1fr)}
  .filter-drawer-body{grid-template-columns:1fr}.filter-drawer-body .filter-checkbox{grid-column:auto}.action-sheet-card{width:100%;border-radius:24px 24px 0 0}.wizard-actions{display:grid;grid-template-columns:1fr 1fr}.wizard-actions #cancelModalBtn{display:none}.wizard-actions button{width:100%}
}

/* =========================================================
   Perbaikan dark map, form komentar, dan sugesti alamat
   ========================================================= */
body.dark-ui .leaflet-container { background:#0b1220; }
body.dark-ui.map-provider-light .leaflet-tile-pane {
  filter:brightness(.48) contrast(1.18) saturate(.72);
  transition:filter .22s ease;
}
body.dark-ui.map-provider-dark .leaflet-tile-pane { filter:none; }
body.dark-ui .leaflet-control-attribution {
  border-radius:8px 0 0 0;
  background:rgba(15,23,42,.82);
  color:#cbd5e1;
  backdrop-filter:blur(8px);
}
body.dark-ui .leaflet-control-attribution a { color:#a5b4fc; }
body.dark-ui .leaflet-control-zoom a {
  border-color:rgba(255,255,255,.08);
  background:#111827;
  color:#f8fafc;
}
body.dark-ui .map-status-pill,
body.dark-ui .map-control-button {
  border-color:rgba(255,255,255,.08);
  background:rgba(17,24,39,.94);
  color:#f8fafc;
}

.comment-form {
  grid-template-columns:32px minmax(0,1fr) 78px;
  align-items:start;
  gap:9px;
}
.comment-form > img { width:32px; height:32px; margin-top:7px; }
.comment-input-wrap textarea {
  display:block;
  min-height:48px;
  max-height:128px;
  padding:10px 10px 20px;
  border-radius:12px;
  font-size:8px;
}
.comment-form > .comment-submit-button {
  min-width:78px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 12px;
  border-radius:12px;
  background:linear-gradient(135deg,#5b50e6,#4338ca);
  box-shadow:0 8px 18px rgba(79,70,229,.24);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.comment-form > .comment-submit-button:hover {
  background:linear-gradient(135deg,#5146dc,#3730a3);
  box-shadow:0 10px 22px rgba(79,70,229,.31);
  transform:translateY(-1px);
}
.comment-form > .comment-submit-button:active { transform:translateY(0); }
.comment-submit-button svg {
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body.dark-ui .comment-input-wrap textarea {
  border-color:#334155;
  background:#111827;
  color:#f8fafc;
}
body.dark-ui .comment-reply-context { border-color:#334155; background:#111827; }

.address-field { position:relative; z-index:30; }
.address-search-shell { position:relative; width:100%; }
.address-search-input { overflow:visible; }
.address-search-input input { min-width:0; }
.address-search-input > button {
  min-width:72px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin-right:5px;
  padding:0 10px;
  border:0;
  border-radius:9px;
  background:#111827;
  color:#fff;
  cursor:pointer;
  font-size:8px;
  font-weight:800;
  transition:opacity .18s ease,transform .18s ease;
}
.address-search-input > button:hover { transform:translateY(-1px); }
.address-search-input > button:disabled { cursor:wait; opacity:.7; transform:none; }
.address-search-input > button svg {
  width:13px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
}
.address-search-input > button.loading svg { animation:addressSearchPulse .8s ease-in-out infinite alternate; }
@keyframes addressSearchPulse { to { transform:scale(.78); opacity:.45; } }
.address-suggestions {
  position:absolute;
  z-index:2600;
  top:calc(100% + 7px);
  left:0;
  right:0;
  max-height:260px;
  overflow:auto;
  padding:6px;
  border:1px solid #e4e7ec;
  border-radius:14px;
  background:rgba(255,255,255,.99);
  box-shadow:0 22px 55px rgba(15,23,42,.2);
  backdrop-filter:blur(18px);
}
.address-suggestions[hidden] { display:none !important; }
.address-suggestion-item {
  width:100%;
  display:grid;
  grid-template-columns:31px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  padding:9px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#344054;
  cursor:pointer;
  text-align:left;
}
.address-suggestion-item:hover,
.address-suggestion-item.active { background:#f3f4f6; }
.address-suggestion-icon {
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#fff0f2;
  color:#e93247;
  font-size:12px;
  font-weight:900;
}
.address-suggestion-copy { min-width:0; }
.address-suggestion-copy strong,
.address-suggestion-copy small { display:block; }
.address-suggestion-copy strong {
  overflow:hidden;
  font-size:8px;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.address-suggestion-copy small {
  margin-top:3px;
  overflow:hidden;
  color:#98a2b3;
  font-size:7px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.address-suggestion-source {
  padding:4px 6px;
  border-radius:999px;
  background:#f2f4f7;
  color:#667085;
  font-size:6px;
  font-weight:800;
}
.address-suggestion-empty { padding:16px 12px; text-align:center; }
.address-suggestion-empty strong,
.address-suggestion-empty span { display:block; }
.address-suggestion-empty strong { font-size:9px; }
.address-suggestion-empty span { margin-top:5px; color:#98a2b3; font-size:7px; line-height:1.5; }
.coordinate-hint strong { color:#344054; }
.coordinate-hint span { color:#98a2b3; }
body.dark-ui .address-search-input > button { background:#4f46e5; }
body.dark-ui .address-suggestions {
  border-color:#334155;
  background:rgba(17,24,39,.99);
  box-shadow:0 24px 60px rgba(0,0,0,.38);
}
body.dark-ui .address-suggestion-item { color:#e5e7eb; }
body.dark-ui .address-suggestion-item:hover,
body.dark-ui .address-suggestion-item.active { background:#273449; }
body.dark-ui .address-suggestion-icon { background:#3b1f2a; color:#fb7185; }
body.dark-ui .address-suggestion-source { background:#273449; color:#cbd5e1; }
body.dark-ui .coordinate-hint strong { color:#f8fafc; }

@media (max-width:760px) {
  .comment-form { grid-template-columns:28px minmax(0,1fr) 48px; gap:7px; }
  .comment-form > img { width:28px; height:28px; }
  .comment-form > .comment-submit-button { min-width:48px; width:48px; padding:0; }
  .comment-submit-button span { display:none; }
  .comment-submit-button svg { width:15px; height:15px; }
  .address-search-input > button { min-width:42px; width:42px; padding:0; }
  .address-search-input > button span { display:none; }
  .address-suggestions { max-height:220px; }
  .address-suggestion-source { display:none; }
}
.comment-form > .comment-submit-button:disabled {
  cursor:not-allowed;
  opacity:.48;
  box-shadow:none;
  transform:none;
}


/* =========================================================
   Perbaikan kontrol detail aktivitas
   ========================================================= */
.activity-trust-row {
  flex-wrap: nowrap;
  padding-right: 2px;
}

.detail-more-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dde2ea;
  border-radius: 11px;
  background: #fff;
  color: #667085;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}

.detail-more-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
  pointer-events: none;
}

.detail-more-button:hover {
  border-color: #cfd5df;
  background: #f8fafc;
  color: #344054;
  box-shadow: 0 7px 16px rgba(15, 23, 42, .09);
  transform: translateY(-1px);
}

.detail-more-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(15, 23, 42, .08);
}

.detail-more-button:focus-visible {
  outline: 0;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .16);
}

/* Sisakan ruang khusus untuk tombol tutup di pojok kanan atas. */
.activity-detail-view .detail-photo-count {
  top: 13px;
  right: 58px;
  left: auto;
  min-width: 38px;
  text-align: center;
}

/* Tombol tutup selalu berada di atas indikator foto tanpa saling menimpa. */
.detail-panel-close,
.activity-detail-view .mobile-close {
  z-index: 20;
}

@media (max-width: 760px) {
  .activity-detail-view .detail-photo-count {
    right: 58px;
  }
}

@media (max-width: 420px) {
  .privacy-chip,
  .location-precision-chip {
    min-height: 25px;
    padding-inline: 7px;
    font-size: 6.7px;
  }

  .detail-more-button {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
}

body.dark-ui .detail-more-button {
  border-color: rgba(255,255,255,.11);
  background: #1f2937;
  color: #cbd5e1;
  box-shadow: 0 5px 14px rgba(0,0,0,.2);
}

body.dark-ui .detail-more-button:hover {
  border-color: rgba(255,255,255,.2);
  background: #273449;
  color: #fff;
}
