/* =====================================
   Locations — Lina Style
   Uses shared .screenplay-page / .screenplay-header / .screenplay-canvas
   ===================================== */

/* Page overrides — borderless, transparent canvas */
.locations-page {
  border-width: 0px !important;
}

.locations-header {
  border-bottom: 0px !important;
}

/* Section header icon & title */
.locations-header .locations-header-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-muted) 100%);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.locations-header .locations-header-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.locations-header .locations-header-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

/* Canvas area */
.locations-canvas {
  background: transparent !important;
  border-width: 0px;
}

/* Tool buttons */
.locations-header .tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.locations-header .tool-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===============================
   LOCATIONS TABLE
   =============================== */

.loc-table {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.loc-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 70px 110px 100px;
  gap: 12px;
  padding: 10px 14px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.loc-row:last-child {
  border-bottom: none;
}

.loc-row-head {
  background: rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 8px 14px;
}

.loc-row:hover:not(.loc-row-head) {
  background: rgba(255, 255, 255, 0.02);
}

.loc-name-primary {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.loc-name-address {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.loc-scene-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.col-loc-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

/* ===============================
   LOCATION STATUS BADGES
   =============================== */

.status-scouting {
  background: rgba(52, 152, 219, 0.15);
  color: #5dade2;
}

.status-permit {
  background: rgba(230, 126, 34, 0.15);
  color: #e67e22;
}

.status-locked {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

/* status-pending, status-confirmed reused from castCrew.css */

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 768px) {
  .loc-row {
    grid-template-columns: 1fr 80px 100px;
    gap: 8px;
  }

  .col-loc-contact,
  .col-loc-actions {
    display: none;
  }

  .loc-row-head .col-loc-contact,
  .loc-row-head .col-loc-actions {
    display: none;
  }
}
