@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --ink:#1F2937;
  --primary:#0B4F9C;
  --primary-dark:#073766;
  --primary-light:#EAF2FB;
  --silver:#F5F7F9;
  --silver-mid:#DEE3E8;
  --silver-dark:#8A96A3;
  --white:#FFFFFF;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--silver);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  line-height:1.55;
}
h1,h2,h3,.display{
  font-family:'Poppins',sans-serif;
  font-weight:600;
  color:var(--primary-dark);
  margin:0 0 .3em;
}
a{color:var(--primary);}
a:focus-visible,button:focus-visible{outline:2px solid var(--primary); outline-offset:2px;}

.site-header{
  padding:1.1rem 1.5rem;
  background:var(--white);
  border-bottom:1px solid var(--silver-mid);
  display:flex; align-items:center; justify-content:space-between;
}
.site-header .brand{font-family:'Poppins',sans-serif; font-weight:700; font-size:1.2rem; color:var(--primary-dark); text-decoration:none;}
.site-header nav a{margin-left:1.2rem; text-decoration:none; color:var(--ink); font-size:.9rem; font-weight:500;}
.site-header nav a:hover{color:var(--primary);}

.hero{
  padding:3rem 1.5rem 2.2rem;
  max-width:900px; margin:0 auto;
}
.hero .eyebrow{
  text-transform:uppercase; letter-spacing:.1em; font-size:.72rem;
  color:var(--primary); font-weight:600; margin-bottom:.6rem;
}
.hero h1{font-size:clamp(1.9rem,4.5vw,2.8rem);}
.hero p{max-width:60ch; color:#4B5563;}

.container{max-width:1100px; margin:0 auto; padding:0 1.5rem 4rem;}

.card-img, 
.card-media img {
  width: 100%;
  height: 180px; 
  object-fit: cover; 
  display: block;
}

.detail-hero-img{
  margin-top:-2.4rem;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(15,35,60,.14);
  aspect-ratio:16/7;
  background:var(--silver);
}
.detail-hero-img img{width:100%; height:100%; object-fit:cover; display:block;}


.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:1.25rem;
}


