.map-container {
  flex: 1;
  position: relative;
  height: 100%;
  width: 100%;
}

.story-tagline {
  margin: 0;
  color: rgba(5, 42, 65, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaflet-container {
  font-family: inherit;
}

.zoom-level-control {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
  text-align: center;
}

/* ==========================================================================
   Featured Modal Refresh
   ========================================================================== */
body.map-page #featuredModal .modal-dialog {
  max-width: 980px;
}

body.map-page #featuredModal .modal-content {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 38px 80px rgba(9, 34, 52, 0.34);
}

body.map-page #featuredModal .modal-header {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 1rem 1.25rem;
}

body.map-page #featuredModal .modal-title {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 1.2rem;
  color: #052a41 !important;
  text-shadow: none;
}

body.map-page #featuredModal .modal-body,
body.map-page #collectionsModal .modal-body {
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 1rem 1.25rem 1.25rem;
}

body.map-page #collectionsModal .modal-body {
  max-height: min(86vh, 980px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  overflow: hidden;
}

body.map-page #collectionsModal .collections-modal-list {
  min-height: 0;
}

body.map-page #featuredModal .modal-body {
  padding: 1rem 1rem 1.1rem;
  max-height: min(82vh, 920px);
  overflow: hidden;
}

body.map-page #featuredModal .featured-feed,
body.map-page #collectionsModal .featured-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-height: calc(min(82vh, 920px) - 4.25rem);
  overflow-y: auto;
  padding-right: 0.2rem;
  align-items: stretch;
  scroll-snap-type: y proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 84, 124, 0.32) rgba(255, 255, 255, 0.18);
}

body.map-page #collectionsModal .featured-feed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 100%;
}

body.map-page #featuredModal .featured-feed::-webkit-scrollbar,
body.map-page #collectionsModal .featured-feed::-webkit-scrollbar {
  width: 8px;
}

body.map-page #featuredModal .featured-feed::-webkit-scrollbar-track,
body.map-page #collectionsModal .featured-feed::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

body.map-page #featuredModal .featured-feed::-webkit-scrollbar-thumb,
body.map-page #collectionsModal .featured-feed::-webkit-scrollbar-thumb {
  background: rgba(10, 84, 124, 0.34);
  border-radius: 999px;
}

body.map-page #featuredModal .featured-feed-card,
body.map-page #collectionsModal .featured-feed-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  cursor: pointer;
  border: 1px solid rgba(9, 64, 95, 0.24);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(233, 244, 252, 0.88) 100%);
  box-shadow: 0 20px 40px rgba(9, 34, 52, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow: hidden;
  height: auto;
  min-height: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  animation: featured-card-rise 0.35s ease both;
}

body.map-page #featuredModal .featured-feed-card:focus-within,
body.map-page #featuredModal .featured-feed-card:focus-visible,
body.map-page #collectionsModal .featured-feed-card:focus-within,
body.map-page #collectionsModal .featured-feed-card:focus-visible {
  outline: 3px solid rgba(18, 121, 170, 0.45);
  outline-offset: 2px;
}

body.map-page #featuredModal .featured-feed-card .featured-feed-media,
body.map-page #collectionsModal .featured-feed-card .featured-feed-media {
  transition: transform 0.28s ease;
  transform-origin: center;
}

body.map-page #featuredModal .featured-feed-card:hover .featured-feed-media,
body.map-page #featuredModal .featured-feed-card:focus-within .featured-feed-media,
body.map-page #featuredModal .featured-feed-card:focus-visible .featured-feed-media,
body.map-page #collectionsModal .featured-feed-card:hover .featured-feed-media,
body.map-page #collectionsModal .featured-feed-card:focus-within .featured-feed-media,
body.map-page #collectionsModal .featured-feed-card:focus-visible .featured-feed-media {
  transform: scale(1.04);
}

@media (max-width: 1200px) {
  body.map-page #featuredModal .featured-feed,
  body.map-page #collectionsModal .featured-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1201px) {
  body.map-page #collectionsModal .collections-modal-dialog {
    max-width: min(1320px, 96vw);
  }
}

body.map-page #featuredModal .featured-feed-media,
body.map-page #collectionsModal .featured-feed-media {
  min-height: clamp(280px, 42vh, 420px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

body.map-page #featuredModal .featured-feed-media::after,
body.map-page #collectionsModal .featured-feed-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.35) 100%);
}

body.map-page #featuredModal .featured-feed-media.is-placeholder,
body.map-page #collectionsModal .featured-feed-media.is-placeholder {
  background: linear-gradient(135deg, #d8ebfa 0%, #beddf3 100%);
}

body.map-page #featuredModal .featured-feed-badge,
body.map-page #collectionsModal .featured-feed-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 47, 72, 0.82);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.map-page #featuredModal .featured-feed-body,
body.map-page #collectionsModal .featured-feed-body {
  padding: 0.45rem 1.15rem 0.5rem;
  display: grid;
  grid-template-rows: 1.35rem 3.95rem 5.8rem;
  gap: 0.12rem;
  align-content: start;
  min-height: 0;
}

body.map-page #featuredModal .featured-feed-map-button,
body.map-page #collectionsModal .featured-feed-map-button,
body.featured-page .featured-feed-map-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(6, 47, 72, 0.78);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(9, 34, 52, 0.16);
  backdrop-filter: blur(6px);
}

body.map-page #featuredModal .featured-feed-map-button img,
body.map-page #collectionsModal .featured-feed-map-button img,
body.featured-page .featured-feed-map-button img {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

body.map-page #featuredModal .featured-feed-map-button:hover,
body.map-page #featuredModal .featured-feed-map-button:focus-visible,
body.map-page #collectionsModal .featured-feed-map-button:hover,
body.map-page #collectionsModal .featured-feed-map-button:focus-visible,
body.featured-page .featured-feed-map-button:hover,
body.featured-page .featured-feed-map-button:focus-visible {
  color: #fff;
  text-decoration: none;
  background: rgba(6, 47, 72, 0.92);
  border-color: rgba(255, 255, 255, 0.62);
}

body.map-page #featuredModal .featured-feed-index,
body.map-page #collectionsModal .featured-feed-index {
  color: #0b4767;
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.map-page #featuredModal .featured-feed-meta,
body.map-page #collectionsModal .featured-feed-meta {
  position: relative;
  z-index: 2;
  color: #2e5f7c;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  height: 1.35rem;
  display: block;
  line-height: 1.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.map-page #featuredModal .featured-feed-meta.is-empty,
body.map-page #collectionsModal .featured-feed-meta.is-empty,
body.featured-page .featured-feed-meta.is-empty {
  visibility: hidden;
}

body.map-page #featuredModal .featured-feed-tag-link,
body.map-page #collectionsModal .featured-feed-tag-link,
body.featured-page .featured-feed-tag-link {
  color: inherit;
  text-decoration: none;
}

body.map-page #featuredModal .featured-feed-tag-link:hover,
body.map-page #featuredModal .featured-feed-tag-link:focus-visible,
body.map-page #collectionsModal .featured-feed-tag-link:hover,
body.map-page #collectionsModal .featured-feed-tag-link:focus-visible,
body.featured-page .featured-feed-tag-link:hover,
body.featured-page .featured-feed-tag-link:focus-visible {
  text-decoration: underline;
}

body.map-page #featuredModal .featured-feed-title,
body.map-page #collectionsModal .featured-feed-title {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  color: #062f48;
  line-height: 1.15;
  height: 3.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.map-page #featuredModal .featured-feed-description,
body.map-page #collectionsModal .featured-feed-description {
  margin: 0;
  color: #2e5f7c;
  line-height: 1.45;
  font-size: 0.95rem;
  height: 5.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.map-page #featuredModal .featured-feed-description.muted,
body.map-page #collectionsModal .featured-feed-description.muted {
  opacity: 0.75;
}

body.map-page #featuredModal .featured-poi-card .btn-primary,
body.map-page #featuredModal .featured-poi-card .btn-outline-primary {
  border-color: #0e7f75;
  color: #fff;
  background: linear-gradient(135deg, #129487 0%, #155f9f 100%);
  box-shadow: 0 8px 18px rgba(19, 97, 145, 0.26);
  border-radius: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.95rem;
  margin-top: auto;
}

body.map-page #featuredModal .featured-poi-card .btn-primary:hover,
body.map-page #featuredModal .featured-poi-card .btn-outline-primary:hover {
  border-color: #0e7069;
  color: #fff;
  background: linear-gradient(135deg, #0f7f74 0%, #124d84 100%);
  box-shadow: 0 10px 22px rgba(11, 79, 121, 0.34);
}

@keyframes featured-card-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body.map-page #featuredModal .modal-dialog,
  body.map-page #collectionsModal .modal-dialog {
    margin: 0.7rem;
    max-width: none;
  }

  body.map-page #featuredModal .modal-content,
  body.map-page #collectionsModal .modal-content {
    border-radius: 16px;
  }

  body.map-page #featuredModal .modal-body {
    padding: 0.85rem 0.85rem 1rem;
    max-height: 80vh;
  }

  body.map-page #featuredModal .featured-feed,
  body.map-page #collectionsModal .featured-feed {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-height: calc(80vh - 4rem);
  }

  body.map-page #featuredModal .featured-feed-card,
  body.map-page #collectionsModal .featured-feed-card {
    height: 500px;
  }

  body.map-page #featuredModal .featured-feed-media,
  body.map-page #collectionsModal .featured-feed-media {
    min-height: 220px;
  }

  body.map-page #featuredModal .featured-feed-body,
  body.map-page #collectionsModal .featured-feed-body {
    padding: 1rem;
  }

  body.map-page #featuredModal .featured-feed-title,
  body.map-page #collectionsModal .featured-feed-title {
    font-size: 1.3rem;
  }
}

body.featured-page .featured-page-shell {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 28px 60px rgba(9, 34, 52, 0.16);
  padding: 1rem;
}

