/* =========================
   RESET & BASE
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: #FCEADE;
  overflow: hidden;
}

/* =========================
   TOP BAR (LOGO)
========================= */
#topbar {
  position: fixed;
  top: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

#topbar img {
  height: 48px;
}

/* =========================
   MAP CONTAINER
========================= */
#map-container {
  width: 100vw;
  height: calc(100vh - 56px); /* laisse la place à la nav */
  padding-top: 70px;         /* espace logo */
  transition: transform 0.6s ease;
  transform-origin: center center;
}

/* État mini-carte */
#map-container.minimap {
  position: absolute;
  top: 0;
  right: 0;
  transform: scale(0.3) translate(120%, -120%);
  cursor: pointer;
}

/* =========================
   SVG & MAISONS
========================= */
svg {
  width: 100%;
  height: 100%;
}

.maison {
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease;
  filter: brightness(1.6);
   
}

.maison:hover {
  filter: brightness(1.1);
}

.maison:active {
  filter: brightness(1.15);
  transform: scale(0.98);
}

/* =========================
   BOTTOM NAV BAR
========================= */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: #ffffff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 10;
}

#bottom-nav button {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

#bottom-nav button.active {
  color: #007acc;
}

#bottom-nav button:active {
  color: #007acc;
}

/* =========================
   PAGE MAISON (DETAIL)
========================= */
.page-title {
  padding: 16px;
  margin-top: 70px; /* logo */
}

#minimap {
  position: fixed;
  top: 80px;
  right: 10px;
  width: 120px;
  background: #FCEADE;
  border: 2px solid #ccc;
  cursor: pointer;
  z-index: 10;
}

#minimap svg {
  width: 100%;
  height: auto;
}
/* =========================
   PAGE TITLE (H1)
========================= */
#page-title {
  position: fixed;
  top: 70px;          /* sous le logo */
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  z-index: 9;
}

#page-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.pin {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -100%); /* centre horizontal, pointe au-dessus */
  cursor: pointer;
  z-index: 10;
}

