/* TRAILASAUR Dark Theme (Web Version - Matched to Flutter) */
:root {
  --primary: #1A1C15;
  --secondary: #383E31;
  --tertiary: #1A1C15;
  --alternate: #1A1C15;
  --primaryText: #FFFFFF;
  --secondaryText: #B3FFFFFF;
  --primaryBackground: #1A1C15;
  --secondaryBackground: #383E31;
  --accent: #379392;
  --borderColor: #B3FFFFFF;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  font-family: 'Inter', sans-serif;
  background: var(--primaryBackground);
  color: var(--primaryText);
}
/* Row */
.store-badges{
  display:flex; gap:16px; align-items:center; justify-content:center;
  margin:14px 0 22px; flex-wrap:wrap;
}

/* Explicit per-badge heights (Google is the reference) */
.store-badge--google img{ height:64px; width:auto; display:block; }
.store-badge--apple  img{ height:44.8px; /* 70% of 64 */ width:auto; display:block; }

/* Mobile tweak (keeps 70% ratio) */
@media (max-width:480px){
  .store-badge--google img{ height:56px; }
  .store-badge--apple  img{ height:39.2px; } /* 70% of 56 */
}


.section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: none;
}
/* Hide old right panel if it remains in the DOM */
.section.right { display: none; }

/* Tavern card under badges — same background image, same blur/brightness, same green tint */
/* Bigger Tavern promo — same blur & tint */
.tavern-card{
  position: relative;
  display: block;
  margin: 16px auto 22px;
  width: 100%;
  max-width: 760px;          /* was 500px */
  min-height: 360px;         /* give it real presence */
  border-radius: 14px;       /* subtle polish */
  overflow: hidden;
  text-decoration: none;
  color: var(--primaryText);
  box-shadow: 0 6px 18px rgba(0,0,0,0.55);
}

@media (min-width: 1200px){
  .tavern-card{ max-width: 880px; min-height: 400px; }
}

@media (max-width: 767px){
  .tavern-card{ max-width: 100%; min-height: 280px; margin: 12px auto 18px; }
}

.tavern-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/img/shoptrailasaur.png');   /* same asset */
  background-size: cover;
  background-position: center 30%;  /* nudge up to reveal listings */
  filter: blur(5px) brightness(0.6); /* exact same feel */
  transform: scale(1.08);            /* protect edges with larger blur area */
  z-index: 0;
}

.tavern-card::after{
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 28, 21, 0.55); /* same green veil */
  z-index: 0;
}
/* --- Tavern content: stronger hierarchy + spacing --- */
.tavern-card__inner{
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 42px;              /* more breathing room */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;                        /* consistent vertical rhythm */
  max-width: 820px;
  margin: 0 auto;
}

/* Title: bigger, tighter tracking, slight shadow for pop */
.tavern-card__inner h2{
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  color: var(--primaryText);
}

/* Body copy: wider measure, taller line-height */
.tavern-card__inner p{
  margin: 0;
  max-width: 52ch;                  /* readable line length */
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  opacity: 0.98;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  color: var(--primaryText);
}

/* Button: bigger and more tappable */
.tavern-card .visit-btn{
  pointer-events: none;             /* whole card is the link */
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}

/* Spacing around the card so it doesn't feel cramped */
.tavern-card{
  margin: 18px auto 26px;           /* a bit more top/bottom air */
}

/* Large screens: give it a touch more presence */
@media (min-width: 1200px){
  .tavern-card__inner{ padding: 46px 48px; gap: 16px; }
}

/* Small screens: keep hierarchy but reduce crowding */
@media (max-width: 767px){
  .tavern-card__inner{ padding: 28px 22px; gap: 12px; }
  .tavern-card__inner p{ max-width: 60ch; }
}

.left::before,
.right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(5px) brightness(0.6);
  z-index: 0;
}
.left::before { background-image: url('/img/pachypasstrailasaur.png'); }
.right::before { background-image: url('/img/shoptrailasaur.png'); }

.section.center {
  flex: 2;
  flex-direction: column;
  background-image: url('/img/forestai.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-y: auto;
}

.section.center .overlay {
  background: rgba(26, 28, 21, 0.9);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem;
}

.form-container {
  width: 100%;
  max-width: 500px;
  margin: auto;
  padding: 2rem;
  background: rgba(24, 26, 19, 0.95);
  border-radius: 12px;
  box-sizing: border-box;
}

h1, h2, label, p {
  color: var(--primaryText);
}

.tabs button {
  flex: 1;
  padding: 0.5rem;
  background: none;
  border: none;
  font-weight: bold;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s;
}

.tabs button.active {
  background: var(--accent);
  color: var(--primary);
  border-radius: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  background: var(--primary);
  color: var(--primaryText);
  border: 1px solid var(--borderColor);
  border-radius: 6px;
  box-sizing: border-box;
}

button {
  padding: 0.8rem;
  font-weight: bold;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  opacity: 0.85;
}

.bike-toggle-button {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  user-select: none;
  text-align: center;
  margin-bottom: 1rem;
}

.bike-toggle-button:hover {
  opacity: 0.85;
}

#toggle-bike-details:checked + label,
.bike-toggle-button:has(input:checked) {
  background: var(--primaryText);
  color: var(--primary);
}

#bike-specs {
  background: var(--secondaryBackground);
  border-radius: 8px;
  padding: 1.5rem;
  max-height: 50vh;
  overflow-y: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#bike-specs details {
  margin-bottom: 1rem;
}

#bike-specs label {
  margin-bottom: 0.3rem;
  display: block;
}

details summary {
  background: var(--accent);
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--primary);
}

.overlay img {
  max-width: 200px;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  html, body {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }
  .section {
    width: 100vw;
    height: auto;
    min-height: calc(100vh / 3);
  }
  .left { order: 3; }
  .center { order: 1; }
  .right { order: 2; }
  .overlay img { max-width: 140px; }
  .overlay h2 { font-size: 1.8rem; }
  .overlay p { font-size: 0.95rem; }
  .form-container {
    margin: 2rem auto;
  }
}
