:root {
  --ink: #17201d;
  --muted: #60706a;
  --paper: #f8f3ea;
  --paper-strong: #fffaf1;
  --sea: #0f6f79;
  --sea-dark: #0c3f46;
  --olive: #667a42;
  --sunset: #d66a3d;
  --sand: #e6d3b5;
  --cream: #fff8e8;
  --line: rgba(23, 32, 29, 0.14);
  --shadow: 0 28px 80px rgba(14, 44, 48, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(23, 32, 29, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(23, 32, 29, 0.03) 1px, transparent 1px) 0 0 / 40px 40px;
  pointer-events: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 56px);
  color: #fff8e8;
  background: rgba(12, 38, 42, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 34px;
  place-items: center;
  color: var(--sea-dark);
  background: #f6d26b;
  border-radius: 7px;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  gap: clamp(10px, 2vw, 24px);
  align-items: center;
  overflow-x: auto;
  font-size: 0.9rem;
  white-space: nowrap;
}

.top-nav a {
  text-decoration: none;
  opacity: 0.86;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  align-items: end;
  padding: 120px clamp(18px, 6vw, 76px) 72px;
  overflow: hidden;
  color: #fff8e8;
  background:
    linear-gradient(90deg, rgba(7, 30, 35, 0.93) 0%, rgba(7, 30, 35, 0.7) 43%, rgba(7, 30, 35, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 30, 35, 0.42), rgba(7, 30, 35, 0.12)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Sa_Calobra_04.jpg/1280px-Sa_Calobra_04.jpg") center / cover;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 24vh;
  content: "";
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sunset);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f6d26b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 12ch;
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 5.6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  line-height: 1.16;
}

.hero-lead {
  max-width: 620px;
  color: rgba(255, 248, 232, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.hero-actions,
.map-actions,
.checklist-actions,
.access-actions,
.potty-links,
.dog-place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.button,
.tool-button,
.filter,
.mini-map-button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.button.primary {
  color: var(--sea-dark);
  background: #f6d26b;
  border-color: #f6d26b;
}

.button.ghost {
  color: #fff8e8;
  background: rgba(255, 255, 255, 0.1);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero-meta span,
.tag,
.dog-rules span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  color: var(--sea-dark);
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 850;
}

.trust-strip,
.map-section,
.access-section,
.markets-section,
.summer-section,
.dog-section,
.route-section,
.gallery-section,
.potty-section,
.checklist-section,
.sources-section,
.tips-section,
.legal-section,
.monetization-section,
.blog-section,
.contact-section {
  padding: clamp(56px, 8vw, 116px) clamp(18px, 5vw, 72px);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
}

.trust-strip article {
  padding: 26px;
  background: rgba(255, 250, 241, 0.84);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip span,
.access-topline span,
.summer-card > span,
.blog-grid span,
.tips-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-strip strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  line-height: 1;
}

.trust-strip p,
.section-heading p,
.place-card p,
.timeline p,
.sources p,
.service-table,
.tips-grid p,
.legal-layout p,
.affiliate-grid p,
.blog-grid p,
.contact-section p,
.market-card p,
.access-card p,
.potty-card p,
.summer-card p,
.dog-card p {
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 13ch;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: stretch;
}

.map-toolbar,
.map-legend {
  grid-column: 1 / -1;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter,
.tool-button,
.mini-map-button {
  padding: 0 14px;
  color: var(--ink);
  cursor: pointer;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid var(--line);
}

.filter.active {
  color: #fff8e8;
  background: var(--sea);
  border-color: var(--sea);
}

.map-legend {
  display: grid;
  grid-template-columns: minmax(160px, 0.24fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-legend h3,
.map-legend p {
  margin-bottom: 4px;
}

.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-item {
  display: inline-flex;
  gap: 8px;
  min-height: 44px;
  align-items: center;
  padding: 6px 10px 6px 7px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 32, 29, 0.1);
  border-radius: 8px;
}

.legend-item span:last-child {
  display: grid;
}

.legend-item small {
  color: var(--muted);
  font-size: 0.74rem;
}

.legend-marker,
.marker-dot {
  display: grid;
  place-items: center;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(23, 32, 29, 0.22);
  font-size: 0.66rem;
  font-weight: 950;
}

.legend-marker {
  width: 32px;
  height: 32px;
}

.marker-dot {
  width: 34px;
  height: 34px;
}

.marker-scenic {
  background: var(--sea);
}

.marker-service {
  background: var(--olive);
}

.marker-potty {
  background: var(--sunset);
}

.marker-overnight {
  background: #5f5797;
}

.marker-parking {
  background: #2e5f8e;
}

.marker-avoid {
  background: #17201d;
}

.marker-dog {
  background: #8a5a22;
}

#map {
  min-height: 650px;
  overflow: hidden;
  background: #d9e8df;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-panel {
  max-height: 650px;
  padding: 20px;
  overflow: auto;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-button:hover,
.mini-map-button:hover {
  background: #f6d26b;
}

.tool-button.urgent {
  color: #fff8e8;
  background: var(--sunset);
  border-color: var(--sunset);
}

.nearest-result {
  display: grid;
  gap: 5px;
  margin: 14px 0 18px;
  padding: 13px;
  color: var(--muted);
  background: rgba(23, 32, 29, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
}

.nearest-result strong {
  color: var(--ink);
}

.quick-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px 0;
  cursor: pointer;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.quick-item strong {
  font-size: 0.98rem;
}

.quick-item span,
.popup-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.quick-item .quick-dog,
.popup-link,
.card-link,
.summer-link,
.source-item a,
.access-actions a,
.potty-links a,
.dog-place-actions a,
.affiliate-grid a {
  color: var(--sea);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.leaflet-popup-content {
  min-width: 230px;
}

.popup-title {
  display: block;
  margin-bottom: 6px;
  font-weight: 950;
}

.height-badge,
.dog-badge,
.confidence {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 6px;
  padding: 5px 8px;
  color: #fff8e8;
  background: var(--muted);
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.1;
}

.height-badge.ok,
.confidence.alta {
  color: var(--sea-dark);
  background: #f6d26b;
}

.height-badge.warn,
.confidence.media,
.dog-badge.verify {
  background: var(--sunset);
}

.height-badge.no,
.confidence.baja {
  background: #17201d;
}

.height-badge.dog,
.dog-badge {
  color: var(--sea-dark);
  background: #f6d26b;
}

.dog-badge.restricted,
.height-badge.dog.restricted {
  color: #fff8e8;
  background: var(--sunset);
}

.dog-badge.nearby,
.height-badge.dog.nearby {
  color: #fff8e8;
  background: var(--sea);
}

.timeline {
  display: grid;
  gap: 14px;
  counter-reset: route;
}

.stage {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.stage-num {
  color: var(--sunset);
  font-weight: 950;
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.access-grid,
.market-grid,
.dog-grid,
.summer-grid,
.potty-cards,
.place-grid,
.tips-grid,
.legal-layout,
.affiliate-grid,
.blog-grid,
.status-board,
.sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.place-card,
.access-card,
.market-card,
.potty-card,
.summer-card,
.dog-card,
.tips-grid article,
.legal-layout article,
.affiliate-grid article,
.blog-grid article,
.status-item,
.source-item {
  overflow: hidden;
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.place-card img,
.access-card img,
.market-card img,
.potty-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--sand);
}

.place-card-body,
.access-card-body,
.market-card-body,
.potty-card-body,
.summer-card,
.dog-card,
.tips-grid article,
.legal-layout article,
.affiliate-grid article,
.blog-grid article,
.status-item,
.source-item {
  padding: 20px;
}

.access-topline,
.dog-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

dl {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
}

.access-summary {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.access-summary div {
  display: grid;
  gap: 2px;
}

.access-summary strong {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.dog-note {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 12px;
  background: rgba(15, 111, 121, 0.08);
  border: 1px solid rgba(15, 111, 121, 0.16);
  border-radius: 8px;
}

.dog-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.dog-place-list {
  display: grid;
  gap: 12px;
}

.dog-place {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.comment-box {
  margin-top: 14px;
  padding: 14px;
  background: rgba(23, 32, 29, 0.05);
  border-radius: 8px;
}

.service-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.service-table th,
.service-table td {
  padding: 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.affiliate-disclosure {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  max-width: 780px;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.privacy-check {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  color: var(--muted);
  font-weight: 650;
}

.privacy-check input {
  width: 18px;
  min-height: 18px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 248, 232, 0.82);
  background: var(--sea-dark);
}

.site-footer p {
  max-width: 820px;
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.stage,
.place-card,
.access-card,
.potty-card {
  animation: revealUp 0.7s ease both;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 150px;
    background-position: 58% center;
  }

  .trust-strip,
  .map-layout,
  .access-grid,
  .market-grid,
  .dog-grid,
  .summer-grid,
  .potty-cards,
  .place-grid,
  .tips-grid,
  .legal-layout,
  .affiliate-grid,
  .blog-grid,
  .status-board,
  .sources {
    grid-template-columns: 1fr;
  }

  .map-legend {
    grid-template-columns: 1fr;
  }

  #map,
  .map-panel {
    min-height: 460px;
    max-height: none;
  }

  .stage {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(3.05rem, 18vw, 4.25rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero {
    min-height: 86svh;
    padding-right: 16px;
    padding-left: 16px;
  }

  .trust-strip,
  .map-section,
  .access-section,
  .markets-section,
  .summer-section,
  .dog-section,
  .route-section,
  .gallery-section,
  .potty-section,
  .checklist-section,
  .sources-section,
  .tips-section,
  .legal-section,
  .monetization-section,
  .blog-section,
  .contact-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .button,
  .tool-button {
    width: 100%;
  }

  .place-card img,
  .access-card img,
  .market-card img,
  .potty-card img {
    height: 190px;
  }
}

@media print {
  .site-header,
  .hero,
  .map-section,
  .site-footer,
  .sources-section,
  .contact-section {
    display: none;
  }

  body {
    background: white;
  }
}
.tramuntana-parking-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem);
  background: #eef2e8;
}

.parking-alert {
  max-width: 1120px;
  margin: 1.5rem auto 2rem;
  padding: 1.25rem 1.4rem;
  border-left: 6px solid #c7502d;
  border-radius: 0 16px 16px 0;
  background: #fff6e8;
  color: #382e26;
}

.parking-alert p { margin: .45rem 0 0; }
.parking-alert a { color: inherit; font-weight: 800; }

.tramuntana-parking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
}

.parking-place, .parking-rules {
  padding: 1.45rem;
  border: 1px solid rgba(34, 59, 54, .16);
  border-radius: 18px;
  background: #fffdf7;
  box-shadow: 0 12px 34px rgba(34, 59, 54, .07);
}

.parking-place-priority { border: 2px solid #2f6f5e; }
.parking-place h3, .parking-rules h3 { margin: .75rem 0; color: #223b36; }
.parking-place p { margin: .6rem 0; }
.parking-status { display: inline-block; padding: .35rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.status-check { background: #ffe1a8; color: #6a4100; }
.status-day { background: #dcebe7; color: #214f44; }
.status-evidence { background: #e7e2f5; color: #4a3970; }
.parking-rules { max-width: 1120px; margin: 1rem auto 0; }
.parking-rules li { margin-bottom: .45rem; }
.source-note { color: #596863; font-size: .9rem; }

@media (max-width: 760px) {
  .tramuntana-parking-grid { grid-template-columns: 1fr; }
}

.cool-night-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem);
  background: linear-gradient(180deg, #163d42 0%, #20545a 100%);
  color: #eef7f3;
}

.cool-night-section .section-heading h2, .cool-night-section .section-heading p { color: inherit; }
.cool-night-section .eyebrow { color: #9ed9c9; }
.heat-method, .cool-place-grid, .cool-warning { max-width: 1120px; margin-left: auto; margin-right: auto; }
.heat-method { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1.5rem; margin-bottom: 1.25rem; padding: 1rem 1.2rem; border-radius: 16px; background: rgba(255,255,255,.1); }
.heat-method span { padding: .35rem .55rem; border-radius: 8px; background: rgba(255,255,255,.08); font-size: .88rem; }
.heat-method a { color: #fff; font-weight: 800; }
.cool-place-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cool-place { padding: 1.4rem; border-radius: 18px; background: #f8fbf7; color: #263b38; border: 1px solid rgba(255,255,255,.22); }
.cool-place.featured { outline: 3px solid #e9b85a; }
.cool-place.legal { border-top: 5px solid #4e9b78; }
.cool-place h3 { margin: .85rem 0; color: #163d42; }
.cool-place p { margin: .6rem 0; }
.cool-score { display: grid; grid-template-columns: auto auto auto auto; gap: .45rem; align-items: center; font-size: .76rem; text-transform: uppercase; color: #59706b; }
.cool-score strong { padding: .25rem .45rem; border-radius: 6px; background: #dcece4; color: #214f44; }
.cool-warning { margin-top: 1rem; padding: 1.15rem 1.3rem; border-radius: 16px; background: #fff0d0; color: #4c3510; }
.cool-warning p { margin: .4rem 0 0; }

@media (max-width: 760px) {
  .cool-place-grid { grid-template-columns: 1fr; }
  .cool-score { grid-template-columns: auto auto; }
}
