



/* On cache le select natif, mais on le garde pour la logique */
#langSelect,
#profileSelect,
#newCategory,
#list .listItem select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* --- Dropdown custom --- */

.custom-dropdown {
  position: relative;
  display: inline-block;
}

.select-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
}

/* Menu déroulant */
.custom-dropdown-inner {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: var(--panel);
  border-radius: 10px;
  border: 1px solid #27524b;
  box-shadow: var(--shadow);
  padding: 6px 0;
  min-width: 114px;
  z-index: 50;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  width: max-content;
}

.custom-dropdown.open .custom-dropdown-inner {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: absolute;
}

#list .custom-dropdown .custom-dropdown-inner,
#list .custom-dropdown .custom-dropdown-inner .option-item {
  height: 1px;
  position: absolute;
  margin-top: 0;
  padding: 0;
}

#list .custom-dropdown.open .custom-dropdown-inner{
  height: inherit;
  margin-top: 6px;
  padding: 6px 0;
}

#list .custom-dropdown.open .custom-dropdown-inner .option-item {
  height: inherit;
  position: initial;
  margin-top: 3px;
  padding: 2px 6px;
}

#list .custom-dropdown.open .custom-dropdown-inner {
  position: relative;
}

.custom-dropdown-inner .option-item{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 16px 6px 11px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  text-align: left;
  margin-bottom: 3px;
}

.custom-dropdown .select-label{
  width: max-content;
}

.option-item:hover {
  background: rgba(46, 109, 88, 0.6);
}

/* --- Sprite de drapeaux --- */
.flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  background-image: url('../img/flags.png');
  flex: 0 0 auto;
}

/* Exemple de positions (à adapter à ton sprite) */
.flag-en { background-position: -22px 0; }
.flag-fr { background-position: -2px 0; }
.flag-es { background-position: -44px 0; }
.flag-de { background-position: -65px 0; }
.flag-pt { background-position: -87px -16px; }
.flag-it { background-position: -108px -16px; }
.flag-ru { background-position: -128px -16px; }
.flag-zh { background-position: -150px -16px; }
.flag-ja { background-position: -174px -32px; }


.dungeon-wrapper.is-hovered .dungeon {
  opacity: 1;
}

.listItem [data-pin] { 
  display: none;
}

button, select, .chip {
  background: linear-gradient(145deg, #0c3a30, #174d46);
  color: #ced3ec;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  box-shadow:
  inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2), 0 1px 2px rgb(4 13 6 / 70%);
  font-size: 12px;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholdertext);
  opacity: 1;
}

button, select{
  color:var(--buttontxt);
}

input[type="color"]{
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  width: 24px;
  max-width: 24px;
  height: 24px;
  opacity: 0.7;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 8px;
}

select option {
  background-color: #256b6c;
  color: #e7ebff;
  border: none;
}

select option:hover,
select option:enabled:hover,
select option:checked {
  background-color: #256b6c;
  color: #e7ebff;
}