body.featured-page .featured-page-container {
  padding-top: 0.375rem;
}

@media (min-width: 992px) {
  body.featured-page .featured-page-container {
    padding-top: 0.75rem;
  }
}

body.featured-page .featured-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.25rem 1rem;
}

body.featured-page .featured-page-kicker {
  color: #0b4767;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

body.featured-page .featured-page-title {
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #052a41;
}

body.featured-page .featured-page-subtitle {
  max-width: 720px;
  color: #2e5f7c;
  font-size: 1rem;
  line-height: 1.5;
}

body.featured-page .featured-page-map-link {
  border-radius: 999px;
  padding-inline: 1rem;
  font-weight: 700;
}

body.poi-detail-page .poi-page-shell {
  max-width: 960px;
  width: 100%;
  margin-inline: auto;
}

body.poi-detail-page .poi-page-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 0.5rem;
}

body.poi-detail-page .poi-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

body.poi-detail-page .poi-page-title {
  margin-bottom: 0;
}

body.poi-detail-page .poi-page-preview-badge {
  border: 1px solid rgba(5, 42, 65, 0.12);
  color: #35586d;
  font-weight: 700;
  white-space: nowrap;
}

body.poi-detail-page .poi-page-note {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(11, 71, 103, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: #35586d;
  font-size: 0.95rem;
}

body.poi-detail-page .poi-page-description {
  padding-left: 0;
  font-size: 1rem;
}

body.poi-detail-page .poi-page-image-section {
  margin-bottom: 0;
}

body.poi-detail-page .poi-page-comments-section {
  margin-top: 0.5rem;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(9, 34, 52, 0.08);
  background: rgba(255, 255, 255, 0.35);
}

body.poi-detail-page .poi-page-comments-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

body.poi-detail-page .poi-page-comments-title-group {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

body.poi-detail-page .poi-page-comments-section .poi-comments-list {
  max-height: none;
  padding-bottom: 0.75rem;
}

body.poi-detail-page .poi-image-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(9, 34, 52, 0.18);
  background: rgba(0, 0, 0, 0.08);
}

body.poi-detail-page .poi-image-carousel.is-single .poi-image-nav,
body.poi-detail-page .poi-image-carousel.is-single .poi-image-dots {
  display: none;
}

body.poi-detail-page .poi-image-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}

body.poi-detail-page .poi-image-slide {
  flex: 0 0 100%;
}

body.poi-detail-page .poi-image-slide img {
  width: 100%;
  height: min(420px, 52vw);
  min-height: 240px;
  object-fit: cover;
  display: block;
}

body.poi-detail-page .poi-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

body.poi-detail-page .poi-image-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

body.poi-detail-page .poi-image-prev {
  left: 12px;
}

body.poi-detail-page .poi-image-next {
  right: 12px;
}

body.poi-detail-page .poi-image-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
}

body.poi-detail-page .poi-image-dot {
  width: 8px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

body.poi-detail-page .poi-image-dot.active {
  background: #fff;
}

body.featured-page .featured-home-hero {
  align-items: center;
  padding: 0.5rem 0.25rem .25rem;
}

body.featured-page .featured-home-hero__content {
  flex: 0 1 66.6667%;
  max-width: 760px;
}

body.featured-page .featured-home-hero__actions {
  display: flex;
  flex: 0 0 33.3333%;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  justify-content: center;
  margin-left: auto;
  max-width: 320px;
  width: 100%;
}

body.featured-page .featured-home-hero__button,
body.featured-page .featured-home-hero__actions .featured-page-map-link {
  width: 100%;
  justify-content: center;
}

body.featured-page .featured-home-hero__button {
  min-height: 38px;
}

body.featured-page .featured-home-hero__actions .featured-page-map-link {
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  text-align: center;
  border-radius: var(--bs-btn-border-radius);
  border-color: #c69214;
  color: #3b2500;
  background: linear-gradient(180deg, #f4cf62 0%, #d9a52a 100%);
  box-shadow: 0 14px 28px rgba(167, 120, 16, 0.26);
  font-size: 1.725rem;
  font-weight: 800;
}

body.featured-page .featured-home-hero__button--silver {
  border: 1px solid #9aa4b2;
  color: #1f2937;
  background: linear-gradient(180deg, #eef2f7 0%, #c8d0db 100%);
  box-shadow: 0 10px 20px rgba(100, 116, 139, 0.2);
  font-weight: 700;
}

body.featured-page .featured-home-hero__button--silver:hover,
body.featured-page .featured-home-hero__button--silver:focus-visible {
  border-color: #7c8796;
  color: #111827;
  background: linear-gradient(180deg, #e5ebf2 0%, #b8c2cf 100%);
  box-shadow: 0 12px 24px rgba(100, 116, 139, 0.26);
}

body.featured-page .featured-home-hero__actions .featured-page-map-link:hover,
body.featured-page .featured-home-hero__actions .featured-page-map-link:focus-visible {
  border-color: #b07f11;
  color: #2f1d00;
  background: linear-gradient(180deg, #f0c54a 0%, #c9931c 100%);
  box-shadow: 0 18px 32px rgba(140, 97, 11, 0.32);
}

body.featured-page .featured-home-section {
  padding: .25rem 0.25rem 0;
}

body.featured-page .featured-home-section + .featured-home-section {
  border-top: 1px solid rgba(9, 64, 95, 0.12);
  margin-top: 1.4rem;
}

body.featured-page .featured-home-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

body.featured-page .featured-home-section__title {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 800;
  color: #052a41;
}

body.featured-page .featured-home-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.featured-page .featured-home-point {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 246, 252, 0.9) 100%);
}

body.featured-page .featured-home-feed-card {
  height: 100%;
  min-height: 460px;
}

body.featured-page .featured-home-regions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.featured-page .featured-home-region-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 1.15rem;
  border: 1px solid rgba(9, 64, 95, 0.22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(224, 240, 250, 0.9) 100%);
  color: #062f48;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(9, 34, 52, 0.12);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.featured-page .featured-home-region-card:hover,
body.featured-page .featured-home-region-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(14, 127, 117, 0.42);
  box-shadow: 0 22px 38px rgba(9, 34, 52, 0.18);
  color: #062f48;
}

body.featured-page .featured-home-region-card--image {
  background-size: cover;
  background-position: center;
  color: #f8fbff;
}

body.featured-page .featured-home-region-card--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 42, 65, 0.12) 0%, rgba(5, 42, 65, 0.78) 100%);
}

body.featured-page .featured-home-region-card__name,
body.featured-page .featured-home-region-card__description {
  position: relative;
  z-index: 1;
}

body.featured-page .featured-home-region-card__name {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

body.featured-page .featured-home-region-card__description {
  line-height: 1.45;
  font-size: 0.95rem;
}

body.featured-page .featured-home-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.featured-page #featuredPageStatus {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem !important;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(10, 84, 124, 0.45);
  border-radius: 999px;
  color: #0b4767 !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(221, 240, 253, 0.82) 100%);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(10, 63, 92, 0.14);
}

body.featured-page .featured-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.featured-page .featured-feed-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  cursor: pointer;
  border: 1px solid rgba(9, 64, 95, 0.24);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(233, 244, 252, 0.88) 100%);
  box-shadow: 0 20px 40px rgba(9, 34, 52, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow: hidden;
  height: auto;
  animation: featured-card-rise 0.35s ease both;
}

body.featured-page .featured-feed-card:focus-within,
body.featured-page .featured-feed-card:focus-visible {
  outline: 3px solid rgba(18, 121, 170, 0.45);
  outline-offset: 2px;
}

body.featured-page .featured-feed-card .featured-feed-media {
  transition: transform 0.28s ease;
  transform-origin: center;
}

body.featured-page .featured-feed-card:hover .featured-feed-media,
body.featured-page .featured-feed-card:focus-within .featured-feed-media,
body.featured-page .featured-feed-card:focus-visible .featured-feed-media {
  transform: scale(1.04);
}

body.featured-page .featured-feed-media {
  height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

body.featured-page .featured-feed-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.35) 100%);
}

body.featured-page .featured-feed-media.is-placeholder {
  background: linear-gradient(135deg, #d8ebfa 0%, #beddf3 100%);
}

body.featured-page .featured-feed-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 47, 72, 0.82);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.featured-page .featured-feed-body {
  padding: 0.45rem 1.15rem 0.5rem;
  display: grid;
  grid-template-rows: 1.35rem 3.95rem 5.8rem;
  gap: 0.12rem;
  align-content: start;
  min-height: 0;
}

body.map-page #featuredModal .featured-feed-meta,
body.featured-page .featured-feed-meta {
  position: relative;
  z-index: 2;
}

body.featured-page .featured-feed-index {
  color: #0b4767;
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.featured-page .featured-feed-meta {
  position: relative;
  z-index: 2;
  color: #2e5f7c;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  height: 1.35rem;
  display: block;
  line-height: 1.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.featured-page .featured-feed-title {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  color: #062f48;
  line-height: 1.15;
  height: 3.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.featured-page .featured-feed-description {
  margin: 0;
  color: #2e5f7c;
  line-height: 1.45;
  font-size: 0.95rem;
  height: 5.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.featured-page .featured-feed-description.muted {
  opacity: 0.75;
}

body.region-pois-page .region-pois-shell {
  overflow: hidden;
}

body.region-pois-page .region-pois-hero {
  position: relative;
  align-items: stretch;
  padding: 1.25rem;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(221, 240, 253, 0.8) 100%);
}

body.region-pois-page .region-pois-hero--image {
  background-size: cover;
  background-position: center;
  color: #f8fbff;
}

body.region-pois-page .region-pois-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(5, 42, 65, 0.82) 0%, rgba(5, 42, 65, 0.56) 45%, rgba(5, 42, 65, 0.2) 100%);
}

body.region-pois-page .region-pois-hero__content,
body.region-pois-page .region-pois-hero__actions {
  position: relative;
  z-index: 1;
}

body.region-pois-page .region-pois-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
}

