/* Indy YMCA Pool Times - Styles */

:root {
  --primary: #0066cc;
  --primary-dark: #004499;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --text: #333;
  --text-muted: #666;
  --text-disabled: #999;
  --border: #ddd;
  --success: #28a745;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding: 1rem;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Branch Selector / Map */
#branch-selector {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#map {
  height: 300px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

#map .leaflet-interactive {
  cursor: pointer;
}

#disabled-branches-info {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-disabled);
  font-style: italic;
}

#disabled-branches-info:empty {
  display: none;
}

/* Schedule */
#schedule-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.loading, .error, .no-selection {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.error {
  color: #dc3545;
}

.day-section {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.day-header {
  font-size: 1.25rem;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 10;
  margin: -1rem -1rem 1rem -1rem;
  padding: 1rem 1rem 0.5rem 1rem;
}

.branches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


.branch-column {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  width: 200px;
  flex-shrink: 0;
}

.branch-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.branch-name a {
  color: inherit;
  text-decoration: none;
}

.branch-name a:hover {
  color: var(--primary);
}

.no-sessions {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.session-list {
  list-style: none;
}

.session {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--bg);
  font-size: 0.85rem;
}

.session:last-child {
  border-bottom: none;
}

.session.closed {
  opacity: 0.5;
}

.session.closed .time,
.session.closed .lanes {
  color: var(--text-disabled);
}

.time {
  font-weight: 500;
  color: var(--text);
}

.lanes {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Footer */
footer {
  margin-top: 2rem;
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 1.4rem;
  }

  .branches-grid {
    flex-direction: column;
  }

  .branch-column {
    width: 100%;
  }
}
