/* =========================
   Parks Page Styles (parks.css)
   ========================= */

/* ===== Parks Hero ===== */
.parks-hero {
  position: relative;
  width: 100%;
  height: 24vh;
  min-height: 286px;
  background-size: cover;
  background-position: center;
}
.parks-hero .hero-container { position: relative; height: 100%; }

/* Text bubble that fits its content */
.parks-hero .hero-text {
  position: absolute;
  bottom: 107px;
  max-width: 860px;
  display: inline-block;
  padding: 16px 22px;
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.20);
  color: var(--text);
  line-height: 1.2;
}
.parks-hero .hero-text.align-left  { left: 24px;  right: auto; text-align: left;  }
.parks-hero .hero-text.align-right { right: 24px; left:  auto; text-align: right; }

.parks-hero .hero-text h1 { font-size: 42px; margin-bottom: 10px; font-weight: 700; }
.parks-hero .hero-text p  { font-size: 18px; font-weight: 400; }

/* ===== Parks Search Box ===== */
.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; }
/* height, type, country, park, button */
.fields-row .cell:nth-child(1) { flex: 0 0 13%; }
.fields-row .cell:nth-child(2) { flex: 0 0 17%; }
.fields-row .cell:nth-child(3) { flex: 0 0 21%; }
.fields-row .cell:nth-child(4) { flex: 0 0 29%; }
.fields-row .cell-btn         { flex: 0 0 10%; 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; }

/* Button */
.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); }

/* ===== Results Section ===== */
.parks-results { padding: 80px 0 60px; }   /* top space before results */

.parks-results .container {
  position: relative; /* NEW! Needed for absolute icon placement */
}

#results-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}


/* Align view icons within results-header container */
.view-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 10;
  margin-right: 24px; /* matches container padding */
}

/* Hover and sizing stay the same */
.view-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: opacity 0.2s;
}

/* Icon size/hover */
.view-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: opacity .2s;
}
.view-icon:hover { opacity: .75; }

/* Hidden by default until search runs */
.hidden {
  display: none !important;
}

/* ===== Results Header & Grid (Aligned with Search Box Width) ===== */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;

  /* 👇 Match width and centering of results container */
  max-width: var(--site-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.results-grid .park-card {
  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);
}
.results-grid .park-card:hover { transform: translateY(-8px); }
.results-grid .park-card .image-wrapper {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  margin: -2px -2px 0 -2px;
}
.results-grid .park-card img {
  width: 100%;
  height: 187px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
.results-grid .park-card .flag-badge {
  position: absolute;
  top: -2px;
  left: 5px;
  font-size: 43px;
}
.results-grid .park-card .park-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.results-grid-header {
  display: flex;
  justify-content: flex-end; /* align to right edge of grid */
  margin-bottom: 12px;
}
.results-grid .park-card-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; text-align: left; }
.results-grid .park-card-content .location { font-size: 14px; color: var(--muted); margin-bottom: 10px; text-align: left; }
.results-grid .park-card-content .rides { font-size: 14px; font-weight: 500; color: var(--brand-dark); text-align: center; margin-bottom: 12px; }

/* Center the Buy button only */
.results-grid .park-card-content .buy-btn {
  display: flex;
  justify-content: center;
  margin: 12px auto 0;
  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%);
}
.results-grid .park-card-content .buy-btn:hover { transform: translateY(-2px); }

/* ===== Pagination ===== */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pagination button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand);
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.pagination button.active,
.pagination button:hover { background: var(--brand); color: #fff; }

/* ===== Modal (match home) ===== */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); justify-content: center; align-items: center; }
.modal-content {
  position: relative;
  background: #fff;
  padding: 0;
  border-radius: 12px;
  width: auto;
  max-width: 900px;
  min-width: 500px;
  max-height: 80vh;
  overflow-y: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.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;
  transition: background 0.2s;
  z-index: 10;
}
.modal .close:hover { background: rgba(0, 0, 0, 0.1); }
#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);
  width: auto;
  max-width: 600px;
  white-space: normal;
}
.rides-table td.ride-min,
.rides-table td.ride-max {
  text-align: center;
  color: #40768e;
  font-weight: 500;
  width: 100px;
}

/* Placeholder style */
select.is-placeholder {
  color: #9ca3af;
}

/* ===== Modern Pagination Styling ===== */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  gap: 10px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

/* Boxed numbered buttons */
.pagination-btn {
  background: #fff;
  border: 1px solid var(--brand);
  border-radius: 10px;
  color: var(--brand);
  padding: 8px 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
}

.pagination-btn:hover {
  background: var(--brand);
  color: #fff;
}

.pagination-btn.active {
  background: var(--brand);
  color: #fff;
}

/* Make arrow buttons standalone (no box) */
.pagination-btn.first,
.pagination-btn.prev,
.pagination-btn.next,
.pagination-btn.last {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 20px;
  font-weight: bold;
  min-width: auto;
  padding: 0 6px;
  transition: color 0.2s ease;
}

