/* web custom styles */

/* ========================================
   VARIABLES
   ======================================== */
:root {
	--blue:#132a3e;
	--red:#be0032;
}

/* ========================================
   DARK BASE
   ======================================== */
html, body {
  background-color: #121212;
  color: #e0e0e0;
}

/* ========================================
   HEADER
   ======================================== */
#header {
  background-color: #1a1a2e;
  border-bottom: 1px solid #2a2a4a;
  font-size: 0.8rem;
}

/* ========================================
   FOOTER
   ======================================== */
#footer {
  background-color: #1a1a2e;
  border-top: 1px solid #2a2a4a;
  font-size: 0.8rem;
}

/* ========================================
   MAP
   ======================================== */
#map { position:absolute; left:0; height: 94vh; width: 100vw; margin:auto; text-align:center }
#map * { text-align:left }

/* Legacy HERE Maps info bubble (falls noch referenziert) */
.H_ib_close {
  right: 6px;
  width: 10px;
  height: 10px;
  top: 5px;
}
.H_ib_content {
  min-width: 16em;
  font-size: 11px;
  line-height: 1.3em;
  margin:10px;
}

/* Leaflet marker popup */
.leaflet-popup-content-wrapper {
  border-radius: 0.65rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.leaflet-popup-content {
  margin: 0;
  min-width: 14rem;
  max-width: 20rem;
  padding: 0.85rem 0.95rem 0.9rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #1a1a2e;
}
.leaflet-popup-content .mi_title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #132a3e;
  margin: 0 0 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #e8ecf2;
}
.leaflet-popup-content .mi_edit {
  margin: 0.65rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid #e8ecf2;
}
.leaflet-popup-content .memap-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff !important;
  background: #2c5aa0;
  border: none;
  border-radius: 0.35rem;
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(19, 42, 62, 0.22);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.leaflet-popup-content .memap-edit-btn:hover,
.leaflet-popup-content .memap-edit-btn:focus {
  background: #1e4578;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(19, 42, 62, 0.28);
}
.leaflet-popup-content .memap-edit-btn i {
  font-size: 0.78rem;
  opacity: 0.95;
}
.leaflet-popup-content .mi_address {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #3a4250;
  margin: 0 0 0.25rem;
}
.leaflet-popup-content .mi_country {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #4a5568;
  margin: 0 0 0.5rem;
}
.leaflet-popup-content .mi_email,
.leaflet-popup-content .mi_phone,
.leaflet-popup-content .mi_telegram_username {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #2f3744;
  padding: 0.2rem 0;
}
.leaflet-popup-content .mi_description {
  font-size: 0.875rem;
  line-height: 1.45;
  font-style: italic;
  color: #4a5568;
  margin: 0.55rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid #e8ecf2;
}
.leaflet-popup-content a {
  color: #2c5aa0;
  font-weight: 600;
  text-decoration: none;
}
.leaflet-popup-content a:hover {
  color: #1e3f75;
  text-decoration: underline;
}
.leaflet-container a.leaflet-popup-close-button {
  font-size: 1.35rem;
  width: 1.75rem;
  height: 1.75rem;
  line-height: 1.75rem;
  color: #6b7280;
  padding: 0;
  top: 0.35rem;
  right: 0.35rem;
}
.leaflet-container a.leaflet-popup-close-button:hover {
  color: #132a3e;
}

/* ========================================
   FANCYBOX POPUP - DARK THEME
   ======================================== */
.fancybox-bg {
  background: #000;
}
.fancybox-is-open .fancybox-bg {
  opacity: 0.87;
}
.fancybox-content {
  background-color: #1e1e2e;
  color: #e0e0e0;
  border-radius: 0.5rem;
}
.fancybox-content .memap-mapitem-form .form-control,
.fancybox-content .memap-mapitem-form .form-select,
.fancybox-content .memap-new-item-form .form-control,
.fancybox-content .memap-new-item-form .form-select {
  background-color: #2a2a3e;
  color: #e0e0e0;
  border-color: #3a3a5a;
}
.fancybox-content .memap-mapitem-form .form-control:focus,
.fancybox-content .memap-mapitem-form .form-select:focus,
.fancybox-content .memap-new-item-form .form-control:focus,
.fancybox-content .memap-new-item-form .form-select:focus {
  background-color: #2a2a3e;
  color: #e0e0e0;
  border-color: #6060aa;
  box-shadow: 0 0 0 0.2rem rgba(96, 96, 170, 0.35);
}
.fancybox-content .memap-mapitem-form .form-control::placeholder,
.fancybox-content .memap-new-item-form .form-control::placeholder {
  color: #7a7a9a;
}
.fancybox-content .memap-mapitem-form .form-label,
.fancybox-content .memap-new-item-form .form-label {
  color: #c0c0d8;
}
.fancybox-content .memap-mapitem-form .text-muted,
.fancybox-content .memap-new-item-form .text-muted {
  color: #7a7a9a !important;
}

/* ========================================
   FOX-35: PROJECT INFO MODAL
   ======================================== */
.project-info-modal {
  background-color: #1e1e2e;
  color: #e0e0e0;
  border: 1px solid #3a3a5a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.project-info-modal .modal-header {
  padding: 1rem 1.25rem 0.5rem;
}
.project-info-modal .modal-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #a0a0c8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.project-info-modal .modal-body {
  padding: 0.5rem 1.25rem 1.25rem;
}
.project-info-logo-wrap {
  display: flex;
  justify-content: center;
}
.project-info-logo {
  max-height: 64px;
  height: 100%;
  width: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.project-info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f0f0ff;
}
.project-info-short {
  color: #8a8aaa !important;
}
.project-info-description {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #3a3a5a;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #c8c8dc;
}
.project-info-description a {
  color: #7eb8ff;
  text-decoration: none;
}
.project-info-description a:hover {
  color: #a8d0ff;
  text-decoration: underline;
}
.project-info-description p:last-child {
  margin-bottom: 0;
}
#header .auth-user a#projectInfoTrigger {
  color: #9ec5ff;
}
#header .auth-user a#projectInfoTrigger:hover {
  color: #c5ddff;
}