body.region-pois-page .region-pois-hero--image .featured-page-kicker,
body.region-pois-page .region-pois-hero--image .featured-page-title,
body.region-pois-page .region-pois-hero--image .story-tagline,
body.region-pois-page .region-pois-hero--image .featured-page-subtitle {
  color: #f8fbff;
}

body.region-pois-page .region-pois-hero--image .featured-page-map-link {
  color: #f8fbff;
  border-color: rgba(248, 251, 255, 0.72);
  background: rgba(5, 42, 65, 0.22);
}

body.region-pois-page .region-pois-hero--image .featured-page-map-link:hover {
  color: #052a41;
  background: #f8fbff;
  border-color: #f8fbff;
}

body.region-pois-page .region-pois-pagination {
  margin-top: 1rem;
}

body.region-pois-page .region-pois-pagination__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

body.region-pois-page .region-pois-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

body.region-pois-page .region-pois-pagination__button {
  min-width: 3rem;
  border-radius: 999px;
}

body.region-pois-page .region-poi-card {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.region-pois-page .region-poi-card .featured-feed-media {
  transition: transform 0.28s ease;
  transform-origin: center;
}

body.region-pois-page .region-poi-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 127, 117, 0.45);
  box-shadow: 0 24px 44px rgba(9, 34, 52, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.region-pois-page .region-poi-card:hover .featured-feed-media,
body.region-pois-page .region-poi-card:focus-visible .featured-feed-media {
  transform: scale(1.04);
}

body.region-pois-page .region-poi-card:focus-visible {
  outline: 3px solid rgba(18, 121, 170, 0.45);
  outline-offset: 2px;
}

@media (max-width: 1200px) {
  body.featured-page .featured-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.featured-page .featured-home-points,
  body.featured-page .featured-home-regions,
  body.featured-page .featured-home-resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.featured-page .featured-page-shell {
    padding: 0.85rem;
    border-radius: 18px;
  }

  body.featured-page .featured-home-hero__guest-button {
    display: none;
  }

  body.featured-page .featured-page-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.1rem 0.1rem 0.55rem;
  }

  body.featured-page .featured-page-kicker {
    margin-bottom: 0.2rem;
  }

  body.featured-page .featured-page-title {
    margin-bottom: 0.3rem;
    font-size: clamp(1.5rem, 7vw, 2rem);
    line-height: 1.08;
  }

  body.featured-page .featured-page-subtitle {
    font-size: 0.84rem;
    line-height: 1.4;
    margin-bottom: 0px;
  }

  body.featured-page .featured-home-hero__actions,
  body.featured-page .featured-home-section__header {
    width: 100%;
  }

  body.featured-page .featured-home-hero__content {
    flex-basis: auto;
    max-width: none;
  }

  body.featured-page .featured-home-hero__actions {
    flex-basis: auto;
    max-width: none;
    margin-left: 0;
    gap: 0.55rem;
  }

  body.featured-page .featured-home-hero__actions .featured-page-map-link {
    min-height: 54px;
    font-size: 1.15rem;
  }

  body.regions-page .regions-hero .featured-page-map-link {
    min-height: 54px;
    font-size: 1.15rem;
  }

  body.region-pois-page .region-pois-hero {
    flex-direction: column;
    padding: 1rem 0.95rem 1.15rem;
  }

  body.featured-page .featured-feed {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  body.featured-page .featured-feed-media {
    height: 220px !important;
  }

  body.featured-page .featured-feed-card {
    height: auto !important;
    min-height: 0 !important;
  }

  body.featured-page .featured-feed-body {
    display: flex !important;
    flex-direction: column;
    padding: 0.5rem 1rem 0.75rem;
    gap: 0.28rem;
  }

  body.featured-page .featured-feed-meta {
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2;
  }

  body.featured-page .featured-feed-title {
    height: auto !important;
    min-height: 0 !important;
    font-size: 1.7rem;
  }

  body.featured-page .featured-feed-description {
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0;
    -webkit-line-clamp: 3;
  }

  body.featured-page .featured-home-points,
  body.featured-page .featured-home-regions,
  body.featured-page .featured-home-resources {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.zoom-level-control.is-hidden {
  display: none;
}

body.map-page .leaflet-bottom.leaflet-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

body.map-page .leaflet-bottom.leaflet-right .leaflet-control {
  margin: 0;
}

body.map-page .leaflet-bottom.leaflet-right .zoom-level-control {
  order: 1;
}

body.map-page .leaflet-bottom.leaflet-right .leaflet-control-zoom {
  order: 0;
}

body.map-page .leaflet-bottom.leaflet-right .leaflet-control-attribution {
  order: 2;
}

.poi-popup {
  padding: 10px;
  min-width: 200px;
}

.poi-popup h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.poi-popup p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.poi-status {
  margin: 8px 0;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-approved {
  background: #d4edda;
  color: #155724;
}

.status-denied {
  background: #f8d7da;
  color: #721c24;
}

.status-archived {
  background: #e2e3e5;
  color: #383d41;
}

.status-flagged {
  background: #fff3cd;
  color: #856404;
}

.status-review {
  background: #d1ecf1;
  color: #0c5460;
}

.poi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.poi-image-list {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.poi-image-row {
  display: flex;
  flex: 0 0 83px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  align-items: stretch;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
  scroll-snap-align: start;
  overflow: hidden;
}

.poi-image-row.is-active {
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.poi-image-row.is-dragging {
  opacity: 0.55;
}

.poi-image-row.is-drop-before {
  box-shadow: inset 4px 0 0 #0d6efd;
}

.poi-image-row.is-drop-after {
  box-shadow: inset -4px 0 0 #0d6efd;
}

.poi-image-media {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.poi-image-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  min-height: 0;
}

.poi-image-preview-button {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  line-height: 0;
  align-self: stretch;
}

.poi-image-preview-button:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.poi-image-preview {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  background: #fff;
}

.poi-image-overlay-badge {
  position: absolute;
  top: 0.125rem;
  z-index: 1;
  min-width: 1rem;
  min-height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.275rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-size: 0.46rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(4px);
}

.poi-image-overlay-badge-order {
  left: 0.125rem;
}

.poi-image-remove-btn {
  position: absolute;
  top: 0.125rem;
  right: 0.125rem;
  z-index: 2;
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.9);
  color: #fff;
  font-size: 0.625rem;
  line-height: 1;
}

.poi-image-remove-btn:hover {
  background: rgba(153, 27, 27, 0.96);
}

.poi-image-remove-btn:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.poi-image-action-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0.625rem;
}

.poi-image-action-btn svg {
  flex: 0 0 auto;
}

.poi-image-action-btn:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.poi-image-reorder[disabled] {
  cursor: default;
  opacity: 0.5;
}

@media (max-width: 575.98px) {
  .poi-image-row {
    flex-basis: 83px;
  }
}

.poi-image-empty {
  padding: 12px 4px;
  font-size: 0.9rem;
}

.poi-upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border: 1px dashed rgba(13, 110, 253, 0.35);
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.04);
  cursor: pointer;
}

.poi-upload-dropzone.is-dragover {
  border-color: rgba(13, 110, 253, 0.7);
  background: rgba(13, 110, 253, 0.12);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.poi-upload-dropzone-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b3d91;
}

.poi-upload-dropzone-copy {
  font-size: 0.82rem;
  color: #5f6b7a;
}

.poi-image-preview-stage {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
}

.poi-image-preview-stage-button {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
}

.poi-image-preview-stage-button:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.poi-image-preview-stage-image {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f9fa;
}

.poi-image-preview-stage-meta {
  margin-top: 10px;
}

.poi-image-preview-stage-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f2937;
  overflow-wrap: anywhere;
}

.poi-image-preview-stage-details {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #6c757d;
}

.create-poi-image-preview-modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  background: #f8f9fa;
}

.create-poi-image-preview-modal-image {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 900px);
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.create-poi-tabs-container {
  margin-bottom: 12px;
  border-radius: 12px;
}

.create-poi-tabs {
  justify-content: space-between;
}

.create-poi-tabs li {
  flex: 1;
}

.create-poi-tabs .create-poi-tab {
  width: 100%;
}

.create-poi-panel {
  display: none;
  width: 100%;
  min-width: 0;
}

.create-poi-panel.active {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

#createPOIForm {
  height: 420px;
  min-height: 420px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 250px;
}

#createPOIForm #newPOIForm {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  min-width: 0;
}

#createPOIForm .create-poi-tabs-container,
#createPOIForm .create-poi-actions {
  flex: 0 0 auto;
}

#createPOIForm .create-poi-panel.active {
  overflow-y: auto;
  overflow-x: hidden;
}

.create-poi-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.create-poi-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.create-poi-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.create-poi-description-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.create-poi-description-popout-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6c757d;
}

.create-poi-description-popout-trigger:hover {
  color: #495057;
  background: rgba(108, 117, 125, 0.08);
}

.create-poi-description-popout-trigger:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
  border-radius: 4px;
}

.create-poi-description-popout-trigger img {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.create-poi-description-popout {
  min-height: 340px;
  resize: vertical;
}

.create-poi-location-alert {
  margin-bottom: 0.5rem;
}

.create-poi-coordinate-row {
  margin-top: 0.35rem;
  --bs-gutter-y: 0.35rem;
  display: flex;
  flex-wrap: nowrap;
}

.create-poi-coordinate-row > [class*="col-"] {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
}

.tag-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-search-row .form-control {
  flex: 1 1 auto;
}

.tag-search-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.info-trigger-btn {
  width: 0.7rem;
  height: 0.7rem;
  min-width: 0.7rem;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.4rem;
  font-weight: 700;
  line-height: 1;
}

.app-info-modal-body {
  white-space: pre-line;
}

.poi-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--light-color);
  border-radius: 4px;
  font-size: 0.8rem;
  border-left: 3px solid var(--primary-color);
}

.tag-icon {
  font-size: 1rem;
}