.pagination-btn.first:hover,
.pagination-btn.prev:hover,
.pagination-btn.next:hover,
.pagination-btn.last:hover {
  color: var(--brand-dark);
}

/* Disabled state for all buttons */
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Summary text */
.pagination-summary {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
/* ===== Individual Park Landing Page Hero ===== */
.park-hero {
  padding: 16px;
}

.park-hero .hero-bg {
  position: relative;
  width: 100%;
  height: 24vh;
  min-height: 286px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.park-hero .hero-text h1 {
  font-size: 42px;
  margin-bottom: 10px;
  font-weight: 700;
}

.park-hero .hero-text p {
  font-size: 18px;
  font-weight: 400;
}

/* ===== Park Page Content Containers ===== */
.content-container {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 40px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.content-container h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text);
}

.content-container p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
}

.content-container .buy-btn {
  display: inline-block;
  margin-top: 10px;
}

/* ===== Park Hero Text Container (Exact Same as About Section) ===== */

.park-hero-text .content-container {
  /* No extra overrides — inherits all .content-container styles */
  text-align: left;
}

.park-hero-text h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text);
}

.park-hero-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

/* ===== Unified Vertical Spacing for Park Landing Pages ===== */

/* Step 1: remove all inconsistent margins first */
.park-hero,
.park-hero-text,
.park-info,
.park-rides,
.park-map {
  margin: 0;
  padding: 0;
}

/* Step 2: apply consistent top spacing between each stacked section */
.park-hero + .park-hero-text,
.park-hero-text + .park-info,
.park-info + .park-rides,
.park-rides + .park-map {
  margin-top: 24px;   /* exact equal gap between sections */
}

/* Step 3: consistent bottom breathing space for the last section */
.park-map {
  margin-bottom: 60px;
}

/* Step 4: ensure all inner content containers have matching padding */
.park-hero-text .content-container,
.park-info .content-container,
.park-rides .content-container,
.park-map .content-container {
  padding: 40px 24px;
}

/* Optional (Step 5): make gaps slightly smaller on mobile */
@media (max-width: 768px) {
  .park-hero + .park-hero-text,
  .park-hero-text + .park-info,
  .park-info + .park-rides,
  .park-rides + .park-map {
    margin-top: 32px;
  }

  .park-map {
    margin-bottom: 40px;
  }
}

/* ===== Park Landing Page: Tickets & Info Button ===== */
.park-info .buy-btn {
  display: inline-block;
  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%);
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.park-info .buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.park-map h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text);
}

.park-map p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

/* ===== Fix Uneven Vertical Gaps (from header to sections) ===== */

/* 1. Remove top padding from all nested containers inside park sections */
.park-hero .container,
.park-hero-text .container,
.park-info .container,
.park-rides .container,
.park-map .container {
  padding-top: 0;
}

/* 2. Reset margins globally for consistency */
.park-hero,
.park-hero-text,
.park-info,
.park-rides,
.park-map {
  margin-top: 0;
}

/* 3. Add explicit, equal section spacing */
.park-hero + .park-hero-text,
.park-hero-text + .park-info,
.park-info + .park-rides,
.park-rides + .park-map {
  margin-top: 24px; /* equal 24px between all sections */
}

/* 4. Add bottom gap after last section */
.park-map {
  margin-bottom: 60px;
}

/* ===== Ride Height Filter Controls ===== */
.ride-filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.height-input {
  flex: 0 0 160px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.filter-btn {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-btn:hover {
  background: var(--brand-dark);
}

.clear-btn {
  background: none;
  color: var(--brand);
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.2s;
}

.clear-btn:hover {
  opacity: 0.7;
}
/* ===== Ride Summary Text ===== */
.ride-summary {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin: 10px 0;
  text-align: left;
}

/* ===== Add top gap between header and first hero section ===== */
.site-header {
  margin-bottom: 24px; /* match your section gap */
}

/* ===== Hero Flex Layout ===== */
.hero-flex {
  display: flex;
  justify-content: flex-start;   /* move everything left */
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;                     /* small spacing between tagline and button */
}

.hero-buy-btn {
  position: relative;
  padding: 19px 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  color: #fff;
  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%);
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* 👇 Move controls */
  top: -27px;         /* move up/down: negative = up, positive = down */
  left: 82px;        /* move left/right: negative = left, positive = right */
}

/* ===== Fix Buy Button Position Inside Flex Layout ===== */
.hero-flex .hero-buy-btn {
  position: static; /* disables top/left manual offsets */
  top: auto;
  left: auto;
  margin-left: auto; /* pushes it to the right edge within flex */
  align-self: center; /* keeps it vertically aligned with text */
}

.hero-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ===== About Section Text ===== */
.desc-intro {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

.desc-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.95;
}

/* =======================================================
   Map View (Standalone — No Shared Styles)
   ======================================================= */

   .map-view-wrapper {
    position: relative;
    max-width: var(--site-width);
    margin: 20px auto 0;   /* 20px to match .results-grid margin-top */
    padding: 0 0px;       /* aligns left/right with container content */
    z-index: 1;
  }

/* Keep consistent card-style feel */
.map-view-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid var(--brand);
}

