@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@400;500&display=swap');

/* Root variables for colors */
:root {
  --primary: #8B0000; /* Deep red for buttons/accents */
  --secondary: #000000; /* Black for headers/backgrounds */
  --accent: #C0C0C0; /* Chrome silver for highlights */
  --background: #F5F5F5; /* Off-white for body */
  --text: #333333; /* Dark gray for readability */
  --white: #FFFFFF; /* Pure white for contrast */
}

/* Global styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  color: var(--secondary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Navbar */
.navbar {
  background-color: var(--secondary);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-logo {
  max-height: 50px;
}

.navbar-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.navbar-links a {
  color: var(--white);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  position: relative;
  transition: color 0.3s;
}

.navbar-links a:not(:last-child)::after {
  content: '|';
  color: var(--accent);
  position: absolute;
  right: -13px;
}

.navbar-links a:hover {
  color: var(--accent);
}

/* Hero section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/Ritas Road Photo1.jpg');
  background-size: cover;
  background-position: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: var(--white);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 600px;
}

/* Buttons */
.button {
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-transform: uppercase;
}

.button:hover {
  background-color: var(--secondary);
  transform: scale(1.05);
}

/* Content sections */
.section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section h2 {
  margin-bottom: 20px;
}

/* Planner page */
#container {
  display: flex;
  min-height: calc(100vh - 80px);
}

#controls {
  width: 300px;
  padding: 20px;
  background-color: var(--white);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

#map {
  flex-grow: 1;
  min-height: 400px;
}

.controls-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

#start-over {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

#start-over:hover svg {
  stroke: var(--primary);
}

.route-input-group {
  display: flex;
  align-items: center;
  margin: 8px 0;
  background-color: var(--white);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 5px;
}

.route-input-group.dragging {
  opacity: 0.5;
  background-color: #f0f0f0;
}

.drag-handle {
  cursor: move;
  padding: 0 10px;
  color: var(--text);
}

.route-input {
  flex-grow: 1;
  border: none;
  padding: 10px;
  font-family: 'Roboto', sans-serif;
  background-color: transparent;
}

.route-input:focus {
  outline: none;
}

.stop {
  background-color: #FFF8E1;
}

.add-stop-button {
  background-color: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px;
  margin: 10px 0;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
}

.add-stop-button:hover {
  background-color: var(--primary);
  color: var(--white);
}

.options {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.option-toggle {
  background: none;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
}

.option-toggle.active {
  background-color: var(--primary);
  border-color: var(--primary);
}

.option-toggle.active svg {
  stroke: var(--white);
}

.option-toggle:hover svg {
  stroke: var(--primary);
}

#route-info, #directions {
  margin-top: 20px;
  font-size: 0.9rem;
}

#directions h3 {
  font-size: 1.1rem;
}

#directions ol {
  padding-left: 15px;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  border-collapse: collapse;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pricing-table th, .pricing-table td {
  padding: 15px;
  border: 1px solid var(--accent);
  text-align: center;
  width: 50%;
}

.pricing-table th {
  background-color: var(--secondary);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
}

.pricing-table td {
  font-size: 1rem;
}

.pricing-table tr:nth-child(even) {
  background-color: #F9F9F9;
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: var(--accent);
  padding: 20px;
  text-align: center;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  text-decoration: underline;
}

/* Styles for side-by-side buttons with increased spacing */
.button-container {
  display: flex;
  gap: 60px;
  justify-content: center;
  margin-top: 20px;
}

/* Style for user display name in navbar */
.user-display {
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  margin-right: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero {
    min-height: 150px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .navbar {
    flex-direction: column;
    gap: 10px;
  }
  .navbar-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .navbar-links a:not(:last-child)::after {
    content: none;
  }
  #container {
    flex-direction: column;
  }
  #controls {
    width: 100%;
    max-height: 50vh;
  }
  #map {
    height: 50vh;
  }
  .pricing-table th, .pricing-table td {
    padding: 10px;
    font-size: 0.9rem;
    width: auto;
  }
}