:root {
  --primary: #1a3c5e;
  --accent: #e8a838;
  --bg: #f5f5f0;
  --card: #fff;
  --text: #222;
  --muted: #666;
  --border: #ddd;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }

/* NAV */
.nav {
  background: var(--primary);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: #b0c4de;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-count {
  background: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-dark { background: var(--primary); color: #fff; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a5a8a 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem 4rem;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; color: #b0c4de; margin-bottom: 2rem; }

.search-bar {
  display: flex;
  gap: 0.5rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.search-bar select, .search-bar input {
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  min-width: 140px;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

/* SPOTLIGHT (card-width, dismissable) */
.spotlight-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 2px solid var(--accent);
}
.spotlight-card-inner {
  display: flex;
  align-items: stretch;
  cursor: pointer;
  transition: opacity 0.2s;
}
.spotlight-card-inner:hover { opacity: 0.95; }
.spotlight-card-inner img {
  width: 35%;
  min-height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}
.spotlight-card-body {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}
.spotlight-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  width: fit-content;
}
.spotlight-card-body h2 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 0;
}
.spotlight-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.spotlight-meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.spotlight-dismiss {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.spotlight-dismiss:hover { background: rgba(0,0,0,0.7); }

/* SECTION */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
  cursor: pointer;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.card-img-wrap { position: relative; }
.card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0,0,0,0.3));
  pointer-events: none;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body { padding: 1rem; }
.card-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.3rem; }
.card-price { color: var(--accent); font-weight: 700; font-size: 1.2rem; }
.card-meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }
.card-location { color: var(--muted); font-size: 0.85rem; }
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
}
.card-days {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}
.card-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
}

/* LISTINGS PAGE LAYOUT */
.listings-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* FILTERS SIDEBAR */
.filters {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  height: fit-content;
  position: sticky;
  top: 1rem;
}
.filters h3 { margin-bottom: 1rem; color: var(--primary); }
.filter-group { margin-bottom: 1.2rem; }
.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--muted);
}
.filter-group select,
.filter-group input[type="range"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
}
.filter-group input[type="range"] { padding: 0; }
.range-val { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.filter-checks label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  cursor: pointer;
}
.filter-checks input { accent-color: var(--accent); }

/* BREADCRUMB */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  font-size: 0.9rem;
}
.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary); }

