@font-face {
  font-family: 'disleksia';
  src: url(assets/disleksia-light.woff2) format('woff2');
  font-weight: 100 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'disleksia';
  src: url(assets/disleksia-normal.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'disleksia';
  src: url(assets/disleksia-semibold.woff2) format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'disleksia';
  src: url(assets/disleksia-bold.woff2) format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

    *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #B84C28;
    --primary-light: #d977573d;
    --primary-dark: #8B3A1F;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --bg-page: #FDFCF8;
    --bg-container: #F5F3ED;
    --bg-card: #ffffff;
    --border-color: #d4d4d4;
    --radius-s: 0.375rem;
    --radius-m: 0.75rem;
    --radius-l: 1rem;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
    --z-header: 100;
    --z-nav: 90;
    --z-popup: 110;
    --z-dialog: 200;
    --z-toast: 300;
    --z-tooltip: 1000;
    --min-touch-target: 44px;
}

.light {
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --bg-page: #FDFCF8;
    --bg-container: #F5F3ED;
    --bg-card: #ffffff;
    --border-color: #d4d4d4;
}

.dark {
    --text-primary: #f0f0f0;
    --text-secondary: #b8b8b8;
    --bg-page: #0f0f0f;
    --bg-container: #1f1f1f;
    --bg-card: #2a2a2a;
    --border-color: #3a3a3a;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-container);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-dark);
}

body {
    font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-page);
    
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header header header header header header header"
        "main main main main main aside aside"
        "main main main main main footer footer";
    
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 1rem;
    gap: 1rem;
    transition: all var(--transition);
}

@view-transition {
    navigation: auto;
  }
  
  ::view-transition-group(root) {
    animation-duration: 0.4s;
  }
  
  ::view-transition-old(root) {
    animation: fade-out 0.2s ease-out;
  }
  
  ::view-transition-new(root) {
    animation: fade-in 0.2s 0.2s ease-in both;
  }