/* Map itself matches card grid width and visual area */
.map-view {
  width: 100%;
  height: 75vh;   /* same perceived area as full results grid */
  border-radius: 16px;
}
  
  .map-view-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .map-view-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  
  .map-view {
    width: 100%;
    height: 80vh;
    border-radius: 16px;
  }
  
/* Easily adjustable controls */
:root {
  --map-modal-width: 520px;   /* adjust modal width */
  --map-modal-height: auto;   /* or 560px if you want fixed height */
}

  .map-view-modal-overlay {
    position: absolute;       /* stays inside map container */
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.45);
  }
  
  .map-view-modal-overlay.active {
    display: flex;
  }
  
  .map-view-modal-content {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: var(--map-modal-width);
    height: var(--map-modal-height);
    max-width: 95%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    text-align: left;
    overflow: hidden;
    z-index: 2100;
    transform: none;
    margin: 0 auto;
  }
  
  
  .map-view-modal-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .map-view-modal-body {
    padding: 24px;
  }
  
  .map-view-modal-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
  }
  
  .map-view-modal-body p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 12px;
  }
  
  .map-view-modal-body .buy-btn {
    display: inline-block;
    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%);
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .map-view-modal-body .buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  }
  .map-view-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;
    transition: background 0.2s;
    z-index: 2200;
  }
  
  .map-view-close:hover {
    background: rgba(0, 0, 0, 0.1);
  }

  #results-grid, #map-view-wrapper {
    transition: opacity 0.3s ease;
  }

  /* ===== Park Card Ride Info Alignment Fix ===== */
  .results-grid .park-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .results-grid .ride-info-block {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left; /* park name + location stay left-aligned */
  }

  .results-grid .ride-info-block h3,
  .results-grid .ride-info-block .location {
    text-align: left;
    margin-left: 0;
  }

  .results-grid .ride-summary {
    font-size: 15px;
    font-weight: 500;
    color: #40768e; /* now matches footer text colour */
    text-align: center;
    margin-top: auto;
    margin-bottom: 8px;
    cursor: pointer;
  }
.results-grid .card-footer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Soft red styling for unavailable rides in modal */
.rides-table tr.unavailable td {
  color: #c45b5b; /* soft red */
  opacity: 0.8;
}

/* ==== Map modal (final authoritative) ==== */
.map-view-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
}

.map-view-modal-overlay.active {
  display: flex;
}

.map-view-modal-content {
  background: #fff;
  border-radius: 18px;
  width: 90%;
  max-width: 443px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  text-align: left;
  overflow: hidden;
  z-index: 2100;
  margin: 0 auto;
  position: relative;
}

.map-view-close {
  z-index: 2200;
}

/* ===== Map modal layout ===== */
.map-modal-image-wrapper {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  margin: -2px -2px 0 -2px;
}

.map-modal-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.map-modal-details {
  padding: 24px;
  text-align: left;
}

.map-modal-details .ride-summary {
  font-size: 15px;
  font-weight: 500;
  color: #40768e;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 12px;
}

/* ===== Map Modal Styling ===== */
.map-view-modal-overlay {
  display: none;
  position: absolute; /* stays inside map container */
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.map-view-modal-overlay.active {
  display: flex;
}

.map-view-modal-content {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: 90%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  text-align: left;
  overflow: hidden;
  z-index: 2100;
}

.map-modal-image-wrapper {
  overflow: hidden;
}

.map-modal-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.map-modal-details {
  padding: 24px;
}

.map-modal-details h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.map-modal-details p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
}

.map-modal-details .ride-summary {
  font-size: 15px;
  font-weight: 500;
  color: #40768e;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 8px;
  cursor: pointer;
}

.map-modal-details .buy-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 4px;
  padding: 10px 18px;            /* narrower button */
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  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%);
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: fit-content;             /* stops full-width expansion */
  min-width: 140px;               /* consistent minimum width */
}

.map-modal-details .buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* ===== Park Hero Flex Layout (Buy Button Aligned Right) ===== */
.hero-flex {
  display: flex;
  justify-content: space-between;   /* spreads left & right evenly */
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}

.hero-text-left {
  flex: 1 1 auto;
  min-width: 240px;
}

.hero-text-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 24px; /* consistent right gap matching container padding */
}

/* ===== Buy Button Styling (Hero) ===== */
.hero-buy-btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  color: #fff;
  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%);
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.hero-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text-right {
    margin-right: 0;
    width: 100%;
    justify-content: flex-start;
    margin-top: 12px;
  }

  .hero-buy-btn {
    width: auto;
  }
}