button:hover:not(.select-current) {
  background:linear-gradient(145deg, #165238, #1f6642);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 5px 10px rgba(0,0,0,0.45),
    0 1px 3px rgba(0,0,0,0.7);
}

button:active:not(.select-current) {
  background: linear-gradient(145deg, #152b25, #0d1b12);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.6),
    0 1px 1px rgba(255,255,255,0.05);
}

/* Lock mode: allow panning even over markers */
.mapViewport.locked .marker {
  pointer-events: auto;
  cursor: pointer;
}

button.small,
.right-panel button,select { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px; 
  padding: 8px 18px;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer; 
}

button.small img {
  display: block;
  width: 16px;
  height: 16px;
}

button.active,
select.active { 
  outline: 1px solid #78f1c2; 
}

button.danger {
  background: linear-gradient(145deg, #491c14, #65110b);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 4px 8px rgba(0,0,0,0.5);
    padding:5px 10px 4px 10px;
  color: #c0695a;
}

.tool-section button.danger {
  padding: 8px 10px;
}

#routesPanel button.danger,
#list button.danger{
  max-width: 40px;
}

button.danger:hover {
  background: linear-gradient(145deg, #5e190d, #49150a);
  color: #cb939c;
}

input[type="text"],
input[type="search"],
input[type="password"],
textarea {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--placeholdertext);
  border-radius: 6px;
  padding: 5px 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="password"]:focus
{
  border-color: rgba(120, 241, 194, 0.8)!important;
  box-shadow: 0 0 0 1px rgba(120, 241, 194, 0.3);
}

.done-input{
  flex: 0 0 auto;
  padding: 4px 5px 4px 3px;
  border-radius: 6px;
  display: flex;
}

.marker {
  position: absolute;
  /* centre du pin = position du clic */
  transform: translate(-49%, -95%) scale(var(--mk, 1));
  transform-origin: 50% 100%;
  pointer-events: auto;
  cursor: pointer;
  z-index: 4;
}


.pin[data-light="true"] .pin-icon {
  /* Si le fond est clair, on garde icône foncée */
  filter: none;
  opacity: 0.85;
}

.pin {
  position: relative;
  width: 36px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* fond goutte SVG, qu'on va recolorer */
.pin-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* icône blanche par-dessus */
.pin-icon {
  position: relative;
  width: 18px;
  height: 22px;
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
  margin-top: -12px;
}


/* label détaché, à droite du pin – Ether + multi-lignes */
.label {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(10px, -50%);
  transform-origin: left center;
  width: max-content;
  max-width: 190px;
  white-space: normal;
  word-break: break-word;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(4,18,22,0.96);
  border: 1px solid rgba(0,255,180,0.4);
  color: #d3f8ec;
  font-size: 13px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(6px);
  box-shadow:
    0 0 10px rgba(0,0,0,0.6),
    0 0 12px rgba(0,255,180,0.2);
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
}

.marker:hover .label {
  opacity: 1;
  pointer-events: auto;
  transform: translate(12px, -50%);
}

#mapInner .marker:hover .pin {
  filter: drop-shadow(0 0 6px rgba(80, 160, 255, 0.55));
}

.marker.completed .pin
 { opacity: 0.6; }

.marker.completed .label{ 
  background: rgb(39 39 39 / 85%);
  border: 1px solid #4b4b4b;
 }

.marker.completed .pin-bg{
  transform: scale(0.85);
  transform-origin: 50% 100%;
     filter: grayscale(1) brightness(1) !important;
}

.marker.completed .pin-icon{
    width: 15px;
    height: 19px;
    margin-top: -4px;
}

.lock-label{
  flex: none;
  padding-right: 14px;
  font-size: 11px;
  display: flex;
  opacity: .85;
  align-items: center;
}

.lock-label span{
  padding-left: 5px;
  padding-right: 5px;
}

.floating { 
  position: fixed;
  right: 34px;
  bottom: 32px;
  display: flex;
  gap: 8px;
  z-index: 20;
  pointer-events: none;
}

#routesList .listItem input[type="text"]{
    max-width: 235px;
}

.chip { 
  font-size: 12px; 
  opacity: .85;
  padding: 6px; 
}

.marker-save.flash {
  background: #1e3a2a !important;
  border-color: #4cff7d;
  color: #baffc7;
  transform: scale(1.15);
  transition: all 0.2s ease;
}

.marker-name {
  flex: 1;
  padding-right: 60px;
}

button.marker-center,
 button.marker-save{
  padding: 6px 7px 6px 7px;
  border: none;
  color: #78f1c2;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.15s ease;
  max-width: 48px;
  display: flex;
  justify-content: center;  
}

/* Highlight pulse ring */
.marker.marker-highlight .pin {
  position: relative;
  z-index: 2;
}


.marker.marker-highlight .pin::after {
  content: "";
  position: absolute;
  top: 0px;
  left: -6px;
  right: 6px;
  bottom: 6px;
  border-radius: 999px;
  border: 2px solid #78f1c2;
  box-shadow: 0 0 8px rgba(120, 241, 194, 0.7);
  pointer-events: none;
  width: 45px;
  height: 45px;
  opacity: 0;
  transform: scale(0.8);
  animation: markerRingPulse 0.7s ease-out 0s 2 forwards;
}

.marker-region.marker-highlight .region-label::after,
.marker-region-dungeon.marker-highlight .region-label::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -8px;
  right: -8px;
  bottom: -4px;
  border-radius: 12px;
  border: 2px solid #78f1c2;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  animation: markerRingPulse 0.7s ease-out 0s 2 forwards;
}


