@import url("fonts.css");

:root {
  --text-color: #000000;
  --background-color: #ffffff;
  --primary-green: #4ba659;
  --primary-red: #ca3e46;
}

body {
  font-family:
    "Noto Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 0.6rem 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #222;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-logo img {
  height: 42px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav-item:hover {
  background: #f4f4f4;
}

.has-sub {
  position: relative;
}

.sub-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.chevron {
  transition: transform 0.25s ease;
}

.sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  list-style: none;
  padding: calc(0.5rem + 6px) 0 0.5rem;
  margin: 0;
  display: none;
  border-radius: 6px;
  min-width: 180px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.sub-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

@media (hover: hover) {
  .has-sub:hover > .sub-menu {
    display: block;
  }

  .has-sub:hover .chevron {
    transform: rotate(90deg);
  }
}

.has-sub.open > .sub-menu {
  display: block;
}

.has-sub.open .chevron {
  transform: rotate(90deg);
}

.sub-item {
  display: block;
  padding: 0.45rem 1rem;
  text-decoration: none;
  color: #222;
  font-weight: 600;
}

.sub-item:hover {
  background: #f4f4f4;
}

.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #222;
}

@media (max-width: 800px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .nav-logo img {
    height: 36px;
  }

  .nav-toggle-btn {
    display: block;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    padding-top: 0.5rem;
    border-top: 2px solid #e0e0e0;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-item,
  .sub-label {
    padding: 0.75rem 0.7rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .sub-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0.3rem 0 0.3rem 1rem;
    width: 100%;
  }

  .sub-item {
    padding: 0.65rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .sub-label {
    width: 100%;
  }
}

.footer {
  background-color: #f9f9f9;
  color: #333;
  font-family:
    "Noto Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  padding: 2.618rem 1.618rem;
  border-top: 2px solid #e8e8e8;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1.618rem;
}

.footer-left {
  flex: 1 1 400px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logos img {
  height: 50px;
}

.footer-contact {
  font-size: 0.875rem;
  margin: 1rem 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--primary-green);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #3b8a4f;
  text-decoration: underline;
}

.footer-right {
  flex: 1 1 400px;
  min-width: 300px;
}

.footer-right iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.618rem;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    text-align: center;
  }

  .footer-logos {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }
}

.museum-image {
  max-width: 100%;
  text-align: center;
  cursor: pointer;
  margin: 1.5rem 0;
}

.museum-image img {
  max-width: 100%;
  border-radius: 2px;
  transition: transform 0.1s ease;
}

.museum-image img:hover {
  transform: scale(1.005);
}

.museum-image-caption {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: #888;
}

.image-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
  z-index: 999999;
}

.image-viewer.show {
  display: flex;
}

.image-viewer img {
  max-width: 95%;
  max-height: 80vh;
  border-radius: 0px;
}

.image-viewer-caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: #fff !important;
}

.image-viewer-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
}

.contact-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
}

a[href^="http"]:not([href*=""])::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.2em;
  margin-bottom: -0.1em;
  background-color: currentColor;
  mask: url("/static/images/external-link.svg") no-repeat center;
  mask-size: contain;
}

.footer-right .map-consent {
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  padding: 1rem;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.footer-right .map-consent p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #333;
}

.footer-right .map-consent button {
  background-color: var(--primary-green);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.footer-right .map-consent button:hover {
  background-color: #3b8a4f;
}

/* ── Touch / tap improvements (all devices) ────────────────────────────── */

button,
a,
label,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.map-consent-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.map-info-btn {
  background: transparent;
  border: 2px solid #ccc;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: #555;
  font-family: inherit;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.map-info-btn:hover {
  border-color: #333;
  color: #333;
}

.map-info-modal {
  border: none;
  padding: 0;
  background: transparent;
}

.map-info-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.map-info-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  width: min(520px, 90vw);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.map-info-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1a1a;
}

.map-info-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.map-info-tabs input {
  display: none;
}

.map-info-tabs label {
  position: relative;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.map-info-tabs label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.map-tab-content {
  grid-column: 1 / -1;
  display: none;
  margin-top: 0.8rem;
  line-height: 1.65;
  font-size: 0.95rem;
  color: #444;
}

#kid-map:checked ~ .map-tab-kid {
  display: block;
}

#adult-map:checked ~ .map-tab-adult {
  display: block;
}

#kid-map:checked + label::after,
#adult-map:checked + label::after {
  transform: scaleX(1);
}

#kid-map:checked + label,
#adult-map:checked + label {
  color: var(--primary-green);
}

.map-info-close {
  margin-top: 1.25rem;
  align-self: flex-end;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  background: var(--primary-green);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  transition: background 0.2s ease;
}

.map-info-close:hover {
  background: #3c8e49;
}

@media (max-width: 600px) {
  .footer-right .map-consent button,
  .map-consent button {
    min-height: 44px;
    padding: 0.75rem 1.2rem;
  }

  .map-info-btn {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  .image-viewer-close {
    top: 10px;
    right: 14px;
    font-size: 2.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .nav-logo span {
    display: none;
  }
}

.footer-right .map-frame {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 6px;
}

@media (max-width: 1024px) and (min-width: 601px) {
  .footer-links a {
    padding: 0.5rem 0.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-item,
  .sub-label {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .sub-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .map-consent button,
  .map-info-btn,
  .map-info-close {
    min-height: 44px;
  }
}

@media (max-width: 800px) and (min-width: 601px) {
  .nav-item,
  .sub-label,
  .sub-item {
    font-size: 1.05rem;
  }
}