/* ==========================================================
   Base Layout
========================================================== */

html,
body {
  height: 100%;
  margin: 0;
}

.lpr-body {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: #0b0b0b;
  color: #f2f2f2;
}

.lpr-app {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
/* ==========================================================
   Top Main Menu (Glass Style)
========================================================== */

.lpr-topmenu {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;

  height: 40px;
  display: flex;
  align-items: center;

  padding: 0 18px;

  background: rgba(15, 15, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;

  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.lpr-topmenu__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.lpr-topmenu__item {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;

  opacity: 0.6;
  transition:
    opacity 0.18s ease,
    transform 0.08s ease;
}

.lpr-topmenu__item:hover {
  opacity: 1;
}

.lpr-topmenu__item:active {
  transform: translateY(1px);
}

/* Responsive */

@media (max-width: 900px) {
  .lpr-topmenu {
    width: calc(100% - 32px);
    justify-content: center;
  }

  .lpr-topmenu__inner {
    flex-wrap: wrap;
    gap: 14px;
  }
}
/* ==========================================================
   Map Logos
========================================================== */

.lpr-logo {
  position: absolute;
  top: 14px;
  z-index: 1400;

  height: 100px;
  width: auto;

  pointer-events: none; /* do not block map interactions */

  filter:
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 6px rgba(0, 0, 0, 0.35));
}

.lpr-logo--left {
  left: 16px;
}

.lpr-logo--right {
  right: 16px;
}

@media (max-width: 900px) {
  .lpr-logo {
    height: 34px;
  }
}
/* ==========================================================
   Panel
========================================================== */

.lpr-panel {
  position: relative;
  z-index: 1;

  width: 420px;
  flex-shrink: 0;

  height: 100%;

  display: flex;
  flex-direction: column;
  overflow: hidden;

  border-right: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(15, 15, 15, 0.88);
}

.lpr-panel__header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lpr-panel__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.lpr-panel__sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.lpr-panel__body {
  flex: 1;
  overflow: auto;
  padding: 10px;
}

/* ==== spliter === */
.lpr-split {
  width: 6px;
  cursor: col-resize;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
}

.lpr-split:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================
   Map
========================================================== */

.lpr-map-wrap {
  flex: 1;
  position: relative;
  height: 100%;
}

.lpr-map {
  width: 100%;
  height: 100%;
}

.leaflet-container {
  background: #111;
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: transparent !important;
}

.marker-cluster div {
  background: transparent !important;
  box-shadow: none !important;
}
.lpr-cluster {
  width: 48px;
  height: 48px;
  background: url("/intrare/img/on.png") center/contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: #000;
}
.lpr-cluster--medium {
  width: 56px;
  height: 56px;
  font-size: 16px;
}
.lpr-cluster--large {
  width: 64px;
  height: 64px;
  font-size: 18px;
}
/* ==========================================================
   County Hover Highlight (Fill Only, Pulse Both)
========================================================== */

.leaflet-interactive.lpr-county-hover,
.leaflet-interactive.lpr-county-hover-empty {
  stroke: none;
  stroke-width: 0;
  transition: fill-opacity 200ms ease;
}

/* Counties with entries (yellow pulse) */
.leaflet-interactive.lpr-county-hover {
  fill: rgba(255, 179, 71, 0.55);
  animation: lpr-county-pulse-yellow 1.2s ease-in-out infinite;
}

/* Counties without entries (gray pulse) */
.leaflet-interactive.lpr-county-hover-empty {
  fill: rgba(120, 120, 120, 0.45);
  animation: lpr-county-pulse-gray 1.2s ease-in-out infinite;
}

/* Yellow pulse */
@keyframes lpr-county-pulse-yellow {
  0% {
    fill-opacity: 0.35;
  }
  50% {
    fill-opacity: 0.85;
  }
  100% {
    fill-opacity: 0.35;
  }
}

/* Gray pulse */
@keyframes lpr-county-pulse-gray {
  0% {
    fill-opacity: 0.25;
  }
  50% {
    fill-opacity: 0.6;
  }
  100% {
    fill-opacity: 0.25;
  }
}
/* ==========================================================
   County Hover Fade
========================================================== */

.leaflet-interactive {
  transition:
    fill-opacity 320ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-opacity 320ms cubic-bezier(0.4, 0, 0.2, 1),
    fill 320ms ease,
    stroke 320ms ease;
}

/* ==========================================================
   Leaflet Controls – Bottom Right
========================================================== */

.leaflet-bottom.leaflet-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Remove default Leaflet styling */
.leaflet-control-zoom,
.lpr-reset-control .leaflet-bar {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Individual control button (zoom in, zoom out, reset) */
.leaflet-control-zoom a,
.lpr-reset-control a {
  width: 38px;
  height: 38px;
  line-height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  font-weight: 600;
  text-decoration: none;

  color: #ffffff;

  background: rgba(15, 15, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);

  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.06s ease,
    box-shadow 0.18s ease;
}

/* Hover */
.leaflet-control-zoom a:hover,
.lpr-reset-control a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

/* Active click */
.leaflet-control-zoom a:active,
.lpr-reset-control a:active {
  transform: translateY(1px);
}

/* Remove zoom button divider */
.leaflet-control-zoom a + a {
  margin-top: 10px;
}

/* Disabled state */
.leaflet-control-zoom a.leaflet-disabled {
  cursor: not-allowed;
  box-shadow: none;
}
/* Base rounding (you removed it earlier, restoring explicitly) */
.leaflet-control-zoom a,
.lpr-reset-control a {
  cursor: pointer;
  user-select: none;
}

/* Hover */
.leaflet-control-zoom a:hover:not(.leaflet-disabled),
.lpr-reset-control a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

/* Keyboard focus (accessibility) */
.leaflet-control-zoom a:focus-visible,
.lpr-reset-control a:focus-visible {
  outline: none;
  border-color: rgba(255, 179, 71, 0.6);
  box-shadow:
    0 0 0 2px rgba(255, 179, 71, 0.25),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Active / pressed */
.leaflet-control-zoom a:active:not(.leaflet-disabled),
.lpr-reset-control a:active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transform: translateY(1px) scale(0.98);
}
/* Remove focus ring on mouse click */
.leaflet-control-zoom a:focus:not(:focus-visible),
.lpr-reset-control a:focus:not(:focus-visible) {
  outline: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}
/* Simulated pressed state (if you ever toggle a class) */
.leaflet-control-zoom a.is-pressed,
.lpr-reset-control a.is-pressed {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* Disabled */
.leaflet-control-zoom a.leaflet-disabled,
.leaflet-control-zoom a.leaflet-disabled:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

/* Smooth visual feedback */
.leaflet-control-zoom a,
.lpr-reset-control a {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.08s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

/* ==========================================================
   Leaflet Attribution – Glass Style
========================================================== */

.leaflet-control-attribution {
  background: rgba(15, 15, 15, 0.75) !important;

  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);

  padding: 4px 8px;
  margin: 10px;

  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

/* Remove default white background completely */
.leaflet-control-attribution.leaflet-control {
  background: rgba(15, 15, 15, 0.75) !important;
}

/* Links */
.leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.15s ease;
}

.leaflet-control-attribution a:hover {
  color: #ffffff;
  text-decoration: underline;
}
svg.leaflet-attribution-flag {display: none !important;}
/* ==========================================================
   Panel Scrollbar (cross-browser)
========================================================== */

/* Firefox */
.lpr-panel__body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
}

/* Chromium / Safari / Edge */
.lpr-panel__body::-webkit-scrollbar {
  width: 10px;
}

.lpr-panel__body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.lpr-panel__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}

.lpr-panel__body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.34);
}
/* Move scrollbar to the left side */
.lpr-panel__body {
  direction: rtl; /* scrollbar goes left */
}

