/* =================================================
   GLOBAL TYPOGRAPHY
================================================= */

body {
  font-family: "Open Sans", sans-serif;
}


/* =================================================
   GLOBAL TEXT COLOUR (main content only)
================================================= */

main {
  color: #005F02;
}

main p,
main li,
main span,
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  color: inherit;
}


/* =================================================
   BUTTONS + CTAs
================================================= */

button,
.btn,
input[type="submit"],
.save-walk-btn,
a.button,
a.cta,
.ynw-map-btn,
.place-popup-btn,
button.rounded-full,
.chip,
.filter-chip {
  background: #5f7f7b;
  color: #ffffff;
  border-color: #5f7f7b;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
.save-walk-btn:hover,
a.button:hover,
a.cta:hover,
.ynw-map-btn:hover,
.place-popup-btn:hover,
button.rounded-full:hover,
.chip:hover,
.filter-chip:hover {
  background: #4f6f6b;
  color: #ffffff;
}

.food-chip.bg-green-900 {
  background-color: #14532d;
}


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

main .ynw-hero {
  background: #F8F0DA;
}


/* ==================================================
   HEADER â€” SINGLE ROW, FIXED
================================================== */

.YourNextWalk-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(234,239,239,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 500; /* Reduced to prevent dropdown blocking */
}

.YourNextWalk-header .container {
  max-width: none;
  margin: 0;
  padding: 0 40px;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}


/* ==================================================
   NAVIGATION
================================================== */

.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.YourNextWalk-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.YourNextWalk-nav li a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #25343F;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.YourNextWalk-nav li a:hover,
.YourNextWalk-nav li.current-menu-item > a {
  opacity: 1;
}


/* ==================================================
   FLIP CARDS
================================================== */

.flip-card {
  perspective: 1000px;
  height: 320px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-front h3 {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
}

.flip-card-back {
  background: #5f7f7b;
  color: #ffffff;
  transform: rotateY(180deg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* ==================================================
   WALK CARDS
================================================== */

.ynw-walk-card {
  background: #f3f4f3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.ynw-walk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

.ynw-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 16px;
}

.ynw-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ynw-card-body {
  padding: 24px;
}

.ynw-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}


/* ==================================================
   MAP + POPUP
================================================== */

.map-container {
  width: 100%;
  height: 500px;
  border-radius: 12px;
}

.custom-leaflet-popup .leaflet-popup-content {
  margin: 0;
}

.place-popup {
  width: 210px;
}

.place-popup-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 8px;
}

.place-popup-btn {
  display: block;
  margin-bottom: 10px;
  background: #5f7f7b;
  color: #ffffff;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}


/* ==================================================
   WALK PAGE
================================================== */

.walk-page {
  background: #f5f5f5;
  padding: 40px 0;
}

.walk-container {
  max-width: 1000px;
  margin: auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.walk-title {
  font-size: 36px;
  color: #2f4f2f;
}

.walk-meta {
  font-size: 18px;
  color: #444;
}

.walk-description {
  font-size: 17px;
  color: #555;
}

.walk-map {
  height: 400px;
  width: 100%;
  border-radius: 10px;
  margin: 25px 0;
  overflow: hidden;
}


/* ==================================================
   LOCATION SEARCH FIX (CRITICAL)
================================================== */

/* Ensure dropdown appears above header */
.location-search-results,
.nominatim-results,
.search-dropdown,
.leaflet-control-geocoder,
.leaflet-control-geocoder-results {
  position: relative;
  z-index: 2000;
}

/* ==================================================
   PDF
================================================== */

body{
  font-family: DejaVu Sans, sans-serif;
  color:#2a2a2a;
  font-size:12px;
  line-height:1.4;
  margin:0;
  }
  
  /* Page */
  
  .page{
    page-break-after: auto
  }
  
  /* Logo */
  
  .logo{
  text-align:center;
  margin-bottom:10px;
  }
  
  .logo img{
  width:150px;
  }
  
  /* Title */
  
  .title{
  font-size:24px;
  text-align:center;
  margin-bottom:6px;
  font-weight:600;
  }
  
  /* Description */
  
  .description{
  text-align:center;
  font-size:12px;
  color:#555;
  margin-bottom:10px;
  }
  
  /* Distance / duration / difficulty */
  
  .stats{
  background:#5f7f7b;
  padding:8px;
  text-align:center;
  color: #ffffff;
  border-radius:6px;
  margin-bottom:10px;
  font-size:12px;
  }
  
  /* Map */
  
  .map{
  width:100%;
  max-width:650px;
  max-height:200px;
  border-radius:6px;
  margin:8px auto;
  display:block;
  object-fit:cover;
  page-break-inside:avoid;
  }
  
  /* Main two-column layout */
  .columns{
    max-width:650px;
    margin:0 auto;
    }
  
  /* Section headings */
  
  .section-title{
  font-size:14px;
  border-bottom:1px solid #ddd;
  padding-bottom:4px;
  margin-top:10px;
  margin-bottom:6px;
  }
  
  /* Start location */
  
  .location{
  background:#ffffff;
  padding:8px;
  border-radius:6px;
  margin-bottom:6px;
  page-break-inside:avoid;
  }
  
  /* POI boxes */
  
  .poi{
  background:#5f7f7b;
  padding:10px;
  color: #ffffff;
  border-radius:6px;
  margin-bottom:10px;
  page-break-inside:avoid;
  width:100%;
  box-sizing:border-box;
  }
  
  /* Scenic + Nearby columns */
  
  .poi-columns{
  display:flex;
  gap:14px;
  align-items:stretch;
  }
  
  .poi-col{
  flex:1;
  min-width:120px;
  }
  
  /* Lists */
  
  ul{
  padding-left:16px;
  margin:4px 0;
  }
  
  li{
  margin-bottom:4px;
  }
  
  /* Center content under map */
  
  .after-map{
    max-width:650px;
    margin:0 auto;
    text-align:left;
    }
  
  /* Footer */
  
  .footer{
  margin-top:10px;
  font-size:10px;
  text-align:center;
  color:#777;
  }

/* =================================================
   IMAGE GALLERY — SINGLE WALKS
================================================= */
.project-gallery {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

/* TRACK */
.gallery-slider {
  display: flex;
  transition: transform 0.4s ease;
  padding: 0;             /* 🔥 prevent offset */
  margin: 0;              /* 🔥 prevent offset */
}

/* SLIDES */
.gallery-slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 240px;          /* adjust as needed */
  object-fit: cover;
  display: block;         /* 🔥 removes inline gap */
}

/* ARROWS */
.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

/* DOTS */
.gallery-dots {
  text-align: center;
  margin-top: 10px;
}

.gallery-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ccc;
  margin: 0 4px;
  border-radius: 50%;
}

.gallery-dots span.active {
  background: #5f7f7b;
}

