* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #111;
  min-height: 100vh;
}

/* Home page */
.home {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 48px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.top-right {
  position: fixed;
  top: 20px;
  right: 20px;
}

.top-right a {
  color: #111;
  text-decoration: none;
  font-size: 14px;
}

.top-right a:hover {
  text-decoration: underline;
}

.text {
  flex: 1;
  line-height: 1.6;
}

.photo {
  width: 320px;
  flex-shrink: 0;
}

.photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Map page */
.map-layout {
  display: flex;
  min-height: 100vh;
}

#map {
  width: 65%;
  min-height: 100vh;
}

#detail-panel {
  width: 35%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid #eee;
}

.photo-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}

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

.detail-text h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.detail-text p {
  margin: 6px 0;
  line-height: 1.4;
}

.muted {
  color: #666;
  font-size: 14px;
}

.leaflet-container {
  font-family: inherit;
}

@media (max-width: 900px) {
  .home {
    flex-direction: column;
    padding: 32px 20px;
  }

  .photo {
    width: 100%;
  }

  .map-layout {
    flex-direction: column;
  }

  #map {
    width: 100%;
    height: 60vh;
    min-height: 360px;
  }

  #detail-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid #eee;
  }
}
