/* Settlements (public/worldmap-settlements.js): neighbouring Towns of one
   owner become one village, neighbouring Forts are joined by a wall. */

.worldmap-settle-layer {
  position: absolute;
  pointer-events: none;
  /* Terrain layer, like the sea canvas: under the territory fill and banner
     (z-index -1) and under every hex (tint, castle, badges). */
  z-index: -2;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Village hexes other than the landmark draw houses instead of repeating the
   Town picture. */
.worldmap-hex-settle-house .worldmap-hex-castle {
  display: none;
}

/* The strong Town tint would wash the houses out; keep a hint of the owner
   colour so the village still reads as theirs. */
.worldmap-hex-settle-house .hex-overlay,
.worldmap-hex-settle-landmark .hex-overlay {
  opacity: 0.25 !important;
}

/* Inside a joined block the per-hex border would cut every wall and road at
   the seam. */
.worldmap-hex-settled {
  border-color: transparent;
}

/* Overview mode keeps one castle per territory; a village keeps its own
   landmark too, or its centre would be an empty plaza. */
.worldmap-blobs-on .worldmap-hex-owned.worldmap-hex-settle-landmark .worldmap-hex-castle {
  opacity: 1;
}