.page-transition-slide-left {
    view-transition-name: slide-left;
  }
  
  .page-transition-slide-right {
    view-transition-name: slide-right;
  }
  
  ::view-transition-old(slide-left) {
    animation: slide-out-left 0.3s ease-out;
  }
  
  ::view-transition-new(slide-left) {
    animation: slide-in-left 0.3s 0.1s ease-in both;
  }
  
  ::view-transition-old(slide-right) {
    animation: slide-out-right 0.3s ease-out;
  }
  
  ::view-transition-new(slide-right) {
    animation: slide-in-right 0.3s 0.1s ease-in both;
  }
  
  @keyframes slide-out-left {
    to { transform: translateX(-100%); }
  }
  
  @keyframes slide-in-left {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }
  
  @keyframes slide-out-right {
    to { transform: translateX(100%); }
  }
  
  @keyframes slide-in-right {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
  }

  @view-transition {
    navigation: auto;
  }
  
  ::view-transition-group(page-home) {
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  ::view-transition-group(page-nearby) {
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
  }
  
  ::view-transition-group(page-auth) {
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  /* Smooth page transitions dengan blur effect */
  ::view-transition-old(page-home) {
    animation: fadeOutBlur 0.3s ease-out;
  }
  
  ::view-transition-new(page-home) {
    animation: fadeInScale 0.4s 0.15s ease-out both;
  }
  
  ::view-transition-old(page-nearby) {
    animation: slideOutLeft 0.35s ease-in;
  }
  
  ::view-transition-new(page-nearby) {
    animation: slideInRight 0.4s 0.1s ease-out both;
  }
  
  ::view-transition-old(page-auth) {
    animation: scaleOut 0.25s ease-in;
  }
  
  ::view-transition-new(page-auth) {
    animation: bounceIn 0.5s 0.1s ease-out both;
  }
  
  @keyframes fadeOutBlur {
    from {
      opacity: 1;
      filter: blur(0px);
      transform: scale(1);
    }
    to {
      opacity: 0;
      filter: blur(3px);
      transform: scale(0.95);
    }
  }
  
  @keyframes slideOutLeft {
    from {
      opacity: 1;
      transform: translateX(0);
    }
    to {
      opacity: 0;
      transform: translateX(-30px);
    }
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes scaleOut {
    from {
      opacity: 1;
      transform: scale(1);
    }
    to {
      opacity: 0;
      transform: scale(0.8);
    }
  }
  
  @keyframes bounceIn {
    0% {
      opacity: 0;
      transform: scale(0.3) translateY(20px);
    }
    50% {
      opacity: 0.8;
      transform: scale(1.05) translateY(-5px);
    }
    70% {
      transform: scale(0.98) translateY(2px);
    }
    100% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  
  .post-submit {
    animation-fill-mode: both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .post-submit:hover {
    animation: buttonPulse 0.6s ease-out;
  }
  
  @keyframes buttonPulse {
    0% {
      box-shadow: 0 0 0 0 var(--primary-light);
    }
    50% {
      box-shadow: 0 0 0 8px rgba(184, 76, 40, 0.3);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(184, 76, 40, 0);
    }
  }
  
  article.postingan {
    animation: cardSlideUp 0.6s ease-out;
    animation-fill-mode: both;
  }
  
  article.postingan:nth-child(even) {
    animation-delay: 0.1s;
  }
  
  article.postingan:nth-child(3n) {
    animation-delay: 0.2s;
  }
  
  @keyframes cardSlideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .floating-button {
    animation: gentleFloat 4s ease-in-out infinite;
  }
  
  @keyframes gentleFloat {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-3px);
    }
  }
  
  .nav-primary ul li a {
    position: relative;
    overflow: hidden;
  }
  
  .nav-primary ul li a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 76, 40, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-primary ul li a:hover::after {
    left: 100%;
  }
  
  .loading-post .hg-animate {
    animation: loadingPulse 1.5s ease-in-out infinite;
  }
  
  @keyframes loadingPulse {
    0%, 100% {
      opacity: 0.6;
      transform: scale(1);
    }
    50% {
      opacity: 1;
      transform: scale(1.05);
    }
  }
  
  .toast.show {
    animation: toastSlideDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  @keyframes toastSlideDown {
    from {
      opacity: 0;
      transform: translate(-50%, -100px) scale(0.8);
    }
    60% {
      opacity: 0.8;
      transform: translate(-50%, 10px) scale(1.02);
    }
    to {
      opacity: 1;
      transform: translate(-50%, 0) scale(1);
    }
  }
  
  .dialog.show .bg-drop {
    animation: backdropFadeIn 0.4s ease-out;
  }
  
  .dialog.show .dialog-wrapper {
    animation: dialogSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  @keyframes backdropFadeIn {
    from {
      opacity: 0;
      backdrop-filter: blur(0px);
    }
    to {
      opacity: 1;
      backdrop-filter: blur(5px);
    }
  }
  
  @keyframes dialogSlideUp {
    from {
      opacity: 0;
      transform: translateY(50px) scale(0.9);
    }
    60% {
      opacity: 0.8;
      transform: translateY(-5px) scale(1.02);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .bookmark-bubble.show,
  .notification-bubble.show {
    animation: bubbleSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  @keyframes bubbleSlideIn {
    from {
      opacity: 0;
      transform: translateY(-20px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .user-photo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .user-photo:hover {
    animation: profileBounce 0.6s ease-out;
  }
  
  @keyframes profileBounce {
    0%, 100% {
      transform: scale(1);
    }
    30% {
      transform: scale(1.1);
    }
    60% {
      transform: scale(0.95);
    }
    80% {
      transform: scale(1.02);
    }
  }
  
  .new-post-tab.show {
    animation: newPostSlide 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  @keyframes newPostSlide {
    from {
      opacity: 0;
      transform: translateY(-30px) scale(0.8);
    }
    60% {
      opacity: 0.9;
      transform: translateY(5px) scale(1.05);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .map-container {
    animation: mapFadeIn 0.8s ease-out;
  }
  
  @keyframes mapFadeIn {
    from {
      opacity: 0;
      transform: scale(0.95);
      filter: blur(2px);
    }
    to {
      opacity: 1;
      transform: scale(1);
      filter: blur(0);
    }
  }
  body {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  *:focus-visible {
    animation: focusGlow 0.3s ease-out;
  }
  
  @keyframes focusGlow {
    from {
      box-shadow: 0 0 0 0 var(--primary);
    }
    to {
      box-shadow: 0 0 0 3px var(--primary-light);
    }
  }
  
  .post-list > * {
    animation: contentStagger 0.6s ease-out;
    animation-fill-mode: both;
  }
  
  .post-list > *:nth-child(1) { animation-delay: 0.1s; }
  .post-list > *:nth-child(2) { animation-delay: 0.2s; }
  .post-list > *:nth-child(3) { animation-delay: 0.3s; }
  .post-list > *:nth-child(4) { animation-delay: 0.4s; }
  .post-list > *:nth-child(5) { animation-delay: 0.5s; }
  
  @keyframes contentStagger {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Scroll-triggered animations */
  @supports (animation-timeline: scroll()) {
    .create-wrapper {
      animation: scrollFade linear;
      animation-timeline: scroll();
      animation-range: entry 0% entry 50%;
    }
    
    @keyframes scrollFade {
      from {
        opacity: 0.7;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    
    .floating-button {
      animation: none;
    }
  }
  
body.on-scrolled {
    padding-top: 0;
}

body.disabled-scroll {
    overflow: hidden;
}

body.disleksia {
    font-family: 'disleksia', 'Noto Sans', sans-serif;
    line-height: 1.5;
}

.disleksia {
    font-family: 'disleksia', 'Noto Sans', sans-serif;
    line-height: 1.5;
}

.normal-font {
    font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 400;
    vertical-align: middle;
    user-select: none;
}

.material-symbols-rounded.filled,
.active .material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -150%);
    transition: transform 0.3s ease-out;
    z-index: 9999;
    max-width: 15rem;
    width: 90%;
    padding: 1rem 1.5rem;
    background-color: var(--primary);
    color: #fff;
    border-radius: 0px 0px 1rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.skip-link:focus {
    transform: translate(-50%, 0%);
}

header {
    grid-area: header;
    position: sticky;
    top: 1rem;
    z-index: var(--z-header);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 4.5rem;
    border-radius: var(--radius-l);
    background-color: var(--bg-container);
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition);
}

body.on-scrolled header {
    min-height: 5rem;
    top: 0rem;
    border-radius: 0px 0px 1rem 1rem;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition);
    min-height: var(--min-touch-target);
}

header .logo:hover,
header .logo:focus-visible {
    color: var(--primary);
}

header .logo img,
header .logo object {
    width: 2.5rem;
    height: 2.5rem;
}

header .logo strong {
    font-size: 1.375rem;
    font-weight: 700;
}

header .page-info h1 {
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

header .navigation ul {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

header .navigation ul li button {
    width: var(--min-touch-target);
    height: var(--min-touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
    color: var(--text-primary);
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

header .navigation ul li button:hover,
header .navigation ul li button:focus-visible,
header .navigation ul li button.active {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

header .navigation .user-photo {
    width: var(--min-touch-target);
    height: var(--min-touch-target);
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--primary-light);
    border: 2px solid var(--primary);
    display: block;
    transition: all var(--transition);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    text-decoration: none;
    justify-content: center;
}

header .navigation .user-photo.ubah-bentuk {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    background-color: var(--primary);
    color: #fff;
    transition: all var(--transition);
    border-radius: var(--radius-m);
    padding: 0.75rem 1rem;
    min-height: var(--min-touch-target);
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    min-width: fit-content;
}
header .navigation .user-photo.ubah-bentuk .material-symbols-rounded {
    color: #fff;
}
header .navigation .user-photo .material-symbols-rounded {
    font-size: 1.25rem;
    color: var(--primary-dark);
}

header .navigation .user-photo:hover,
header .navigation .user-photo:focus-visible {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--primary-light);
}

header .navigation .user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

main.container {
    grid-area: main;
    display: grid;
    grid-template-columns: minmax(250px, 1.5fr) 3.5fr;
    gap: 1rem;
}

.nav-primary {
    border-radius: var(--radius-l);
    background-color: var(--bg-container);
    width: 100%;
    padding: 1rem;
    position: sticky;
    top: calc(1rem + 4.5rem + 1rem);
    max-height: calc(100dvh - (1rem + 4.5rem + 1rem) - 1rem);
    overflow-y: auto;
    z-index: var(--z-nav);
    order: 1;
    box-shadow: var(--shadow-soft);
}

.nav-primary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    position: relative;
    height: 88%;
}

.nav-primary ul li a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    min-height: 3rem;
    border-radius: var(--radius-m);
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.nav-primary ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-primary ul li a:hover::before {
    left: 100%;
}

.nav-primary ul li a:hover,
.nav-primary ul li a:focus-visible,
.nav-primary ul li a.active {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
}

.nav-primary ul li a.active strong {
    font-weight: 700;
}

.nav-primary ul li a .material-symbols-rounded {
    font-size: 1.5rem;
}

.floating-button {
    width: 100%;
    position: relative;
    margin-top: auto;
}

.floating-button .setting-wrapper {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
}

.additional-setting {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    min-height: 3rem;
    border-radius: var(--radius-m);
    font-weight: 500;
    background-color: var(--bg-page);
    transition: all var(--transition);
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    width: 100%;
    color: var(--text-primary);
}

.additional-setting:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.additional-setting:hover span {
    animation: spin 2s infinite linear;
}

.app-setting {
    position: absolute;
    bottom: 3.75rem;
    background-color: var(--bg-card);
    padding: 1.25rem;
    width: 100%;
    border-radius: var(--radius-m);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-medium);
    z-index: var(--z-popup);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}

.app-setting.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.app-setting .theme-setting,
.app-setting .font-setting {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.app-setting .theme-setting strong,
.app-setting .font-setting strong {
    text-align: left;
    width: 100%;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.app-setting .theme-list,
.app-setting .font-list {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.app-setting .theme-list button {
    flex: 1;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-m);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-setting .theme-list button:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    background-color: var(--primary-light);
}

.app-setting .theme-list button.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.app-setting .font-list button {
    flex: 1;
    width: 3.5rem;
    height: 6.5rem;
    border-radius: var(--radius-m);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition);
}

.app-setting .font-list button:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    background-color: var(--primary-light);
}

.app-setting .font-list button span {
    font-size: 2rem;
    line-height: 1;
}

.app-setting .font-list button p {
    min-height: 2rem;
    align-items: center;
    display: flex;
    line-height: 1.25;
    margin: 0;
    font-size: 0.8125rem;
    text-align: center;
}

.app-setting .font-list button.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    order: 2;
}

.page-content {
    display: none;
    gap: 1rem;
}

.page-content.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-filter {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-l);
    position: sticky;
    top: 0rem;
    background-color: var(--bg-page);
    z-index: 9;
    transition: all var(--transition);
    box-shadow: var(--shadow-soft);
}

.post-filter.is-new {
    max-width: fit-content;
    transform: translate(-50%, 0%);
    left: 50%;
    background-color: transparent;
    top: 6rem;
    position: fixed;
    box-shadow: none;
}

.post-filter.is-new .filter-post {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.post-filter.is-new .new-post-tab {
    border-radius: 5rem;
    background-color: transparent;
    width: fit-content;
    display: none;
}

.post-filter.is-new .new-post-tab .show-new-posts {
    background-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-medium);
}

.filter-post {
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    background-color: var(--bg-container);
    width: 100%;
    overflow: hidden;
    border-bottom: 2px solid var(--primary);
    max-height: 6rem;
    opacity: 1;
    visibility: visible;
    transition: all var(--transition);
}

.on-scrolled .filter-post.full-wrap .filter-post {
    opacity: 0;
}

.on-scrolled .post-filter.full-wrap .new-post-tab .show-new-posts {
    padding-top: 2rem;
}

.filter-post nav {
    display: flex;
    width: 100%;
}

.filter-post button {
    flex: 1;
    background-color: transparent;
    position: relative;
    padding: 1.125rem 1rem;
    min-height: 3.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.filter-post button:hover,
.filter-post button:focus-visible {
    color: var(--primary);
    background-color: var(--primary-light);
}

.filter-post button.active {
    color: var(--primary);
    font-weight: 700;
}

.filter-post button.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    z-index: 2;
    background-color: var(--primary);
    width: 100%;
    animation: slideIn 0.3s ease;
}

.post-filter.full-wrap .new-post-tab {
    display: flex;
}

.new-post-tab {
    border-radius: 0 0 var(--radius-l) var(--radius-l);
    background-color: #fff;
    width: 100%;
    transition: all var(--transition);
    display: none;
}

.new-post-tab .show-new-posts {
    width: 100%;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.875rem 1.25rem;
    min-height: 3rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.new-post-tab .user-post-recent {
    display: flex;
    align-items: center;
}

.new-post-tab .user-post-recent .photos-recent {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.new-post-tab .user-post-recent .photos-recent:not(:nth-child(1)) {
    margin-left: -0.875rem;
}

.new-post-tab .user-post-recent .photos-recent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-post-tab .show-new-posts:hover,
.new-post-tab .show-new-posts:focus-visible {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-dark);
}

.create-wrapper {
    border-radius: var(--radius-l);
    background-color: var(--bg-container);
    width: 100%;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.create-post {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-m);
    overflow: hidden;
    transition: all var(--transition);
}

.create-post:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-medium);
}

.wysiywg-wrapper {
    width: 100%;
    padding: 1.25rem;
    position: relative;
}

.wysiwyg {
    border: none;
    outline: none;
    font-size: 1.0625rem;
    min-height: 4.5rem;
    width: 100%;
    line-height: 1.6;
    resize: none;
    background: transparent;
    font-family: inherit;
    color: var(--text-primary);
    transition: all var(--transition);
}

.wysiwyg::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.wysiwyg:focus {
    outline: none;
}

.attachment-added {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.125rem;
    gap: 1rem;
    background-color: var(--bg-page);
    border-top: 1px solid var(--border-color);
}

.attachment-added .attachment {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.attachment-added .image-added {
    width: 4.5rem;
    height: 4.5rem;
    background-color: var(--bg-container);
    position: relative;
    border-radius: var(--radius-m);
    overflow: hidden;
    display: none;
    border: 2px solid var(--primary);
    animation: fadeInScale 0.3s ease;
}

.attachment-added .image-added.show {
    display: block;
}

.remove-image,
.remove-location {
    position: absolute;
    right: 0.25rem;
    top: 0.25rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    color: #fff;
    background-color: #dc3545;
    transition: all var(--transition);
    cursor: pointer;
    z-index: 2;
}

.remove-image:hover,
.remove-image:focus-visible,
.remove-location:hover,
.remove-location:focus-visible {
    background-color: #b02a37;
    transform: scale(1.1);
}

.remove-image span,
.remove-location span {
    font-size: 1rem;
}

.post-submit, .delete-notification {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    background-color: var(--primary);
    color: #fff;
    transition: all var(--transition);
    border-radius: var(--radius-m);
    padding: 0.75rem 1rem;
    min-height: var(--min-touch-target);
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.delete-color {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.post-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.post-submit:hover::before {
    left: 100%;
}

.post-submit:hover,
.post-submit:focus-visible,
#save-location:hover,
#save-location:focus-visible {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-dark);
}

.post-submit:disabled, #save-location:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.post-submit:disabled:hover, #save-location:disabled:hover {
    background-color: var(--primary);
    transform: none;
    box-shadow: none;
}

.post-submit.photo-up {
    width: 100%;
    min-height: 3.5rem;
}

.attachment-added .image-added .image-ov-hidden {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-added .image-added .image-ov-hidden img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.maps-added {
    background-color: var(--bg-container);
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-m);
    display: none;
    align-items: center;
    gap: 0.625rem;
    position: relative;
    padding-right: 2.5rem;
    border: 2px solid var(--primary);
    max-width: 16rem;
    min-height: 3rem;
    animation: fadeInScale 0.3s ease;
}

.maps-added.show {
    display: flex;
}

.maps-added .nama-daerah p {
    font-size: 0.9375rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    text-align: left;
    color: var(--text-primary);
}

.maps-added .remove-location {
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.attachment-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 0.625rem;
    padding-top: 0.875rem;
}

.attachment-form-wrapper {
    position: relative;
}

.attachment-form button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    background-color: var(--primary-light);
    color: var(--primary);
    transition: all var(--transition);
    border-radius: var(--radius-m);
    padding: 0.625rem 0.875rem;
    min-height: 2.75rem;
    border: 2px solid var(--primary);
    cursor: pointer;
    font-weight: 500;
}

.attachment-form button p {
    color: var(--text-primary);
    transition: all var(--transition);
    margin: 0;
}

.attachment-form button:hover,
.attachment-form button:focus-visible {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.attachment-form button:hover p {
    color: #fff;
}

.password-group {
    position: relative;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 3.5rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--min-touch-target);
    min-height: var(--min-touch-target);
}

.toggle-password:hover,
.toggle-password:focus-visible {
    color: var(--primary-dark);
    background-color: var(--primary-light);
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

article.postingan {
    border-radius: var(--radius-l);
    background-color: var(--bg-container);
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

article.postingan:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary);
}

article.postingan:hover .post-image::before {
    display: none;
}

.post-user {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.isi-postingan {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-sender {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.poster-photo {
    width: 3.25rem;
    min-width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-page);
    border: 2px solid var(--primary);
    transition: all var(--transition);
}

.poster-photo:hover {
    transform: scale(1.05);
}

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

.sender-post h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.location-sender {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
    margin-top: 0.25rem;
    background: transparent;
    border: none;
    padding: 0.25rem 0;
    cursor: pointer;
    text-align: left;
}

.location-sender:hover,
.location-sender:focus-visible {
    color: var(--primary);
}

.location-sender .material-symbols-rounded {
    font-size: 1.125rem;
}

.time-post p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.isi-postingan .post-text {
    font-size: 1.0625rem;
    line-height: 1.65;
    word-break: break-word;
    color: var(--text-primary);
}

.post-image {
    margin-top: 0.625rem;
    border-radius: var(--radius-m);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.post-image:hover {
    transform: scale(1.02);
}

.post-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.location-view {
    margin-top: 0.625rem;
}

.box-mini-maps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.125rem;
    min-height: 4rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-m);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.box-mini-maps:hover,
.box-mini-maps:focus-visible {
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.info-maps {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.mini-map {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    background-color: var(--primary-light);
    border-radius: var(--radius-m);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.nama-daerah {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.mini-map .material-symbols-rounded {
    font-size: 1.625rem;
}

.info-maps h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    text-align: left;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.info-maps p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

.info-jarak p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
    text-align: right;
}

.view-location {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
}

.action-post {
    display: flex;
    gap: 0.875rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.125rem;
    margin-top: 0.625rem;
    align-items: center;
}

.action-post button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    min-height: 2.75rem;
    border-radius: var(--radius-l);
    font-size: 0.9375rem;
    background-color: var(--bg-card);
    color: var(--text-secondary);
    transition: all var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.action-post button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    transition: left 0.5s;
}

.action-post button:hover::before {
    left: 100%;
}

.action-post button:hover,
.action-post button:focus-visible {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.action-post button .material-symbols-rounded {
    font-size: 1.375rem;
}

.action-post button.bookmark-this.bookmarked {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.action-post button.bookmark-this.bookmarked .material-symbols-rounded {
    font-variation-settings: 'FILL' 1;
}

aside.near-bar {
    grid-area: aside;
    border-radius: var(--radius-l);
    background-color: var(--bg-container);
    width: 100%;
    padding: 1.25rem;
    position: sticky;
    height: fit-content;
    top: calc(1rem + 4.5rem + 1rem);
    max-height: calc(100dvh - (1rem + 9.5rem + 1rem) - (1rem + 4.5rem + 1rem));
    z-index: var(--z-nav);
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.title-near {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0.625rem;
}

.title-near h2 {
    font-size: 1.1875rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.filter-near {
    position: relative;
}

.primary-near {
    width: fit-content;
    min-height: 2.5rem;
    gap: 0.625rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
    justify-content: center;
    border-radius: 5rem;
    padding: 0.625rem 0.875rem;
    transition: all var(--transition);
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    color: var(--text-primary);
}

.primary-near:hover,
.primary-near:focus-visible {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: scale(1.05);
    border-color: var(--primary);
}

.expand-dialog {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--bg-card);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-medium);
    z-index: 10;
    padding: 1.25rem;
    width: 280px;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
}

.expand-dialog.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select {
    margin-bottom: 1.125rem;
}

.custom-select label {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
    font-weight: 500;
    color: var(--text-primary);
}

.custom-select input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
    height: 6px;
}

.range-value {
    width: 100%;
    border-radius: var(--radius-m);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 1.0625rem;
    font-weight: 600;
    margin-top: 0.625rem;
}

.penentuan {
    display: flex;
    justify-content: flex-end;
    gap: 0.625rem;
}

.penentuan button {
    padding: 0.625rem 1.125rem;
    min-height: 2.75rem;
    border-radius: var(--radius-m);
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.cancel-jarak {
    background-color: var(--bg-container);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cancel-jarak:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.save-jarak {
    background-color: var(--primary);
    color: #fff;
}

.save-jarak:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.list-post-near {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    max-height: calc(-22rem + 100dvh);
    overflow-y: auto;
    padding: 0px 0.625rem;
}

.list-post-near .empty-state {
    min-height: fit-content;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
}

.list-post-near .empty-state .material-symbols-rounded {
        font-size: 3rem;
}

.list-post-near .empty-state h3 {
    font-size: 1.25rem;
}

.post-near {
    display: block;
    padding: 0.875rem;
    border-radius: var(--radius-m);
    background-color: var(--bg-card);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
}

.post-near:hover,
.post-near:focus-visible {
    background-color: var(--primary-light);
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.sender-priview {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.preview-user img {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.preview-name h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.preview-name p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

.latest-text p {
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

.more-wrapper {
    padding: 0px 0.625rem;
    position: relative;
}

.more-wrapper .show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem;
    min-height: 3rem;
    background-color: var(--bg-card);
    font-weight: 500;
    transition: all var(--transition);
    width: 100%;
    line-height: 1.25;
    font-size: 0.9375rem;
    border-radius: var(--radius-m);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
}

.show-more span {
    font-size: 1.375rem;
    transition: all var(--transition);
}

.show-more:hover,
.show-more:focus-visible {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.show-more:hover span,
.show-more:focus-visible span {
    rotate: 45deg;
}

.near-guest-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.125rem;
    padding: 3rem 0px;
}

.near-guest-side .material-symbols-rounded {
    font-size: 3.5rem;
    color: var(--primary);
}

.near-guest-side p {
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

.near-guest-side button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    background-color: var(--primary);
    color: #fff;
    transition: all var(--transition);
    border-radius: var(--radius-m);
    padding: 0.875rem 1.25rem;
    min-height: var(--min-touch-target);
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.near-guest-side button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-dark);
}

footer {
    grid-area: footer;
    border-radius: var(--radius-l);
    background-color: var(--bg-container);
    width: 100%;
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.125rem;
    position: sticky;
    bottom: 1rem;
    z-index: var(--z-nav);
    min-height: 4.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem 1.125rem;
    line-height: 1.6;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    text-decoration: none;
    position: relative;
    transition: all var(--transition);
    padding: 0.25rem 0.375rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--primary);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: 50%;
    width: 0;
    transform: translateX(-50%);
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.copyright-footer img,
.copyright-footer object {
    width: 1.75rem;
    height: 1.75rem;
}

.hg-animate {
    --cg1: var(--primary-dark);
    --cg2: var(--primary);
    width: 2rem;
    height: 3rem;
    border-top: 4px solid var(--cg1);
    border-bottom: 4px solid var(--cg1);
    background: linear-gradient(90deg, var(--cg1) 2px, var(--cg2) 0 5px, var(--cg1) 0) 50%/7px 8px no-repeat;
    display: grid;
    overflow: hidden;
    animation: l5-0 2s infinite linear;
}

.hg-animate::before,
.hg-animate::after {
    content: "";
    grid-area: 1/1;
    width: 75%;
    height: calc(50% - 4px);
    margin: 0 auto;
    border: 2px solid var(--cg1);
    border-top: 0;
    box-sizing: content-box;
    border-radius: 0 0 40% 40%;
    mask: linear-gradient(#000 0 0) bottom/4px 2px no-repeat, linear-gradient(#000 0 0);
    mask-composite: exclude;
    background: linear-gradient(var(--dg, 0deg), var(--cg2) 50%, #0000 0) bottom/100% 205%, linear-gradient(var(--cg2) 0 0) center/0 100%;
    background-repeat: no-repeat;
    animation: inherit;
    animation-name: l5-1;
}

.hg-animate::after {
    transform-origin: 50% calc(100% + 2px);
    transform: scaleY(-1);
    --sg: 3px;
    --dg: 180deg;
}

.loading-post {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10rem;
    flex-direction: column;
    gap: 1.125rem;
    color: var(--text-secondary);
}

.empty-state {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20rem;
    flex-direction: column;
    gap: 1.125rem;
    color: var(--text-secondary);
    background-color: var(--bg-card);
    border-radius: var(--radius-l);
    border: 2px dashed var(--border-color);
    padding: 2.5rem;
}

.empty-state .material-symbols-rounded {
    font-size: 4.5rem;
    color: var(--primary);
    opacity: 0.8;
}

.empty-state h3 {
    font-size: 1.375rem;
    color: var(--text-primary);
    margin: 0;
}

.empty-state p {
    text-align: center;
    line-height: 1.65;
    margin: 0;
    max-width: 30rem;
}
.empty-state button .material-symbols-rounded {
    font-size: 1.5rem;
    color: inherit;
    margin-bottom: unset;
}
.auth-required {
    background-color: var(--bg-card);
    border-radius: var(--radius-l);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-required .material-symbols-rounded {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.125rem;
}

.auth-required h3 {
    font-size: 1.625rem;
    color: var(--text-primary);
    margin-bottom: 1.125rem;
}

.auth-required p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.65;
}

.auth-required .login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    min-height: var(--min-touch-target);
    background-color: var(--primary);
    color: #fff;
    border: 2px solid transparent;
    border-radius: var(--radius-m);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.auth-required .login-btn .material-symbols-rounded, .auth-required .post-submit .material-symbols-rounded {
    font-size: 1.5rem;
    color: inherit;
    margin-bottom: unset;
}

.auth-required .login-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-dark);
}

.new-notif,
.notif-tick {
    position: relative;
}

.new-notif::before,
.notif-tick::before {
    content: '';
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 100%;
    background-color: var(--primary);
    animation: pulse 2s infinite;
}

.bookmark-wrapper-tick,
.notification-wrapper-tick {
    position: relative;
}

.bookmark-bubble,
.notification-bubble {
    position: absolute;
    top: 3.5rem;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-card);
    width: 100%;
    min-width: 32vw;
    max-width: 420px;
    border-radius: var(--radius-m);
    gap: 1.125rem;
    box-shadow: var(--shadow-medium);
    z-index: var(--z-popup);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
}

.bookmark-bubble.show,
.notification-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bookmark-bubble-content,
.notification-bubble-content {
    position: relative;
    max-height: 50dvh;
    width: 100%;
    overflow-y: auto;
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

.notification-badge {
        position: absolute;
    top: 0;
    right: 0.25rem;
    font-size: 0.75rem;
}
.notification-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.bookmark-preview,
.notification-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-m);
    padding: 0.875rem;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
    background-color: var(--bg-page);
    min-height: 4.5rem;
}

.bookmark-preview:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.bookmark-sender,
.notification-sender {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
}

.notification-sender .notification-icon {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border-radius: var(--radius-m);
}

.bookmark-photo {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--primary);
    overflow: hidden;
}

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

.bookmark-name,
.notification-name {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.bookmark-name strong,
.notification-name strong {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    font-size: 0.9375rem;
}

.bookmark-name p,
.notification-name p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookmark-null,
.notification-null {
    min-height: 16rem;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 1.125rem;
    color: var(--text-secondary);
}

.bookmark-null span,
.notification-null span {
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.8;
}

.preview-bookmark,
.preview-notification {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    text-align: left;
    color: var(--text-primary);
    line-height: 1.5;
}

.preview-bookmark p,
.preview-notification p {
    margin: 0;
    font-size: 0.9375rem;
}

.notification-footer {
    width: 100%;
    padding: 0.625rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.625rem;
    padding-top: 1.125rem;
}

.notification-footer button {
    flex: 1;
    border-radius: var(--radius-m);
    padding: 0.875rem;
    min-height: 3rem;
    font-size: 0.9375rem;
    gap: 0.625rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-footer .notif-req-active {
    background-color: var(--primary);
    color: #fff;
    border-radius: var(--radius-m);
}

.notification-footer .notif-req-active:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.dialog {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 0px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-dialog);
    background-color: transparent;
}

.dialog.show {
    display: flex;
}

.dialog .bg-drop {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    animation: fadeIn 0.3s ease;
}

.dialog .dialog-wrapper {
    position: relative;
    z-index: 3;
    box-shadow: var(--shadow-medium);
    background-color: var(--bg-card);
    min-width: 28rem;
    max-width: 90vw;
    border-radius: var(--radius-l);
    max-height: calc(100dvh - 4rem);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    animation: slideInUp 0.3s ease;
    overflow: hidden;
}

.dialog-wrapper .dialog-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-container);
}

.dialog-wrapper .dialog-header h2 {
    font-weight: 600;
    font-size: 1.375rem;
    margin: 0;
    color: var(--text-primary);
}

.dialog-wrapper .dialog-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.125rem;
    overflow-y: auto;
    color: var(--text-primary);
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.125rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-container);
}

.dialog-footer button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    transition: all var(--transition);
    padding: 0.875rem 1.375rem;
    height: var(--min-touch-target);
    min-height: var(--min-touch-target);
    font-weight: 500;
    border-radius: var(--radius-m);
    border: 2px solid transparent;
    cursor: pointer;
    min-width: fit-content;
}

.dialog-footer button.apply-color {
    background-color: var(--primary);
    color: #fff;
}

.dialog-footer button.apply-color:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-dark);
}

.dialog-footer button.cancel-color {
    background-color: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.dialog-footer button.cancel-color:hover {
    background-color: var(--bg-container);
    color: var(--text-primary);
}

.close-dialog {
    width: var(--min-touch-target);
    height: var(--min-touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-dialog:hover,
.close-dialog:focus-visible {
    background: var(--bg-page);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.share-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.share-link label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.input-copy-wrapper {
    display: flex;
    gap: 0.625rem;
    align-items: center;
}

.input-copy-wrapper input {
    flex: 1;
    padding: 0.875rem;
    min-height: var(--min-touch-target);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-m);
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-size: 0.9375rem;
    height: 3.5rem;
}

.copy-btn {
    padding: 0.875rem;
    min-width: var(--min-touch-target);
    min-height: var(--min-touch-target);
    background-color: var(--primary);
    color: #fff;
    border: 2px solid transparent;
    border-radius: var(--radius-m);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
        height: 3.5rem;
    width: 3.5rem;
}

.copy-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    border-color: var(--primary-dark);
}

.share-social h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 1.125rem 0;
    color: var(--text-primary);
}

.social-buttons {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    display: flex;
    min-width: 6.5rem;
    height: 6rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.125rem;
    min-height: var(--min-touch-target);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-m);
    background-color: var(--bg-page);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.social-btn.whatsapp:hover {
    background-color: #25D366;
    color: #fff;
    border-color: #25D366;
}

.social-btn.facebook:hover {
    background-color: #1877F2;
    color: #fff;
    border-color: #1877F2;
}

.social-btn.twitter:hover {
    background-color: #000000;
    color: #fff;
    border-color: #000000;
}
.social-btn img {
        width: 2rem;
    height: auto;
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-m);
    overflow: hidden;
    background: var(--bg-container);
    border: 1px solid var(--border-color);
}

.lightbox {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: calc(var(--z-dialog) + 10);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border: none;
    outline: none;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-m);
    transition: transform 0.3s ease;
}

.lightbox-controls {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.75rem;
    z-index: 10001;
}

.lightbox-btn {
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.lightbox-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
    border-color: var(--primary);
}

.toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    border: none;
    outline: none;
    padding: 0px;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
}

.toast.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    animation: slideInDown 0.3s ease;
}

.toast .box-toast {
    padding: 1.125rem 1.75rem;
    display: flex;
    align-items: center;
    min-width: 22rem;
    max-width: 28rem;
    border-radius: var(--radius-l);
    font-size: 1rem;
    gap: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
}

.toast.error-util .box-toast {
    background-color: rgba(220, 53, 69, 0.95);
    border-color: #dc3545;
    color: #fff;
}

.toast.warning-util .box-toast {
    background-color: rgba(255, 193, 7, 0.95);
    border-color: #ffc107;
    color: #000;
}

.toast.success-util .box-toast {
    background-color: rgba(40, 167, 69, 0.95);
    border-color: #28a745;
    color: #fff;
}

.toast.info-util .box-toast {
    background-color: rgba(23, 162, 184, 0.95);
    border-color: #17a2b8;
    color: #fff;
}

.profile-tabs {
    display: flex;
    background-color: var(--bg-container);
    border-radius: var(--radius-l);
    padding: 0.625rem;
    gap: 0.625rem;
    margin-bottom: 1.125rem;
}

.profile-tab {
    flex: 1;
    padding: 0.875rem 1.125rem;
    min-height: var(--min-touch-target);
    border: none;
    background: none;
    border-radius: var(--radius-m);
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
}

.profile-tab.active {
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.profile-tab:hover:not(.active) {
    background-color: var(--primary-light);
    color: var(--primary);
}

.profile-panel {
    background-color: var(--bg-card);
    border-radius: var(--radius-l);
    padding: 2.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: none;
}

.profile-panel.active {
    display: block;
}

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

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    border: 4px solid var(--primary);
    overflow: hidden;
    transition: all var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.05);
}

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

.profile-name {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}

.profile-email {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}

.logout-btn {
    background-color: #dc3545;
    color: #fff;
    border: 2px solid transparent;
    padding: 0.875rem 1.75rem;
    min-height: var(--min-touch-target);
    border-radius: var(--radius-m);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.logout-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: #c82333;
}

.setting-group {
    margin-bottom: 2.25rem;
}

.setting-group h3 {
    font-size: 1.1875rem;
    font-weight: 600;
    margin-bottom: 1.125rem;
    color: var(--text-primary);
}

.setting-options {
    display: flex;
    gap: 1.125rem;
    flex-wrap: wrap;
}

.setting-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1.125rem;
    min-height: 4rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-m);
    cursor: pointer;
    transition: all var(--transition);
    background-color: var(--bg-page);
    min-width: 130px;
    justify-content: center;
}

.setting-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.setting-option.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.login-register-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    gap: 2.25rem;
}

.auth-form {
    background-color: var(--bg-card);
    padding: 2.25rem;
    border-radius: var(--radius-l);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 420px;
}

.auth-form h2 {
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    min-height: var(--min-touch-target);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-m);
    font-size: 1rem;
    transition: all var(--transition);
    background-color: var(--bg-page);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.auth-btn {
    width: 100%;
    padding: 0.875rem;
    min-height: var(--min-touch-target);
    background-color: var(--primary);
    color: #fff;
    border: 2px solid transparent;
    border-radius: var(--radius-m);
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 1.25rem;
}

.auth-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-dark);
}

.auth-switch {
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.auth-switch button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    padding: 0.25rem;
}

.auth-switch button:hover {
    color: var(--primary-dark);
}

.guest-access {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background-color: var(--bg-container);
    border-radius: var(--radius-m);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 1.125rem;
    flex-direction: column;
}

.guest-btn {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1.75rem;
    min-height: var(--min-touch-target);
    border-radius: var(--radius-m);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    justify-content: center;
    font-weight: 500;
    font-size: 1rem;
}

.guest-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}
.layer-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-container);
    border: 1px solid var(--bg-container);
    border-radius: 4px;
    box-shadow: 0 2px 8px var(--shadow-medium);
    display: none;
    z-index: 1000;
    min-width: 120px;
    border: 1px solid var(--border-color);
}
.layer-dropdown .layer-list {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}
.layer-dropdown .layer-list:hover {
    background-color: var(--primary);
    color: var(--text-primary);
}
.maplibregl-popup-content {
    color: var(--text-primary);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}
.maplibregl-popup-close-button {
    color: var(--primary);
    font-size: 1.5em;
    top: 0.15rem;
    right: 0.25em;
}

.policy-page {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: var(--radius-l);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
  }
  
  .policy-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .policy-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }
  
  .policy-date {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
  }
  
  .policy-content {
    line-height: 1.7;
    color: var(--text-primary);
  }
  
  .policy-content section {
    margin-bottom: 2rem;
  }
  
  .policy-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
  }
  
  .policy-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
  }
  
  .policy-content p {
    margin-bottom: 1rem;
    text-align: justify;
  }
  
  .policy-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
  }
  
  .policy-content li {
    margin-bottom: 0.5rem;
  }
  
  .policy-content strong {
    color: var(--primary);
    font-weight: 600;
  }
  
  .contact-info {
    background: var(--bg-container);
    padding: 1rem;
    border-radius: var(--radius-m);
    border-left: 4px solid var(--primary);
    margin: 1rem 0;
  }
  
  .contact-info p {
    margin: 0.25rem 0;
  }
  
  .back-action {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
  }