/* Leaflet Marker Cluster Customization */
.marker-cluster-small {
  background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-small div {
  background-color: rgba(110, 204, 57, 0.8);
}

.marker-cluster-medium {
  background-color: rgba(241, 211, 87, 0.6);
}

.marker-cluster-medium div {
  background-color: rgba(241, 211, 87, 0.8);
}

.marker-cluster-large {
  background-color: rgba(253, 156, 115, 0.6);
}

.marker-cluster-large div {
  background-color: rgba(253, 156, 115, 0.8);
}

.status-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #dee2e6;
  background: #fff;
  color: var(--pill-color, #343a40);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.status-pill-label:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border-color: #ced4da;
}

.status-pill-label .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.status-pill-label .status-text {
  font-size: 0.9rem;
  color: inherit;
}

.status-filter:checked + .status-pill-label {
  border-color: var(--pill-color, #0d6efd);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.2),
    0 0 0 2px var(--pill-color, #0d6efd) inset;
  background: #fff;
  color: var(--pill-color, #0d6efd);
  transform: translateY(-2px);
}

.status-filter:checked + .status-pill-label .status-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.status-pill {
  margin-bottom: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .poi-popup {
    min-width: 180px;
  }

  .poi-popup h3 {
    font-size: 1rem;
  }

  .poi-popup p {
    font-size: 0.85rem;
  }
}

/* Map page styles extracted from Map.cshtml */
body.map-page {
  margin: 0;
  padding: 0;
  overflow: hidden;
  min-height: 100vh;
}

/* Global scrollbar styling for map page */
body.map-page *::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.map-page *::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

body.map-page *::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: background 0.2s ease;
}

body.map-page *::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

body.map-page * {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

/* Regions landing page */
body.regions-page .regions-hero {
  padding: 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(13, 110, 253, 0.12);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

body.regions-page .regions-hero > :first-child {
  flex: 1 1 0;
}

body.regions-page .regions-hero .featured-page-map-link {
  flex: 1 1 0;
  width: 100%;
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  text-align: center;
  border-radius: var(--bs-btn-border-radius);
  border-color: #c69214;
  color: #3b2500;
  background: linear-gradient(180deg, #f4cf62 0%, #d9a52a 100%);
  box-shadow: 0 14px 28px rgba(167, 120, 16, 0.26);
  font-size: 1.725rem;
  font-weight: 800;
}

body.regions-page .regions-hero .featured-page-map-link:hover,
body.regions-page .regions-hero .featured-page-map-link:focus-visible {
  border-color: #b07f11;
  color: #2f1d00;
  background: linear-gradient(180deg, #f0c54a 0%, #c9931c 100%);
  box-shadow: 0 18px 32px rgba(140, 97, 11, 0.32);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.regions-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.regions-search {
  flex: 1 1 280px;
  max-width: 420px;
}

.regions-search .form-control {
  border-radius: 999px;
  padding-left: 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.region-search-empty {
  display: none;
}

.region-search-empty.is-visible {
  display: block;
}

.region-card.is-hidden {
  display: none;
}

.region-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  min-height: 160px;
}

.region-card--image {
  background-size: cover;
  background-position: center;
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.region-card--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.15));
  z-index: 0;
}

.region-card--image > * {
  position: relative;
  z-index: 1;
}

.region-card:hover,
.region-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
  color: inherit;
}

.region-card__name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.region-card__desc {
  color: #5f6b7a;
  font-size: 0.95rem;
  flex: 1 1 auto;
}

.region-card--image .region-card__desc {
  color: rgba(248, 250, 252, 0.9);
}

.region-card__cta {
  margin-top: auto;
  font-weight: 600;
  color: #0d6efd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.region-card--image .region-card__cta {
  color: #e2e8f0;
}

.poi-cluster {
  background: transparent;
}

.poi-label {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  color: #111;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
}

.poi-label::before {
  border-top-color: rgba(0, 0, 0, 0.2);
}

.poi-label::after {
  border-top-color: rgba(255, 255, 255, 0.9);
}

.poi-label.poi-label-selected {
  background: #6f42c1;
  border-color: #4c2a91;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.24), 0 3px 10px rgba(0, 0, 0, 0.25);
  transform: scale(1.08);
  z-index: 1000;
}

.poi-label.poi-label-selected::before {
  border-top-color: #4c2a91;
}

.poi-label.poi-label-selected::after {
  border-top-color: #6f42c1;
}

.poi-cluster-inner {
  background: #0d6efd;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 3px solid #fff;
  font-weight: 700;
  transition: transform 0.2s ease-out;
}

.request-cluster {
  background: transparent;
}

.request-cluster-inner {
  background: #17a2b8;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 3px solid #fff;
  font-weight: 700;
  transition: transform 0.2s ease-out;
}

.request-marker .request-marker-inner {
  background-color: #17a2b8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.request-marker-highlighted .request-marker-inner {
  background-color: #6f42c1;
}

.request-marker svg {
  display: block;
}

.request-marker.leaflet-div-icon {
  background: transparent;
  border: none;
}

.request-marker-highlighted .request-marker-ring {
  stroke: #6f42c1;
}

.request-marker-highlighted .request-marker-pin {
  fill: #6f42c1;
}

.request-marker-highlighted .request-marker-icon {
  fill: #6f42c1;
}

.request-marker-highlighted {
  filter: drop-shadow(0 0 6px rgba(111, 66, 193, 0.6));
}

.poi-cluster-inner.cluster-animate {
  animation: cluster-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cluster-pop {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    filter: brightness(1);
  }
  30% {
    transform: scale(1.4);
    box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.35), 0 8px 20px rgba(0, 0, 0, 0.35);
    filter: brightness(1.08);
  }
  60% {
    transform: scale(0.9);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2), 0 3px 10px rgba(0, 0, 0, 0.25);
    filter: brightness(1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    filter: brightness(1);
  }
}

.quick-action-btn.btn-outline-success,
.quick-action-btn.btn-outline-info,
.quick-action-btn.btn-outline-secondary,
.quick-action-btn.btn-outline-primary,
.quick-action-btn.btn-outline-warning {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.quick-action-btn:hover .quick-action-icon {
  color: #000;
}

.map-shell {
  height: 100vh;
  overflow: hidden;
}

body.map-page.has-active-collection-banner .map-shell {
  height: calc(100vh - 30px);
}

#topControls,
#quickActionsControls {
  z-index: 1000;
}

#primaryControls .menu-button {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#primaryControls .map-search-input {
    min-width: 320px;
    max-width: 420px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  }

#mapSearchResults {
  max-height: 260px;
  overflow-y: auto;
}

#mapSearchResults .search-result-meta {
  font-size: 0.85rem;
  color: #6c757d;
}

#mapSearchResults .search-result-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

#mapSearchResults .search-result-copy {
  min-width: 0;
}

#mapSearchResults .search-result-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: #0d6efd;
  flex: 0 0 auto;
}

#mapSearchResults .search-result-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

#mapSearchResults .dropdown-item.active,
#mapSearchResults .dropdown-item:active {
  color: #fff;
}

#mapSearchResults .dropdown-item.active .search-result-icon,
#mapSearchResults .dropdown-item:active .search-result-icon {
  color: #fff;
}

#mapSearchResults .dropdown-item.active .search-result-meta,
#mapSearchResults .dropdown-item:active .search-result-meta {
  color: rgba(255, 255, 255, 0.85);
}

#quickActionsControls .quick-actions {
  gap: 0.5rem;
  flex-wrap: wrap;
}

#quickActionsControls .quick-actions .quick-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  line-height: 1;
}

#quickActionsControls .quick-actions .move-mode-btn,
#quickActionsControls .quick-actions .move-mode-btn:hover,
#quickActionsControls .quick-actions .move-mode-btn:focus,
#quickActionsControls .quick-actions .move-mode-btn:active,
#quickActionsControls .quick-actions .move-mode-btn.move-mode-active {
  background-color: #fff;
  border: 1px solid #000;
  color: #000;
}

#quickActionsControls .quick-actions .fa-quick-action-icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: var(--quick-action-icon-url) center / contain no-repeat;
  mask: var(--quick-action-icon-url) center / contain no-repeat;
}

#createModeIconBtn .fa-quick-action-icon {
  width: 24px;
  height: 24px;
}

#mapControlsStack {
  z-index: 1000;
}

.map-controls-open #activeCollectionBanner {
  animation: collection-banner-shift 220ms ease-out;
}

@keyframes collection-banner-shift {
  from {
    transform: translateY(-10px);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes collection-banner-hide {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

#mapControlsWrapper {
  z-index: 1000;
  max-width: 400px;
  width: 100%;
}

@media (min-width: 768px) {
  #mapControlsWrapper {
    max-width: 450px;
  }
}

.active-collection-banner {
  z-index: 1002;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 30px;
  background: #f1f3f5;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #000;
  border-radius: 0;
  padding: 0.25rem 0.75rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

.active-collection-banner.is-hiding {
  pointer-events: none;
  animation: collection-banner-hide 180ms ease-in forwards;
}

.active-collection-banner__content {
  grid-column: 2;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  justify-content: center;
  text-align: center;
}

.active-collection-banner__actions {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.active-collection-banner__label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.active-collection-banner__name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-collection-approve {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
}

.active-collection-clear {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
}

#mapControlsCard {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: min(100%, 520px);
  min-width: min(100%, 520px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

@media (min-width: 768px) {
  #mapControlsCard {
    width: 450px;
    min-width: 450px;
    max-width: 450px;
    height: 75vh;
    max-height: 75vh;
  }

  #mapControlsCard .card-body {
    height: calc(75vh - 56px);
    max-height: calc(75vh - 56px);
    overflow-y: auto;
  }

  #createPOIForm {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
  }
}

#mapControlsCard .card-header {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#mapControlsCard .card-body {
  background: rgba(255, 255, 255, 0.1) !important;
  min-width: 0;
  overflow-x: hidden;
}

.map-controls-sheet-handle {
  display: none;
}

