/* Barcelona Reisgids CSS */
:root {
  --primary-color: #e73c7e;
  --secondary-color: #23a6d5;
  --accent-color: #ffdd57;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

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

header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem 0;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

nav {
  background-color: var(--dark-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  transition: background-color 0.3s;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

section {
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}

section:last-child {
  border-bottom: none;
}

h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

h3 {
  color: var(--secondary-color);
  margin: 1.5rem 0 1rem;
  font-size: 1.5rem;
}

h4 {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-top: 0;
}

.highlight {
  background-color: var(--accent-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.map-container {
  height: 500px;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.tab-container {
  margin: 2rem 0;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab-button {
  background-color: #f1f1f1;
  border: none;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bold;
}

.tab-button:hover {
  background-color: #ddd;
}

.tab-button.active {
  background-color: var(--secondary-color);
  color: white;
}

.tab-content {
  display: none;
  padding: 1.5rem;
  background-color: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
  display: block;
}

.day-schedule {
  margin-bottom: 2rem;
}

.day-schedule h3 {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.schedule-item {
  display: flex;
  margin: 1rem 0;
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
}

.schedule-time {
  min-width: 80px;
  font-weight: bold;
}

.attraction-card, .restaurant-card {
  border-left: 4px solid var(--primary-color);
}

.restaurant-card {
  border-left-color: var(--secondary-color);
}

footer {
  background-color: var(--dark-bg);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    height: 300px;
  }
}