@keyframes markerRingPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  30% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.listItem input[type="text"]{
  width: 100vh;
}

#list .listItem.highlight,
#routesList .listItem.highlight {
  position: relative;
  overflow: visible;
  border-radius: 10px;
  animation: highlightPulse 1.2s ease;
}

#list select{
  font-size: 11px;
  padding: 6px 0px 5px 4px;
}

#list .select-current{
  padding: 4px 6px 5px 7px;
}

@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 0px 0 rgba(26, 98, 74, 0);
    background: rgba(255,255,255,0.05);
  }
  25% {
    box-shadow: 0 0 4px 2px rgba(26, 98, 74, 0.5);
    background: rgba(255,255,255,0.1);
  }
  50% {
    box-shadow: 0 0 7px 3px rgba(26, 98, 74, 0.7);
    background: rgba(255,255,255,0.15);
  }
  100% {
    box-shadow: 0 0 0px 0 rgba(26, 98, 74, 0);
    background: rgba(255,255,255,0.05);
  }
}


/* Icon rendering inside pin */

#toastContainer {
  position: fixed;
  top: 7rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: rgba(30, 30, 30, 0.6); /* transparent dark */
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  backdrop-filter: blur(6px); /* effet glass */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes par type */
.toast.success {
  border-left: 4px solid #4caf50; /* vert */
}

.toast.error {
  border-left: 4px solid #e53935; /* rouge */
}

.toast.info {
  border-left: 4px solid #2196f3; /* bleu */
}

.toast.warning {
  border-left: 4px solid #ff9800; /* orange */
}

/* Path */

#routesPanel {
  padding-top: .5rem;
}

#routesList .routeItem {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
}

.path-badge {
  font-size: .75rem;
  background: rgba(255,204,0,.15);
  border: 1px solid rgba(255,204,0,.6);
  padding: 2px 8px;
  border-radius: 999px;
  display: none;
  margin-bottom: .5rem;
}

.path-point {
  position: absolute;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 65%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 210, 0, 0.8);
}

.path-point.active-glow {
  animation: pulseGlow 1s infinite ease-in-out;
}


@keyframes pulseGlow {
  0%   { transform: scale(1);   opacity: 1; }
  50%  { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1);   opacity: 1; }
}

@keyframes pathPulse {
  0%   { transform: scale(0.4); opacity: 1; }
  60%  { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.4); opacity: 0.35; }
}

/* Start / End bubble on paths */
#mapInner .path-endpoint {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--mk, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  background: rgba(6, 12, 28, 0.9);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

#mapInner .path-endpoint.path-start {
  cursor: pointer;
}

#toolFinishPath {
  position: relative;
  overflow: hidden;
}

#toolFinishPath.pulse {
  animation: borderPulse 1.4s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% {
    box-shadow: 0 0 0px rgba(120,241,194,0);
  }
  50% {
    box-shadow: 0 0 6px rgba(120,241,194,0.8);
  }
}


/*FILTER BUTTON*/

.filterBar {
  display: flex;
  gap: 0px;
  align-items: center;
}

.filterToggle {
  position: relative;
  width: 37px;
  height: 33px;
  border: none;
  padding: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #162a21, #081b14);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.45),
    0 0 0 1px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.15s ease;
}

.filterBar .filterToggle{
    margin: 16px 0px 32px 14px;
}

