/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f8f8f8;
  color: #333;
  background-image:
    linear-gradient(140deg, transparent 0%, transparent 30%, rgba(0,0,0,0.03) 30%, rgba(0,0,0,0.03) 60%, transparent 60%, transparent 100%),
    linear-gradient(140deg, transparent 0%, transparent 65%, rgba(0,0,0,0.015) 65%, rgba(0,0,0,0.015) 85%, transparent 85%, transparent 100%);
  background-attachment: fixed;
}

/* =========================
   NAVIGATION
========================= */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: #82BE21;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  z-index: 1000;
}

.nav-left {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav ul li a:hover {
  color: #ff7f00;
}

nav .menu-toggle {
  display: none;
  margin-left: auto;
  font-size: 1.8em;
  color: white;
  cursor: pointer;
}

.login-btn {
  color: white;
  text-decoration: none;
  font-weight: 500;
  background: rgba(255,255,255,0.15);
  padding: 8px 15px;
  border-radius: 6px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* =========================
   HERO
========================= */
.hero img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

/* =========================
   LAYOUT
========================= */
.campsite-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 15px;
  align-items: start;
}

.main-column,
.sidebar {
  min-width: 0;
}

/* =========================
   CONTENT BOXES
========================= */


.main-column img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.campsite-info ul {
  list-style: none;
}

.campsite-info li {
  margin-bottom: 8px;
}

.review-text {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.review-text h2 {
  color: #2271B3;
  margin: 10px 0 8px;
}

.review-text p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.review-text ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.review-text li {
  margin-bottom: 5px;
  line-height: 1.4;
}

/* =========================
   SIDEBAR
========================= */
.sidebar-box {
  margin-bottom: 20px;
}

/* =========================
   WEATHER
========================= */
/* Weather box heading */
.campsite-weather h3 {
  margin-bottom: 12px;
  color: #2271B3;
  font-size: 1.1em;
}

/* Main weather row */
.weather-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.weather-info img {
  width: 50px;
  height: 50px;
}

/* text stack */
.weather-details {
  display: flex;
  flex-direction: column;
}

.weather-details .temp {
  font-weight: 600;
  font-size: 1.4em;
  color: #333;
}

.weather-details .desc {
  font-size: 0.9em;
  color: #666;
}

.weather-details .extra {
  font-size: 0.8em;
  color: #888;
}

/* Forecast row */
.weather-forecast {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.forecast-day {
  text-align: center;
  flex: 1;
}

.forecast-day img {
  width: 32px;
  height: 32px;
  margin: 5px 0;
}

.forecast-day .day {
  display: block;
  font-size: 0.75em;
  color: #999;
}

.forecast-day .temps {
  display: block;
  font-size: 0.85em;
  font-weight: 500;
}

/* Base weather box */
.campsite-weather {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

/* Hover only on real hover devices */
@media (hover: hover) and (pointer: fine) {
  .campsite-weather:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .campsite-weather {
    padding: 16px;
  }

  .weather-info {
    gap: 10px;
  }

  .weather-info img {
    width: 40px;
    height: 40px;
  }
}
/* =========================
   MAP
========================= */
#map {
  width: 100%;
  height: 300px;
}

.leaflet-container {
  z-index: 1 !important;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #82BE21;
  color: #fff;
  margin-top: 40px;
  padding: 40px 15px;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.footer-ad {
  margin-bottom: 25px;
}

.footer-ad p {
  font-size: 0.9em;
  margin-bottom: 10px;
}

.footer-ad .ad-placeholder {
  background: rgba(0,0,0,0.15);
  padding: 30px;
  border-radius: 8px;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: #ff7f00;
}

.footer-disclaimer {
  font-size: 0.85em;
  color: #f0f0f0;
  max-width: 700px;
  margin: 0 auto 20px;
}

.footer-copy {
  font-size: 0.8em;
  color: #e0e0e0;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  .campsite-layout {
    grid-template-columns: 1fr;
  }

  nav {
    justify-content: flex-end;
    padding: 6px 15px;
  }

  nav .menu-toggle {
    display: block;
    font-size: 1.6em;
  }

  nav ul {
    flex-direction: column;
    display: none !important;
    position: absolute;
    top: 45px;
    right: 0;
    width: 200px;
    background: #82BE21;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  nav ul.show {
    display: flex !important;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  nav ul li a {
    display: block;
    padding: 12px 20px;
    text-align: left;
  }

  .review-text,
  .campsite-info {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* Hide desktop login button on mobile */
@media (max-width: 768px) {
  .login-btn {
    display: none !important;
  }
}

/* Optional: hide mobile login on desktop */
@media (min-width: 769px) {
  .login-mobile {
    display: none;
  }
}

/* Forum widget */
.forum-widget {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
}

.forum-widget h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.forum-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.forum-item {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.forum-item:last-child {
  border-bottom: none;
}

.forum-title {
  font-weight: 600;
  text-decoration: none;
  color: #333;
  display: block;
}

.forum-title:hover {
  color: #2e7d32;
}

.forum-meta {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

.forum-time {
  color: #aaa;
}

.no-posts {
  text-align: center;
  color: #2e7d32;
  font-weight: 500;
}

.forum-login-msg {
  font-size: 14px;
}

.forum-login-msg a {
  color: #2e7d32;
  text-decoration: none;
}

/* discussion box */
.start-discussion { 
  font-weight: 500; 
  text-decoration: none; 
}

.start-discussion:hover { 
  text-decoration: underline; 
}

/* Container box styling */
.start-discussion-container {
  background-color: #ffffff;
  border: 2px solid #82BE21;
  border-radius: 12px;
  padding: 25px 20px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 30px 0;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.start-discussion-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.start-discussion-container h3 {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #333;
}

.start-discussion-container p {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
}

.start-discussion-btn {
  display: inline-block;
  background-color: #4CAF50;
  color: #fff;
  text-decoration: none;
  padding: 12px 30px;
  font-size: 1em;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.start-discussion-btn:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .start-discussion-container {
    padding: 20px 15px;
  }

  .start-discussion-container h3 {
    font-size: 1.4em;
  }

  .start-discussion-btn {
    padding: 10px 25px;
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .start-discussion-container {
    padding: 15px 10px;
  }

  .start-discussion-container h3 {
    font-size: 1.2em;
  }

  .start-discussion-container p {
    font-size: 0.9em;
  }

  .start-discussion-btn {
    padding: 8px 20px;
    font-size: 0.9em;
  }
}

/* Forum reviews box */
.forum-reviews-box {
  background: #FFAD00;
  border-left: 5px solid #e09600;
  padding: 20px;
  margin-top: 25px;
  border-radius: 8px;
}

.forum-reviews-box h3 {
  margin-bottom: 10px;
  color: #222;
}

.forum-reviews-box p {
  margin-bottom: 15px;
  color: #555;
}

/* Button */
.forum-btn {
  display: inline-block;
  background: #FFAD00;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.forum-btn:hover {
  background: #000;
}

/* Campsite info */
.campsite-info {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.campsite-info h3 {
  color: #2271B3;
  margin-bottom: 10px;
}

.campsite-info ul {
  list-style: none;
}

.campsite-info li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.main-column img {
  display: block;
  width: 100%;
  margin-bottom: 18px;
}

/* specifically ensure spacing AFTER info box too */
.campsite-info {
  margin-bottom: 18px;
}


.score-box {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 15px;
}

/* Verdict badge */
.score-verdict {
    display: inline-block;
    margin: 8px 0 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    opacity: 0.9;
}

/* BAR */
.score-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    margin: 12px 0 14px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

.score-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* === COLOUR STATES === */

/* Excellent */
.score-box.excellent .score-verdict {
    background: #e6f7ee;
    color: #1a7f4b;
}
.score-box.excellent .score-fill {
    background: linear-gradient(90deg, #1a7f4b, #2ecc71);
}

/* Very Good */
.score-box.very-good .score-verdict {
    background: #eaf2ff;
    color: #2271B3;
}
.score-box.very-good .score-fill {
    background: linear-gradient(90deg, #2271B3, #4aa3ff);
}

/* Good */
.score-box.good .score-verdict {
    background: #fff6e5;
    color: #b7791f;
}
.score-box.good .score-fill {
    background: linear-gradient(90deg, #d69e2e, #f6ad55);
}

/* Average */
.score-box.average .score-verdict {
    background: #f1f1f1;
    color: #666;
}
.score-box.average .score-fill {
    background: linear-gradient(90deg, #999, #bbb);
}

.score-value {
    font-size: 52px;
    font-weight: 900;
    color: #111;
    letter-spacing: -1px;
    margin-top: 1px;
    text-shadow: 0 2px 0 rgba(255,255,255,0.8);
}

.score-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );
    transform: skewX(-20deg);
}

.score-fill.animated::after {
    animation: shine 1.3s ease;
}

@keyframes shine {
    from { left: -60%; }
    to { left: 120%; }
}

.score-box {
    position: relative;
    margin-top: 18px;
}

.score-box::before {
    content: "Overall Rating";
    position: absolute;
    top: -10px;
    left: 20px;
    background: #fff;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 600;
    color: #FFAD00;
}

.campsite-header {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    padding: 18px 20px;
    border-radius: 14px;
    margin: 10px 0 20px;
    border: 1px solid #eee;
}

.campsite-title {
    font-size: 38px;
    font-weight: 900;
    margin: 0 0 6px 0;
    line-height: 1.1;
    color: #111;
    letter-spacing: -0.8px;
}

.campsite-meta {
    font-size: 14px;
    color: #666;
    margin-top: 0;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.campsite-meta .dot {
    opacity: 0.5;
}

.rating-breakdown {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f2f2f2;
  opacity: 0.9;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 6px 0;
}

.rating-label {
  width: 170px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

.rating-bar {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 20px;
  overflow: hidden;
}

.rating-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #4aa3ff, #2271B3);
    opacity: 0.85
}

.rating-score {
    width: 90px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
}

.rating-text {
  display: block;
  font-size: 11px;
  color: #777;
}

@media (max-width: 600px) {

  .rating-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .rating-label {
    width: 100%;
    font-size: 13px;
  }

  .rating-bar {
    flex: 1 1 100%;
    width: 100%;
  }

  .rating-score {
    width: 100%;
    text-align: left;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
  }
}
