/* =========================================================
   TFG DESTINATIONS — BASE
   ========================================================= */

.tfg-destination { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.tfg-section { margin: 28px 0; }
.tfg-muted { opacity: 0.8; font-size: 0.95em; }

.tfg-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.tfg-btn-primary{}

/* =========================================================
   PAGE LAYOUT — MAIN + SIDEBAR
   ========================================================= */

.tfg-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  margin-top: 20px;
}

.tfg-sidebar-inner { position: sticky; top: 18px; }
.tfg-sidebar-block { padding: 14px; border-radius: 10px; margin-bottom: 12px; }
.tfg-sidebar-title { font-size: 1.2em; font-weight: 700; margin-bottom: 6px; }
.tfg-sidebar-heading { font-weight: 700; margin-bottom: 8px; }

.tfg-nav { list-style: none; padding: 0; margin: 0; }
.tfg-nav li { margin: 6px 0; }
.tfg-nav a { text-decoration: none; }

/* =========================================================
   HERO BAR + MAP
   ========================================================= */

.tfg-hero { padding: 0; }

.tfg-hero-bar{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 28px 0;
  border-top: 1px solid rgba(0,0,0,0.10);
  border-bottom: 1px solid rgba(0,0,0,0.10);
  overflow: hidden;
}

/* Map layer */
.tfg-hero-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Use the CSS variable set by PHP from ACF field */
  background-image: var(--hero-bg-image, url('https://topflyguides.com/wp-content/uploads/2025/12/Yakima-River-Fly-Fishing-Guides.jpg'));
  background-size: cover;
  background-position: center;
  opacity: 1;
  pointer-events: none;
}
/* Fade to white around where the right column begins */
.tfg-hero-bar::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to right,
    rgba(255,255,255,0.88) 0%,
    rgba(255,255,255,0.80) 48%,
    rgba(255,255,255,0.35) 68%,
    rgba(255,255,255,0.10) 82%,
    rgba(255,255,255,0.00) 100%
  );
  pointer-events:none;
}

/* Hero content above background */
.tfg-hero-bar .tfg-hero-inner{
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

/* kill theme float rules */
.tfg-hero-left, .tfg-hero-right{ float:none !important; width:auto !important; max-width:none !important; }

.tfg-hero-left{ flex: 1 1 auto; min-width: 0; padding-left: 16px; padding-right: 16px; }
.tfg-hero-right{ flex: 0 0 320px; padding-right: 16px; }

.tfg-descriptor { font-weight: 600; margin: 8px 0 0; }
.tfg-hero-intro { margin: 10px 0 0; max-width: 820px; }

/* tiles */
.tfg-conditions-tiles{
  display: grid;
  grid-template-columns: 140px 140px;
  gap: 12px;
  justify-content: end;
}

.tfg-tile{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 10px 10px 8px;
}

.tfg-tile-label{
  font-size: 12px;
  font-weight: 700;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.tfg-tile-value{
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.2;
}

.tfg-unit{
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

.tfg-tile-sub{
  font-size: 13px;
  line-height: 1.25;
  margin-top: 6px;
}

.tfg-sparkline{ display:block; width:100%; height:auto; }
.tfg-sparkline-minmax{ display:flex; justify-content:space-between; gap:8px; }

.tfg-tile-link a{
  font-size: 13px;
  text-decoration: none;
}

/* =========================================================
   CONDITIONS SNAPSHOT GRID
   ========================================================= */

.tfg-conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.tfg-condition-card { padding: 12px; border-radius: 10px; }

/* =========================================================
   BLOG POSTS GRID
   ========================================================= */

.tfg-posts-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.tfg-post-card{
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
}

.tfg-post-card h3{
  font-size: 16px;
  margin: 10px 0 6px;
}

.tfg-post-card a{ text-decoration:none; }

.tfg-post-thumb img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 10px;
}

/* =========================================================
   TRIPS
   ========================================================= */

.tfg-trips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.tfg-trip-card { padding: 14px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.06); }
.tfg-trip-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }

