/* ============================================================
   Between Us Birdies — Custom Styles
   ============================================================ */

:root {
  --green-dark:  #1a5c38;
  --green-mid:   #2d8653;
  --green-light: #e8f5ee;
  --gold:        #c9a84c;
  --gold-light:  #fdf3d8;
  --off-white:   #f7f9f7;
}

/* ---- Logo ---- */
.bub-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.bub-logo svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.bub-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.bub-eyebrow {
  font-family: 'Eskorte', serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 4px;
  color: #ffffff;
  text-transform: uppercase;
}

.bub-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: #00cc33;
  line-height: 1;
}

.bub-dot {
  color: #ffffff;
}

/* Hero (large) variant */
.bub-logo-hero svg {
  width: 90px;
  height: 90px;
}

.bub-logo-hero .bub-eyebrow {
  font-size: 13px;
  letter-spacing: 6px;
}

.bub-logo-hero .bub-name {
  font-size: 52px;
}

/* ---- Typography ---- */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ---- Color Utilities ---- */
.text-green  { color: var(--green-dark) !important; }
.text-gold   { color: var(--gold) !important; }
.text-white-75 { color: rgba(255,255,255,0.8) !important; }

.bg-green-dark  { background-color: var(--green-dark) !important; }
.bg-green-light { background-color: var(--green-light) !important; }
.bg-gold-light  { background-color: var(--gold-light) !important; }

/* ---- Buttons ---- */
.btn-green {
  background-color: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  font-weight: 600;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-green:hover,
.btn-green:focus {
  background-color: var(--green-mid);
  border-color: var(--green-mid);
  color: #fff;
}
.btn-green:active {
  background-color: #134a2c;
  color: #fff;
}

/* ---- Navbar ---- */
.navbar-brand {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.85);
  transition: color 0.15s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
}

/* ---- Hero Section ---- */
.hero-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 3rem 0 4rem;
}

.hero-icon i {
  font-size: 4rem;
  color: rgba(255,255,255,0.25);
}

.search-card {
  max-width: 780px;
  border-radius: 1rem;
}

/* ---- Typeahead ---- */
.typeahead-wrap {
  position: relative;
}

.typeahead-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 14px;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.typeahead-input-wrap:focus-within {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45, 134, 83, 0.12);
}

.typeahead-icon {
  color: #9ca3af;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-right: 10px;
}

.typeahead-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  padding: 14px 0;
  background: transparent;
  color: #1a1a1a;
}

.typeahead-input::placeholder { color: #9ca3af; }

.typeahead-spinner { margin-left: 8px; flex-shrink: 0; }

.typeahead-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 1050;
  text-align: left;
}

.ta-item {
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid #f3f4f6;
}

.ta-item:last-child { border-bottom: none; }

.ta-item:hover,
.ta-item.active { background: var(--green-light); }

.ta-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-dark);
  margin-bottom: 2px;
}

.ta-addr {
  font-size: 0.82rem;
  color: #6b7280;
}

.ta-see-all {
  font-family: 'Eskorte', serif;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-align: center;
  background: #fafafa;
  padding: 10px 16px;
}

.ta-see-all:hover { background: var(--gold-light); color: #5a3e00; }

.ta-empty {
  padding: 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: default;
}

/* ---- Course Cards ---- */
.course-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(0,0,0,0.06) !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}
.course-card .card-title {
  font-size: 1rem;
  font-weight: 600;
}

/* ---- How It Works ---- */
.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* ---- Birdie Rating (interactive) ---- */
/*
  Birdies are in REVERSE DOM order (5,4,3,2,1) inside flex-direction:row-reverse
  so they display left-to-right (1,2,3,4,5) visually.
  The CSS sibling trick fills birdies from left on hover/check.
  SVG icons use fill="currentColor" so they inherit the label's color.
*/
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  justify-content: flex-start;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  color: #d0d0d0;
  cursor: pointer;
  line-height: 1;
  transition: color 0.1s;
  display: inline-flex;
  align-items: center;
}

/* Fill on check: the checked input's label + all following labels (lower-value birdies) */
.star-rating input[type="radio"]:checked ~ label,
/* Fill on hover: hovered label + all following labels */
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--gold);
}

/* ---- Birdie Icon Sizes ---- */
.birdie-icon {
  width: 2rem;
  height: 2rem;
}

.birdie-sm {
  width: 1.1rem;
  height: 1.1rem;
}

.birdie-xs {
  width: 0.8rem;
  height: 0.8rem;
}

/* ---- Birdie Display (read-only) ---- */
.star-display .birdie-icon {
  width: 1rem;
  height: 1rem;
}

/* ---- Rating Bars ---- */
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rating-label {
  flex: 0 0 120px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}

.rating-bar-track {
  flex: 1;
  height: 10px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-mid), var(--green-dark));
  border-radius: 999px;
  transition: width 0.6s ease;
}

.rating-value {
  flex: 0 0 40px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-dark);
  text-align: right;
}

.rating-value small {
  font-size: 0.7rem;
  font-weight: 400;
  color: #999;
}

/* ---- Review Items ---- */
.review-item {
  padding-top: 0.5rem;
}

.badge-rating {
  font-size: 0.82rem;
  color: #555;
  background: var(--green-light);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* ---- Leaderboard Table ---- */
.table-green thead {
  background-color: var(--green-dark);
  color: #fff;
}

.table-green thead th {
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
}

.table tbody tr:hover {
  background-color: var(--green-light);
}

/* ---- Footer ---- */
.footer {
  font-size: 0.85rem;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 767px) {
  .hero-section {
    padding: 2rem 0 3rem;
  }

  .rating-label {
    flex: 0 0 100px;
    font-size: 0.82rem;
  }

  .star-rating label {
    font-size: 1.75rem;
  }
}