/* Blurred transparent background for Hamburger Menu Offcanvas */
#leftMenuOffcanvas {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  touch-action: pan-y;
  width: 200px;
}

#leftMenuOffcanvas .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0.65rem 0rem;
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#leftMenuOffcanvas .offcanvas-header .btn-close {
  margin: 0;
}

.offcanvas-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.offcanvas-brand img {
  display: block;
  width: 128px;
  object-fit: contain;
}

.offcanvas-brand img {
  height: 45px;
}

#leftMenuOffcanvas .offcanvas-body {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Blurred transparent background for POI Details Modal */
#poiModal .modal-content,
#requestDetailModal .modal-content,
#userInfoModal .modal-content,
#appInfoModal .modal-content {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
}

/* POI Tabs */
.poi-tabs-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 0.5rem;
}

.poi-tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.poi-tabs li {
  flex: 1 1 0;
  min-width: 0;
}

.poi-tabs li:has(> .poi-tab[hidden]),
.poi-tabs li:has(> .poi-tab[style*="display: none"]) {
  display: none;
}

.poi-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #6c757d;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.poi-tab svg {
  flex-shrink: 0;
  opacity: 0.7;
  width: 14px;
  height: 14px;
}

.poi-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #495057;
}

.poi-tab:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: -2px;
  z-index: 1;
}

.poi-tab.active {
  background: rgba(255, 255, 255, 0.25);
  color: #0d6efd;
  border-bottom-color: #0d6efd;
}

.poi-tab.active svg {
  opacity: 1;
}

.poi-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 0.35rem;
  background: #0d6efd;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9px;
  line-height: 1;
}

.badge.tag-chip {
  border: 1px solid #000;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: inherit;
  color: #212529;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  background: #e9ecef;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45);
}

button.badge.tag-chip:hover,
button.badge.tag-chip:active,
a.badge.tag-chip:hover,
a.badge.tag-chip:active {
  color: #212529;
  background: #dde2e6;
  text-decoration: none;
}

.badge.tag-chip.tag-chip-selected,
.badge.tag-chip[aria-pressed="true"] {
  background: #212529;
  color: #fff;
  border-color: #000;
  box-shadow: inset 0 0 0 1px #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

button.badge.tag-chip:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

a.badge.tag-chip:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
  text-decoration: none;
}

/* Tab Panels */
.poi-modal-body {
  padding: 0;
  overflow-y: auto;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

.poi-modal-body::-webkit-scrollbar {
  width: 8px;
}

.poi-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.poi-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.poi-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.poi-tab-panel {
    display: none;
    animation: fadeIn 0.2s ease-in;
}

.poi-tab-panel#poi-comments-panel {
  padding: 0;
}

.poi-tab-panel.active {
  display: block;
}

.poi-modal-body.poi-comments-tab-active,
#poiModal .modal-body.poi-comments-tab-active {
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
  min-height: 0;
}

.poi-modal-body.poi-comments-tab-active #poi-comments-panel.active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.poi-modal-body.poi-comments-tab-active #poiCommentsSection {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.poi-modal-body.poi-comments-tab-active #poiCommentsList {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Info Tab Actions */
.poi-info-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(0, 0, 0, 0.08);
}

.poi-info-actions-inline {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.poi-info-actions-inline .poi-action-btn {
  flex: 1 1 auto;
  min-width: fit-content;
  max-width: 100px;
}

/* Modern POI Modal Header */
.poi-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.poi-modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.poi-modal-title svg {
  flex-shrink: 0;
  opacity: 0.8;
  width: 18px;
  height: 18px;
}

.poi-modal-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#poiModal .poi-modal-title > span.d-inline-flex {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
}

#poiModal .poi-modal-title > span.d-inline-flex > span:first-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.poi-modal-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.poi-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.poi-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    line-height: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    transition: all 0.2s ease;
}

.poi-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


.poi-nav-btn svg {
  width: 12px;
  height: 12px;
}

.poi-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.9);
  border-color: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.poi-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.poi-tabs-container .poi-nav-btn {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.poi-tabs-container .poi-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 1);
  border-color: #0d6efd;
}


#poiModal .modal-content.poi-swipe-left {
  animation: poiSwipeLeft 240ms ease-out;
}

#poiModal .modal-content.poi-swipe-right {
  animation: poiSwipeRight 240ms ease-out;
}

@keyframes poiSwipeLeft {
  from {
    transform: translateX(16px);
    opacity: 0.7;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes poiSwipeRight {
  from {
    transform: translateX(-16px);
    opacity: 0.7;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#poiModal .modal-header,
#requestDetailModal .modal-header,
#userInfoModal .modal-header,
#appInfoModal .modal-header {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#poiModal .modal-body,
#requestDetailModal .modal-body,
#userInfoModal .modal-body,
#appInfoModal .modal-body {
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 1.5rem;
}

#poiModal .modal-body {
  height: calc(100vh - 300px);
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

#poiModal .modal-body::-webkit-scrollbar {
  width: 8px;
}

#poiModal .modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

#poiModal .modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

#poiModal .modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

#poiModal .modal-footer,
#requestDetailModal .modal-footer,
#userInfoModal .modal-footer,
#appInfoModal .modal-footer {
  background: rgba(255, 255, 255, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#poiModal {
  pointer-events: none;
}

#poiModal .modal-dialog {
  pointer-events: auto;
}

#requestDetailModal {
  pointer-events: none;
}

#requestDetailModal .modal-dialog {
  pointer-events: auto;
}

#poiModal.poi-modal-anchored .modal-dialog {
  position: fixed;
  margin: 0;
  width: min(520px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
}

#poiModal.poi-modal-anchored .modal-content {
  max-height: calc(100vh - 2rem);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

#poiModal.poi-modal-anchored .modal-content::-webkit-scrollbar {
  width: 8px;
}

#poiModal.poi-modal-anchored .modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

#poiModal.poi-modal-anchored .modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

#poiModal.poi-modal-anchored .modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

#requestDetailModal.request-modal-anchored .modal-dialog {
  position: fixed;
  margin: 0;
  width: min(520px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
}

#requestDetailModal.request-modal-anchored .modal-content {
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

#collectionsModal .modal-dialog {
  margin-top: 6rem;
}

#poiModal .poi-image-section {
    margin-bottom: 0.50rem;
    margin-top: 0.0rem;
}

#poiModal .poi-image-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.08);
}

#poiModal .poi-image-carousel.is-single .poi-image-nav,
#poiModal .poi-image-carousel.is-single .poi-image-dots {
  display: none;
}

#poiModal .poi-image-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}

#poiModal .poi-image-slide {
  flex: 0 0 100%;
}

#poiModal .poi-image-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

#poiModal .poi-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

#poiModal .poi-image-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

#poiModal .poi-image-prev {
  left: 10px;
}

#poiModal .poi-image-next {
  right: 10px;
}

#poiModal .poi-image-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
}

#poiModal .poi-image-dot {
  width: 8px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

#poiModal .poi-image-dot.active {
  background: #fff;
}

#poiModal .poi-image-hero img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

#poiModal .poi-image-single img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

#poiModal .poi-image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.4rem;
  margin-top: 0.5rem;
}

#poiModal .poi-image-strip img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

#shareLinkModal .modal-content {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#shareLinkModal .modal-header {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.25rem;
}

#shareLinkModal .modal-body {
  background: rgba(255, 255, 255, 0.1) !important;
}

#shareLinkModal .modal-title {
  font-weight: 700;
}

#shareLinkModal .share-tab {
  border-bottom: 1px solid #e6e9ec;
  margin: 0 -1rem 1rem;
  padding: 0 1rem;
}

#shareLinkModal .share-tab span {
  display: inline-block;
  padding: 0.5rem 0;
  border-bottom: 3px solid #0d6efd;
  font-weight: 600;
  color: #0d6efd;
}

#shareLinkModal .share-poi-card {
  border: 1px solid #edf0f2;
  border-radius: 12px;
  padding: 0.75rem;
  background: #f8fafc;
}

#shareLinkModal .share-poi-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e8eef3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0d6efd;
  text-transform: uppercase;
}

#shareLinkModal .share-poi-thumb.share-thumb-placeholder {
  background: linear-gradient(135deg, #e8eef3 0%, #f8fafc 100%);
}

#shareLinkModal .share-link-input {
  border: 1px solid #e6e9ec;
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  background: #fff;
}

#shareLinkModal .share-link-input .form-control {
  border: none;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
}

#shareLinkModal .copy-status {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#featuredModal .card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

#featuredModal .featured-poi-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e8eef3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0d6efd;
  text-transform: uppercase;
}

#featuredModal img.featured-poi-thumb {
  object-fit: cover;
}

/* Uniform styling for all share buttons */
.map-page .share-button {
  background: #6c757d;
  color: #fff;
  border-color: #6c757d;
}

.map-page .share-button:hover,
.map-page .share-button:focus {
  background: #5c636a;
  border-color: #565e64;
  color: #fff;
}

.map-page .share-button.btn-success {
  background: #198754;
  border-color: #198754;
  color: #fff;
}

.map-page .share-button.btn-success:hover,
.map-page .share-button.btn-success:focus {
  background: #157347;
  border-color: #146c43;
}

/* Ensure text is readable on transparent background */
#mapControlsCard,
#mapControlsCard .card-header,
#mapControlsCard .card-body,
#leftMenuOffcanvas,
#leftMenuOffcanvas .offcanvas-header,
#leftMenuOffcanvas .offcanvas-body,
#settingsModal .modal-content,
#settingsModal .modal-header,
#settingsModal .modal-body,
#settingsModal .modal-footer,
#featuredModal .modal-content,
#featuredModal .modal-header,
#featuredModal .modal-body,
#featuredModal .modal-footer,
#POIFilterModal .modal-content,
#POIFilterModal .modal-header,
#POIFilterModal .modal-body,
#POIFilterModal .modal-footer,
#poiModal .modal-content,
#poiModal .modal-header,
#poiModal .modal-body,
#poiModal .modal-footer,
#requestDetailModal .modal-content,
#requestDetailModal .modal-header,
#requestDetailModal .modal-body,
#requestDetailModal .modal-footer {
  color: #000;
}

