/* ===== Hero (homepage) ===== */
.hero {
  position: relative;
  width: 100%;
  height: 49vh;
  min-height: 502px;
  background-size: cover;
  background-position: center;
}

.hero-container {
  position: relative;
  height: 100%;
}

.hero-text {
  position: absolute;
  bottom: 160px;
  left: 24px;
  right: 24px;
  max-width: 604px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  line-height: 1.2;
}

/* independent width controls */
.hero-text h1 {
  font-size: 56px;
  margin-bottom: 12px;
  font-weight: 700;
  max-width: var(--hero-h1-width, 604px); /* adjustable width */
}

.hero-text p {
  font-size: 20px;
  opacity: .95;
  font-weight: 400;
  max-width: var(--hero-p-width, 460px);  /* adjustable width */
}

/* Example defaults */
:root {
  --hero-h1-width: 604px;
  --hero-p-width: 460px;
}

/* ===== Search Box (homepage) ===== */
.search-overlap { margin-top: -70px; position: relative; z-index: 10; }
.search-box.glass-bordered {
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid var(--brand);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}
.fields-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 2%;
  align-items: center;
}
.fields-row .cell { flex: 1; }
.fields-row .cell:nth-child(1) { flex: 0 0 20%; }
.fields-row .cell:nth-child(2) { flex: 0 0 26%; }
.fields-row .cell:nth-child(3) { flex: 0 0 36%; }
.fields-row .cell-btn { flex: 0 0 12%; display: flex; align-items: center; }
.fields-row input,
.fields-row select {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: var(--field-padding-y) 16px;
  font-size: 15px;
  background: rgba(255,255,255,0.78);
  transition: outline .2s, background .2s, color .2s;
}
.fields-row input::placeholder { color: #9ca3af; }
.fields-row input:focus,
.fields-row select:focus { outline: 2px solid var(--brand); background: #fff; }
.fields-row .btn-primary {
  width: 100%;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: var(--field-padding-y) 22px;
  color: #fff;
  border: 2px solid transparent;
  background-image: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.fields-row .btn-primary:hover { transform: translateY(-1px); }

/* ===== Why Section ===== */
.why { padding: 60px 0; background: #fff; text-align: center; }
.why h2 { margin-bottom: 40px; font-size: 28px; font-weight: 600; }
.why-icons { display: flex; justify-content: center; gap: 80px; }
.why-item { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 220px; }
.why-icon { width: 64px; height: auto; }
.why-item p { font-size: 18px; font-weight: 500; color: var(--text); }

/* ===== Popular Parks Carousel ===== */
.popular-parks { padding: 70px 0; background: #f9fafb; text-align: center; }
.popular-parks h2 { font-size: 28px; font-weight: 600; margin-bottom: 26px; }
.carousel { display: flex; gap: 20px; scroll-behavior: smooth; overflow-x: auto; padding-top: 10px; }
.park-card {
  flex: 0 0 calc(25% - 15px);
  background: rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid var(--brand);
}
.park-card:hover { transform: translateY(-8px); }
.park-card .image-wrapper { position: relative; overflow: hidden; border-top-left-radius: 14px; border-top-right-radius: 14px; }
.park-card img { width: 100%; height: 160px; object-fit: cover; }
.flag-badge { position: absolute; top: -2px; left: 5px; font-size: 43px; }
.park-card-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; }
.park-card-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; text-align: left; }
.park-card-content .location { font-size: 14px; color: var(--muted); margin-bottom: 10px; text-align: left; }
.park-card-content .rides { font-size: 14px; font-weight: 500; color: var(--brand-dark); text-align: center; margin-bottom: 12px; }
.park-card-content .buy-btn {
  display: inline-block; margin: 0 auto; margin-top: auto;
  padding: var(--field-padding-y) 22px;
  font-size: 14px; font-weight: 600; border-radius: 12px;
  color: #fff; text-align: center;
  background-image: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.park-card-content .buy-btn:hover { transform: translateY(-2px); }

/* ===== Carousel Arrows ===== */
.carousel-controls { margin-top: 14px; display: flex; justify-content: center; gap: 12px; }
.carousel-btn { background: var(--brand); color: #fff; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 20px; }
.carousel-btn:hover { background: var(--brand-dark); }

/* ===== Modal ===== */
.modal { display: none; position: fixed; z-index: 1000; inset: 0; background: rgba(0,0,0,0.6); justify-content: center; align-items: center; }
.modal-content { position: relative; background: #fff; border-radius: 12px; max-width: 900px; min-width: 500px; max-height: 80vh; overflow-y: auto; }
.modal .close { position: absolute; top: 12px; right: 16px; font-size: 24px; font-weight: bold; color: #40768e; cursor: pointer; background: rgba(255,255,255,0.9); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }

/* ===== Rides Modal (detailed styling) ===== */
#modal-title {
    background: #fff;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid #ddd;
    text-align: center;
  }
  
  .rides-table-wrapper {
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .rides-table {
    border-collapse: collapse;
    margin-top: 0;
    font-size: 14px;
    width: 100%;
    table-layout: auto;
  }
  
  .rides-table thead th {
    position: sticky;
    top: 0;
    background: #f9fafb;
    z-index: 2;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    border-bottom: 2px solid #ddd;
    color: #000;
  }
  
  .rides-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    white-space: nowrap;
  }
  
  .rides-table td.ride-name {
    text-align: left;
    font-weight: 500;
    color: var(--text);
    max-width: 600px;
    white-space: normal;
  }
  
  .rides-table td.ride-min,
  .rides-table td.ride-max {
    text-align: center;
    color: #40768e; /* footer blue */
    font-weight: 500;
    width: 100px;
  }

  .site-footer {
    margin-top: auto;
  }