/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/*fix old geodjango map floating*/
.dj_map_wrapper  {
  float:none !important;
}

/**/

.geo-search input {
  width: 20em !important;
  padding: 2px 2px !important;
  border-width: 1px !important;
  border-top-left-radius: 4px !important;
  border-bottom-left-radius: 4px !important;
}
/* Dropdown on hover */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* remove the gap so it doesn't close */
}

.nav-glass {
  background: linear-gradient(120deg, #f8f9fa 0%, #e9f2ff 45%, #fff4e6 100%);
  border: 1px solid rgba(13, 110, 253, 0.07);
  box-shadow: 0 18px 50px rgba(13, 47, 72, 0.08);
  position: relative;
  z-index: 1030;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-glass:hover {
  box-shadow: 0 24px 60px rgba(13, 47, 72, 0.12);
}

.navbar .nav-link {
  font-weight: 600;
  color: #0d1b2a;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background: rgba(13, 110, 253, 0.08);
  color: #0a3a75;
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.12);
  transform: translateY(-1px);
}

.navbar .dropdown-menu {
  border-radius: 16px;
  border: 1px solid rgba(13, 110, 253, 0.1);
  box-shadow: 0 18px 42px rgba(13, 47, 72, 0.14);
  z-index: 1100;
}

.btn-gradient {
  background: linear-gradient(135deg, #0d6efd, #4e9dff);
  border: none;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(13, 110, 253, 0.35);
}

.btn-gradient:hover,
.btn-gradient:focus {
  background: linear-gradient(135deg, #0b5ed7, #3b86e4);
  color: #fff;
}

.btn-outline-primary.btn-gradient {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(78, 157, 255, 0.18));
  color: #0b5ed7;
  border: 1px solid rgba(13, 110, 253, 0.35);
  box-shadow: none;
}

.btn-outline-primary.btn-gradient:hover,
.btn-outline-primary.btn-gradient:focus {
  color: #0a3a75;
  border-color: rgba(13, 110, 253, 0.45);
}

/* ── Cookie Settings Tab (left-edge sliding handle) ── */
.cookie-settings-tab {
  position: fixed;
  left: 0;
  bottom: 160px;
  /* Keep above page content, below Bootstrap modal backdrop (1050/1055). */
  z-index: 1040;
  display: flex;
  align-items: stretch;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  /* Default: slide almost off-screen, leaving only the 30px icon strip visible */
  transform: translateX(calc(-100% + 30px));
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.cookie-settings-tab:hover,
.cookie-settings-tab:focus-visible {
  transform: translateX(0);
}

.cookie-settings-tab:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.7);
  outline-offset: 2px;
  border-radius: 0 8px 8px 0;
}

.cst-label {
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.62rem 0.45rem 0.62rem 0.85rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.cst-icon {
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  padding: 0.72rem 0;
  border-radius: 0 10px 10px 0;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 2px 0 8px rgba(37, 99, 235, 0.4);
}

/* Touch / pointer-coarse: keep a hair more visible since there's no hover */
@media (hover: none), (pointer: coarse) {
  .cookie-settings-tab {
    bottom: 80px;
    transform: translateX(calc(-100% + 32px));
  }

  .cookie-settings-tab:focus {
    transform: translateX(0);
  }
}

@media (max-width: 576px) {
  .cookie-settings-tab {
    bottom: 72px;
  }

  .cst-label {
    font-size: 0.68rem;
    padding-left: 0.7rem;
    letter-spacing: 0.04em;
  }
}

.site-footer {
  border-top: 1px solid rgba(13, 47, 72, 0.12);
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(13, 110, 253, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(248, 250, 253, 0.96), rgba(240, 246, 255, 0.96));
  padding: 1.25rem 0;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.site-footer-meta {
  color: #42566f;
  font-size: 0.92rem;
}

.site-footer-brand {
  font-weight: 700;
  color: #0f2a43;
}

.site-footer-sep {
  margin: 0 0.35rem;
  color: #7f96ac;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.6rem;
}

.site-footer-nav a {
  color: #0f4b8a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus {
  background: rgba(13, 110, 253, 0.1);
  color: #0b3f75;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.14);
  text-decoration: none;
}

.site-footer-copy {
  color: #5e748b;
  font-size: 0.82rem;
}

@media (max-width: 576px) {
  .site-footer {
    padding-bottom: 1.4rem;
  }

  .site-footer-meta {
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .site-footer-copy {
    font-size: 0.78rem;
  }
}

.legal-page {
  max-width: 920px;
}

/* ── Legal Pages – Design Upgrade ── */

.legal-hero {
  background: linear-gradient(120deg, #f0f6ff 0%, #e9f2ff 50%, #fdf4e9 100%);
  border-bottom: 1px solid rgba(13, 110, 253, 0.1);
  padding: 3rem 0 2.5rem;
}

.legal-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(13, 110, 253, 0.1);
  color: #0a3a75;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 0.9rem;
}

.legal-hero__title {
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #0f2a43;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.legal-intro {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.01));
  border: 1px solid rgba(13, 110, 253, 0.13);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  color: #2a3f56;
  line-height: 1.7;
}

.legal-toc {
  background: #f8faff;
  border: 1px solid rgba(13, 110, 253, 0.13);
  border-radius: 14px;
  padding: 1.25rem 1.5rem 1.1rem;
  margin-bottom: 1.75rem;
}

.legal-toc__title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6b7f94;
  margin-bottom: 0.7rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  column-count: 2;
  column-gap: 1.5rem;
}

.legal-toc li {
  break-inside: avoid;
}

.legal-toc a {
  color: #0d5098;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 2;
  font-weight: 500;
}

.legal-toc a:hover,
.legal-toc a:focus {
  color: #0d6efd;
  text-decoration: underline;
}

.legal-section {
  border-left: 3px solid rgba(13, 110, 253, 0.22);
  padding: 1.4rem 1.6rem;
  background: #fff;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 4px 18px rgba(13, 47, 72, 0.06);
  margin-bottom: 1.25rem;
  transition: border-left-color 200ms ease, box-shadow 200ms ease;
}

.legal-section:hover {
  border-left-color: rgba(13, 110, 253, 0.5);
  box-shadow: 0 6px 24px rgba(13, 47, 72, 0.1);
}

.legal-section__heading {
  font-size: 1rem;
  font-weight: 700;
  color: #0d3b6e;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.legal-section p:last-child,
.legal-section ul:last-child,
.legal-section ol:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.3rem;
}

.legal-section li {
  margin-bottom: 0.3rem;
  line-height: 1.65;
}

.legal-contact-card {
  background: linear-gradient(135deg, #f0f6ff, #e9f3ff);
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.75rem;
}

.legal-contact-card dt {
  font-weight: 700;
  color: #0d3b6e;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  margin-top: 0.85rem;
}

.legal-contact-card dt:first-child {
  margin-top: 0;
}

.legal-contact-card dd {
  margin: 0;
  color: #2a3f56;
  line-height: 1.65;
}

@media (max-width: 767px) {
  .legal-hero {
    padding: 2rem 0 1.6rem;
  }

  .legal-section {
    padding: 1rem 1.1rem;
    border-radius: 0 10px 10px 0;
  }

  .legal-toc ol {
    column-count: 1;
  }

  .legal-contact-card {
    padding: 1.1rem 1.2rem;
  }
}


.navbar-account-actions {
  min-width: fit-content;
}

.account-entry-link,
.account-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.55rem 0.85rem 0.55rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 253, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(13, 47, 72, 0.1);
  color: #0d1b2a;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.account-entry-link:hover,
.account-entry-link:focus,
.account-bubble:hover,
.account-bubble:focus,
.account-bubble.show {
  color: #0a3a75;
  border-color: rgba(13, 110, 253, 0.24);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(13, 47, 72, 0.14);
  transform: translateY(-1px);
  text-decoration: none;
}

.account-bubble::after {
  margin-left: 0.15rem;
}

.account-bubble-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #63b3ff);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.account-bubble-avatar--guest {
  background: linear-gradient(135deg, #0f2a43, #2b6cb0);
}

.account-bubble-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.account-bubble-label {
  font-size: 0.76rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7f94;
}

.account-bubble-user {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.2;
}

.account-menu {
  min-width: 19rem;
  padding: 0.65rem;
  border-radius: 20px;
}

.account-menu-summary {
  padding: 0.5rem 0.55rem 0.35rem;
}

.account-menu-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7f94;
  margin-bottom: 0.25rem;
}

.account-menu-name {
  font-weight: 700;
  color: #0f2a43;
  line-height: 1.2;
}

.account-menu-email {
  margin-top: 0.18rem;
  color: #5c7187;
  font-size: 0.92rem;
  word-break: break-word;
}

.account-menu .dropdown-item {
  border-radius: 14px;
  font-weight: 600;
  padding: 0.75rem 0.85rem;
}

.account-menu .dropdown-item:hover,
.account-menu .dropdown-item:focus {
  background: rgba(13, 110, 253, 0.08);
}

.navbar-mobile-account {
  display: flex;
  align-items: center;
}

.account-bubble--compact,
.account-entry-link--compact {
  min-height: 48px;
  padding: 0.4rem 0.55rem 0.4rem 0.45rem;
  gap: 0.55rem;
}

.account-bubble--compact .account-bubble-avatar,
.account-entry-link--compact .account-bubble-avatar {
  width: 2.15rem;
  height: 2.15rem;
}

.account-bubble--compact .account-bubble-user {
  max-width: 6.5rem;
}

@media (max-width: 991.98px) {
  .navbar-brand-row {
    min-width: 0;
    flex: 1 1 auto;
  }

  .navbar-brand {
    min-width: 0;
  }

  .brand-tagline {
    display: none;
  }

  .navbar-mobile-account {
    margin-left: auto;
    min-width: 0;
    max-width: min(56vw, 15rem);
  }

  .navbar-mobile-account .account-entry-link,
  .navbar-mobile-account .account-bubble {
    width: auto;
    justify-content: flex-start;
    box-shadow: 0 10px 24px rgba(13, 47, 72, 0.1);
    min-width: 0;
    max-width: 100%;
  }

   .navbar-mobile-account .account-bubble-meta {
    min-width: 0;
  }

  .navbar-mobile-account .account-menu {
    min-width: min(20rem, calc(100vw - 1.25rem));
    max-width: calc(100vw - 1.25rem);
  }

  .navbar-collapse {
    flex-basis: 100%;
  }
}

@media (max-width: 576px) {
  .account-bubble--compact,
  .account-entry-link--compact {
    min-height: 44px;
    padding: 0.35rem 0.45rem 0.35rem 0.35rem;
    gap: 0.45rem;
  }

  .account-bubble--compact .account-bubble-avatar,
  .account-entry-link--compact .account-bubble-avatar {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
  }

  .account-bubble--compact .account-bubble-meta {
    gap: 0.05rem;
  }

  .account-bubble--compact .account-bubble-label {
    display: none;
  }

  .account-bubble--compact .account-bubble-user {
    max-width: min(34vw, 8rem);
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .account-bubble--compact::after {
    margin-left: 0;
  }
}


.account-menu-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  background: rgba(13, 110, 253, 0.1);
  color: #0b5ed7;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.account-menu-hint {
  margin: 0.25rem 0.2rem 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(13, 110, 253, 0.05);
  color: #51677d;
  font-size: 0.85rem;
  line-height: 1.4;
}

.password-setup-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(13, 110, 253, 0.12);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(255, 255, 255, 0.9));
  color: #43596f;
  box-shadow: 0 10px 24px rgba(13, 47, 72, 0.06);
}

.password-setup-nudge-copy {
  flex: 1 1 auto;
}

.password-setup-nudge-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.password-setup-nudge strong {
  color: #0f2a43;
}

.password-setup-nudge-dismiss {
  color: #5d7389;
  font-weight: 600;
}

.password-setup-nudge-dismiss:hover,
.password-setup-nudge-dismiss:focus {
  color: #0b5ed7;
}

@media (max-width: 767.98px) {
  .password-setup-nudge {
    flex-direction: column;
    align-items: stretch;
  }

  .password-setup-nudge-actions {
    justify-content: space-between;
  }
}