#mapControlsCard h5,
#mapControlsCard h6,
#mapControlsCard label,
#leftMenuOffcanvas h5,
#leftMenuOffcanvas .nav-link,
#settingsModal .modal-title,
#settingsModal .modal-body h6,
#settingsModal .modal-body p,
#featuredModal .modal-title,
#POIFilterModal .modal-title,
#POIFilterModal .modal-body h6,
#POIFilterModal .modal-body p,
#poiModal .modal-title,
#poiModal .modal-body p,
#poiModal .modal-body strong,
#requestDetailModal .modal-title,
#requestDetailModal .modal-body p,
#requestDetailModal .modal-body strong {
  color: #000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

#leftMenuOffcanvas .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: flex-start;
  width: fit-content;
  font-size: 1.1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  line-height: 1.2;
}

#leftMenuOffcanvas .nav-icon {
  flex-shrink: 0;
  order: 0;
}

#leftMenuOffcanvas .fa-nav-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: var(--nav-icon-url) center / contain no-repeat;
  mask: var(--nav-icon-url) center / contain no-repeat;
}

.map-resource-nav a {
  font-size: 1.1rem;
  line-height: 1.2;
}

/* Remove dark backdrop from offcanvas */
body.map-page .offcanvas-backdrop {
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Alternative: Make backdrop blurred and transparent instead of dark */
body.map-page .offcanvas-backdrop.show {
  background-color: rgba(0, 0, 0, 0) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Remove dark backdrop from modal */
body.map-page .modal-backdrop {
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Alternative: Make modal backdrop transparent instead of dark */
body.map-page .modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Update/Report/Login/Register modal styling */
#updatePOIModal .modal-content,
#reportModal .modal-content,
#createPoiAuthChoiceModal .modal-content,
#loginModal .modal-content,
#registerModal .modal-content,
#settingsModal .modal-content,
#featuredModal .modal-content,
#collectionsModal .modal-content,
#POIFilterModal .modal-content {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#updatePOIModal .modal-header,
#reportModal .modal-header,
#createPoiAuthChoiceModal .modal-header,
#loginModal .modal-header,
#registerModal .modal-header,
#settingsModal .modal-header,
#featuredModal .modal-header,
#collectionsModal .modal-header,
#POIFilterModal .modal-header {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#updatePOIModal .modal-body,
#reportModal .modal-body,
#createPoiAuthChoiceModal .modal-body,
#loginModal .modal-body,
#registerModal .modal-body,
#settingsModal .modal-body,
#featuredModal .modal-body,
#collectionsModal .modal-body,
#POIFilterModal .modal-body {
  background: rgba(255, 255, 255, 0.1) !important;
}

#pendingPoisModal .modal-content,
#requestsModal .modal-content {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#pendingPoisModal .modal-header,
#pendingPoisModal .modal-body,
#pendingPoisModal .modal-footer,
#requestsModal .modal-header,
#requestsModal .modal-body,
#requestsModal .modal-footer {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #000;
}

#pendingPoisList .tag-badge,
#requestsList .tag-badge {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #000;
}

#updatePOIModal .modal-footer,
#reportModal .modal-footer,
#createPoiAuthChoiceModal .modal-footer,
#loginModal .modal-footer,
#registerModal .modal-footer,
#settingsModal .modal-footer,
#POIFilterModal .modal-footer {
  background: rgba(255, 255, 255, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Text color for modal content */
#loginModal .modal-content,
#registerModal .modal-content,
#createPoiAuthChoiceModal .modal-content,
#settingsModal .modal-content,
#featuredModal .modal-content,
#collectionsModal .modal-content,
#POIFilterModal .modal-content {
  color: #000;
}

#loginModal .modal-title,
#loginModal .form-label,
#registerModal .modal-title,
#createPoiAuthChoiceModal .modal-title,
#registerModal .form-label {
  color: #000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

#createPoiAuthChoiceModal .modal-body p {
  color: #000;
}

.create-poi-auth-choice-modal-footer {
  gap: 0.5rem;
}

#loginModal .social-auth-btn,
#registerModal .social-auth-btn,
body.login-page .social-auth-btn {
  color: #fff !important;
  border-width: 1px;
  border-style: solid;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

#loginModal .social-auth-btn.social-auth-google,
#registerModal .social-auth-btn.social-auth-google,
body.login-page .social-auth-btn.social-auth-google {
  background-color: #dc3545;
  border-color: #dc3545;
}

#loginModal .social-auth-btn.social-auth-apple,
#registerModal .social-auth-btn.social-auth-apple,
body.login-page .social-auth-btn.social-auth-apple {
  background-color: #212529;
  border-color: #212529;
}

/* Themed confirmation modal used by toast-manager (logout, destructive confirms, etc.) */
body.map-page .toast-confirm-modal .modal-dialog {
  max-width: min(92vw, 460px);
}

body.map-page .toast-confirm-modal .modal-content {
  border-radius: 18px;
  border: 1px solid rgba(8, 48, 72, 0.24);
  background:
    radial-gradient(120% 120% at -10% -20%, rgba(255, 126, 57, 0.16) 0%, rgba(255, 126, 57, 0) 48%),
    radial-gradient(120% 120% at 110% -10%, rgba(0, 166, 189, 0.16) 0%, rgba(0, 166, 189, 0) 44%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 246, 252, 0.95) 100%);
  box-shadow: 0 24px 50px rgba(9, 34, 52, 0.22);
  overflow: hidden;
}

body.map-page .toast-confirm-modal .modal-header {
  border-bottom: 1px solid rgba(12, 73, 105, 0.14);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.9rem 1rem 0.75rem;
}

body.map-page .toast-confirm-modal .modal-body {
  padding: 0.9rem 1rem 0.65rem;
  color: #173f57;
}

body.map-page .toast-confirm-modal .modal-body p {
  line-height: 1.45;
  font-size: 0.95rem;
}

body.map-page .toast-confirm-modal .modal-footer {
  border-top: 1px solid rgba(12, 73, 105, 0.1);
  background: rgba(255, 255, 255, 0.4);
  padding: 0.85rem 1rem 1rem;
  gap: 0.5rem;
}

body.map-page .toast-confirm-modal .modal-title {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #062f48;
}

body.map-page .toast-confirm-modal .toast-confirm-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

body.map-page .toast-confirm-modal .toast-confirm-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  border: 1px solid currentColor;
}

body.map-page .toast-confirm-modal .toast-confirm-accent-warning {
  color: #9a6500;
  background: rgba(255, 193, 7, 0.14);
}

body.map-page .toast-confirm-modal .toast-confirm-accent-danger {
  color: #b42318;
  background: rgba(220, 53, 69, 0.1);
}

body.map-page .toast-confirm-modal .toast-confirm-accent-info {
  color: #0f5f84;
  background: rgba(13, 202, 240, 0.12);
}

body.map-page .toast-confirm-modal .btn {
  min-width: 112px;
  border-radius: 10px;
  font-weight: 700;
}

body.map-page .toast-confirm-modal .btn-close {
  opacity: 0.75;
}

body.map-page .toast-confirm-modal .btn-close:hover {
  opacity: 1;
}

@media (max-width: 575.98px) {
  body.map-page .toast-confirm-modal .modal-dialog {
    margin: 0.75rem;
  }

  body.map-page .toast-confirm-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.map-page .toast-confirm-modal .modal-footer .btn {
    width: 100%;
    min-width: 0;
  }
}

#loginModal .social-auth-btn.social-auth-facebook,
#registerModal .social-auth-btn.social-auth-facebook,
body.login-page .social-auth-btn.social-auth-facebook {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

#loginModal .social-auth-btn:hover,
#loginModal .social-auth-btn:focus,
#registerModal .social-auth-btn:hover,
#registerModal .social-auth-btn:focus,
body.login-page .social-auth-btn:hover,
body.login-page .social-auth-btn:focus {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  filter: brightness(1.08) saturate(1.05);
}

body.login-page {
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.82)),
    url("../images/map/osm-tile-10-162-395.avif") center/cover fixed no-repeat;
}

body.login-page .login-page-shell {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  padding: 44px 16px;
}

body.login-page .login-panel {
  width: min(100%, 460px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
  padding: 28px;
}

body.login-page .login-panel__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

body.login-page .login-panel__brand img {
  width: auto;
  height: 50px;
  object-fit: contain;
}

body.login-page .login-panel__header {
  margin-bottom: 22px;
  text-align: center;
}

body.login-page .login-panel__eyebrow {
  margin: 0 0 6px;
  color: #0d6efd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.login-page .login-panel h1 {
  margin: 0;
  color: #0f172a;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

body.login-page .login-panel__header p:last-child {
  margin: 10px 0 0;
  color: #475569;
  font-size: 0.98rem;
}

body.login-page .login-page-form .form-label {
  color: #0f172a;
  font-weight: 700;
}

body.login-page .login-page-form .form-control,
body.login-page .login-page-form .form-select {
  min-height: 46px;
  border-color: rgba(15, 23, 42, 0.18);
  border-radius: 8px;
}

body.login-page .login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}

body.login-page .login-divider::before,
body.login-page .login-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(15, 23, 42, 0.14);
}

#termsAndConditionsModal.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

#termsAndConditionsModal .modal-dialog {
  width: min(900px, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  margin: 0 auto;
}

#termsAndConditionsModal .modal-content {
  width: 100%;
  max-width: 100%;
  height: min(65vh, calc(100vh - 1.5rem));
  height: min(65dvh, calc(100dvh - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#termsAndConditionsModal .modal-body {
  min-height: 0;
  overflow: auto;
}

#termsAndConditionsModal .terms-and-conditions-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#termsAndConditionsModal .modal-footer {
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.notfound-page {
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.86)),
    url("../images/map/osm-tile-10-162-395.avif") center/cover fixed no-repeat;
}

