/*top 5 sidebar*/

.rank-item {
  margin-bottom: 10px;
  border-radius: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rank-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 10px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.rank-item:hover {
  transform: translateY(-2px);
}

.rank-item a:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.rank-left {
  width: 35px;
}

.rank-number {
  background: #FF7F00;
  color: white;
  font-weight: 700;
  font-size: 0.8em;
  padding: 5px 8px;
  border-radius: 22px;
}

.rank-mid {
  flex: 1;
  padding: 0 10px;
}

.rank-name {
  font-weight: 600;
  font-size: 0.95em;
  color: #222;
}

.rank-location {
  font-size: 0.75em;
  color: #777;
  margin-top: 2px;
}

.rank-right {
  text-align: right;
  color: #82BE21;
  font-weight: 700;
}

.rank-right small {
  display: block;
  font-size: 0.7em;
  color: #aaa;
}

.score-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #82BE21;
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  box-shadow: 0 3px 8px rgba(130, 190, 33, 0.35);
}



/* =========================
   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;
}



/* =========================
   LAYOUT
========================= */
.campsite-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0px auto;
  padding: 20px 20px;
  align-items: start;
}

.main-column,
.sidebar {
  min-width: 0;
}

/* =========================
   CONTENT BOXES
========================= */


.main-column img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.campsite-info ul {
  list-style: none;
}

.campsite-info li {
  margin-bottom: 22px;
}

.review-text {
  background: #fff;
  padding: 18px;
  border-radius: 22px;
  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;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================
   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;
  border-radius: 15px;
}

.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: 22px;
}

.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;
  }

 
  .review-text,
  .campsite-info {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}


/* Campsite info */
.campsite-info {
  background: white;
  padding: 15px;
  border-radius: 22px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.campsite-info h3 {
  color: #2271B3;
  margin-bottom: 10px;
}

.campsite-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.campsite-info li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.95em;
  line-height: 1.3;
}


/* specifically ensure spacing AFTER info box too */
.campsite-info {
  margin-bottom: 18px;
}


.score-box {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 22px;
    padding: 18px 20px;
    margin-top: 15px;
    overflow: visible;
}

/* Verdict badge */
.score-verdict {
    display: inline-block;
    margin: 8px 0 12px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 22px;
    opacity: 0.9;
}

/* BAR */
.score-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 22px;
    overflow: hidden;
    margin: 12px 0 14px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

.score-fill {
    height: 100%;
    border-radius: 22px;
    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: 22px;
    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: 22px;
  overflow: hidden;
}

.rating-fill {
    height: 100%;
    border-radius: 22px;
    transition: width 0.5s ease;
    opacity: 0.85;
    width: 0;
    position: relative;
}

.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;
  }
}

.score-insight {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    opacity: 0;
    transform: translateX(30px);
    will-change: transform, opacity;
}

.score-insight span {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f6f8fa;
}

.score-insight .good {
    background: #e6f7ee;
    color: #1a7f4b;
}
.score-insight .bad {
    background: #ffecec;
    color: #b3261e;
}

.score-verdict-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* wraps nicely on mobile */
    margin: 8px 0 12px;
}

.score-verdict {
    margin: 0; /* remove old spacing */
}

.score-region-badge {
    margin: 0; /* keep inline clean */
}

.score-region-badge::before {
    content: "•";
    margin-right: 8px;
    opacity: 0.4;
}


