@charset 'utf-8';

html, body { margin: 0; padding: 0; height: 100%; }
#map { width: 100%; height: 100%; }

h1 {
  font-size: 1.25rem;
  text-align: center;
  background-color: rgba(240, 240, 240, 0.8);
  margin: 0;
  padding: 0.3125rem 0;

  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1001;
}


.leaflet-control-container .leaflet-control {
  margin-top: 3rem;
}

.leaflet-marker-icon.map-marker.is_active > div {
  transform: scale(1.4);
}


/* 下からスライド表示するパネル */
#info-panel {
  touch-action: pan-y;
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 40%;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  transition: bottom 0.3s ease-out, max-height 0.3s ease;
  z-index: 1010;
  padding: 0;
  overflow-y: auto;
}
#info-panel .info-panel-inner {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 1em;
  padding-top: 3.125rem;
}

#info-panel.active {
  /*bottom: 1.1em;*/
  bottom: 0;
}

#info-panel.active.expanded {
  height: 80vh;
  max-height: 100%;
  border-radius: 0;
}

#info-panel h3 {
  /*margin-top: 0;*/
  margin: .75rem 0;
  font-size: 1rem;
}

#close-panel {
  position: absolute;
  /*right: 1em;*/
  /*top: 0.5em;*/
  right: .25rem;
  top: 0;
  font-size: 1.5em;
  background: none;
  border: none;
  width: 3.125rem;
  height: 3.125rem;
  background-color: #ccc;
  border-radius: 0.5rem;
  box-shadow: .125rem 0.125rem 0 #666;
  cursor: pointer;
  z-index: 100;
}
#close-panel:hover {
  background-color: #aaa;
}

#info-header {
  position: absolute;
  top: 0;
  left: 0; 
  width: calc(100vw - 1rem);

  cursor: pointer;
  padding: 0.5em;
  font-weight: bold;
  /*height: 1rem;*/
  height: 2.5rem;
  background: #eee;
  /*border-radius: .625rem;*/
}

/*.map-maker {
  background: url(./pin_outside.webp);
  width: 100%;
  height: 100%;
  overflow: hidden;
}*/
.leaflet-container .leaflet-marker-pane img {
  max-width: 100% !important;
}

.popup-link {
  position: absolute;
  top: 0;
  left: 1rem;
  color: #fff;
  background-color: #00e;
  border-radius: .5rem;
}

.popup-link a {
  color: #fff;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  padding: .2rem 1rem;
}


.popup-thumbnail {
/*
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
*/
  float: right;
  max-width: 33%;
  min-width: 150px;
}

.popup-thumbnail > div {
/*
  width: 46%;
  width: calc(50% - 1rem);
*/
  padding: 0.5rem;
}

.popup-thumbnail img {
  max-width: 100%;
}

.popup-comment {
  font-size: .875rem;
}

.popup-comment p {
  margin: 0 0 .25em 0;
}


.popup-backnumber {
  margin: 1rem;
  text-align: center;
}
.popup-backnumber a {
  padding-left: 1rem;
}

.popup-map {
  margin: 1rem;
  text-align: center;
}


/* map locked state (optional visual cue) */
#map.map-locked {
  touch-action: none;
}


