/* ==========================================================================
   SIGHT VIEW
   ========================================================================== */

:root{
  /* ---- Hero placement & typography ---- */
  --hero-lift: clamp(10px, 5vh, 80px);
  --hero-title-size: clamp(26px, 6vw, 46px);
  --hero-letter-tight: -0.02em;
}

/* Cap the sight view like the Walk page */
#viewSight{
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

/* ==========================================================================
   HERO
   ========================================================================== */

#sightHero.hero{
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  min-height: 360px;
  max-height: 80vh;
  background: #000 center 35% / cover no-repeat;
  border-bottom: 1px solid var(--border);
}

/* bottom scrim for contrast (behind overlay text) */
#sightHero.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(transparent 45%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 960px){
  #sightHero.hero{
    width: min(100%, 640px);
    margin: 0 auto;
  }
}

/* overlay holds title + meta; lifted by --hero-lift */
#viewSight #sightHero .hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  padding-bottom: var(--hero-lift);
}

/* Title: Quicksand, tall, tight, pure white, no shadow */
#viewSight #sightHero .tagline{
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 700;
  font-size: var(--hero-title-size);
  line-height: 1.1;
  letter-spacing: var(--hero-letter-tight);
  color: #fff;
  text-shadow: none;
  margin: 0 0 .25rem 0;

  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-synthesis: none;
}

/* Meta row under the title */
#viewSight #sightHero .hero-meta{
  display: flex;
  gap: .5rem;
  margin-top: .25rem;
}

/* optional chip styling (no shadow) */
#viewSight #sightHero .hero-chip{
  background: rgba(0,0,0,.28);
  color: #fff;
  border-radius: 999px;
  padding: .25rem .55rem;
  backdrop-filter: saturate(115%) blur(3px);
}

/* ==========================================================================
   FAVORITE
   ========================================================================== */
#sightHero.hero { position: relative; }

.sight-fav{
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 6;
}

/* Round heart button (solid) */
#sightHero .heart-btn,
#sightHero #favToggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background-color: #1b1b1b;
  border: 1px solid #2a2a2a;
  color: #f5f5f5;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 1; mix-blend-mode: normal; filter: none;
}
#sightHero .heart-btn:focus-visible,
#sightHero #favToggle:focus-visible{
  outline: 2px solid rgba(128,238,192,.45);
  outline-offset: 2px;
}

#sightHero .heart-btn svg,
#sightHero #favToggle svg{
  width: 20px; height: 20px; display: block;
}

#sightHero .heart,
#sightHero #favToggle .heart{ display: block; }

#sightHero .heart-path,
#sightHero #favToggle .heart-path{
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  transition: transform .18s ease, fill .18s ease, stroke .18s ease, opacity .18s ease;
  transform-origin: center;
}

#sightHero .heart-btn.liked,
#sightHero #favToggle.liked{
  color: #ff2e6a;
  animation: heart-pop .22s ease;
}
#sightHero .heart-btn.liked .heart-path,
#sightHero #favToggle.liked .heart-path{
  fill: currentColor; stroke: transparent;
}
@keyframes heart-pop{ 0%{transform:scale(.85)} 100%{transform:scale(1)} }

/* ==========================================================================
   INTRO / TEXT SWITCH
   ========================================================================== */

#sightIntro .text-switch{
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin: .25rem 0 .75rem;
}

/* ==========================================================================
   META ROW LINKS (route / website)
   ========================================================================== */

.link-row{
  text-decoration: none;
  color: inherit;
}
.link-row:focus-visible{
  outline: 2px solid rgba(128,238,192,.25);
  outline-offset: 2px;
  border-radius: .35rem;
}
@media (hover:hover){
  .link-row:hover{ background: rgba(255,255,255,.02); }
}
.link-row[aria-disabled="true"]{
  pointer-events: none;
  opacity: .6;
}

/* Route FAB in Hero - Theme Matched */
.hero-route-btn {
  position: absolute;
  bottom: 30px;
  right: 24px;
  width: 48px;
  height: 48px;

  /* Matches .heart-btn styles */
  background-color: #155db5;
  border: 1px solid #2a2a2a;
  color: #f5f5f5; /* White-ish filling */

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5); /* Slightly darker shadow for dark theme */
  z-index: 10;
  transition: transform 0.2s ease, background-color 0.2s;
  cursor: pointer;
}

.hero-route-btn:active {
  transform: scale(0.95);
  background-color: #2a2a2a; /* Lightens slightly on press */
}

.hero-route-btn:focus-visible {
  outline: 2px solid rgba(128,238,192,.45);
  outline-offset: 2px;
}

.hero-route-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Navigation Arrows in Hero - Transparent / Glassy */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  /* Glassy Style */
  width: 40px;
  height: 40px;
  border-radius: 50%;

  /* See-through black background */
  background-color: rgba(0, 0, 0, 0.25);

  /* Blur the image behind the button (Frosted Glass) */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); /* For Safari */

  /* Subtle light border to define the circle */
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

/* Active State (Tap) - darken slightly */
.hero-nav-btn:active {
  background-color: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(0.95);
}

.hero-nav-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  /* Optional: Drop shadow for better contrast on bright images */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.hero-nav-btn.prev { left: 12px; }
.hero-nav-btn.next { right: 12px; }

.hero-nav-btn[hidden] { display: none !important; }
