/* General Resets */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Hero Section */
.hero {
  height: 75vh;
  overflow: hidden;
  position: relative;
  background: #000;
}

.hero-bg {
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.hero-content {
  max-width: 700px;
  padding: 2rem;
  border-radius: 1rem;
}

.park-hero-location {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  opacity: 0.95;
}

/* Buttons */
.hero-content .btn {
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  font-size: 1.1rem;
}

/* Section Headings */
h2 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

/* Quick Facts */
.bg-white .row p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.bg-white .row strong {
  display: block;
  font-size: 1.2rem;
}

.park-fact-card,
.park-fact-card-button {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(38, 37, 65, 0.09);
  background: #fff;
  border-radius: 14px;
  padding: 1rem 0.8rem;
  color: #262541;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.park-fact-card .material-icons,
.park-fact-card-button .material-icons {
  font-size: 1.35rem;
  color: #262541;
}

.park-fact-card strong,
.park-fact-card-button strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.park-fact-card span:last-child,
.park-fact-card-button span:last-child {
  font-size: 0.9rem;
}

.park-fact-card-button {
  border: 0;
  cursor: pointer;
}

.park-fact-card-button:hover {
  transform: translateY(-1px);
}

/* Cards */
.card.position-relative {
  overflow: hidden;
  cursor: pointer;
}

.card-img-top {
  transition: transform 0.3s ease;
  display: block;
  width: 100%;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  height: 180px;
  object-fit: cover;
}

.card.position-relative:hover .card-img-top {
  transform: scale(1.05);
}

.card-img-top-logo {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  height: 180px;
  object-fit: contain;
}

.card-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 1rem;
  box-sizing: border-box;
}

.card p {
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.95rem;
  color: #555;
}

/* Area Titles */
.snazzy-title {
  font-weight: 700;
  font-size: 16px;
  background: linear-gradient(to right, #004e92, #a8d0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  margin-bottom: 30px;
  margin-top: 0;
}

.snazzy-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #004e92, #a8d0ff);
  z-index: -1;
}

/* Buttons */
.btn-outline-primary.active {
  background-color: #004e92;
  color: white;
  border: none;
}

/* Badges */
.badge {
  padding: 0.4em 0.7em;
  font-size: 0.75rem;
  margin-right: 0.3em;
  border-radius: 0.5rem;
  font-weight: 500;
}

/* Map Placeholder */
section img.img-fluid {
  border: 2px solid #ddd;
  border-radius: 0.75rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-height: 500px;
  object-fit: cover;
}

/* Wait Times */
.wait-time-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(38, 37, 65, 0.92);
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20c997;
  display: inline-block;
  animation: pulseDot 1.4s infinite;
}

.wait-time-badge.closed .live-dot,
.wait-time-badge.unknown .live-dot {
  background: #adb5bd;
  animation: none;
}

.busyness-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  background: #262541;
}

.busyness-pill.quiet {
  background: #198754;
}

.busyness-pill.moderate {
  background: #ffc107;
  color: #262541 !important;
}

.busyness-pill.busy,
.busyness-pill.closed {
  background: #dc3545;
}

.busyness-pill.unknown {
  background: #6c757d;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(32, 201, 151, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(32, 201, 151, 0);
  }
}

