/* [71-neighborhood-build] Fondations du quartier et modale de construction */
/* ==========================================================================
   PARCELLES DE FONDATION DU QUARTIER (ZONES ENTIÈREMENT CLIQUABLES AU SOL)
   ========================================================================== */
.neighborhood-slot-zone {
  pointer-events: auto !important;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 95px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Slot vide : dalle de terrain au sol entièrement cliquable sans bouton intrusif */
.neighborhood-slot-zone.slot-empty {
  border: 2px dashed rgba(207, 138, 48, 0.45);
  border-radius: 6px;
  background: rgba(20, 16, 12, 0.25);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.55);
}

.neighborhood-slot-zone.slot-empty:hover {
  border-color: var(--gold-bright);
  border-style: solid;
  background: rgba(207, 138, 48, 0.2);
  box-shadow: 0 0 22px rgba(207, 138, 48, 0.65), inset 0 0 16px rgba(207, 138, 48, 0.3);
  transform: translate(-50%, -52%) scale(1.08);
  z-index: 35;
}

.slot-empty-ground-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.slot-ground-number {
  font-family: 'Limelight', serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.5px;
}

.slot-ground-action {
  font-family: 'Limelight', serif;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--gold-highlight);
  background: rgba(8, 12, 11, 0.85);
  border: 1px solid rgba(184, 142, 86, 0.6);
  border-radius: 2px;
  padding: 1px 6px;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.neighborhood-slot-zone.slot-empty:hover .slot-ground-action {
  background: var(--gold-bright);
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(207, 138, 48, 0.8);
}

/* Slot occupé : le sprite isométrique est érigé sur la dalle */
.neighborhood-slot-zone.slot-occupied {
  width: 135px;
  height: 125px;
}

.slot-building-sprite {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  transition: filter 0.2s;
  pointer-events: none;
}

.neighborhood-slot-zone.slot-occupied:hover {
  transform: translate(-50%, -54%) scale(1.1);
  z-index: 40;
}

.neighborhood-slot-zone.slot-occupied:hover .slot-building-sprite {
  filter: drop-shadow(0 0 16px rgba(207, 138, 48, 0.85)) brightness(1.12);
}

.slot-badge-crown {
  position: absolute;
  top: 4px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #337f66 0%, #153b2e 100%);
  border: 1.5px solid var(--gold-highlight);
  color: #fff;
  font-family: 'Limelight', serif;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.9);
  pointer-events: none;
}

.slot-name-tag {
  position: absolute;
  bottom: 2px;
  background: rgba(8, 12, 11, 0.94);
  border: 1px solid var(--gold-primary);
  border-radius: 3px;
  padding: 1px 7px;
  font-family: 'Limelight', serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-highlight);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.85);
  pointer-events: none;
}

.slot-construction-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(16, 12, 8, 0.92);
  border: 1px solid #cf8a30;
  border-radius: 4px;
  padding: 4px 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.9);
  pointer-events: none;
}

.slot-construction-title {
  font-family: 'Limelight', serif;
  font-size: 10px;
  font-weight: 800;
  color: #d8a15a;
}

/* ==========================================================================
   MODALE DE SÉLECTION DE CONSTRUCTION POUR PARCELLE DU QUARTIER
   ========================================================================== */
.plot-buildings-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.plot-choice-card {
  background: linear-gradient(180deg, #211d17 0%, #100d0a 100%);
  border: 1.5px solid #423728;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plot-choice-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 12px rgba(184, 142, 86, 0.4);
}

.plot-choice-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.plot-choice-title {
  font-family: 'Limelight', serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-highlight);
  text-align: center;
  margin-bottom: 4px;
}

.plot-choice-desc {
  font-size: 10px;
  color: #bbb;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 8px;
  flex: 1;
}

.plot-choice-cost {
  font-size: 9.5px;
  color: #f9d6d2;
  background: rgba(0,0,0,0.5);
  border-radius: 2px;
  padding: 3px 6px;
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 8px;
}
.plot-choice-cost .res-ico { margin-right: 2px; }

.btn-plot-build-select {
  width: 100%;
  background: linear-gradient(180deg, #399375 0%, #205745 100%);
  border: 1px solid #ee958c;
  color: #fff;
  font-family: 'Limelight', serif;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 0;
  border-radius: 2px;
  cursor: pointer;
}

.btn-plot-build-select:hover {
  filter: brightness(1.2);
}