@keyframes insightSlideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    70% {
        transform: translateX(-6px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Verdict + bar fade up */
.score-verdict,
.score-bar {
    opacity: 0;
    transform: translateY(6px);
}

/* Insight slides from right */
.score-insight {
    opacity: 0;
    transform: translateX(30px);
}

.score-verdict.animate-in {
    animation: fadeUp 0.5s ease forwards;
}

.score-bar.animate-in {
    animation: fadeUp 0.6s ease 0.15s forwards;
}

.score-insight.animate-in {
    animation: insightSlideIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rating-fill.animate {
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Excellent (green) */
.rating-fill.excellent {
    background: linear-gradient(90deg, #1a7f4b, #2ecc71);
}

/* Very Good (blue) */
.rating-fill.very-good {
    background: linear-gradient(90deg, #2271B3, #4aa3ff);
}

/* Good (amber) */
.rating-fill.good {
    background: linear-gradient(90deg, #d69e2e, #f6ad55);
}

/* Poor (red/grey) */
.rating-fill.poor {
    background: linear-gradient(90deg, #b3261e, #ff6b6b);
}


.similar-intro {
  margin: 8px 0 12px;
  font-size: 14px;
  color: #666;
}

.similar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.similar-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f2f2f2;
}

.similar-list li:last-child {
  border-bottom: none;
}

.similar-list a {
  text-decoration: none;
}

.similar-list a:hover {
  text-decoration: underline;
}

.similar-score {
  font-size: 13px;
  color: #4CAF50;
  font-weight: 500;
  white-space: nowrap;
}



.review-text h2,
.campsite-info h3,
.campsite-weather h3,
.similar-campsites h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2271B3;
  margin: 0 0 10px 0;
  line-height: 1.2;
  margin-bottom: 10px;
}

.similar-intro {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 8px 0 12px;
  font-weight: 400;
}

.info-rating {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.info-rating .official-stars {
    color: #FFAD00;
    margin-left: 6px;
}

.info-rating .official-value {
    font-size: 12px;
    color: #888;
    margin-left: 4px;
}

.campsite-info li i {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: #2271B3;
}

.score-verdict-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* force consistent vertical box model */
.score-verdict,
.score-insight {
  display: flex;
  align-items: center;
  line-height: 1;
  margin: 0;
  font-size: 14px;
}

.campsite-info img {
  display: block;
  margin-bottom: 8px;
  border-radius: 22px;
}

@media (max-width: 768px) {
  .main-column img {
    height: 200px;
  }
}

.rank-info {
  margin: 10px 0 15px;
  padding: 10px 14px;
  background: #f3f9ec;
  border-left: 4px solid #82BE21;
  border-radius: 22px;
  font-weight: 600;
  display: inline-block;
}

.rank-link {
  margin-left: 10px;
  font-size: 0.9em;
  color: #2b6f1f;
  text-decoration: none;
}

.rank-link:hover {
  text-decoration: underline;
}

.rank-btn {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: 12px 16px;

  background: #FFAD00;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;

  border-radius: 22px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  text-align: center;

  transition: all 0.2s ease;

  /* IMPORTANT FIX */
  position: relative;
  z-index: 5;
}

.rank-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.rank-btn:active {
  transform: translateY(0);
}


/* =========================
   SIDEBAR CARD
========================= */

.sidebar-widget {
  background: linear-gradient(
    to bottom,
    rgba(130,190,33,0.06),
    rgba(130,190,33,0.02)
  );
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  border: 1px solid rgba(130,190,33,0.2);
}

.sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #111827;
  text-align: center;
}

.comments-box {
    margin-top: 0px;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Comment card */
.comment-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: 0.2s ease;
}

.comment-card:hover {
    transform: translateY(-2px);
}

/* top row */
.comment-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
}

.comment-country {
    font-size: 13px;
    background: #f3f6f9;
    padding: 2px 8px;
    border-radius: 20px;
    color: #666;
}

.comment-date {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

/* body */
.comment-body {
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}

/* form */
.comment-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form input,
.comment-form textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 22px;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-form button {
    background: #FFAD00;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 22px;
    cursor: pointer;
    font-weight: 600;
}

.comment-form button:hover {
    background: #27ae60;
}

.comment-note {
    font-size: 12px;
    color: #888;
}

.no-comments {
    color: #777;
    font-style: italic;
}

.comment-rating {
    color: #f5b301;
    font-size: 16px;
    margin: 5px 0;
    letter-spacing: 2px;
}

.star-rating select {
    width: 100%;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
}

.qa-widget{
    margin-top:0px;
    background:#fff;
    border-radius:22px;
    padding:30px;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
}

.qa-widget h2{
    font-size:28px;
    margin-bottom:8px;
}

.qa-sub{
    color:#666;
    margin-bottom:25px;
}

.qa-card{
    padding:18px;
    margin-bottom:18px;
    border:1px solid #eee;
    border-radius:22px;
    background:#fafafa;
}

.qa-q{
    font-size:16px;
    margin-bottom:12px;
}

.qa-a{
    background:#eaf8ef;
    padding:12px;
    border-radius:22px;
    font-size:15px;
}

.qa-awaiting{
    color:#999;
    font-size:14px;
}

.qa-form{
    margin-top:35px;
}

.qa-form h3{
    margin-bottom:15px;
}

.qa-form input,
.qa-form textarea{
    width:100%;
    padding:14px;
    margin-bottom:14px;
    border:1px solid #ddd;
    border-radius:22px;
    font-size:15px;
}

.qa-form button{
    background:#FFAD00;
    color:#fff;
    border:none;
    padding:14px 22px;
    border-radius:22px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
}

.qa-form button:hover{
    opacity:.9;
}

.qa-message{
    background:#eaf8ef;
    padding:14px;
    border-radius:22px;
    margin-bottom:20px;
}


.hidden-review{
    display:none;
}

.load-more-btn{
    margin-top:15px;
    padding:10px 14px;
    border:none;
    background:#1e73ff;
    color:#fff;
    border-radius:22px;
    cursor:pointer;
    font-weight:600;
}

.load-more-btn:hover{
    background:#155ad6;
}

/* ========================================
   SIDEBAR BOXES
======================================== */

.sidebar-box,
.sidebar-section,
.sidebar-widget {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.sidebar-box:hover,
.sidebar-section:hover,
.sidebar-widget:hover {
  transform: translateY(-3px);
}

/* Fancy widget variation */
.sidebar-widget {
  background: linear-gradient(
    to bottom,
    rgba(130,190,33,0.06),
    rgba(130,190,33,0.02)
  );
  border: 1px solid rgba(130,190,33,0.2);
}

/* ========================================
   TITLES
======================================== */

.sidebar-title,
.sidebar-box h3,
.sidebar-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2271B3;
  margin-bottom: 14px;
}

/* ========================================
   LISTS & LINKS
======================================== */

.sidebar-box ul,
.sidebar-section ul,
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-box li,
.sidebar-section li {
  margin-bottom: 10px;
}

.sidebar-box a,
.sidebar-section a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.sidebar-box a:hover,
.sidebar-section a:hover {
  color: #82BE21;
}

/* ========================================
   BUTTON LINKS
======================================== */

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 11px 14px;
  border-radius: 12px;

  background: #fff;
  border: 1px solid rgba(130,190,33,0.25);

  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;

  transition: all 0.2s ease;
}

.side-btn:hover {
  background: #82BE21;
  color: #fff;
  border-color: #82BE21;

  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(130,190,33,0.25);
}

.side-btn:active {
  transform: scale(0.98);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

  .sidebar {
    flex: 100%;
    width: 100%;
  }

  .sidebar-box,
  .sidebar-section,
  .sidebar-widget {
    padding: 15px;
  }

  .side-btn {
    font-size: 13.5px;
    padding: 10px;
  }

}
