/* The clickable "Explore the Land" map (map.js) and its photo pop-up. */
.land-map { position: relative; margin: 40px 0 0; border-radius: 22px; overflow: hidden; border: 2px solid #d9c8a4; box-shadow: 0 10px 30px rgba(96, 57, 19, .16); }
.land-map img { display: block; width: 100%; height: auto; }
/* hotspot: transparent area over a place, numbered pin in its corner */
.map-spot { position: absolute; padding: 0; border: none; background: transparent; cursor: pointer; border-radius: 18px; transition: background .2s ease, box-shadow .2s ease; }
.map-spot:hover, .map-spot:focus-visible { background: rgba(255, 244, 214, .22); box-shadow: 0 0 0 3px rgba(200, 160, 58, .85), 0 0 24px rgba(255, 220, 140, .7); outline: none; }
.map-pin { position: absolute; top: 0; left: 50%; transform: translate(-50%, -40%); width: clamp(18px, 2.4vw, 32px); height: clamp(18px, 2.4vw, 32px); border-radius: 50%; background: #2f5a46; color: #fff; border: 2px solid #fbf8f1; display: grid; place-items: center; font: 600 clamp(10px, 1.2vw, 15px) Poppins, sans-serif; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.map-pin::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: #c8a03a; z-index: -1; animation: map-pulse 2.4s ease-out infinite; }
@keyframes map-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-pin::before { animation: none; opacity: 0; } }
.map-hint { text-align: center; font-size: 14px; color: #6b5136; font-style: italic; margin: 12px 0 0; }
.map-legend { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.map-legend button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid #efe7d4; border-radius: 999px; background: #fbf8f1; color: #4a2f16; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.map-legend button:hover { border-color: #c8a03a; }
.map-legend .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #2f5a46; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }

.map-pop { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(47, 59, 47, .45); }
.map-pop.open { display: flex; }
.map-pop-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fbf8f1; border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: map-rise .2s ease-out; text-align: left; }
@keyframes map-rise { from { transform: translateY(12px); opacity: 0; } }
.map-pop-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px 22px 0 0; }
.map-pop-body { padding: 18px 22px 22px; }
.map-pop-kind { font-family: "Montecatini", Georgia, serif; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: #9b740d; }
.map-pop-body h3 { font-family: "Cocotte", Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.15; margin: 4px 0 8px; color: #603913; }
.map-pop-body p { margin: 0 0 10px; color: #4a2f16; }
/* title on the left, "Step inside" on the right of the same line */
.map-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 8px; }
.map-pop-head h3 { margin: 0; }
.map-pop-link { flex: none; display: inline-block; margin: 0; padding: 9px 18px; border-radius: 999px; background: #2f5a46; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.map-pop-link[hidden] { display: none; }
.map-pop-link:hover { background: #24473a; }
.map-pop-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.map-pop-nav button, .map-pop-close { font: inherit; cursor: pointer; border-radius: 999px; }
.map-pop-nav button { flex: 1; padding: 9px 14px; border: 1px solid #efe7d4; background: #f6f2e7; color: #4a2f16; font-size: 14px; }
.map-pop-nav button:hover { border-color: #c8a03a; }
.map-pop-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: none; background: rgba(251, 248, 241, .92); color: #4a2f16; font-size: 22px; line-height: 1; z-index: 1; }
.map-pop-card img[hidden] + .map-pop-body { padding-top: 46px; }
@media (max-width: 600px) {
    .map-pop { align-items: flex-end; padding: 0; }
    .map-pop-card { width: 100%; border-radius: 22px 22px 0 0; max-height: 88vh; }
}
