#map_area { margin-bottom: 20px; }

#map_canvas {
    position: relative !important;
    width: 100%;
    height: 500px;
    border: 1px solid #CCC;
    border-radius: 4px;
}

#map_search {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
#map_search input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #CCC;
    border-radius: 4px;
}
#map_search button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #AA3514;
    color: #FFF;
    font-weight: 700;
    cursor: pointer;
}
#map_search button:hover { background: #8A2B10; }

.map-locate-row { display: flex; justify-content: center; margin-bottom: 10px; }
.map-locate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border: none;
    border-radius: 999px;
    background: #CB0000;
    color: #FFF;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.map-locate-btn:hover { background: #A50000; }
.map-locate-btn:disabled { opacity: 0.6; cursor: wait; }
.map-locate-btn-icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.map-unavailable {
    padding: 20px;
    border: 1px dashed #CCC;
    border-radius: 4px;
    color: #666;
}

.custom-callout {
    position: absolute;
    background: #FFF;
    padding: 16px;
    border-radius: 16px;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    display: none;
    z-index: 999;
    transform: translate(-50%, -100%);
    width: 240px;
}

.callout-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F0F0F0;
    font-size: 15px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}
.callout-close:hover { background: #E0E0E0; color: #000; }

.mobile-callout { background-color: rgba(255, 255, 255, 0.97); }

.callout-title {
    font-weight: 700;
    font-size: 15px;
    padding-right: 24px;
    margin-bottom: 4px;
    color: #333;
}
.callout-grade {
    display: inline-block;
    padding: 2px 9px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: #AA3514;
    color: #FFF;
    font-size: 12px;
    font-weight: 700;
}

.callout-address {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}
.callout-actions { display: flex; flex-direction: column; gap: 8px; }
.callout-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    box-sizing: border-box;
}
.callout-btn--site { background: #AA3514; color: #FFF; }
.callout-btn--site:hover { background: #8A2B10; color: #FFF; text-decoration: none; }

/* 地図ピン（鳥居アイコン＋神社名ラベル）。神宮・一宮は同じ画像に色・光彩・
   サイズ・バッジを足して目立たせる（別画像は用意しない） */
.shrine-map-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.shrine-map-pin-icon {
    display: block;
    width: 32px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.shrine-map-pin-label {
    max-width: 96px;
    padding: 1px 6px;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.94);
    color: #333;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.shrine-map-pin--featured {
    z-index: 1;
}
.shrine-map-pin--featured::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 22px;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(231, 199, 102, 0.65) 0%, transparent 68%);
    filter: blur(2px);
    z-index: -1;
}
.shrine-map-pin--featured .shrine-map-pin-icon {
    width: 46px;
    height: 57px;
    filter: hue-rotate(48deg) saturate(1.5) brightness(1.12) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}
.shrine-map-pin--featured .shrine-map-pin-label {
    background: #B8901F;
    color: #2A2004;
    font-weight: 700;
    border: 1px solid #E7C766;
}
.shrine-map-pin-spark {
    position: absolute;
    z-index: 2;
    top: -3px;
    right: -1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #B8901F;
    border: 2px solid #FFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.shrine-map-pin-spark svg {
    width: 10px;
    height: 10px;
    fill: #2A2004;
}

.map_navi { margin-top: 24px; }
.map_navi p { font-weight: 700; margin-bottom: 8px; }
.map_navi ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.map_navi ul li a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #CCC;
    border-radius: 4px;
    background: #F7F4EF;
    color: #AA3514;
    font-size: 13px;
}
.map_navi ul li a:hover { background: #AA3514; color: #FFF; text-decoration: none; }
.map_navi ul li a.active { background: #AA3514; border-color: #AA3514; color: #FFF; font-weight: 700; }
