/* =========================================================
   INTRO HERO — compact version
   Replaces the old 100vh full-screen hero.
   Colors reused from styles.css: #475e71 (slate), #353739 (nav dark), #007BFF (link blue)
========================================================= */

.intro-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background: #475e71;
  margin: 0;
  padding: 48px 20px 40px;
}

/* Video background */
.intro-hero__video {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0;
  display: block !important;
  pointer-events: none;
}

/* Image background (fallback when no video) */
.intro-hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Dark overlay for text legibility over media */
.intro-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 28, 41, 0.68);
  z-index: 0;
}

.intro-hero__overlay {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

/* Headline */
.intro-hero__title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Ticker */
.intro-hero__ticker {
  position: relative;
  height: 1.5em;
  overflow: hidden;
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
  color: #EAF0F6;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.ticker-wrapper {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s ease-in-out;
}

.ticker-phrase {
  height: 1.5em;
  text-align: center;
  white-space: nowrap;
}

/* Tabs */
.intro-hero__options {
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.intro-hero__options button {
  padding: 0.55rem 1.4rem;
  border: none;
  border-radius: 999px;
  background-color: rgba(255,255,255,0.9);
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  min-width: 110px;
  font-size: 0.95rem;
}

.intro-hero__options .active {
  background-color: #007BFF;
  color: white;
}

/* Search form wrapper */
.intro-hero__form {
  max-width: 620px;
  margin: 0 auto;
}

/* Secondary CTA (register link) below the search form */
.intro-hero__cta-secondary {
  display: inline-block;
  margin-top: 1rem;
  color: #EAF0F6;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(234,240,246,0.5);
  padding-bottom: 2px;
}

.intro-hero__cta-secondary:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Suggestion dropdown (city autocomplete) */
.suggestion-item {
  background-color: white;
  color: #333;
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px dotted #ccc;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background-color: #f0f8ff; }

#suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  z-index: 1000;
  background-color: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.city-container { flex: 1; position: relative; }

.intro-hero__form label {
  color: #333;
  text-align: left;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {
  .intro-hero {
    padding: 32px 16px 28px;
  }

  .intro-hero__title {
    font-size: 1.5rem;
  }

  .intro-hero__ticker {
    font-size: 1rem;
    height: 1.8em;
    white-space: nowrap;
    text-align: left;
    padding: 0 4px;
    margin-bottom: 1rem;
  }

  .ticker-wrapper { width: 100%; overflow: hidden; position: relative; }

  .ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 35s linear infinite;
  }

  .ticker-phrase {
    display: inline-block;
    padding-right: 4rem;
    white-space: nowrap;
  }

  .intro-hero__options {
    gap: 0.6rem;
  }

  .intro-hero__options button {
    flex: 1 1 auto;
    min-width: 120px;
    font-size: 0.9rem;
  }
}

@keyframes scroll-left {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}