.filterToggle img {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Bottom light */
.filterToggle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #7ef3ff, #c7f5ff);
  opacity: 0;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

/* État ON (bouton "enfoncé" + lumière visible) */
.filterToggle.is-on {
  transform: translateY(1px);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.8),
    0 0 0 1px rgba(120, 241, 194, 0.4);
  background: linear-gradient(145deg, #07211a, #0f3727);
}

.filterToggle.is-on::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1.05);
}

.filterToggle:active {
  transform: translateY(2px);
  box-shadow:
    0 0 0 rgba(0,0,0,0.5),
    0 0 0 1px rgba(0,0,0,0.7);
}

.filterToggle:hover:not(.is-on) {
  background: linear-gradient(145deg, #173937, #092a20);
}

.filterToggle.is-on:hover {
  background: linear-gradient(145deg, #17444b, #092626);
}

/* Petit badge de compteur */
.filterCount {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: rgba(8, 14, 30, 0.95);
  border: 1px solid rgba(120, 241, 194, 0.9);
  color: #e7fbff;
  font-size: 9px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(120, 241, 194, 0.5);
  pointer-events: none;
}

/* Optionnel : un peu plus discret quand le bouton est off */
.filterToggle:not(.is-on) .filterCount {
  opacity: 0.6;
  box-shadow: none;
}

/*ZOOM BUTTON*/

#zoomControls {
  position: absolute;
  bottom: -7px;
  right: 138px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  font-size: 14px;
  color: var(--color-text, #d8e0e3);
}

#zoomControls button {
  border: 1px solid var(--color-border, #1d2326);
  color: var(--color-text, #d8e0e3);
  padding: 7px 11px;
  width: 34px;
  height: 29px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#zoomControls button:hover {
  background: var(--color-accent-soft, #00c47a);
  transform: scale(1.1);
}

#zoomDisplay {
  min-width: 40px;
  text-align: center;
  font-weight: bold;
}

#zoomControls,
#zoomControls * {
  pointer-events: auto;
}

/* Shared pin position */
.marker .pin {
  position: relative;
}

.marker .pin .shared-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  pointer-events: none;
}


/*RIFT MARKER*/
.marker-rift {
  display: flex;
  align-items: center;
  gap: 4px; 
  pointer-events: none!important;
  z-index: 3;
}

.marker-rift .label {
  font-size: 0.90em;
  opacity: 0.9;
  background: rgb(58 13 4 / 85%);
  border: 1px solid #6d1a10;
  color: #cebaaf;
  padding: 4px 5px;
  max-width: inherit;
}

.marker-rift .rift-icon {
  display: block;
  width: 18px;
}

.marker-rift.marker-highlight::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 999px;
  border: 2px solid #78f1c2;
  box-shadow: 0 0 8px rgba(120, 241, 194, 0.7);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  animation: markerRingPulse 0.7s ease-out 0s 2 forwards;
}


/*REGION MARKER*/
.marker-region {
  z-index: 1;
  position: absolute;
  pointer-events: none;
}

.region-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: #b19f8a;
  text-shadow:0 0 3px rgba(0, 2, 2, 2),
    0 0px 4px rgba(0, 2, 2, 2),
    0 0 7px rgba(0, 2, 2, 2);
  white-space: nowrap;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
}

.malmouthmap .region-label{
  font-size: 1.7em;
}

.korvanmap .region-label{
  font-size: 1.2em;
}

.marker-region-dungeon .region-label{
  opacity: 0.25;
}

.marker-region-dungeon .region-label.opacity{
  opacity: 0.90;
  color: #a4927a;
}

/*ADMIN MARKERS TOOGLE*/

.mapWrap.hide-rift   .marker-rift   { display: none !important; }
.mapWrap.hide-region .marker-region { display: none !important; }


/*LINKED MARKER*/

.marker-link {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--mk, 1));
  pointer-events: auto;
  cursor: pointer;
  z-index: 1;
}

.marker-link .link-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.7));
  user-select: none;
  opacity: 0.95;
}