body.notfound-page .notfound-page-shell {
  width: min(100%, 1240px);
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 32px 16px 12px;
  display: flex;
  align-items: center;
}

body.notfound-page .notfound-hero-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.16);
}

body.notfound-page .notfound-hero-card__media {
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(155deg, rgba(15, 23, 42, 0.04), rgba(13, 110, 253, 0.14)),
    #dbe7f4;
}

body.notfound-page .notfound-hero-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.notfound-page .notfound-hero-card__content {
  padding: 40px 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.notfound-page .notfound-eyebrow {
  margin: 0 0 12px;
  color: #0d6efd;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.notfound-page .notfound-hero-card__content h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.04em;
  max-width: 9ch;
}

body.notfound-page .notfound-lead {
  margin: 20px 0 0;
  color: #475569;
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: 46ch;
}

body.notfound-page .notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

body.notfound-page .notfound-actions .btn {
  min-width: 170px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
}

body.notfound-page .notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
}

body.notfound-page .notfound-links a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

body.notfound-page .notfound-links a:hover,
body.notfound-page .notfound-links a:focus {
  color: #0d6efd;
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  body.login-page .login-page-shell {
    min-height: auto;
    padding: 24px 12px;
  }

  body.login-page .login-panel {
    padding: 22px 16px;
  }

  #termsAndConditionsModal .modal-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    margin: 0;
  }

  #termsAndConditionsModal .modal-content {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  body.notfound-page .notfound-page-shell {
    min-height: auto;
    padding-top: 20px;
  }

  body.notfound-page .notfound-hero-card__content {
    padding: 26px 18px 28px;
  }

  body.notfound-page .notfound-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 991.98px) {
  body.notfound-page .notfound-page-shell {
    padding-top: 24px;
  }

  body.notfound-page .notfound-hero-card {
    grid-template-columns: 1fr;
  }

  body.notfound-page .notfound-hero-card__media {
    min-height: 260px;
  }
}

/* Swirling overlay while fetching user location */
.map-location-seek {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 500;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.map-location-seek.is-active {
  opacity: 1;
  visibility: visible;
}

.map-location-seek__spinner {
  position: relative;
  width: 180px;
  height: 180px;
}

.map-location-seek__particles {
  position: absolute;
  inset: 0;
  animation: map-location-orbit 1.6s linear infinite;
}

.map-location-seek__particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size, 5px);
  height: var(--size, 5px);
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.9);
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.45);
  transform: rotate(var(--angle)) translateX(70px);
  animation: map-location-twinkle 1.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.map-location-seek__particle:nth-child(even) {
  background: rgba(13, 110, 253, 0.55);
}

.map-location-seek__swirl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(13, 110, 253, 0.1),
    rgba(13, 110, 253, 0.85),
    rgba(13, 110, 253, 0.15) 55%,
    rgba(13, 110, 253, 0.7) 78%,
    rgba(13, 110, 253, 0.1)
  );
  -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 59%);
  mask: radial-gradient(closest-side, transparent 58%, #000 59%);
  animation: map-location-swirl 1.4s linear infinite;
  filter: drop-shadow(0 0 12px rgba(13, 110, 253, 0.35));
}

.map-location-seek__ring {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 2px solid rgba(13, 110, 253, 0.25);
  animation: map-location-ring 1.8s ease-out infinite;
}

.map-location-seek__dot {
  position: absolute;
  width: 14px;
  height: 14px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #0d6efd;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(13, 110, 253, 0.45);
}

@keyframes map-location-swirl {
  to {
    transform: rotate(360deg);
  }
}

@keyframes map-location-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes map-location-twinkle {
  0%,
  100% {
    opacity: 0.7;
    transform: rotate(var(--angle)) translateX(70px) scale(0.9);
  }
  50% {
    opacity: 1;
    transform: rotate(var(--angle)) translateX(78px) scale(1.2);
  }
}

@keyframes map-location-ring {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.05);
    opacity: 0.25;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

/* Pulsing marker for the user's current location */
.user-location-icon {
  background: transparent;
  border: none;
}

.user-location-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0d6efd;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 rgba(13, 110, 253, 0.35);
  animation: user-location-pulse 1.8s ease-out infinite;
}

.user-location-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.25);
  animation: user-location-wave 1.8s ease-out infinite;
}

@keyframes user-location-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.35);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(13, 110, 253, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}

@keyframes user-location-wave {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Wind trail animation for fly-to transitions */
.fly-wind-icon {
  pointer-events: none;
}

.fly-wind-graphic {
  width: 100%;
  height: 100%;
  transform: rotate(var(--fly-wind-rotate, 0deg));
  transform-origin: 100% 50%;
  animation: fly-wind-fade 1.6s ease-out forwards;
  filter: drop-shadow(0 0 8px rgba(8, 12, 38, 0.45));
}

.fly-wind-graphic svg {
  width: 100%;
  height: 100%;
}

.fly-wind-stroke {
  fill: none;
  stroke: rgba(12, 18, 55, 0.9);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24 26;
  animation: fly-wind-dash 0.6s linear infinite;
}

.fly-wind-stroke--short {
  stroke-width: 8;
  stroke-dasharray: 18 40;
}

@keyframes fly-wind-dash {
  to {
    stroke-dashoffset: -50;
  }
}

@keyframes fly-wind-fade {
  0% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 767.98px) {
  body.map-page.mobile-mode {
    overflow: hidden;
  }

  body.map-page.mobile-mode #topControls {
    position: absolute;
    top: 0.5rem !important;
    right: 0.5rem !important;
    left: 0.5rem !important;
    margin: 0 !important;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    pointer-events: none;
  }

  body.map-page.mobile-mode #topControls #primaryControls,
  body.map-page.mobile-mode #topControls #quickActionsControls {
    pointer-events: auto;
  }

  body.map-page.mobile-mode #primaryControls {
    width: 100%;
  }

  body.map-page.mobile-mode #primaryControls .map-search-input {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  body.map-page.mobile-mode #quickActionsControls {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    margin: 0;
  }

  body.map-page.mobile-mode #quickActionsControls .quick-actions {
    width: auto;
    align-self: flex-end;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 0.5rem;
  }

  body.map-page.mobile-mode #quickActionsControls .quick-actions .quick-action-btn {
    flex: 0 0 auto;
  }

  body.map-page.mobile-mode #mapControlsStack {
    top: auto !important;
    right: 0.5rem !important;
    left: 0.5rem !important;
    bottom: 0.5rem !important;
    margin: 0 !important;
    padding: 0.25rem 0.5rem 0.75rem;
    max-width: none;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  body.map-page.mobile-mode #mapControlsWrapper {
    max-width: none;
    width: 100%;
  }

  body.map-page.mobile-mode #activeCollectionBanner {
    width: 100%;
    min-height: 30px;
    padding: 0.22rem 0.5rem;
  }

  body.map-page.mobile-mode.has-active-collection-banner .map-shell {
    height: calc(100vh - 30px);
  }

  body.map-page.mobile-mode .active-collection-banner__name {
    font-size: 0.82rem;
  }

  body.map-page.mobile-mode .active-collection-approve {
    font-size: 0.58rem;
    padding: 0.18rem 0.4rem;
  }

  body.map-page.mobile-mode .active-collection-clear {
    font-size: 0.58rem;
    padding: 0.18rem 0.4rem;
  }

  body.map-page.mobile-mode #mapControlsCard {
    width: 100%;
    max-height: 65vh;
    border-radius: 16px 16px 10px 10px;
    overflow: hidden;
    transition: transform 180ms ease-out;
    will-change: transform;
  }

  body.map-page.mobile-mode #mapControlsCard .map-controls-sheet-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0 0.25rem;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: -1px;
    touch-action: none;
  }

  body.map-page.mobile-mode #mapControlsCard.map-controls-dragging {
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.14);
  }

  body.map-page.mobile-mode #mapControlsCard .map-controls-sheet-grab {
    display: block;
    width: 3rem;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
  }

  body.map-page.mobile-mode #mapControlsCard .card-header {
    position: sticky;
    top: 0;
    z-index: 2;
    touch-action: none;
  }

  body.map-page.mobile-mode #mapControlsCard .card-body {
    max-height: calc(65vh - 56px);
    overflow-y: auto;
  }

  body.map-page.mobile-mode #createPOIForm {
    min-width: 0;
  }

  body.map-page.mobile-mode .leaflet-control-container .leaflet-bottom.leaflet-right {
    bottom: 1rem;
  }

  body.map-page.mobile-mode .leaflet-control-container .leaflet-bottom.leaflet-left {
    bottom: 1rem;
  }

body.map-page.mobile-mode .modal-dialog {
  margin: 0.5rem;
  max-width: 100%;
}

body.map-page.mobile-mode #poiModal {
  overflow: hidden;
}

body.map-page.mobile-mode #poiModal .modal-dialog {
  position: fixed;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;
  margin: 0;
  max-width: none;
  width: auto;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
}

body.map-page.mobile-mode #poiModal .modal-content {
  width: 100%;
  max-height: min(60vh, calc(100vh - 4rem));
  border-radius: 20px 20px 0 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease-out;
  touch-action: pan-y;
  will-change: transform;
}

body.map-page.mobile-mode #poiModal.poi-modal-dragging .modal-content {
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.14);
}

body.map-page.mobile-mode #poiModal .modal-body {
  height: calc(60vh - 144px);
  max-height: calc(60vh - 144px);
}

body.map-page.mobile-mode #poiModal .poi-tab-panel {
  padding: 0.75rem 0.875rem 1rem;
}

body.map-page.mobile-mode #poiModal .poi-tab-panel #poiModalBody,
body.map-page.mobile-mode #poiModal .poi-tab-panel #poiCommentsSection,
body.map-page.mobile-mode #poiModal .poi-tab-panel .poi-actions-content {
  padding: 0;
}

