/* ──────────────────────────────── */
/* 🔹 Global Styles */
/* ──────────────────────────────── */
body {
  margin: 0;
  padding: 1rem;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  font-size: 1rem;
}

small {
  font-size: 0.85rem;
  color: #555;
}

/* ──────────────────────────────── */
/* 🔹 Buttons */
/* ──────────────────────────────── */
.link-button {
  display: inline-block;
  padding: 10px 16px;
  margin: 6px 4px;
  font-size: 1rem;
  background-color: #ef3d49; /* Crans red */
  color: white;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.link-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.link-button:active {
  background-color: #004080;
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

/* Back-to-top button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background: #f0f0f0;
  color: #333;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}

#back-to-top:hover {
  background: #ddd;
}

/* ──────────────────────────────── */
/* 🔹 Weather Table */
/* ──────────────────────────────── */
.weather-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 1rem;
}

.weather-table th,
.weather-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: center;
  word-wrap: break-word;
}

.weather-table th {
  background-color: #f4f4f4;
}

.weather-table td:first-child {
  white-space: normal;
  word-break: break-word;
  text-align: center;
}

/* ──────────────────────────────── */
/* 🔹 Slope Table */
/* ──────────────────────────────── */
.slope-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}

.slope-table th, 
.slope-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid #ccc;
  word-wrap: break-word;
}

.slope-table th {
  background-color: #f4f4f4;
}


/* ──────────────────────────────── */
/* 🔹 Itinerary Table */
/* ──────────────────────────────── */
.itinerary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}

.itinerary-table th, 
.itinerary-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid #ccc;
  word-wrap: break-word;
}

.itinerary-table th {
  background-color: #f4f4f4;
}

/* ──────────────────────────────── */
/* 🔹 Lift Table */
/* ──────────────────────────────── */
.lift-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}

.lift-table th, 
.lift-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid #ccc;
  word-wrap: break-word;
}

.lift-table th {
  background-color: #f4f4f4;
}

/* ──────────────────────────────── */
/* 🔹 Responsive Layout */
/* ──────────────────────────────── */
@media (max-width: 600px) {
  body {
    font-size: 1.1rem;
  }

  /* 📱 Slope table responsive */
  /*.slope-table,
  .slope-table thead,
  .slope-table tbody,
  .slope-table th,
  .slope-table td,
  .slope-table tr {
    display: block;
  }

  .slope-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 0.5rem;
  }

  .slope-table thead {
    display: none;
  }

  .slope-table td {
    position: relative;
    padding-left: 50%;
    word-break: break-word;
    min-height: 2.5em;
  }

  .slope-table td::before {
    content: attr(data-label);
    display: block;
    left: 1rem;
    font-weight: bold;
    text-transform: capitalize;
  }*/

  /* 📱 Itinerary table responsive */
/*  .itinerary-table,
  .itinerary-table thead,
  .itinerary-table tbody,
  .itinerary-table th,
  .itinerary-table td,
  .itinerary-table tr {
    display: block;
  }

  .itinerary-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 0.5rem;
  }

  .itinerary-table thead {
    display: none;
  }

  .itinerary-table td {
    position: relative;
    padding-left: 50%;
    word-break: break-word;
    min-height: 2.5em;
  }

  .itinerary-table td::before {
    content: attr(data-label);
    display: block;
    left: 1rem;
    font-weight: bold;
    text-transform: capitalize;
  } */

  /* 📱 Lift table responsive */
/*  .lift-table,
  .lift-table thead,
  .lift-table tbody,
  .lift-table th,
  .lift-table td,
  .lift-table tr {
    display: block;
  }

  .lift-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 0.5rem;
  }

  .lift-table thead {
    display: none;
  }

  .lift-table td {
    position: relative;
    padding-left: 50%;
    word-break: break-word;
    min-height: 2.5em;
  }

  .lift-table td::before {
    content: attr(data-label);
    display: block;
    left: 1rem;
    font-weight: bold;
    text-transform: capitalize;
  } */

  /* 📱 Weather table responsive */
  .weather-table,
  .weather-table thead,
  .weather-table tbody,
  .weather-table th,
  .weather-table td,
  .weather-table tr {
    display: block;
  }

  .weather-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 0.5rem;
  }

  .weather-table thead {
    display: none;
  }

  .weather-table td {
    position: relative;
    padding-left: 50%;
    word-break: break-word;
    min-height: 2.5em;
  }

  .weather-table td::before {
    content: attr(data-label);
    display: block;
    left: 1rem;
    font-weight: bold;
    text-transform: capitalize;
    white-space: normal;
    word-break: break-word;
    position: absolute;
  } 



  /* Buttons → neat two columns */
  .link-button {
    flex: 0 1 calc(49% - 9px);
    box-sizing: border-box;
  }
}

