:root {
  --black: #17252A;
  --white: #FEFFFF;
  --light-blue: #DEF2F1;
  --blue: #3AAFA9;
  --dark-blue: #2B7A78;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: center; /* center text-based elements */
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;  /* horizontally center child elements */
  justify-content: center;
}

/* Make all headings white */
h1, h2, h3 {
  color: var(--white);
  text-align: center;
}

/* Suggested Cities container */
.city-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 30px;
  background-color: var(--light-blue);
  border-radius: 12px;
  margin: 20px auto;
  width: 95%;             /* spans across almost entire page */
  max-width: 1200px;      /* keeps it neat on large screens */
  box-sizing: border-box;
}

/* City buttons */
.city-list button {
  background-color: var(--blue);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: bold;
  padding: 16px 32px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.city-list button:hover {
  background-color: var(--dark-blue);
  transform: scale(1.05);
}
.popular-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center cards in row */
  gap: 20px;
}

/* Itinerary Table */
.itinerary {
  width: 95%;                /* same width as city-list */
  max-width: 1200px;         /* keeps it neat */
  margin: 20px auto;         /* center it */
  border-collapse: collapse; /* clean borders */
  background-color: var(--light-blue);
  border-radius: 12px;
  overflow: hidden;          /* ensures corners round properly */
  text-align: center;        /* center-align all text */
}

.itinerary {
  width: 95%;
  max-width: 1200px;
  margin: 20px auto;
  border-collapse: collapse;
  background-color: var(--light-blue);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  table-layout: fixed; /* ensures equal-width columns */
}

.itinerary th, .itinerary td {
  border: 1px solid var(--dark-blue); /* clear column & row divisions */
  padding: 14px;
  font-size: 1.1rem;
}

.itinerary th {
  background-color: var(--blue);
  color: var(--white);
  font-size: 1.2rem;
}
#snackbar {
  visibility: hidden; /* hidden by default */
  min-width: 250px;
  background-color: var(--white);
  color: var(--black);
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  left: 50%;
  bottom: 30px;
  font-size: 16px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  transform: translateX(-50%); /* ✅ always stays centered */
}

/* Show + animate */
#snackbar.show {
  visibility: visible;
  animation: shake 0.3s ease-in-out 3, fadeout 0.5s ease 2.5s forwards;
}

/* Shake only moves left-right, NOT messing with center */
@keyframes shake {
  0% { transform: translateX(-50%) translateX(0); }
  25% { transform: translateX(-50%) translateX(-10px); }
  50% { transform: translateX(-50%) translateX(10px); }
  75% { transform: translateX(-50%) translateX(-10px); }
  100% { transform: translateX(-50%) translateX(0); }
}

/* Fade out */
@keyframes fadeout {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

.hero {
  width: 100%;
  height: 300px;                 /* fixed banner height */
  background-size: cover;        /* crop, don’t stretch */
  background-position: center;   /* always crop from the center */
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  color: var(--white);           /* use your theme’s white */
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6); /* keeps text readable on bright images */
  margin: 0;
}
.add-day-btn {
  display: block;
  margin: 20px auto;
  background-color: var(--blue);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.add-day-btn:hover {
  background-color: var(--dark-blue);
  transform: scale(1.05);
}