* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inconsolata ,Arial, sans-serif;
  background: #f4f5f7;
}
.page {
  display: flex;
  height: 100vh;
}
.sidebar {
  position: relative;
  width: 450px;
  padding-top: 120px;
  background: #fff;
  overflow-y: auto;
  border-right: 1px solid #ddd;
}
.sidebar-header {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}
.sidebar-header h1 {
  margin: 0 0 12px;
  padding: 10px;
  font-size: 22px;
}
.sidebar-header-inner {
  font-size: 14px;
  color: #aaa;
}
#search {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}
.place-list {
  padding: 10px;
}
.place-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  align-items: center;
}
.empty-place-card {
  height: 50px;
  border: unset;
  transition: none;
}
.empty-place-card:hover {
  background: unset !important;
  cursor: unset;
}
.place-image {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}
.place-card-content {
  min-width: 0;
}
.place-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.place-card p {
  margin: 4px 0;
  color: #555;
  font-size: 14px;
}
.place-card:hover, .place-card.active {
  background: #eef6ff;
  border-color: #3788d8;
}
.website-link {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 7px;
  background: #ffe9f2;
  color: #666666;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
}
.website-link:hover {
  background: #cccccc;
  color: #ffe9f2;
}
.description {
  color: #00f !important;
}
.category {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 7px;
  background: #e9f2ff;
  color: #1769aa;
  border-radius: 4px;
  font-size: 12px;
}
#map {
  flex: 1;
  min-height: 400px;
}
.contact-button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-family: Inconsolata ,Arial, sans-serif;
}
.contact-button a {
  color: #333;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-button:hover {
  background: #f1f1f1;
}
.custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.custom-marker span {
  transform: rotate(45deg);
}
.custom-marker.is-highlighted {
  transform: rotate(-45deg) scale(1.25);
  border-color: #222;
  box-shadow:
    0 0 0 5px rgba(255, 193, 7, 0.45), 0 3px 10px rgba(0, 0, 0, 0.5);
}
.marker-cafe {
  background: #9b59b6;
}
.marker-museum {
  background: #e67e22;
}
.marker-park {
  background: #27ae60;
}
@media (max-width: 700px) {
  html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .page {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: 60vh;
    flex: 0 0 60vh;
    overflow-y: auto;
    padding-top: 5px;
  }
  .sidebar::before {
    content: "";
    position: fixed;
    background-attachment: fixed !important;
    inset: 0;
    background-image: url("../assets/logo2.png");
    background-repeat: no-repeat;
    background-position: center 25vw;
    background-size: 50vw auto;
    filter: grayscale(100%);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}
  .sidebar > * {
    position: relative;
    z-index: 1;
  }
  .sidebar-header {
    padding-top: 0;
  }
  .site-logo {
    display: none !important;
  }
  .site-logo img {
    display: none !important;
  }
  #search {
    display: none;
  }
  .address {
    display: none;
  }
  .category-button {
    background: rgba(255, 255, 255, 0.75) !important;
  }
  .category-button:hover, .category-button.active {
    background: rgba(79, 70, 229, 0.75) !important;
  }
  .place-card {
    background: rgba(255, 255, 255, 0.75) !important;
  }
  #map {
    flex: 1;
    height: auto;
    min-height: 0;
  }
  .legal-links {
    flex-wrap: wrap;
    background: unset;
    padding: 0;
    opacity: 0.75;
    left: 0;
    bottom: 0 !important;
    gap: 1px !important;
    justify-content: left !important;
  }
  .legal-button, .contact-button {
    padding: 6px 8px !important;
  }
  .legal-button, .contact-button a {
    font-size: 10px !important;
  }
  .legal-modal {
    padding: 10px;
  }
  .legal-modal-content {
    height: 90vh;
  }
  .category-button {
    flex-basis: calc((100% - 18px) / 3) !important;
  }
}
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
}
.cookie-modal {
  width: 100%;
  max-width: 430px;
  padding: 30px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.cookie-modal h2 {
  margin: 0 0 12px;
  font-size: 23px;
}
.cookie-modal p {
  margin: 0 0 24px;
  color: #555;
  line-height: 1.5;
}
.cookie-modal button {
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #1976d2;
  cursor: pointer;
  font-size: 16px;
}
.cookie-modal button:hover {
  background: #125ca1;
}
.cookie-overlay.hidden {
  display: none;
}
.map-disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 30px;
  text-align: center;
  color: #555;
}
.site-logo {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  display: block;
}
.site-logo img {
  display: block;
  width: auto;
  max-width: auto;
  max-height: 110px;
  object-fit: contain;
}
/* Bottom-left legal links */
.legal-links {
  position: fixed;
  right: 0;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  justify-content: right;
}
.legal-button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-family: Inconsolata ,Arial, sans-serif;
}
.legal-button:hover {
  background: #f1f1f1;
}
/* Legal modal */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
}
.legal-modal.open {
  display: flex;
}
.legal-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 85vh;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
#legalFrame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.close-legal-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  background: #222;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 30px;
}
.close-legal-modal:hover {
  background: #555;
}
* {
  scrollbar-width: auto;
  scrollbar-color: #4f46e5 #e5e7eb;
}
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}
::-webkit-scrollbar-track {
  background: #e5e7eb;
}
::-webkit-scrollbar-thumb {
  background: #4f46e5;
  border-radius: 8px;
  border: 3px solid #e5e7eb;
}
::-webkit-scrollbar-thumb:hover {
  background: #3730a3;
}
/* Search Butotns */
.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#search {
  flex: 1 1 240px;
}
.category-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}
.category-button {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 24px) / 4);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: #4f46e5;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: -5%;
}
.category-button:hover, .category-button.active {
  color: #fff;
  background: #4f46e5;
  border-color: #333;
}
/* Fonts */
@font-face {
  font-display: swap;
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/inconsolata-v37-latin-200.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/inconsolata-v37-latin-300.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inconsolata-v37-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inconsolata-v37-latin-500.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inconsolata-v37-latin-600.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inconsolata-v37-latin-700.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/inconsolata-v37-latin-800.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/inconsolata-v37-latin-900.woff2') format('woff2');
}