/* Izumo walk map. This stylesheet doesn't change existing website layouts. */
.map-hero{background:linear-gradient(110deg,#fbf7ef 48%,#f7dfc5);overflow:hidden;border-bottom:1px solid #e5dccd}
.map-hero-content{display:flex;align-items:center;justify-content:space-between;gap:34px;padding:37px 0 32px}
.map-hero-text{min-width:0}
.map-hero .section-label{margin:0 0 6px}
.map-hero h1{font-size:clamp(29px,4.2vw,48px);line-height:1.45;letter-spacing:-.055em;margin:0 0 10px;word-break:keep-all}
.map-hero h1 em{color:#c17c52;font-style:normal}
.map-hero p:not(.section-label){font-size:13px;color:#4c655e;max-width:620px;margin:0;line-height:1.95}
.map-dandako{height:144px;width:144px;object-fit:contain;filter:drop-shadow(0 8px 12px #c39f8539);flex-shrink:0}
.map-hero-shortcuts{display:flex;gap:14px;flex-wrap:wrap;margin-top:13px}
.map-hero-shortcuts a{font-size:12px;font-weight:800;text-decoration:underline;text-underline-offset:5px}
.map-hero-shortcuts a:hover{color:#bc774c}
.map-main{background:#f7f7f0;padding:36px 0 75px}
.map-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:18px;border:1px solid #dde4d9;background:#fffaf3;border-radius:16px}
.map-field{display:flex;flex-direction:column;gap:6px;flex:1 1 148px;min-width:120px;font-weight:800;font-size:11px;color:#557068}
.map-search-field{flex:2 1 230px}
.map-field input,.map-field select{width:100%;height:44px;min-width:0;border:1px solid #becac0;border-radius:10px;padding:10px 12px;background:#fff;line-height:1.4;font-family:inherit;color:#214542;font-size:13px}
.map-field input:focus-visible,.map-field select:focus-visible,.map-filters button:focus-visible,.map-favorite:focus-visible,.map-list-row:focus-visible{outline:3px solid #d99e65;outline-offset:2px}
.map-saved-toggle,.map-reset{min-height:44px;padding:9px 14px;border-radius:10px;border:1px solid #9fafa4;background:white;font-weight:800;color:#214542;font-size:12px;white-space:nowrap}
.map-saved-toggle[aria-pressed="true"]{background:#214542;color:white;border-color:#214542}
.map-reset{border:0;text-decoration:underline;background:transparent}
.map-status{font-size:12px;font-weight:700;color:#587069;margin:14px 2px}
.map-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr);gap:16px;align-items:start}
.map-results{min-width:0;border-radius:16px;overflow:hidden;background:#fffaf3;border:1px solid #dde2d8;box-shadow:0 8px 30px #22413c12}
.map-results-head{display:flex;justify-content:space-between;align-items:center;padding:17px 19px;background:#f0f1e9;border-bottom:1px solid #dde2d8}
.map-results-head h2{font-size:17px;margin:0;letter-spacing:-.03em}
.map-results-head span{font-weight:900;color:#b0764b;font-size:12px}
.map-list{height:550px;overflow-y:auto;overscroll-behavior:contain}
.map-list-row{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;padding:14px;border-bottom:1px solid #e9e2d6;cursor:pointer;transition:background .2s}
.map-list-row:hover,.map-list-row.is-selected{background:#f5ead8}
.map-list-row:last-child{border-bottom:none}
.map-item-photo{width:88px;height:88px;object-fit:cover;border-radius:10px;background:#e7e5d8}
.map-item-info{min-width:0}
.map-item-top{display:flex;align-items:start;justify-content:space-between;gap:6px}
.map-item-title{font-size:14px;font-weight:900;line-height:1.55;margin:0;overflow-wrap:break-word;word-break:keep-all}
.map-item-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:10px;font-weight:700;color:#a47352;margin:3px 0 5px}
.map-item-info p{font-size:11px;line-height:1.65;color:#546862;margin:5px 0}
.map-item-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:7px}
.map-item-actions a{font-size:11px;font-weight:800;color:#234743;text-decoration:underline;text-underline-offset:3px}
.map-item-actions a:hover{color:#bb7950}
.map-favorite{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 7px;border-radius:50%;background:#fffdf7;border:1px solid #cbd6cc;color:#214542;font-size:18px;line-height:1;cursor:pointer}
.map-favorite.is-saved{color:#b76853;background:#fff1eb;border-color:#e5b6a6}
.map-location-pending{display:inline-flex;background:#efeee8;color:#69746c;padding:1px 6px;font-size:10px;border-radius:5px}
.map-visual{min-width:0}
.sanpo-map{height:605px;width:100%;border-radius:16px;border:1px solid #d3ddd4;background:#e8efec;z-index:1;box-shadow:0 8px 30px #22413c12}
.map-unavailable{margin-top:12px;background:#fff2df;color:#785f4b;border-radius:10px;padding:16px;font-size:13px}
.map-disclaimer{font-size:11px;line-height:1.9;color:#687972;margin:11px 4px 0}
.map-help{margin-top:33px;padding:24px 28px;background:#e9eee5;border-radius:16px}
.map-help h2{font-size:19px;margin:0 0 6px}
.map-help p{font-size:12px;line-height:1.9;color:#566b60;margin:0}
.map-placeholder{padding:25px 18px;color:#69796e;font-size:13px}
.map-pin{width:30px;height:30px;display:grid;place-items:center;border:3px solid white;border-radius:50% 50% 50% 5px;transform:rotate(-45deg);box-shadow:0 3px 12px #233f3433;color:white;font-weight:900;font-size:14px}
.map-pin>span{transform:rotate(45deg);display:block}
.map-pin--jinja{background:#b45a44}.map-pin--scenery{background:#4b7d93}.map-pin--nature{background:#50866e}.map-pin--other{background:#a27b4b}
.map-leaflet-popup strong{font-size:15px;color:#214542;line-height:1.4;display:block}
.map-leaflet-popup span{font-size:11px;color:#a17455;display:block;margin:5px 0}
.map-leaflet-popup a{display:inline-block;padding:7px 0;margin-right:9px;font-size:12px;color:#214542;font-weight:900;text-decoration:underline}
.map-leaflet-popup .map-favorite{font-size:12px;padding:7px 11px;min-height:34px;width:auto;border-radius:20px}
.leaflet-popup-content{margin:14px 17px}
.leaflet-container{font-family:inherit}
.leaflet-container a.leaflet-popup-close-button{width:28px;height:28px}
@media(max-width:900px){.map-layout{grid-template-columns:minmax(0,1fr)}.map-visual{grid-row:1}.map-list{height:auto;max-height:430px}.sanpo-map{height:410px}}
@media(max-width:600px){
 .map-hero-content{padding:27px 0 22px;gap:12px}.map-dandako{width:87px;height:87px}.map-hero h1{font-size:clamp(24px,6vw,33px)}
 .map-hero p:not(.section-label){font-size:11px}.map-hero-shortcuts a{font-size:10px}
 .map-main{padding:20px 0 50px}.map-filters{padding:12px;gap:9px}
 .map-search-field{flex-basis:100%}.map-field{flex:1 1 calc(50% - 12px);min-width:0;font-size:10px}
 .map-field input,.map-field select{height:40px;font-size:12px;padding:8px}
 .map-saved-toggle,.map-reset{font-size:11px;min-height:40px}
 .sanpo-map{height:365px;border-radius:12px}
 .map-results-head{padding:13px 15px}.map-results-head h2{font-size:15px}
 .map-list{max-height:450px}.map-list-row{padding:11px;grid-template-columns:78px minmax(0,1fr);gap:10px}
 .map-item-photo{width:78px;height:78px}.map-item-title{font-size:13px}.map-item-info p{font-size:10px}
 .map-help{padding:18px}.map-help h2{font-size:16px}.map-help p,.map-disclaimer{font-size:10px}
}
@media(max-width:350px){.map-dandako{width:65px;height:65px}.map-hero h1{font-size:22px}.map-list-row{grid-template-columns:65px minmax(0,1fr)}.map-item-photo{height:65px;width:65px}}


/* v8.1: resilient Leaflet baseline.
   Leaflet's CDN stylesheet can be blocked independently of its JS. Without
   these layout rules, tiles escape the map and overlay the rest of the page.
   These essential rules are scoped to #sanpo-map and complement Leaflet CSS.
*/
#sanpo-map.leaflet-container {
  position:relative;
  overflow:hidden !important;
  isolation:isolate;
  background:#e8efec;
  touch-action:pinch-zoom;
}
#sanpo-map .leaflet-pane,
#sanpo-map .leaflet-tile,
#sanpo-map .leaflet-marker-icon,
#sanpo-map .leaflet-marker-shadow,
#sanpo-map .leaflet-tile-container,
#sanpo-map .leaflet-layer,
#sanpo-map .leaflet-pane > svg,
#sanpo-map .leaflet-pane > canvas,
#sanpo-map .leaflet-image-layer {
  position:absolute;
  top:0;
  left:0;
}
#sanpo-map .leaflet-pane {z-index:400}
#sanpo-map .leaflet-tile-pane {z-index:200}
#sanpo-map .leaflet-overlay-pane {z-index:400}
#sanpo-map .leaflet-shadow-pane {z-index:500}
#sanpo-map .leaflet-marker-pane {z-index:600}
#sanpo-map .leaflet-tooltip-pane {z-index:650}
#sanpo-map .leaflet-popup-pane {z-index:700}
#sanpo-map .leaflet-map-pane canvas {z-index:100}
#sanpo-map .leaflet-map-pane svg {z-index:200}
#sanpo-map img.leaflet-tile,
#sanpo-map img.leaflet-marker-icon,
#sanpo-map img.leaflet-marker-shadow,
#sanpo-map img.leaflet-image-layer {
  max-width:none !important;
  max-height:none !important;
}
#sanpo-map .leaflet-tile {user-select:none;-webkit-user-select:none}
#sanpo-map .leaflet-top,
#sanpo-map .leaflet-bottom {position:absolute;z-index:1000;pointer-events:none}
#sanpo-map .leaflet-top {top:0}
#sanpo-map .leaflet-bottom {bottom:0}
#sanpo-map .leaflet-left {left:0}
#sanpo-map .leaflet-right {right:0}
#sanpo-map .leaflet-control {position:relative;z-index:800;pointer-events:auto;float:left;clear:both}
#sanpo-map .leaflet-right .leaflet-control {float:right}
#sanpo-map .leaflet-top .leaflet-control {margin-top:10px}
#sanpo-map .leaflet-bottom .leaflet-control {margin-bottom:10px}
#sanpo-map .leaflet-left .leaflet-control {margin-left:10px}
#sanpo-map .leaflet-right .leaflet-control {margin-right:10px}
#sanpo-map .leaflet-bar {box-shadow:0 1px 5px #0005;border-radius:5px;overflow:hidden}
#sanpo-map .leaflet-bar a {display:block;width:30px;height:30px;line-height:30px;text-align:center;background:#fff;color:#222;border-bottom:1px solid #ccc;text-decoration:none;font-weight:bold}
#sanpo-map .leaflet-bar a:last-child {border-bottom:0}
#sanpo-map .leaflet-bar a:hover {background:#f4f4f4}
#sanpo-map .leaflet-control-zoom-in,#sanpo-map .leaflet-control-zoom-out {font:bold 22px/30px Arial,sans-serif}
#sanpo-map .leaflet-control-attribution {font:10px/1.35 Arial,sans-serif;background:#fffd;padding:2px 5px;color:#333}
#sanpo-map .leaflet-control-attribution a {color:#0078a8}
#sanpo-map .leaflet-popup {position:absolute;text-align:center;margin-bottom:20px}
#sanpo-map .leaflet-popup-content-wrapper {background:#fff;color:#222;box-shadow:0 3px 14px #0004;border-radius:12px;text-align:left}
#sanpo-map .leaflet-popup-content {margin:13px 17px;line-height:1.55}
#sanpo-map .leaflet-popup-tip-container {width:40px;height:20px;position:absolute;left:50%;margin-left:-20px;overflow:hidden;pointer-events:none}
#sanpo-map .leaflet-popup-tip {width:17px;height:17px;background:#fff;box-shadow:0 3px 14px #0003;transform:translate(-50%,-9px) rotate(45deg);position:relative;left:50%}
#sanpo-map .leaflet-popup-close-button {position:absolute;right:0;top:0;text-decoration:none;text-align:center;padding:4px 5px;color:#777;font:bold 18px/20px Arial,sans-serif}
#sanpo-map .leaflet-popup-pane {pointer-events:none}
#sanpo-map .leaflet-popup-content-wrapper,
#sanpo-map .leaflet-popup-tip-container,
#sanpo-map .leaflet-popup-close-button {pointer-events:auto}
#sanpo-map .leaflet-marker-icon,#sanpo-map .leaflet-marker-shadow {display:block}
#sanpo-map .leaflet-grab {cursor:grab}
#sanpo-map .leaflet-dragging .leaflet-grab {cursor:grabbing}
