/* Tile and Property Styles */

.cell {
  width: 100%;
  height: 100%;
  color: var(--board-edge);
  background: var(--tile-bg);
  border-radius: 8px;
  border: 2px solid rgba(0,0,0,0.12);
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  text-align: center;
  flex-direction: column;
  padding: 16px 6px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.02);
  box-sizing: border-box;
}

.cell::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 13%;
  border-radius: 6px 6px 0 0;
  background-color: transparent;
  z-index: 0;
}

.cell:hover {
  transform: translateY(-6px) scale(1.03);
  background-color: #fff8ef;
  z-index: 220;
  box-shadow: 0 12px 26px rgba(0,0,0,0.32);
}

.active-tile {
  transform: translateY(-6px) scale(1.03);
  z-index: 220;
  box-shadow: 0 12px 28px rgba(0,0,0,0.38);
}

.board .cell { z-index: 1; position: relative; }
.board .cell.active-tile { z-index: 200; }

.property-name {
  display: block;
  font-weight: 700;
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 0.95rem;
  line-height: 1.05;
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.property-price {
  display: block;
  font-size: 0.82rem;
  color: #555;
  line-height: 1;
  position: relative;
  z-index: 3;
  pointer-events: none;
}

/* Building markers shown on tiles */

.cell .buildings {
  position: absolute;
  bottom: 4px;
  right: 6px;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  z-index: 10;
}

.cell .building-count {
  font-size: 0.78em;
  font-weight: 800;
  background: rgba(255,255,255,0.82);
  border-radius: 4px;
  padding: 0 3px;
  margin-bottom: 1px;
  margin-right: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  letter-spacing: 0.01em;
  min-width: 16px;
  text-align: right;
  user-select: none;
  line-height: 1.1;
}

/* Corner tiles */
.start { border-bottom-left-radius: 12px; }
.auction { border-bottom-right-radius: 12px; }
.jail { border-top-right-radius: 12px; }
.chance { border-top-left-radius: 12px; }

.corner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.corner:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.start {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.jail {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
}

.chance {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.auction {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
}

.corner .property-name {
  font-size: 16px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  margin-top: 8px;
  z-index: 3;
}

/* Grid positioning for tiles */
.start { grid-column: 1; grid-row: 8; }
.busan { grid-column: 1; grid-row: 7; }
.seoul { grid-column: 1; grid-row: 6; }
.bangalore { grid-column: 1; grid-row: 5; }
.harbor { grid-column: 1; grid-row: 4; }
.delhi { grid-column: 1; grid-row: 3; }
.mumbai { grid-column: 1; grid-row: 2; }
.chance { grid-column: 1; grid-row: 1; }
.manchester { grid-column: 2; grid-row: 1; }
.london { grid-column: 3; grid-row: 1; }
.vancouver { grid-column: 4; grid-row: 1; }
.taxi { grid-column: 5; grid-row: 1; }
.montreal { grid-column: 6; grid-row: 1; }
.toronto { grid-column: 7; grid-row: 1; }
.jail { grid-column: 8; grid-row: 1; }
.barcelona { grid-column: 8; grid-row: 2; }
.madrid { grid-column: 8; grid-row: 3; }
.beijing { grid-column: 8; grid-row: 4; }
.railroad { grid-column: 8; grid-row: 5; }
.shanghai { grid-column: 8; grid-row: 6; }
.chongqing { grid-column: 8; grid-row: 7; }
.auction { grid-column: 8; grid-row: 8; }
.osaka { grid-column: 7; grid-row: 8; }
.tokyo { grid-column: 6; grid-row: 8; }
.las-vegas { grid-column: 5; grid-row: 8; }
.airport { grid-column: 4; grid-row: 8; }
.los-angeles { grid-column: 3; grid-row: 8; }
.new-york { grid-column: 2; grid-row: 8; }

/* Country color bars */
.transport::before { background-color: rgb(85, 92, 159); }
.south-korea::before { background-color: rgb(126, 207, 126); }
.india::before { background-color: rgb(110, 197, 250); }
.united-kingdom::before { background-color: rgb(31, 77, 16); }
.canada::before { background-color: rgb(225, 62, 62); }
.spain::before { background-color: lightsalmon; }
.china::before { background-color: rgb(100, 1, 1); }
.japan::before { background-color: rgb(70, 5, 70); }
.united-states::before { background-color: navy; }

/* Full set ownership colors */
.cell.full-set-transport { background: rgba(85, 92, 159, 0.15); }
.cell.full-set-south-korea { background: rgba(126, 207, 126, 0.15); }
.cell.full-set-india { background: rgba(110, 197, 250, 0.15); }
.cell.full-set-united-kingdom { background: rgba(31, 77, 16, 0.15); }
.cell.full-set-canada { background: rgba(225, 62, 62, 0.15); }
.cell.full-set-spain { background: rgba(255, 160, 122, 0.15); }
.cell.full-set-china { background: rgba(100, 1, 1, 0.15); }
.cell.full-set-japan { background: rgba(70, 5, 70, 0.15); }
.cell.full-set-united-states { background: rgba(0, 0, 128, 0.15); }

.large-cell {
  grid-column: span 3;
  grid-row: span 3;
  background: linear-gradient(180deg,#e9f7ff,#dff0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
  width: 100%;
  height: 100%;
  color: var(--board-edge);
  border-radius: 12px;
  border: 2px solid rgba(0,0,0,0.08);
  padding: 12px;
  flex-direction: column;
}

.large-cell:hover {
  transform: none;
  background-color: lightblue;
}

/* Hover ticket styles */
.hover-ticket {
  position: fixed;
  width: 220px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  background: linear-gradient(180deg,#fffefc,#fbf9f5);
  z-index: 2000;
  pointer-events: none;
  transform-origin: bottom center;
  transition: transform 120ms ease, opacity 120ms ease;
}

.hover-ticket .ticket-top {
  height: 14px;
  width: 100%;
}

.hover-ticket .ticket-body {
  padding: 10px 12px;
}

.hover-ticket .ticket-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--board-edge);
}

.hover-ticket .ticket-stats { font-size: 0.88rem; color: #444; }
.hover-ticket .ticket-row { display:flex; justify-content:space-between; margin-bottom:4px; }
.hover-ticket .key { color: var(--muted); margin-right:8px; }
.hover-ticket .val { font-weight:700; color: var(--accent); }
