/* Disney Trip Planner - Shared Styles */
:root {
  --bg: #1a1a2e;
  --header: #16213e;
  --accent: #e94560;
  --gold: #f5d76e;
  --text: #eee;
  --card-bg: #16213e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  position: sticky;
  top: 0;
  background: var(--header);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 70px;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold);
  margin-right: 30px;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s;
}

nav a:hover {
  background: rgba(233, 69, 96, 0.2);
  color: var(--accent);
}

nav a.active {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), url('https://picsum.photos/id/1015/2000/800') center/cover;
  color: white;
  text-align: center;
  padding: 120px 20px 80px;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 10px;
  color: var(--gold);
}

.hero p.subtitle {
  font-size: 1.4rem;
  margin: 0;
  color: #ddd;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

section {
  margin-bottom: 60px;
}

h2 {
  color: var(--gold);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.ride-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.ride-card:hover {
  transform: translateY(-8px);
}

.ride-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ride-card .content {
  padding: 20px;
}

.ride-card h3 {
  margin: 0 0 8px;
  color: var(--accent);
}

.height-badge {
  display: inline-block;
  background: #f5d76e;
  color: #16213e;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
  margin-left: 8px;
}

.itinerary-preview {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin: 15px 0;
}

.stop-card {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
}

.stop-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
}

.stop-card.ride::before { background: #e94560; }
.stop-card.food::before { background: #f39c12; }
.stop-card.show::before { background: #9b59b6; }
.stop-card.rest::before { background: #3498db; }

.stop-card .number {
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
  flex-shrink: 0;
  margin: 20px 0 20px 20px;
}

.stop-card .details {
  flex: 1;
  padding: 18px 10px 18px 0;
}

.stop-card .details h4 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.stop-card .details .area {
  font-style: italic;
  color: #aaa;
  margin-bottom: 8px;
}

.stop-card .photo {
  width: 140px;
  height: 120px;
  flex-shrink: 0;
  background: #333;
  margin: 15px 15px 15px 0;
  border-radius: 8px;
  object-fit: cover;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 95%;
  max-width: 1100px;
  background: #16213e;
  border-radius: 12px;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 15px 25px;
  border-bottom: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  color: #eee;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 10px;
}

.leaflet-container {
  flex: 1;
}

.collapsible {
  background: #16213e;
  border: 1px solid #444;
  border-radius: 8px;
  margin-top: 30px;
}

.toggle-btn {
  width: 100%;
  padding: 15px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #444;
}

th {
  background: #1a1a2e;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .card-grid { grid-template-columns: 1fr; }
  nav ul { gap: 10px; font-size: 0.9rem; }
  .stop-card { flex-direction: column; }
  .stop-card .photo { width: 100%; height: 160px; margin: 0; border-radius: 0; }
}