:root {
  --topbar-space: 60px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
}

/* =========================
   MAP
========================= */
#map {
  position: fixed;
  top: var(--topbar-space);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* =========================
   TOPBAR (FIXED CLEAN)
========================= */
.topbar {
  
  top: 1px;
  left: 12px;
  z-index: 3000;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 8px 10px;

 
  /*backdrop-filter: blur(10px);*/
  border-radius: 14px;
}

.topbar button,
.topbar a {
  background: lightgrey;
  /*background: rgba(30, 41, 59, 0.85);*/
  backdrop-filter: blur(10px);

  color: #006600;
  border: 1px solid rgba(148, 163, 184, 0.25);

  padding: 6px 10px;
  font-size: 20px;

  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;

  transition: all 0.2s ease;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.topbar button:hover,
.topbar a:hover {
  top: 1px;
  /*background: rgba(45,30,59,0.9);*/
  background: lightgrey;
  color: grey;
  /*transform: translateY(-10px);*/
}

#tourTitle {
  color: #006600;
  font-size: 16px;
  font-weight: bold;
  margin-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  }
  
/* LOGO */
.home {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.home img {
   top: 1px;
   height: 42px;
  display: block;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
  transition: transform 0.2s ease;
}

.home:hover img {
  top: 1px;
  transform: scale(1.00);
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  position: fixed;
  top: var(--topbar-space);
  left: 0;
  width: 320px;
  height: calc(100vh - var(--topbar-space));

  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(8px);

  color: lightgrey;
  z-index: 1000;

  overflow-y: auto;

  transform: translateX(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;

  border-right: 1px solid #1e293b;
}

.sidebar.hidden {
  transform: translateX(-100%);
  box-shadow: none;
}

.sidebar:not(.hidden) {
  box-shadow: 5px 0 20px rgba(0,0,0,0.4);
}

/* HEADER */
.sidebar-header {
  padding: 12px;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  background: #0f172a;
  z-index: 2;
}

.sidebar-header h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: lightgreen;
}

/* SEARCH */
.search {
  width: 100%;
  padding: 8px;

  border-radius: 8px;
  border: 1px solid #334155;

  background: #0b1220;
  color: white;
  outline: none;
}

/* =========================
   INFO BOX
========================= */
.info {
  position: fixed;
  bottom: 16px;
  left: calc(320px + 20px);

  z-index: 1500;

  background: rgba(15,23,42,0.97);
  color: white;

  padding: 14px;
  border-radius: 12px;

  max-width: 320px;

  border: 1px solid #22314f;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);

  transition: all 0.25s ease;
}

.info.shifted {
  left: 16px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 700px) {

  .sidebar {
    width: 100%;
  }

  .info {
    left: 16px !important;
    right: 16px;
    max-width: none;
  }

   .topbar button,
  .topbar a {
    font-size: 18px;
    padding: 6px 8px;
  }
}