.lpr-panel__body > * {
  direction: ltr; /* restore normal content flow */
}
/* ==========================================================
   Cards
========================================================== */

.lpr-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.06s ease,
    box-shadow 0.18s ease;
}

.lpr-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.lpr-card:active {
  transform: translateY(1px);
}

.lpr-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.lpr-card__title {
  font-size: 14px;
  font-weight: 700;
}

.lpr-card__meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.lpr-card__mini {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lpr-card__actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lpr-card__status {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.lpr-card:hover .lpr-card__status {
  transform: scale(1.08);
}

/* ==========================================================
   Card Background Image
========================================================== */

.lpr-card--bg {
  position: relative;
  overflow: hidden;
}

.lpr-card--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--lpr-bg);
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transform: scale(1);
  opacity: 0.35;
  z-index: 0;
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
}
.lpr-card--bg[data-status="0"]::before {
  opacity: 0.32;
}
.lpr-card--bg[data-status="1"]::before {
  opacity: 0.35;
}
.lpr-card--bg:hover::before {
  transform: scale(1.05);
}

.lpr-card--bg > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================
   Card Hover CTA – inline with badges
========================================================== */

/* Ensure mini row can anchor absolute badge */
.lpr-card__mini {
  position: relative;
}

/* Create CTA badge inside the mini row */
.lpr-card__mini::after {
  content: "Vezi info →";

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;

  margin-left: auto; /* pushes it to the right */
  opacity: 0;
  transform: translateY(6px);

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;

  pointer-events: none;
}

/* Show on card hover */
.lpr-card:hover .lpr-card__mini::after {
  opacity: 1;
  transform: translateY(0);
}
/* ==========================================================
   Detail
========================================================== */

.lpr-detail {
  display: grid;
  gap: 12px;
}
.lpr-detail .lpr-card {
  cursor: default;
}

