/* From the legacy page's inline <style>; banners, wheelnav and Owl rules replaced in M5. */
hr,section {
  clear:both;
}
#sidebar {
  position:fixed;
  top:30vh;
  width:150px;
  margin-left:10px;
}
#sidebar ul li:after {
  content:"";
  position:absolute;
  margin-top:-11px;
  left:18px;
  border-right:3px solid #000;
  height:18px;
  width:0;
}
#sidebar ul li:last-child:after {
  height:0;
}
#sidebar ul {
  list-style:circle;
}
#sidebar li {
  height:30px;
  line-height:26px;
  font-size:28px;
}
#sidebar li::-moz-list-bullet {
  font-size:28px;
}
#sidebar li a {
  display:block;
  visibility:hidden;
  font-size:16px;
  text-decoration:none;
  color:#000!important;
  margin-left:-14px;
}
#sidebar li:hover>a {
  visibility:visible;
}
#sidebar li.active {
  color:#000;
  list-style:disc!important;
}
#sidebar li.active:before {
  width:30px;
  height:30px;
  transform:rotate(-90deg);
  content:" ";
  background:url(/images/logo-full.png) 50% 50% no-repeat;
  background-size:100% 100%;
  position:absolute;
  left:-15px;
}
#content {
  margin-left:150px;
  margin-top:-20px;
}
.title {
  font-family:Nexa,CaviarDreams;
  display:inline-block;
  position:absolute;
  min-width:300px;
  border-top:1px #000 solid;
  border-bottom:1px #000 solid;
  padding:15px 10px 20px;
  z-index:10;
}
.title h1 {
  margin:0;
  text-align:left;
}
.title h2 {
  margin:0;
  padding:2px;
  background:#000;
  color:#FFF;
  display:block;
  font-size:16px;
  text-align:center;
  font-weight:400;
}
.title h2>span {
  font-size:12px;
  font-weight:600;
}
/* The cover fills the mask's box (891×495) whatever its shape; it used to show at its natural size. */
#glance .background {
  background:no-repeat 50% 50% rgba(125,157,82,.6);
  background-size:cover;
  mask-image:url(/images/mask.svg);
  mask-repeat:no-repeat;
  -webkit-mask-image:url(/images/mask.svg);
  -webkit-mask-repeat:no-repeat;
  width:891px;
  max-width:100%;
  height:495px;
}
#glance .info {
  position:absolute;
  margin-top:50px;
  right:5%;
  z-index:10;
  width:600px;
  height:300px;
  display:table;
}
#glance #info-box {
  display:table-cell;
  vertical-align:middle;
}
#glance #info {
  width:300px;
  display:table-cell;
}
#glance #info-box>div {
  right:300px;
  visibility:hidden;
  opacity:0;
  position:absolute;
  background:rgba(254,255,239,.7);
  padding:15px;
  margin-top:-80px;
  -webkit-transition:all .5s ease-in-out;
  -moz-transition:all .5s ease-in-out;
  -ms-transition:all .5s ease-in-out;
  -o-transition:all .5s ease-in-out;
  transition:all .5s ease-in-out;
}
#glance #info-box>div h3 {
  margin:0 0 5px;
}
#glance #info-box>div.active {
  visibility:visible;
  opacity:1;
}
#glance #info-box>#info-0 {
  font-family:Nexa,'Caviar Dreams';
  text-align:center;
}
hr {
  width:500px;
  float:left;
}
section {
  margin:5px 0;
}
/* The English page also masked the cover through the inline SVG <mask>. */
html[lang=en] #glance .background {
  mask:url(#svgmask);
}

/* "At a glance" wheel (js/place.js), drawn like wheelnav did. */
#info > button {
  display:block;
  margin:4px auto;
  font:inherit;
  background:none;
  border:1px solid #7D9D52;
  cursor:pointer;
}
.wheel {
  display:block;
  width:300px;
  height:300px;
}
.wheel-slice {
  cursor:pointer;
  outline:none;
}
.wheel-slice-path {
  fill:transparent;
  stroke:#7D9D52;
  stroke-width:1;
  pointer-events:all;
  transition:fill .2s ease-in-out;
}
.wheel-slice:hover .wheel-slice-path,.wheel-slice.is-selected .wheel-slice-path {
  fill:#7D9D52;
}
.wheel-slice:focus-visible .wheel-slice-path {
  stroke:#231F20;
  stroke-width:2;
}
.wheel-slice-title {
  font-family:Arial,sans-serif;
  fill:#000;
  pointer-events:none;
  -webkit-user-select:none;
  user-select:none;
}
.wheel-marker {
  fill:#7D9D52;
  stroke:#7D9D52;
  pointer-events:none;
}

section#map {
  position:relative;
  width:100%;
  height:400px;
  display:block;
}
section#map #showmap,section#map iframe {
  height:100%;
  width:98%;
  display:block;
  border:0;
  margin:0 1%;
}
section#map a {
  text-decoration:none!important;
}
#showmap > p {
  text-align:center;
  padding-top:150px;
}