/* =========================================================
   GALLERIES
   ========================================================= */

.tfg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.tfg-gallery-grid.tfg-grid-4{
  grid-template-columns: repeat(4, minmax(0,1fr));
}
/* Consistent tile cropping */
.tfg-gallery-item{
  display:block;
  border-radius: 10px;
  overflow:hidden;
}

.tfg-gallery-item img{
  width: 100%;
  aspect-ratio: 4 / 3;   /* consistent tiles */
  object-fit: cover;
  display:block;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.tfg-lightbox-modal[aria-hidden="true"]{ display:none; }
.tfg-lightbox-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.tfg-lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.65);
}
.tfg-lightbox-dialog{
  position: relative;
  max-width: 980px;
  margin: 5vh auto;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  z-index: 1;
}
.tfg-lightbox-img{
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display:block;
  border-radius: 10px;
}
.tfg-lightbox-cap{
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.85;
}
.tfg-lightbox-close{
  position:absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
body.tfg-modal-open{ overflow:hidden; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .tfg-layout { grid-template-columns: 1fr; }
  .tfg-sidebar-inner { position: static; }

  .tfg-hero-bar .tfg-hero-inner{ display:block !important; }
  .tfg-hero-right{ margin-top: 16px; padding-left: 16px; }
  .tfg-conditions-tiles{ justify-content: start; }

  .tfg-trips, .tfg-conditions-grid, .tfg-gallery-grid, .tfg-gallery-grid.tfg-grid-4, .tfg-posts-grid {
    grid-template-columns: 1fr;
  }
}
/* Constrain hero content to site width and center it inside full-bleed bar */
.tfg-hero-bar .tfg-hero-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Details / long-form content styling */
.tfg-details{
  max-width: 900px;
}

.tfg-details h2{
  margin-top: 26px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.tfg-details h3{
  margin-top: 18px;
}

.tfg-details p, .tfg-details li{
  line-height: 1.55;

}
.tfg-details p {
	  margin: 1em 0;	
}

.tfg-details hr{
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.12);
  margin: 18px 0;
}

/* Primary button look */
.tfg-btn-primary,
.tfg-btn{
  background: #1c2b57;   /* matches your nav vibe */
  color: #fff;
  font-weight: 700;
}

.tfg-btn:hover{ opacity: 0.92; }

.tfg-hero-cta .tfg-btn{ border-radius: 999px; padding: 12px 18px; }

/* TOC styling */
.tfg-nav a{
  display:block;
  padding: 6px 8px;
  border-radius: 8px;
}

.tfg-nav a:hover{
  background: rgba(0,0,0,0.04);
}
/* TOC styling */
.tfg-nav a{
  display:block;
  padding: 6px 8px;
  border-radius: 8px;
}

.tfg-nav a:hover{
  background: rgba(0,0,0,0.04);
}
.tfg-sidebar-block{
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}
.tfg-hero-cta {
    margin-top: 19px;
}
.tfg-details h2 {
    margin-top: 26px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    width: 100%;
}
a.tfg-btn.tfg-booking-trigger {
    margin-top: 12px;
}
.tfg-destination {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 16px 24px;
}

/* Give the sticky sidebar breathing room from the top */
.tfg-sidebar-inner{
  position: sticky;
  top: 38px;
  padding-top: 12px; /* <-- this is the "margin-top" you want */
}

/* Use gap instead of margin-bottom for consistent spacing */
.tfg-sidebar-inner{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tfg-sidebar-block{
  margin: 0; /* remove margin-bottom so gap controls spacing */
}
/* Fix YouTube embed height */
.tfg-video-embed{
  width: 100%;
  max-width: 900px;       /* optional – matches your content width */
}

.tfg-video-embed iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 420px;      /* prevents the “short” look */
  border: 0;
  border-radius: 12px;
  display: block;
}

.tfg-species {
    margin-top: 50px;
}

.tfg-details li {
    list-style: disc;
    margin: 0 2em;
}