/* Responsive Design */
@media (max-width: 1400px) {
    body {
        grid-template-columns: repeat(6, 1fr);
        grid-template-areas:
            "header header header header header header"
            "main main main main aside aside"
            "main main main main footer footer";
    }
}

@media only screen and (max-width: 1280px) {

}

@media (max-width: 1024px) {
    body {
        padding: 1rem;
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "main"
            "aside"
            "footer";
    }
    
    main.container {
        grid-template-columns: minmax(220px, 2fr) 4fr;
    }
    
    aside.near-bar, footer {
        position: static;
        max-height: none;
    }

    .bookmark-bubble,
    .notification-bubble {
        min-width: 60vw;
        max-width: 80vw;
    }

    .guest-mode aside.near-bar {
        display: none;
    }

    aside.near-bar {
        display: none;
    }

    .nama-daerah {
        max-width: 70%;
    }

    .info-jarak {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0.75rem;
        gap: 1rem;
    }
    
    header {
        padding: 0.625rem 1rem;
        min-height: 3.75rem;
        top: 0.75rem;
    }
    
    body.on-scrolled header {
        min-height: 4.25rem;
    }
    
    header .page-info {
        display: none;
    }
    
    main.container {
        grid-template-columns: 1fr;
    }
    
    .nav-primary {
        position: fixed;
        left: 0;
        bottom: 0;
        right: 0;
        display: flex;
        padding: 1rem 2rem;
        max-height: fit-content;
        overflow: hidden;
        border-radius: var(--radius-l) var(--radius-l) 0px 0px;
        top: unset;
        z-index: 99;
        box-shadow: var(--shadow-medium);
        border: 1px solid var(--border-color);
    }

    .on-scrolled .post-filter.full-wrap .new-post-tab .show-new-posts {
        padding-top: 1.25rem;
    }
    
    .nav-primary ul {
        height: fit-content;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 0.375rem;
    }
    
    .nav-primary ul li a {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
        padding: 0.625rem;
        text-align: center;
        min-width: 3.5rem;
        min-height: 3.5rem;
    }
    
    .nav-primary ul li a .material-symbols-rounded {
        font-size: 1.875rem;
    }
    
    .nav-primary ul li a strong {
        display: none;
    }
    
    .nav-primary ul li a.active::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        height: 3px;
        z-index: 2;
        background-color: var(--primary);
        width: 60%;
        transform: translate(-50%, 0%);
    }
    
    .floating-button {
        display: none;
    }
    
    .post-filter.is-new {
        transform: translate(-50%, 0%);
        left: 50%;
        top: 5.5rem;
        position: fixed;
        width: 100%;
        min-width: max-content;
    }
    
    aside.near-bar, footer {
        border-radius: var(--radius-m);
        padding: 1rem;
    }
    
    footer {
        bottom: 0.75rem;
    }

    .dialog .dialog-wrapper {
        min-width: 90vw;
        margin: 1rem;
    }

    .profile-tab {
        text-align: center;
        font-size: 0.9375rem;
    }

    .setting-options {
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
    }

    .setting-option {
        min-width: 7rem;
        min-height: 7rem;
        display: flex;
        flex-direction: column;
    }

    .guest-mode aside.near-bar {
        display: none;
    }
    
    footer {
        display: none;
    }

    .nama-daerah {
        max-width: unset;
    }

    .policy-page {
        padding: 1.5rem;
        margin: 1rem;
      }
      
      .policy-header h2 {
        font-size: 1.75rem;
      }
}