/* Hero Opening Hours */
.hero-opening-card {
  margin: 1rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(to right, #ff5f6d, #ffc371);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  max-width: 100%;
}

.hero-opening-card .material-icons {
  font-size: 1.5rem;
  color: #fff !important;
}

.hero-opening-card div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.hero-opening-label {
  font-size: 0.75rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff !important;
  font-weight: 700;
}

.hero-opening-card strong {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.hero-opening-card.closed,
.hero-opening-card.open,
.hero-opening-card.unknown {
  background: linear-gradient(to right, #ff5f6d, #ffc371);
}

/* Park Listing Opening Hours */
.park-card-hours {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #262541 !important;
  color: #fff !important;
}

.park-card-hours .material-icons {
  font-size: 0.95rem;
  color: #fff !important;
}

.park-card-hours.open {
  background: #198754 !important;
}

.park-card-hours.closed {
  background: #dc3545 !important;
}

/* Section Utility */
.section-heading-row,
.all-rides-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.live-data-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #262541;
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Ride Search and Filters */
.ride-tools {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.ride-search-wrap {
  max-width: 420px;
  position: relative;
}

.ride-search-wrap .material-icons {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #666;
}

.ride-search-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  font-size: 0.95rem;
  outline: none;
}

.ride-search-input:focus {
  border-color: #262541;
  box-shadow: 0 0 0 3px rgba(38, 37, 65, 0.12);
}

.ride-filter-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-ride-summary {
  display: none !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .hero,
  .park-hero {
    height: 330px;
    min-height: 330px;
  }

  .hero-content,
  .park-hero-content {
    width: 92%;
    padding: 1rem;
    font-size: 0.95rem;
  }

  .park-hero-logo {
    max-width: 95px !important;
    max-height: 95px !important;
    margin-bottom: 0.75rem !important;
  }

  .park-hero-content h1 {
    font-size: 2rem;
    line-height: 1.12;
    margin-bottom: 0.35rem;
  }

  .park-hero-location {
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
  }

  .hero-opening-card {
    width: auto;
    max-width: 100%;
    padding: 0.58rem 0.8rem;
    border-radius: 14px;
    gap: 0.55rem;
    text-align: left;
  }

  .hero-opening-card .material-icons {
    font-size: 1.18rem;
  }

  .hero-opening-label {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .hero-opening-card strong {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .park-facts-section {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
  }

  .park-facts-section h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem !important;
  }

  .park-fact-card,
  .park-fact-card-button {
    padding: 0.8rem 0.55rem;
    border-radius: 12px;
    min-height: 112px;
  }

  .park-fact-card strong,
  .park-fact-card-button strong {
    font-size: 0.76rem;
  }

  .park-fact-card span:last-child,
  .park-fact-card-button span:last-child {
    font-size: 0.82rem;
  }

  .featured-rides-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .featured-rides-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
  }

  .featured-ride-col {
    min-width: 68%;
    scroll-snap-align: start;
  }

  .all-rides-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .all-rides-header h2 {
    font-size: 1.45rem;
  }

  .all-rides-header p {
    font-size: 0.9rem;
  }

  .ride-search-wrap {
    max-width: 100%;
  }

  .ride-search-input {
    border-radius: 12px;
    font-size: 0.92rem;
  }

  .ride-filter-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-left: -0.2rem;
    margin-right: -0.2rem;
  }

  .ride-filter-scroll .btn {
    flex: 0 0 auto;
    padding: 0.42rem 0.7rem;
    font-size: 0.82rem;
    border-radius: 999px;
    white-space: nowrap;
  }

  .snazzy-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .ride-grid,
  .area-section .row {
    --bs-gutter-x: 0.6rem;
    --bs-gutter-y: 0.7rem;
  }

  .ride-card-wrap,
  .area-section .col-md-3 {
    width: 50%;
    flex: 0 0 50%;
  }

  .ride-card {
    display: block !important;
    min-height: 0 !important;
    border-radius: 0.65rem !important;
  }

  .ride-card .card-img-top {
    width: 100% !important;
    height: 128px !important;
    min-height: 0 !important;
    object-fit: cover !important;
    border-top-left-radius: 0.65rem !important;
    border-top-right-radius: 0.65rem !important;
  }

  .ride-card .card-title-overlay {
    display: block !important;
  }

  .ride-card .wait-time-badge {
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    margin: 0 !important;
    font-size: 0.68rem !important;
    padding: 0.2rem 0.44rem !important;
  }

  .card-title-overlay {
    padding: 0.4rem 0.55rem;
  }

  .card-title-overlay h6 {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .all-rides-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .park-articles-section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .park-articles-section h2 {
    font-size: 1.35rem;
    margin-bottom: 0.9rem !important;
  }

  .park-article-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    min-height: 92px;
    border-radius: 12px;
    overflow: hidden;
  }

  .park-article-card .card-img-top {
    width: 92px !important;
    height: 100% !important;
    min-height: 92px;
    border-radius: 0 !important;
    object-fit: cover;
  }

  .park-article-card .card-body {
    padding: 0.65rem 0.75rem;
  }

  .park-article-card .text-muted {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }

  .park-article-card .card-title {
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
  }

  .park-article-tagline {
    display: none;
  }

  .park-article-card .badge {
    font-size: 0.62rem;
    padding: 0.28em 0.5em;
  }

  .park-article-tags {
    display: none;
  }
}

@media (max-width: 420px) {
  .ride-card-wrap,
  .area-section .col-md-3 {
    width: 50%;
    flex: 0 0 50%;
  }

  .ride-card .card-img-top {
    height: 112px !important;
  }

  .ride-card .wait-time-badge {
    font-size: 0.64rem !important;
    padding: 0.18rem 0.38rem !important;
  }

  .card-title-overlay h6 {
    font-size: 0.74rem;
  }
}