/* Anim de disparition d’un item de la liste principale */
.listItem.fade-out {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.dungeon-wrapper {
  position: absolute;
  z-index: 0;
}

.dungeon {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 1em;
}

/* --- Custom checkbox green theme --- */
.checkbox-green {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid #30af7d;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

/* Hover neon */
.checkbox-green:hover {
  box-shadow: 0 0 4px rgba(48, 175, 125, 0.6);
  border-color: #26f0a0;
}

/* Checkmark */
.checkbox-green:checked {
  background: #26f0a0;
  border-color: #26f0a0;
  box-shadow: 0 0 6px rgba(38, 240, 160, 0.6);
}

.checkbox-green:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -2px;
  width: 2px;
  height: 11px;
  border: solid #083d2b;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.done-input span{
    margin-top: 2px;
    margin-left: 3px;
    font-size: 11px;
}

/* ----- Custom Select (green emerald theme) ----- */

.select-green {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #0d2b23;
  border: 2px solid #1a624a;
  border-radius: 8px;
  color: #c3f0dd;
  padding: 8px 32px 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  min-width: 112px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
  background-image: url("data:image/svg+xml;utf8,<svg fill='%2330af7d' height='20' width='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><polygon points='5,7 10,12 15,7'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 14px;
  justify-content: left!important;
  width: 100%;
}

/* Hover */
.select-green:hover {
  border-color: #30af7d;
  box-shadow: 0 0 6px rgba(48,175,125,0.4), inset 0 0 6px rgba(0,0,0,0.4);
}

/* Focus */
.select-green:focus {
  border-color: #26f0a0;
  outline: none;
  box-shadow:
    0 0 6px rgba(38,240,160,0.6),
    inset 0 0 6px rgba(0,0,0,0.4);
}

/* When open in Firefox */
.select-green:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #c3f0dd;
}


/* --- Location search bar (bottom left) --- */

.searchBar {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.searchBar input#locationSearch {
  padding: 10px 36px 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 241, 194, 0.35);
  background-color: rgba(2, 16, 20, 0.9);
  color: #e5f7f3;
  font-size: 13px;
  outline: none;
  background-image: url('../img/search-icon.svg');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  width: 270px;
  transition: width 0.25s ease-in-out;
}

.searchBar input#locationSearch:focus {
  width: 380px;
}

.searchBar input#locationSearch::placeholder {
  color: rgba(229, 247, 243, 0.45);
}

/* Liste des résultats de recherche */
.search-results {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(2, 16, 20, 0.96);
  border-radius: 12px;
  border: 1px solid rgba(120, 241, 194, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  padding: 4px 0;
  z-index: 40;
  display: none;
}

.search-type-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0; 
  opacity: 0.9;
  filter: drop-shadow(0 0 3px #78f1c2);
  margin-right: 6px;
}

.search-input-icon {
  position: absolute;
  right: 80px; /* ✨ dépend de ton bouton Markers */
  width: 16px;
  height: 16px;
  opacity: 0.7;
  pointer-events: none;
  filter: drop-shadow(0 0 3px #78f1c2);
}

.search-input-icon:hover {
  opacity: 1;
}

.search-result {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  cursor: pointer;
}

.search-result span.search-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e5f7f3;
}

.search-result.is-active,
.search-result:hover {
  background: rgba(120, 241, 194, 0.18);
}

/* Couleur spécifique pour les TYPES dans l’autocomplétion */
.search-result.type-region .search-label {
  color: #78f1c2;
}

.search-result.type-dungeon .search-label {
  color: #b99963; 
}

.search-result.type-rift .search-label {
  color: #ff6b6b; 
}

/* Icônes assorties */
.search-result.type-region .search-type-icon {
  filter: drop-shadow(0 0 3px #78f1c2);
}

.search-result.type-dungeon .search-type-icon {
  filter: drop-shadow(0 0 4px #d8a8ff);
}

.search-result.type-rift .search-type-icon {
  filter: drop-shadow(0 0 4px #ff6b6b);
}


/* Entrées de donjons (yeux jaunes) */
.marker-entry-dungeon {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--mk, 1));
  transform-origin: 50% 50%;
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
}

.marker-entry-dungeon .entry-icon {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