/* Nearby places, where the banners used to be. */
.section-heading {
  font-family:Nexa,CaviarDreams;
  font-weight:400;
  font-size:24px;
  margin:30px 1% 15px;
}
.nearby {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  margin:0 1%;
}
.nearby-list {
  flex:1 1 480px;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
}
.nearby:has(.ad-slot) .nearby-list {
  grid-template-columns:repeat(3,1fr);
}
a.nearby-card {
  display:flex;
  flex-direction:column;
  aspect-ratio:1;
  background:url(/images/logo-icon.png) 50% 50% no-repeat,rgba(125,157,82,.9);
  background-size:cover;
  text-decoration:none;
  color:#000;
}
a.nearby-card h3 {
  margin:0;
  height:70%;
  box-sizing:border-box;
  padding:15px 10px 0;
  background:rgba(255,255,255,.5);
  font-weight:400;
  font-size:17px;
  text-align:center;
  transition:all .4s ease-in-out;
}
a.nearby-card p {
  margin:auto 0 0;
  padding:6px 10px;
  color:#FFF;
  font-size:13px;
  text-align:center;
  text-shadow:0 0 6px rgba(0,0,0,.8);
}
a.nearby-card:hover h3,a.nearby-card:focus-visible h3 {
  background:rgba(255,255,255,0);
  text-shadow:0 0 25px #000;
  color:#FFF;
}
.ad-slot-place_nearby {
  flex:0 1 336px;
  min-height:280px;
}
.ad-slot-place_article {
  clear:both;
  margin:20px 1%;
}

/* Gallery: a strip of photos (js/site.js carousel) and a full-screen viewer. */
section#gallery {
  margin:50px 0;
  height:auto;
}
.gallery-track {
  min-height:min(50vh,400px);
  display:flex;
  align-items:center;
  gap:60px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
.gallery-track::-webkit-scrollbar,.lightbox-track::-webkit-scrollbar {
  display:none;
}
.gallery-photo {
  flex:0 0 auto;
  scroll-snap-align:center;
  padding:0;
  border:0;
  background:none;
  cursor:zoom-in;
}
/* Height comes inline (never above the photo's own), the width follows from width/height. */
.gallery-photo img {
  display:block;
  width:auto;
  height:auto;
  max-height:min(70vh,600px);
  max-width:90vw;
  object-fit:cover;
}
section#gallery .carousel-controls {
  min-height:60px;
  padding-top:5px;
  box-sizing:border-box;
  background-color:rgba(125,157,82,.6);
}
dialog.lightbox {
  width:100vw;
  height:100vh;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  background:rgba(0,0,0,.92);
  color:#FFF;
  overflow:hidden;
}
dialog.lightbox::backdrop {
  background:rgba(0,0,0,.6);
}
body:has(dialog.lightbox[open]) {
  overflow:hidden;
}
.lightbox-track {
  display:flex;
  height:100%;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
.lightbox-slide {
  flex:0 0 100%;
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:50px 20px 90px;
  box-sizing:border-box;
}
.lightbox-slide img {
  max-width:100%;
  max-height:calc(100vh - 180px);
  object-fit:contain;
}
.lightbox-slide figcaption {
  margin-top:12px;
  max-width:800px;
  text-align:center;
  font-size:16px;
}
.lightbox-close {
  position:absolute;
  top:10px;
  right:15px;
  z-index:1;
  padding:0 8px;
  font-size:40px;
  line-height:1;
  color:#FFF;
  background:none;
  border:0;
  cursor:pointer;
}
dialog.lightbox .carousel-controls {
  position:absolute;
  left:0;
  right:0;
  bottom:15px;
}
@media screen and (max-width:1100px) {
  .nearby-list {
    grid-template-columns:repeat(3,1fr);
  }
}
@media screen and (max-width:810px) {
  #content {
    margin:70px 10px;
  }
  #sidebar {
    display:none;
  }
}
@media screen and (max-width:750px) {
  #glance .info,#glance .title {
    position:relative;
  }
  #glance>.background {
    display:none;
  }
  #glance .info {
    float:right;
    margin-top:0;
  }
  #glance:after {
    border-bottom:1px solid #000;
    content:"";
    display:block;
    width:500px;
    height:2px;
    clear:both;
  }
}
@media screen and (max-width:650px) {
  #glance .info,#glance .title {
    position:relative;
  }
  #glance #info-box,#glance #info-box>div {
    width:100%;
    max-width:none;
    display:block;
  }
  #glance>.background {
    display:none;
  }
  #glance .info {
    width:100%;
    max-width:none;
    right:0;
    height:500px;
    margin-top:0;
  }
  #glance #info-box {
    margin:0;
  }
  #glance #info {
    display:block;
    margin:0 auto;
  }
  #glance #info-box>div {
    right:auto;
    margin-top:350px;
    text-align:center;
    padding:0;
    background:0 0;
  }
}
@media screen and (max-width:650px) {
  .nearby-list,.nearby:has(.ad-slot) .nearby-list {
    grid-template-columns:repeat(2,1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-slice-path,a.nearby-card h3 {
    transition:none;
  }
}