.lpr-detail .lpr-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transform: none;
}
/* ==========================================================
   Detail Photo Grid (Metro Style)
========================================================== */

.lpr-detail__photos {
  display: grid;
  gap: 8px;
  border-radius: 14px;
  overflow: hidden;
}

/* 1 photo */
.lpr-detail__photos[data-count="1"] {
  grid-template-columns: 1fr;
}

/* 2 photos */
.lpr-detail__photos[data-count="2"] {
  grid-template-columns: repeat(2, 1fr);
}

/* 3+ photos */
.lpr-detail__photos[data-count="3"],
.lpr-detail__photos[data-count="4"],
.lpr-detail__photos[data-count="5"],
.lpr-detail__photos[data-count="6"],
.lpr-detail__photos[data-count="7"],
.lpr-detail__photos[data-count="8"] {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

/* Uneven layout – first image larger */
.lpr-detail__photos--featured .lpr-detail__photo:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.lpr-detail__photo {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.lpr-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.lpr-detail__photo:hover img {
  transform: scale(1.05);
}
/* ==========================================================
   Detail Photo Overlay – bottom strip (25px)
========================================================== */

.lpr-detail__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 25px;
  display: flex;
  align-items: center;

  padding: 0 8px;
  font-size: 11px;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  color: #ffffff;
  opacity: 0;

  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;

  transition: opacity 0.2s ease;
}

/* Optional subtle fade on top edge */
.lpr-detail__overlay::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  pointer-events: none;
}

.lpr-detail__photo:hover .lpr-detail__overlay {
  opacity: 1;
}

.lpr-detail__photo:hover .lpr-detail__overlay {
  opacity: 1;
}
/* ==========================================================
   Detail Icons
========================================================== */

.lpr-detail__type,
.lpr-detail__status {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-left: 6px;
}
/* ==========================================================
   Tooltip
========================================================== */

.lpr-tooltip {
  min-width: 100px;
  font-size: 12px;
}

.lpr-tooltip__title {
  font-weight: 700;
  margin-bottom: 6px;
}

.lpr-tooltip__photo {
  margin: 6px 0;
}

.lpr-tooltip__photo img {
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  display: block;
}

.lpr-tooltip__meta {
  line-height: 1.4;
}
.leaflet-tooltip.lpr-leaflet-tooltip .leaflet-tooltip-content {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}
/* ==========================================================
   Leaflet Tooltip – Card Style
========================================================== */

.leaflet-tooltip.lpr-leaflet-tooltip {
  background: rgba(15, 15, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;

  color: #ffffff;

  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);

  width: auto;
  max-width: 280px;
}

/* Remove default white arrow */
.leaflet-tooltip.lpr-leaflet-tooltip::before {
  display: none;
}

/* Content wrapper */
.leaflet-tooltip.lpr-leaflet-tooltip .leaflet-tooltip-content {
  margin: 0;
  white-space: normal;
  width: auto;
}

/* Tooltip title */
.lpr-tooltip__title {
  font-weight: 700;
  margin-bottom: 6px;
}

/* Tooltip image */
.lpr-tooltip__photo img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Tooltip meta */
.lpr-tooltip__meta {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}
/* ==========================================================
   Badges & Buttons
========================================================== */

.lpr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lpr-btn {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.05s ease;
}

.lpr-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lpr-btn:active {
  transform: translateY(1px);
}

.lpr-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================
   Utility
========================================================== */

.lpr-hr {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.lpr-kv {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.lpr-kv > div {
  margin-bottom: 6px;
}
.lpr-kv strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.lpr-loading {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.lpr-hidden {
  display: none !important;
}

/* ==========================================================
   Breadcrumb
========================================================== */

.lpr-breadcrumb {
  margin-top: 6px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lpr-breadcrumb__item {
  cursor: pointer;
  opacity: 0.85;
}

.lpr-breadcrumb__item--static {
  cursor: default;
  opacity: 1;
  font-weight: 600;
}

.lpr-breadcrumb__sep {
  opacity: 0.5;
}
/* ==========================================================
   Bottom Stats Bar (Glass Style)
========================================================== */

.lpr-statsbar {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1500;

  max-width: calc(100% - 40px);
   padding: 4px 8px;

  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  overflow-x: auto;

  background: rgba(15, 15, 15, 0.75);

  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.lpr-statsbar::-webkit-scrollbar {
  height: 6px;
}

.lpr-statsbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}
/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 900px) {
  .lpr-app {
    flex-direction: column;
  }

  .lpr-split {
    width: 100%;
    height: 6px;
    cursor: row-resize;
  }

  .lpr-panel {
    width: 100%;
    height: 45vh;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .lpr-map-wrap {
    height: 55vh;
  }
}
/* ==========================================================
   Debug States
========================================================== */

.lpr-debug-states {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;

  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.4;

  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;

  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;

  pointer-events: none;
  white-space: pre;
}
/* ==========================================================
   END Debug States
========================================================== */
