:root {
  --canvas: #EAF2F8;
  --paper: #FFFFFF;
  --ink: #1B263B;
  --sec-text: #415A77;
  --muted-blue: #3A86FF;
  --line: #B5C9DF;
  --note-bg: #E0E1DD;
  --accent: #FF006E;
}

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

body { 
  font-family: system-ui, -apple-system, sans-serif; 
  background: var(--canvas); 
  color: var(--ink); 
  font-size: 17px; 
  line-height: 1.6; 
}

h1, h2, h3, h4, h5, h6 { 
  font-family: inherit; 
  color: var(--ink); 
  font-weight: 700; 
}

h1 { 
  font-size: clamp(1.8rem, 3vw, 2.8rem); 
  margin-bottom: 24px; 
}

h2 { 
  font-size: 1.5rem; 
  margin-bottom: 8px; 
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

a { 
  color: var(--muted-blue); 
  text-decoration: underline; 
  text-decoration-thickness: 1px; 
  text-underline-offset: 3px; 
}

a:hover { 
  color: var(--ink); 
}

button, input, select, textarea { 
  font-family: inherit; 
  font-size: 1rem; 
  border: 1px solid var(--line); 
  border-radius: 6px; 
  padding: 12px 16px; 
  background: var(--paper); 
  color: var(--ink); 
}

.control { 
  border-radius: 6px; 
}

.site-wrapper { 
  display: flex; 
  max-width: 1312px; 
  margin: 0 auto; 
  padding: 0 16px; 
  gap: 32px; 
}

.left-rail { 
  width: 220px; 
  flex-shrink: 0; 
  position: sticky; 
  top: 0; 
  padding-top: 32px; 
  height: 100vh; 
  overflow-y: auto; 
}

.wordmark { 
  font-family: inherit; 
  font-size: 1.2rem; 
  font-weight: 700; 
  margin-bottom: 32px; 
  display: block; 
  text-decoration: none; 
  color: var(--ink); 
}

.nav-menu { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  list-style: none; 
}

.nav-menu a { 
  text-decoration: none; 
  color: var(--sec-text); 
  font-size: 0.95rem; 
}

.nav-menu a:hover { 
  color: var(--ink); 
  text-decoration: underline; 
}

.main-column { 
  flex-grow: 1; 
  max-width: 1060px; 
  padding-top: 32px; 
  padding-bottom: 64px; 
}

.utility-line { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  background: var(--note-bg); 
  padding: 0 16px; 
  height: 48px; 
  border-radius: 2px; 
  margin-bottom: 32px; 
  font-size: 0.9rem; 
  color: var(--sec-text); 
}

.finnish-city-hero-image,
.team-collaboration-hero-image,
.guide-hero-image,
.faq-hero-image,
.cities-hero-image,
.contact-hero-image,
.sources-hero-image,
.responsible-hero-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.search-wrap { 
  margin-bottom: 24px; 
}

.search-wrap input { 
  width: 100%; 
}

.city-tabs { 
  display: flex; 
  gap: 12px; 
  margin-bottom: 24px; 
  overflow-x: auto; 
  padding-bottom: 8px; 
}

.tab-btn { 
  cursor: pointer; 
  white-space: nowrap; 
  color: var(--muted-blue);
  border-color: var(--muted-blue);
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.tab-btn:hover {
  background: var(--canvas);
}

.tab-btn.active { 
  background: var(--muted-blue); 
  color: var(--paper); 
  border-color: var(--muted-blue); 
}

.ledger-labels { 
  display: none; 
}

.location-row { 
  display: flex; 
  background: var(--paper); 
  border-radius: 8px; 
  border: 1px solid var(--line); 
  margin-bottom: 24px; 
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.location-row:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.location-image-col {
  width: 280px;
  flex-shrink: 0;
  background: var(--note-bg);
}

.location-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-content { 
  flex-grow: 1; 
  padding: 24px; 
  display: flex;
  flex-direction: column;
}

.location-top { 
  display: grid; 
  grid-template-columns: 1fr 220px; 
  gap: 32px; 
  margin-bottom: 16px; 
}

.ref-id {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(255,0,110,0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.location-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.location-name a {
  color: var(--ink);
  text-decoration: none;
}

.location-name a:hover {
  color: var(--muted-blue);
  text-decoration: underline;
}

.location-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--sec-text);
}

.location-desc {
  font-size: 0.95rem;
  color: var(--sec-text);
  margin-bottom: 16px;
  line-height: 1.5;
}

.location-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.amenity-badge {
  background: var(--canvas);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  color: var(--sec-text);
  border: 1px solid var(--line);
}

.location-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.btn-primary {
  background: var(--muted-blue);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--muted-blue);
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background: #2566D8;
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--muted-blue);
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--muted-blue);
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--canvas);
  text-decoration: none;
}