@media (max-width: 550px) {
    body {
        padding: 0.5rem;
        gap: 0.75rem;
    }
    
    header {
        padding: 0.5rem 0.75rem;
        min-height: 3.5rem;
        top: 0.5rem;
    }
    
    body.on-scrolled header {
        min-height: 4rem;
        top: 0;
    }

    .nav-primary {
        padding: 0.625rem;
    }
    
    header .logo strong {
        display: none;
    }

    .on-scrolled .filter-post.full-wrap .filter-post {
        height: 2.5rem;
    }

    .on-scrolled .post-filter.full-wrap .new-post-tab .show-new-posts {
        padding-top: 2rem;
    }

    .main-content {
        padding-bottom: 9rem;
    }
    
    .create-wrapper,
    .wysiywg-wrapper {
        padding: 0.75rem;
    }
    
    .attachment-added {
        flex-direction: column;
        align-items: end;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .attachment-added .attachment {
        width: 100%;
        gap: 0.75rem;
    }
    
    .maps-added {
        flex: 1;
        max-width: 100%;
        min-height: 3.5rem;
    }
    
    .post-submit {
        width: fit-content;
        justify-content: center;
        min-width: 6rem;
        align-items: center;
    }
    
    article.postingan {
        padding: 1rem;
        gap: 1rem;
    }
    
    .box-mini-maps {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .info-jarak p {
        text-align: center;
    }
    
    .action-post {
        margin-top: 0;
        padding-top: 0.75rem;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .bookmark-wrapper-tick,
    .notification-wrapper-tick {
        display: none;
    }
    
    footer {
        padding-bottom: 4.5rem;
    }
    
    aside.near-bar,
    footer {
        display: none;
    }
    
    header .page-info {
        display: flex;
    }
    
    header .page-info h1 {
        font-size: 1.25rem;
    }
    
    header .navigation ul li:not(:last-child) {
        display: none;
    }

    .bookmark-bubble,
    .notification-bubble {
        min-width: 90vw;
        max-width: 95vw;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .toast .box-toast {
        min-width: 90vw;
        max-width: 95vw;
    }

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

    .auth-form {
        padding: 1.75rem;
        max-width: 100%;
    }
    
    .logout-btn {
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
    }
    
    .logout-btn .material-symbols-rounded {
        font-size: 1.375rem;
    }
    
    .location-sender p {
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 11rem;
    }
}

@media (max-width: 480px) {
    .policy-page {
      padding: 1rem;
      margin: 0.5rem;
    }
    
    .policy-header h2 {
      font-size: 1.5rem;
    }
    
    .policy-content h3 {
      font-size: 1.25rem;
    }
    
    .policy-content h4 {
      font-size: 1.1rem;
    }
  }

@media (max-width: 420px) {
    .new-post-tab .show-new-posts {
        padding: 0.5rem;
    }
    .info-maps h4 {
        font-size: 1rem;
    }
    .lightbox-content {
        padding: 1rem;
    }
    .lightbox-controls {
        top: 0.5rem;
    right: 0.5rem;
    }
    .lightbox-btn {
        width: 2rem;
    height: 2rem;
    }

    .nav-primary {
        padding: 0.5rem;
    }

    .nav-primary ul li a {
        min-width: 3rem;
        min-height: 3rem;
    }

    .nav-primary ul li a .material-symbols-rounded {
        font-size: 1.75rem;
    }

    .post-submit {
        min-width: 5.5rem;
        font-size: 0.875rem;
        font-weight: 600;
        padding: 0.5rem 0.75rem;
    }

    .attachment-added .attachment {
        gap: 0.5rem;
    }

    .attachment-added {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    .attachment-form button {
        gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    }

    .auth-required {
        padding: 2rem;
    }

    .auth-required .material-symbols-rounded {
        font-size: 3rem;
    }

    .auth-required h3 {
            font-size: 1.5rem;
    margin-bottom: 0.5rem;
    }

    .auth-required p {
            margin-bottom: 1.5rem;
    }
    .auth-required .login-btn {
            padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    }

    .auth-form h2 {
            font-size: 1.5rem;
    }

    .auth-switch button {
            font-size: 1rem;
    }

    .guest-btn {
        font-size: 1rem;
    }

    .profile-panel {
        padding: 1.75rem;
    }

    .profile-panel .auth-required {
        padding: 1.5rem;
    }

    .setting-option {
            padding: 0.75rem;
    min-width: 6rem;
    min-height: 6rem;
    }

    .poster-photo {
            width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    }

    .location-sender {
        margin-top: 0px;
    }

    .action-post button.delete-bookmark {
        display: none;
    }

    .profile-avatar {
            width: 5rem;
    border-width: 2px;
    height: 5rem;
    }

    .profile-name {
            font-weight: 600;
    font-size: 1.25rem;
    }

    .profile-email {
            font-size: 1rem;
    }

    article.postingan {
        padding: 0.75rem
    }

    .info-maps {
        width: 100%;
    }

    .dialog .dialog-wrapper {
        min-width: 95vw;
        max-width: 95vw;
    }

    .dialog-wrapper .dialog-header {
            padding: 0.75rem 1rem;
    }

    .dialog-wrapper .dialog-header h2 {
            font-size: 1.25rem;
    }

    .close-dialog {
            width: 2rem;
    height: 2rem;
    }

    .dialog-wrapper .dialog-content {
            padding: 1.25rem;
    }

    .toast .box-toast {
        padding: 1rem;
    }

    .dialog-footer button {
            padding: 0.75rem 1rem;
    min-width: 5rem;
    text-align: center;
    justify-content: center;
    }

    .input-copy-wrapper input {
        min-height: 3rem;
    }
    .copy-btn {
    height: 3rem;
    width: 3rem;
    }
}

@media (max-width: 380px) {
    .info-maps h4 {
        font-size: 0.875rem;
    }
    .location-sender p {
        max-width: 10rem;
    }
    .poster-photo {
        width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
    }
    .user-sender {
            gap: 0.5rem;
    }
    .sender-post h3 {
        font-size: 1rem;
    }
    .location-sender {
        margin-top: 0px;
        gap: 0.25rem;
    padding: 0px;
    }
    .post-submit, .delete-notification {
        padding: 0.5rem 1rem;
    }

    .filter-post button {
            min-height: 3rem;
    padding: 0.75rem;
    }
    .filter-post {
        border-width: 1px;
    }

    header .logo {
        min-height: fit-content;
    }

    header .logo img, header .logo object {
            width: 2rem;
    height: 2rem;
    }

    header .page-info h1 {
        font-size: 1rem;
    }

    header .navigation .user-photo {
            width: 2.25rem;
    height: 2.25rem;
    }

    .auth-required {
            padding: 1.5rem;
    }

    .auth-required .material-symbols-rounded {
            font-size: 2.5rem;
    margin-bottom: 0.5rem;
    }

    .auth-required h3 {
            font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    }

    .auth-required p {
            font-size: 0.875rem;
    }
    .auth-required .login-btn {
            padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    }

    .nav-primary {
        padding: 0.25rem 0.5rem;
    }

    .nav-primary ul li a {
            min-width: 2.75rem;
    min-height: 2.75rem;
    }

    .nav-primary ul li a .material-symbols-rounded {
        font-size: 1.5rem;
    }

    .map-container {
        height: 325px;
    }

    .auth-form {
            padding: 1.25rem;
    }

    .auth-form h2 {
            font-size: 1.25rem;
    margin-bottom: 1.25rem;
    }

    .form-group label {
            margin-bottom: 0.25rem;
    }

    .auth-btn {
            font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem;
    }

    .guest-btn {
        line-height: 1.5;
    }

    .profile-panel {
            padding: 1.5rem;
    }

    .profile-panel .auth-required {
            padding: 1.25rem;
    }

    .profile-tabs {
            margin-bottom: 0.5rem;
    padding: 0.25rem;
    }

    .profile-tab {
            font-size: 0.875rem;
    padding: 0.5rem 1rem;
    }

    .setting-option {
            padding: 0.5rem;
    font-size: 0.875rem;
    min-width: 5rem;
    min-height: 5rem;
    gap: 0.25rem;
    }

    .form-group input {
        padding: 0.75rem
    }

    .toggle-password {
            right: 0.5rem;
    padding: 0.25rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    }

    .profile-email {
        font-size: 0.75rem;
    }

    .time-post p {
        font-size: 0.75rem;
    }

    .dialog .dialog-wrapper {
            min-width: 95vw;
    max-width: 95vw;
    }

    .dialog-wrapper .dialog-header {
            padding: 0.75rem;
    }

    .dialog-wrapper .dialog-header h2 {
            font-size: 1rem;
    }

    .close-dialog {
            width: 2rem;
    height: 2rem;
    }

    .dialog-wrapper .dialog-content {
            padding: 0.75rem;
    }

    .share-link label {
            margin-bottom: 0.25rem;
    font-weight: 500;
    }

    .copy-btn .material-symbols-rounded {
            font-size: 1.25rem;
    }

    .toast .box-toast {
        padding: 0.5rem
    }

    .toast .box-toast, .box-mini-maps {
            padding: 0.5rem;
    }
    .loading-post {
            font-size: 0.875rem;
    }

    .social-btn {
            padding: 1rem;
        min-width: 5.5rem;
    height: 5.5rem;
    }
}

@media (max-width: 320px) {
    .action-post button {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .action-post button span:last-child {
        display: none;
    }

    .nav-primary ul li a strong {
        font-size: 0.6875rem;
    }

    .nav-primary ul li a .material-symbols-rounded {
        font-size: 1.5rem;
    }
    
    .location-sender p {
        max-width: 8rem;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f0f0f0;
        --text-secondary: #b8b8b8;
        --bg-page: #0f0f0f;
        --bg-container: #1f1f1f;
        --bg-card: #2a2a2a;
        --border-color: #3a3a3a;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #2a2a2a;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-secondary: #d0d0d0;
    }
}

/* Print styles */
@media print {
    header,
    .nav-primary,
    aside.near-bar,
    footer,
    .dialog,
    .toast,
    .action-post {
        display: none !important;
    }
    
    body {
        grid-template-areas: "main";
        grid-template-columns: 1fr;
        padding: 0;
        background: white;
        color: black;
    }
    
    article.postingan {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes l5-0 {
    80% { transform: rotate(0); }
    100% { transform: rotate(0.5turn); }
}

@keyframes l5-1 {
    10%, 70% { background-size: 100% 205%, var(--sg, 0) 100%; }
    70%, 100% { background-position: top, center; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Focus styles for better accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (forced-colors: active) {
    .post-submit,
    .auth-btn {
        forced-color-adjust: none;
    }
}

/* Range Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

input[type="range"]::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Lazy loading image placeholder */
img[loading="lazy"] {
    background-color: var(--bg-page);
    background-image: linear-gradient(
        45deg,
        var(--bg-container) 25%,
        transparent 25%,
        transparent 75%,
        var(--bg-container) 75%,
        var(--bg-container)
    );
    background-size: 20px 20px;
    background-repeat: repeat;
}

/* Custom scrollbar for webkit browsers */
.list-post-near::-webkit-scrollbar,
.bookmark-bubble-content::-webkit-scrollbar,
.notification-bubble-content::-webkit-scrollbar {
    width: 4px;
}

.list-post-near::-webkit-scrollbar-track,
.bookmark-bubble-content::-webkit-scrollbar-track,
.notification-bubble-content::-webkit-scrollbar-track {
    background: var(--bg-container);
}

.list-post-near::-webkit-scrollbar-thumb,
.bookmark-bubble-content::-webkit-scrollbar-thumb,
.notification-bubble-content::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 2px;
}

/* Utility classes */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-scroll {
    overflow: hidden;
}

.guest-mode footer {
    grid-area: aside footer;
}

.guest-mode main.container {
    grid-template-columns: minmax(200px, 1.5fr) 3.5fr;
}

@media (max-width: 768px) {
    .guest-mode main.container {
        grid-template-columns: 1fr;
    }
}

/*# sourceMappingURL=app.788f02c16bd72da46da9.css.map*/