/* LISTING DETAIL */
.detail-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.carousel {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #000;
}
.carousel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: none;
}
.carousel img.active { display: block; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  border-radius: 6px;
}
.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }
.carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}
.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.carousel-dots span.active { background: #fff; }

.detail-info {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.detail-info h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.detail-price { font-size: 2rem; color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.spec-item { font-size: 0.9rem; }
.spec-item strong { color: var(--primary); }

/* SHARE / OUTLINE-DARK BTN */
.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.7rem 1.2rem;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 2000;
  animation: fadeInUp 0.3s;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* SCROLL TO TOP */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 900;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover { transform: translateY(-2px); }

/* TABS */
.tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-nav button {
  padding: 0.8rem 1.5rem;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab-nav button.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h3 { margin-bottom: 0.5rem; color: var(--primary); }
.tab-panel p, .tab-panel li { color: var(--muted); font-size: 0.95rem; }
.tab-panel ul { padding-left: 1.2rem; }

/* AI VALUATION BOX */
.ai-box {
  background: linear-gradient(135deg, #1a3c5e, #2a5a8a);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.ai-box h3 { color: var(--accent); margin-bottom: 0.5rem; }
.ai-estimate {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.ai-factors { list-style: none; padding: 0; }
.ai-factors li {
  font-size: 0.9rem;
  color: #b0c4de;
  padding: 0.2rem 0;
}
.ai-factors li::before { content: "✔ "; color: var(--accent); }
.ai-confidence {
  margin-top: 0.8rem;
  font-weight: 600;
  color: #7ddf7d;
}

/* SELL FORM */
.sell-form {
  max-width: 700px;
  margin: 2rem auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sell-form h2 { color: var(--primary); margin-bottom: 1.5rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.feature-tag {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.feature-tag.selected {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  font-weight: 600;
}

/* FORM FOCUS STATES */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
}

/* FOOTER */
.footer {
  background: var(--primary);
  color: #8aa;
  padding: 3rem 2rem 1.5rem;
  font-size: 0.85rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--accent); }
.footer-grid p { color: #8aa; line-height: 1.5; }
.footer-grid h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.footer-grid a {
  display: block;
  color: #8aa;
  padding: 0.2rem 0;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* STICKY CONTACT FOOTER (listing page) */
.sticky-contact {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  z-index: 900;
  padding: 0.6rem 1.5rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.sticky-contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sticky-contact-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}
.sticky-contact-title {
  color: #b0c4de;
  font-size: 0.85rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-contact-btn {
  white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .listings-layout { grid-template-columns: 1fr; }
  .detail-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .filters { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-count { display: none; }
  .spotlight-card-inner { flex-direction: column; }
  .spotlight-card-inner img { width: 100%; height: 200px; }
  .spotlight-card-body { gap: 0.8rem; padding: 1rem; }
  .spotlight-card-body h2 { font-size: 1rem; }
  .spotlight-price { font-size: 1.2rem; }
  .spotlight-meta { font-size: 0.82rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem 2rem;
    gap: 1rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav { position: relative; }
  .sticky-contact-title { display: none; }
}

/* CONTACT MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  position: relative;
}
.modal-box h3 { color: var(--primary); }
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}
.seller-details {
  background: var(--bg);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.seller-details a { color: var(--accent); font-weight: 600; }

.phone-blur {
  filter: blur(4px);
  user-select: none;
  color: var(--muted);
}
.btn-accent-sm {
  background: var(--accent);
  color: var(--primary);
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
}
.btn-outline-sm {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
}
.btn-outline-sm:hover { border-color: var(--accent); color: var(--primary); }

.ref-code {
  background: var(--accent);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 2px;
}
.ref-input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 4px;
  font-weight: 700;
}
.ref-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
}

/* LISTING FEE */
.listing-fee {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 2px solid var(--accent);
}
.listing-fee h3 { color: var(--primary); margin-bottom: 0.3rem; }
.fee-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.fee-option {
  cursor: pointer;
  display: block;
}
.fee-option input { display: none; }
.fee-card {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
}
.fee-card strong { display: block; margin-bottom: 0.3rem; color: var(--primary); }
.fee-card span { font-size: 0.85rem; color: var(--muted); }
.fee-option.selected .fee-card {
  border-color: var(--accent);
  background: #fdf6e8;
}
.btn-revolut {
  background: #191C1F;
  color: #fff;
  font-size: 1rem;
  padding: 0.9rem;
}

/* EVENTS PAGE */
.event-group {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.event-group:last-child { border-bottom: none; }
.event-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.event-header h2 { color: var(--primary); font-size: 1.4rem; margin: 0; }
.event-dates {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.event-desc { color: var(--muted); margin-bottom: 0.8rem; }
.event-tip {
  background: #fdf6e8;
  border-left: 3px solid var(--accent);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.2rem;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.event-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.event-card:hover { transform: translateY(-2px); }
.event-card h3 { font-size: 1.05rem; color: var(--primary); margin: 0.3rem 0; }
.event-card-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
}
.event-card-location {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.event-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* CAMPSITES PAGE */
.campsite-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.campsite-stats strong { color: var(--primary); font-size: 1.3rem; display: block; }
.county-group {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.county-group:last-child { border-bottom: none; }
.county-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}
.county-header h2 { color: var(--primary); font-size: 1.3rem; margin: 0; }
.county-province {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
}
.campsite-vibes { font-size: 1.1rem; margin-bottom: 0.2rem; }
.campsite-tip {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--accent);
  font-style: italic;
}

/* ROADMAP VOTE BUTTON */
.roadmap-vote {
  margin-top: 0.8rem;
  padding: 0.4rem 1rem;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--muted);
}
.roadmap-vote:hover { border-color: var(--accent); color: var(--primary); }
.roadmap-vote.voted {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