/* Optional: Constrain the wrapper width for a better look */
.card-wrap {
  max-width: 340px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* 2. Style the missing media container and image */
.card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: var(--silver-mid); /* Shows while image loads */
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Subtle image zoom on card hover */
.card:hover .card-media img {
  transform: scale(1.05);
}

/* 3. Your existing CSS (formatted) */
.card {
  background: var(--white);
  border: 1px solid var(--silver-mid);
  border-radius: 10px;
  padding: 0.75rem;
  /* padding: 1.15rem 1.25rem 1.3rem; */
  position: relative;
  text-decoration: none;
  color: var(--ink);
  display: block;
  box-shadow: 0 1px 2px rgba(15,35,60,.05);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(15,35,60,.10);
  transform: translateY(-2px);
  border-color: var(--silver-dark);
}

.card .cat {
  display: inline-block;
  font-size: .68rem; 
  text-transform: uppercase; 
  letter-spacing: .06em;
  color: var(--primary); 
  font-weight: 600; 
  margin-bottom: .5rem;
  background: var(--primary-light);
  padding: .2rem .55rem; 
  border-radius: 20px;
}

.card h3 {
  font-size: 1.1rem; 
  margin-bottom: .35rem;
  margin-top: 0;
}

.card .tagline {
  color: #4B5563; 
  font-size: .9rem; 
  margin-bottom: .7rem;
}

.marker-row {
  display: flex; 
  gap: 1rem; 
  font-size: .78rem; 
  color: var(--silver-dark);
  border-top: 1px solid var(--silver-mid); 
  padding-top: .65rem; 
  margin-top: .5rem;
}

.marker-row span {
  display: flex; 
  align-items: center; 
  gap: .3rem;
}

.status-pill{
  position:absolute; top:1.15rem; right:1.15rem;
  font-size:.62rem; text-transform:uppercase; letter-spacing:.05em;
  padding:.2rem .55rem; border-radius:20px; font-weight:600;
}
.status-published{background:var(--primary-light); color:var(--primary);}
.status-not_started{background:var(--silver); color:var(--silver-dark); border:1px solid var(--silver-mid);}
.status-drafted, .status-needs_update{background:#EFF3F7; color:#5B6673; border:1px solid var(--silver-mid);}

.filters{display:flex; flex-wrap:wrap; gap:.5rem; margin:1.5rem 0 2rem;}
.filters button{
  font-family:'Inter',sans-serif; font-size:.82rem; font-weight:500;
  border:1px solid var(--silver-mid); background:var(--white); color:var(--ink);
  padding:.42rem .9rem; border-radius:20px; cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.filters button:hover{border-color:var(--primary);}
.filters button.active{background:var(--primary); color:#fff; border-color:var(--primary);}


.place-hero{
  background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  color:#fff; padding:2.8rem 1.5rem;
}
.place-hero .container{padding-bottom:0;}
.place-hero .cat{color:#CFE1F5; text-transform:uppercase; letter-spacing:.09em; font-size:.72rem; font-weight:600;}
.place-hero h1{color:#fff; font-size:clamp(1.7rem,3.8vw,2.4rem); margin-top:.4rem;}
.place-hero .tagline{color:#E2ECF7; font-size:1.02rem; max-width:60ch;}

.facts{
  display:flex; flex-wrap:wrap; gap:0; margin-top:1.8rem;
  background:var(--white);
  border:1px solid var(--silver-mid); border-radius:10px; overflow:hidden;
  box-shadow:0 1px 2px rgba(15,35,60,.05);
}
.facts .fact{
  flex:1 1 140px; padding:.9rem 1rem; border-right:1px solid var(--silver-mid);
}
.facts .fact:last-child{border-right:none;}
.facts .fact .label{font-size:.66rem; text-transform:uppercase; letter-spacing:.06em; color:var(--silver-dark); font-weight:600;}
.facts .fact .value{font-family:'Poppins',sans-serif; font-weight:600; font-size:1rem; color:var(--primary-dark); margin-top:.15rem;}

.body-copy{max-width:68ch; margin-top:2.1rem; font-size:1rem; color:#333d47;}
.body-copy p{margin-bottom:1.1em;}

.tag-list{display:flex; gap:.5rem; flex-wrap:wrap; margin-top:1.4rem;}
.tag-list span{
  font-size:.74rem; background:var(--silver); border:1px solid var(--silver-mid); border-radius:20px;
  padding:.25rem .7rem; color:var(--ink);
}

.nearby{margin-top:2.8rem; padding-top:2rem; border-top:1px solid var(--silver-mid);}
.nearby h2{font-size:1.2rem;}

.pending-note{
  background:var(--primary-light); border-left:3px solid var(--primary);
  padding:1rem 1.2rem; font-size:.9rem; color:#2c3e50; max-width:60ch; margin-top:1.8rem;
  border-radius:0 8px 8px 0;
}

.site-footer{
  text-align:center; padding:2.2rem 1.5rem; color:var(--silver-dark); font-size:.83rem;
  background:var(--white);
  border-top:1px solid var(--silver-mid);
}

@media (max-width:600px){
  .facts .fact{flex:1 1 45%; border-bottom:1px solid var(--silver-mid);}
}



.page-nav{
  position:sticky; top:0; z-index:10;
  background:var(--white);
  border-bottom:1px solid var(--silver-mid);
  overflow-x:auto;
}
.page-nav-inner{
  display:flex; gap:1.6rem; padding:.85rem 1.5rem;
  max-width:1100px; margin:0 auto;
  white-space:nowrap;
}
.page-nav a{
  font-size:.85rem; font-weight:500; color:var(--silver-dark);
  text-decoration:none; padding-bottom:.2rem;
  border-bottom:2px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.page-nav a:hover{color:var(--primary);}
.page-nav a.active{color:var(--primary-dark); border-bottom-color:var(--primary);}




.info-section{margin-top:2.4rem; scroll-margin-top:4.2rem;}
.info-section h2{
  display:flex; align-items:center; gap:.55rem;
  font-family:'Poppins',sans-serif; font-weight:600;
  font-size:1.02rem; color:var(--ink); margin-bottom:.8rem;
}
.info-section h2::before{
  content:""; width:18px; height:18px; flex-shrink:0;
  background-color:var(--silver-dark);
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-size:contain; mask-size:contain;
}
.info-section:has(.info-block.safety) h2::before{
  background-color:#B45309;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}
.info-section:has(.info-block.warning) h2::before{
  background-color:#B42318;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}
.info-section:has(.info-block.tips) h2::before{
  background-color:var(--primary);
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}
.info-section:has(.info-block:not(.safety):not(.warning):not(.tips)) h2::before{
  background-color:var(--primary);
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.6c.6.5 1 1.3 1 2.4h6c0-1.1.4-1.9 1-2.4A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.6c.6.5 1 1.3 1 2.4h6c0-1.1.4-1.9 1-2.4A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
}
 
.info-block{border:none; background:none; padding:0; max-width:68ch;}
.info-block ul{margin:0; padding:0; list-style:none;}
.info-block li{
  position:relative; padding-left:1.15rem; font-size:.92rem;
  color:#3d4650; margin-bottom:.55rem; line-height:1.55;
}
.info-block li:last-child{margin-bottom:0;}
.info-block li::before{
  content:"•"; position:absolute; left:0; top:0;
  color:var(--silver-dark); font-size:1rem; line-height:1.5;
}
.info-block.safety li::before{color:#B45309;}
.info-block.warning li::before{color:#B42318;}
.info-block.tips li::before{color:var(--primary);}

  /* --- Rating Styles --- */
  .rating-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
  }
  
  /* Push rating to the right when inside a card's marker row */
  .marker-row .rating-wrap {
    margin-left: auto; 
  }
  
  .rating-box {
    background: #1a73e8; /* Google Blue */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .rating-text {
    font-size: 0.55rem;
    color: var(--silver-dark, #9ca3af);
    margin-top: 0.2rem;
    font-weight: 500;
  }

  /* Explore places */

    .ep-section-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px;
  }

  /* Main Section Container */
  .ep-container {
    background-color: #f6f6f6;
    border-radius: 24px;
    padding: 24px 20px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    box-sizing: border-box;
  }

  .ep-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0 0 20px 20px;
  }

  /* Horizontal scrolling container */
  .ep-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none; /* Firefox */
    align-items: stretch; /* Keeps cards aligned if heights vary slightly */
    box-sizing: border-box;
  }
  
  /* Add this to your <style> block */
.ep-carousel:focus {
  outline: none;
}

  .ep-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  /* Individual Card Wrapping */
  .ep-card-wrap {
    flex: 0 0 280px;
    box-sizing: border-box;
  }

  .ep-card {
    display: flex;
    flex-direction: column;
    background-color: #000;
    border-radius: 24px;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    padding-bottom: 12px;
    height: 100%; 
    box-sizing: border-box;
  }

  /* Image Section */
  .ep-media {
    width: 100%;
    height: 200px;
    position: relative;
    flex-shrink: 0;
  }

  .ep-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Gradient overlay */
  .ep-media::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent 0%, #000 100%);
  }

  /* Inner White Box */
  .ep-info {
    background-color: #fff;
    border-radius: 16px;
    margin: -40px 12px 0 12px;
    padding: 16px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .ep-name {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ep-category {
    color: #008cff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
  }

  .ep-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 0; 
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ep-card-wrap:first-child {
   margin-left: 20px;
 }

 /* Space after the last card */
 .ep-card-wrap:last-child {
   margin-right: 20px;
 }

    /* Mobile adjustments for text and card size */
  @media (max-width: 768px) {
    /* ... your existing mobile styles for card size and text ... */
    .ep-container {
      padding: 24px 0px; /* Reduced horizontal padding */
    }
    /* 1. Mobile spacing for the title */
    .ep-title {
      margin: 0 0 16px 16px; /* Reduced bottom and left margins */
    }

    /* 2. Mobile space before the first card */
    .ep-card-wrap:first-child {
      margin-left: 16px;
    }

    /* 3. Mobile space after the last card */
    .ep-card-wrap:last-child {
      margin-right: 16px;
    }
  
    /* 1. Decrease card width */
    .ep-card-wrap {
      flex: 0 0 220px; 
    }
    
    /* 2. Decrease image height */
    .ep-media {
      height: 150px; 
    }
    
    /* 3. Slightly reduce inner padding */
    .ep-info {
      padding: 12px;
    }

    /* 4. Decrease text sizes */
    .ep-name {
      font-size: 14px; 
    }
    
    .ep-category {
      font-size: 10px; 
      margin-bottom: 4px; 
    }

    .ep-desc {
      font-size: 11px; 
    }
  }


    /* --- Hero Image Slider --- */
  .hero-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
  }

  .hero-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero-slider-track::-webkit-scrollbar {
    display: none;
  }

  .hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-slider-dots {
    position: absolute;
    bottom: 0.85rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 2;
  }

  .hero-slider-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .hero-slider-dots button.active {
    background: #fff;
    transform: scale(1.25);
  }

  .hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
  }

  .hero-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
  }

  .hero-slider-arrow.prev { left: 0.6rem; }
  .hero-slider-arrow.next { right: 0.6rem; }

  @media (max-width: 640px) {
    .hero-slider-arrow { display: none; }
  }

  /* --- Image Lightbox Gallery --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-arrow.prev { left: -3.5rem; }
.lightbox-arrow.next { right: -3.5rem; }

.lightbox-counter {
  position: absolute;
  bottom: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .lightbox-arrow.prev { left: 0.25rem; }
  .lightbox-arrow.next { right: 0.25rem; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; background: rgba(0,0,0,0.5); }
}

.hero-slide img,
.ep-media img {
  cursor: pointer;
}