.hours-table { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 0.95rem; 
}

.hours-table td { 
  padding: 4px 0; 
  border-bottom: 1px solid var(--canvas); 
}

.hours-table tr:last-child td { 
  border-bottom: none; 
}

.location-evidence { 
  margin-top: 16px;
  padding-top: 16px; 
  border-top: 1px solid var(--line); 
  font-size: 0.9rem; 
  color: var(--sec-text); 
}

/* Detail Specific Styling */
.detail-hero {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  height: 400px;
  background: var(--note-bg);
}

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

.detail-gallery-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.detail-sidebar {
  background: var(--paper);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: sticky;
  top: 32px;
  height: max-content;
}

.map-container {
  width: 100%;
  height: 250px;
  background: var(--canvas);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.site-footer { 
  margin-top: 64px; 
  padding-top: 32px; 
  border-top: 2px solid var(--line); 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
  font-size: 0.9rem; 
  color: var(--sec-text); 
}

.mobile-top { 
  display: none; 
}

.mobile-menu {
  display: none;
}

.explanation-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 32px; 
  margin-top: 48px; 
  background: var(--paper); 
  padding: 24px; 
  border-radius: 2px; 
  border: 1px solid var(--line); 
}

.contact-form { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  max-width: 600px; 
  background: var(--paper); 
  padding: 24px; 
  border: 1px solid var(--line); 
  border-radius: 2px; 
}

.contact-form label { 
  font-weight: bold; 
}

.contact-form textarea { 
  resize: vertical; 
  min-height: 100px; 
}

#draft-output { 
  background: var(--note-bg); 
  padding: 16px; 
  border-radius: 2px; 
  margin-top: 16px; 
  font-family: ui-monospace, monospace; 
  display: none; 
  white-space: pre-wrap; 
}

.page-content { 
  background: var(--paper); 
  padding: 32px; 
  border-radius: 2px; 
  border: 1px solid var(--line); 
  margin-bottom: 32px; 
}

.support-banner {
  margin-top: 32px;
  background: var(--note-bg);
  padding: 16px;
  border-radius: 2px;
  font-weight: bold;
}

ul.text-list {
  padding-left: 20px;
  margin-bottom: 16px;
}

ul.text-list li {
  margin-bottom: 8px;
}

/* Cookie Banner Styles */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 16px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.cookie-content {
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
}
.cookie-content a {
  color: var(--paper);
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.accept-btn {
  background: var(--muted-blue);
  color: #fff;
  border-color: var(--muted-blue);
  cursor: pointer;
}
.accept-btn:hover {
  background: #2566D8;
  border-color: #2566D8;
}
.reject-btn {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
  cursor: pointer;
}
.reject-btn:hover {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 899px) {
  .site-wrapper { 
    flex-direction: column; 
    padding: 0; 
    gap: 0; 
  }
  .left-rail { 
    display: none; 
  }
  .mobile-top { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 56px; 
    padding: 0 16px; 
    background: var(--paper); 
    border-bottom: 1px solid var(--line); 
    position: sticky; 
    top: 0; 
    z-index: 10; 
  }
  .mobile-top .wordmark {
    margin-bottom: 0;
  }
  .mobile-menu { 
    display: none; 
    background: var(--paper); 
    padding: 16px; 
    border-bottom: 1px solid var(--line); 
  }
  .mobile-menu.is-open { 
    display: block; 
  }
  .main-column { 
    padding: 16px; 
  }
  .location-row { 
    flex-direction: column; 
  }
  .location-image-col { 
    width: 100%; 
    height: 220px;
  }
  .location-top { 
    grid-template-columns: 1fr; 
    gap: 16px;
  }
  .location-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .detail-hero {
    grid-template-columns: 1fr;
    height: 300px;
  }
  .detail-gallery-right {
    display: none;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
  }
  .explanation-grid, .site-footer { 
    grid-template-columns: 1fr; 
  }
  .cookie-content {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 479px) {
  .location-evidence span {
    display: block;
    margin-bottom: 8px;
  }
}