body.map-page.mobile-mode #poiModal .poi-modal-header {
  padding-top: 0.25rem;
}

body.map-page.mobile-mode #poiModal .poi-tabs-container {
  padding-top: 0;
}

body.map-page.mobile-mode #poiModal .poi-modal-sheet-handle {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.625rem 1rem 0.25rem;
  cursor: grab;
  touch-action: none;
}

body.map-page.mobile-mode #poiModal.poi-modal-dragging .poi-modal-sheet-handle {
  cursor: grabbing;
}

body.map-page.mobile-mode #poiModal .poi-modal-sheet-grab {
  display: block;
  width: 3rem;
  height: 0.3125rem;
  border-radius: 999px;
  background: rgba(108, 117, 125, 0.5);
}

body.map-page.mobile-mode .offcanvas-start {
  width: 42.5vw;
  max-width: 180px;
}
}

.poi-comment-replies {
  margin-top: 0.5rem;
  margin-left: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid #e9ecef;
}

.poi-comment-item {
  background-color: #f1f3f5;
}

#poiReplyContext {
  display: flex;
}

.poi-comment-like-count {
  min-width: 1.5rem;
  text-align: left;
}

.poi-comment-author,
.poi-comment-author:hover,
.poi-comment-author:focus,
.poi-comment-author:active,
.poi-comment-author:visited {
  color: #6c757d !important;
  text-decoration: none !important;
}

.poi-comment-timestamp {
  color: #6c757d !important;
}

.poi-comment-reply,
.poi-comment-like,
.poi-comment-reply:hover,
.poi-comment-like:hover,
.poi-comment-reply:focus,
.poi-comment-like:focus,
.poi-comment-reply:active,
.poi-comment-like:active,
.poi-comment-reply:visited,
.poi-comment-like:visited {
  color: #6c757d !important;
  text-decoration: none !important;
}

.poi-comment-action-icon {
  margin-right: 0.25rem;
  vertical-align: text-bottom;
}

/* Modern POI Comments Section */
.poi-comments-section {
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.25rem;
}

.poi-comments-section-tab {
  padding: 0;
  background: transparent;
  border: none;
}

.poi-comments-header {
  display: none;
}

.poi-comments-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.poi-comments-title svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.poi-comments-count {
  background: rgba(13, 110, 253, 0.15);
  color: #0d6efd;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.poi-comments-sort-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.poi-comments-sort-label {
  margin: 0;
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 600;
}

.poi-comments-sort-select {
  width: auto;
  min-width: 120px;
  border-radius: 999px;
  border-color: rgba(0, 0, 0, 0.12);
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  padding-right: 2rem;
}

.poi-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  border-bottom: 1px solid #dee2e6;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 110, 253, 0.3) rgba(0, 0, 0, 0.05);
}

.poi-comments-list::-webkit-scrollbar {
  width: 6px;
}

.poi-comments-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.poi-comments-list::-webkit-scrollbar-thumb {
  background: rgba(13, 110, 253, 0.3);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.poi-comments-list::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 110, 253, 0.5);
}

.poi-reply-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.poi-reply-label {
  font-size: 0.875rem;
  color: #495057;
  font-weight: 500;
}

.poi-reply-cancel {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.poi-reply-cancel:hover {
  color: #0a58ca;
  text-decoration: underline;
}

.poi-comment-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.poi-comment-input {
  flex: 1;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.poi-comment-input:focus {
  border-color: #0d6efd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.poi-comment-submit {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: 600;
  transition: all 0.2s ease;
}

.poi-comment-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.poi-comment-help {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #6c757d;
}

/* POI Actions Tab */
.poi-actions-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 200px;
}

.poi-actions-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.poi-actions-section:has(button[style*="display: none"]:only-child) {
  display: none;
}

.poi-actions-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #495057;
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.poi-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.poi-action-btn-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border-width: 2px;
  transition: all 0.2s ease;
}

.poi-action-btn-full svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.poi-action-btn-full:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.poi-action-btn-archive {
  background: #9b3d2f;
  border-color: #9b3d2f;
  color: #fff;
}

.poi-action-btn-archive:hover:not(:disabled),
.poi-action-btn-archive:focus {
  background: #7f3025;
  border-color: #7f3025;
  color: #fff;
}

.poi-action-btn-archive:disabled {
  background: #9b3d2f;
  border-color: #9b3d2f;
  color: #fff;
  opacity: 0.7;
}

.poi-actions-content:empty::after {
  content: 'No actions available';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #6c757d;
  font-style: italic;
}

/* Modern POI Details Layout */
.poi-details-modern {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.poi-detail-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.poi-detail-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.poi-detail-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.poi-detail-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.poi-detail-status-row .badge {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.poi-detail-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.poi-detail-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.poi-detail-value {
  font-size: 0.95rem;
  color: #212529;
  line-height: 1.6;
  padding-left: 1.5rem;
}

#poiModal .poi-detail-value,
body.poi-detail-page .poi-detail-value {
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.55rem;
  padding: 0.45rem 0.75rem 0.45rem 1.5rem;
}

#poiModal .poi-detail-grid-item .poi-detail-value,
body.poi-detail-page .poi-detail-grid-item .poi-detail-value {
  padding-left: 0.75rem;
}

.poi-detail-actions-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.poi-detail-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.poi-detail-actions-inline .poi-action-btn {
  flex: 0 0 auto;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border-width: 1px;
  line-height: 1.2;
}

.poi-detail-actions-inline .poi-action-btn svg {
  width: 14px;
  height: 14px;
}

.poi-detail-actions-inline .poi-favorite-btn {
  max-width: none;
}

.poi-favorite-btn .poi-favorite-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2px;
  stroke-linejoin: round;
}

.poi-favorite-btn .poi-favorite-icon.is-favorited path {
  fill: #d4a017;
  stroke: #d4a017;
}

.poi-detail-link a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.poi-detail-link a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

.poi-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 1.5rem;
}

.poi-detail-tags .badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.poi-detail-tags .tag-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  box-shadow: none;
}

.poi-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.poi-detail-grid-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.poi-detail-grid-item .poi-detail-label {
  flex-shrink: 0;
}

.poi-detail-grid-item .poi-detail-value {
  flex: 1;
  min-width: 0;
  padding-left: 0;
  font-weight: 500;
}

.poi-review-card {
  margin-top: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.poi-review-header {
  margin-bottom: 1rem;
}

.poi-review-title {
  font-weight: 600;
  font-size: 1rem;
  color: #000;
  margin-bottom: 0.25rem;
}

.poi-review-subtitle {
  font-size: 0.875rem;
  color: #6c757d;
}

.poi-review-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.poi-review-actions .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 8px;
}

.poi-review-actions .btn svg {
  flex-shrink: 0;
}

#poiModal .modal-dialog {
  max-width: 650px;
}

#poiModal .modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.poi-modal-sheet-handle {
  display: none;
}

/* Modern POI Modal Footer */
.poi-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.poi-footer-primary-actions,
.poi-footer-admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.poi-footer-primary-actions {
  justify-content: flex-start;
}

.poi-footer-admin-actions {
  justify-content: flex-end;
}

.poi-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-width: 2px;
}

.poi-action-btn svg {
  flex-shrink: 0;
}

body.poi-detail-page .poi-page-map-link {
  white-space: nowrap;
  flex-wrap: nowrap;
}

.poi-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.poi-favorite-btn {
  display: inline-flex;
  align-items: center;
  max-width: 200px;
}

.poi-favorite-btn svg {
  transition: transform 0.2s ease;
}

.poi-favorite-btn:hover svg {
  transform: scale(1.1);
}

@media (max-width: 576px) {
  body.poi-detail-page .poi-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  body.poi-detail-page .poi-page-map-link {
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  body.poi-detail-page .poi-page-preview-badge {
    align-self: flex-start;
  }

  body.poi-detail-page .poi-image-slide img {
    height: 240px;
  }

  body.poi-detail-page .poi-page-comments-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .poi-detail-name {
    font-size: 1.25rem;
  }

  .poi-detail-section-header {
    align-items: center;
    flex-wrap: nowrap;
  }

  .poi-detail-actions-inline {
    width: auto;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .poi-detail-action-buttons {
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .poi-detail-actions-inline .poi-action-btn {
    width: auto;
    justify-content: center;
  }
  
  .poi-detail-grid {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }
  
  .poi-review-card {
    padding: 1rem;
  }
  
  .poi-review-actions {
    flex-direction: column;
  }
  
  .poi-review-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .poi-modal-footer {
    padding: 0.75rem 1rem;
  }
  
  .poi-footer-primary-actions,
  .poi-footer-admin-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .poi-action-btn {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
  
  .poi-modal-header {
    padding: 0.875rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .poi-modal-title {
    font-size: 0.95rem;
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .poi-modal-title svg {
    width: 16px;
    height: 16px;
  }
  
  .poi-modal-controls {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  #poiModal .poi-modal-header {
    flex-wrap: nowrap;
    align-items: center;
  }

  #poiModal .poi-modal-title {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
  }

  #poiModal .poi-modal-controls {
    flex: 0 0 auto;
  }
  
  
  #poiModal .modal-body {
    padding: 0;
    max-height: calc(100vh - 250px);
  }
  

  
  .poi-tab {
    padding: 0.6rem 0.4rem;
    font-size: 0.75rem;
  }
  
  .poi-tab svg {
    width: 12px;
    height: 12px;
  }
  
  .poi-tab-badge {
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
  }
  
  .poi-comments-section {
    padding: 1rem;
  }
  
 
  .poi-info-actions {
    flex-direction: column;
  }
  
  .poi-info-actions-inline {
    flex-direction: column;
    padding: 0.75rem;
  }
  
  .poi-action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .poi-action-btn-full {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}


.create-poi-current-location-button {
  display: none;
  margin-top: 0.5rem;
}

body.map-page.mobile-mode .create-poi-current-location-button {
  display: inline-block;
}
