/* [70-city-map] Vue Ville : grille isométrique, barre X/Y et bulle de case */
/* ==========================================================================
   VILLE : GRILLE ISOMÉTRIQUE (canvas), BARRE X / Y ET BULLE DE CASE
   ========================================================================== */
#city-map-canvas {
  position: absolute;
  inset: 0;
  width: 980px;
  height: 640px;
  cursor: grab;
  display: block;
}

/* Barre accrochée sous le bandeau, juste après le médaillon (comme l'original) */
.city-nav-coords-bar {
  position: absolute;
  top: 26px;
  left: 196px;
  height: 24px;
  padding: 0 4px 0 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, #222528 0%, #0d0c0a 100%);
  border: 1px solid #413423;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
  z-index: 90;
  font-size: 11px;
  white-space: nowrap;
}

.coord-label {
  color: #cdac80;
  font-weight: 700;
}

.coord-sep {
  color: #777;
}

.coord-input {
  width: 46px;
  height: 18px;
  background: #343638;
  border: 1px solid #141618;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  border-radius: 2px;
  outline: none;
  user-select: text;
  -moz-appearance: textfield;
  appearance: textfield;
}

.coord-input::-webkit-outer-spin-button,
.coord-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.coord-input:focus {
  border-color: var(--gold-primary);
}

.btn-city-red {
  height: 18px;
  padding: 0 12px;
  background: linear-gradient(180deg, #b04236 0%, #70241c 60%, #511711 100%);
  border: 1px solid #cda775;
  border-radius: 2px;
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-city-red:hover:not(:disabled) {
  filter: brightness(1.15);
}

.btn-city-red:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-city-home {
  height: 18px;
  width: 22px;
  background: linear-gradient(180deg, #342c22, #120e0a);
  border: 1px solid var(--gold-old);
  border-radius: 2px;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

/* Bulle d'information au-dessus du pâté sélectionné */
.city-tile-popup {
  position: absolute;
  z-index: 95;
  min-width: 190px;
  max-width: 290px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(28, 25, 22, 0.97), rgba(8, 8, 9, 0.97));
  border: 1px solid var(--gold-old);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.85);
  font-size: 11px;
  color: #e0d6c8;
}

.city-tile-popup.hidden {
  display: none;
}

.city-popup-title {
  font-family: 'Limelight', serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-amber);
}

.city-popup-coords {
  color: #a89a88;
  font-size: 10px;
  margin-bottom: 4px;
}

.city-popup-line {
  margin-top: 2px;
}

.city-popup-note {
  color: #a89a88;
  font-style: italic;
}

.city-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.city-popup-actions button { white-space: nowrap; }

.city-popup-actions:empty {
  display: none;
}

.city-popup-actions .btn-city-red,
.city-popup-actions .btn-city-blue {
  height: 22px;
  flex: 1;
}

/* Boutons dorés de la bulle (DÉPLACER, CONVOI, FAVORI) : même hauteur que les autres, une seule ligne */
.city-popup-actions .btn-city-gold {
  height: 22px;
  flex: 0 0 auto;
  padding: 0 10px;
  font-size: 10.5px;
  white-space: nowrap;
}

.btn-city-blue {
  height: 18px;
  padding: 0 10px;
  background: linear-gradient(180deg, #1976d2 0%, #0d47a1 60%, #082860 100%);
  border: 1px solid #64b5f6;
  border-radius: 2px;
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-city-blue:hover:not(:disabled) {
  filter: brightness(1.2);
}

.btn-city-blue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-city-green {
  height: 18px;
  padding: 0 10px;
  background: linear-gradient(180deg, #38735d 0%, #235643 60%, #123327 100%);
  border: 1px solid #71b099;
  border-radius: 2px;
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-city-green:hover:not(:disabled) {
  filter: brightness(1.2);
}

.city-popup-actions .btn-city-green {
  flex: 1 1 auto;
}

/* Bulle au survol d'une banlieue ou d'un gang : en bas de la carte, texte blanc sur fond sombre translucide */
/* Bulle de survol : bande sombre posée au-dessus du menu du bas (qui monte à 81 px),
   entre le chat (288 px) et le panneau du consigliere (734 px) */
.city-hover-tip { position: absolute; left: 300px; right: 258px; bottom: 88px; padding: 6px 12px; background: rgba(0, 0, 0, 0.7); border-left: 2px solid var(--gold-brass); color: #fff; font-family: 'Josefin Sans', sans-serif; font-size: 11.5px; line-height: 1.4; pointer-events: none; z-index: 5; }
.city-hover-tip.hidden { display: none; }

/* Pose d'un domaine : bandeau d'instruction en haut de la carte de la Ville */
#city-placement-banner { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: rgba(16, 12, 8, 0.92); border: 1px solid var(--gold-brass); border-radius: 3px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); z-index: 6; max-width: 56%; }
#city-placement-banner .placement-text { color: #dec29e; font-family: 'Josefin Sans', sans-serif; font-size: 13px; font-weight: 700; }
#city-placement-banner .placement-cancel { height: 22px; padding: 0 12px; background: linear-gradient(180deg, #53493c 0%, #2a231b 100%); border: 1px solid var(--gold-brass); border-radius: 2px; color: #fff; font-family: 'Josefin Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; }
#city-placement-banner .placement-cancel:hover { filter: brightness(1.2); }
