/* ==========================================================================
   1. CLEAN SCROLLABLE WINDOW LAYOUT
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #bce3f7;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: auto;
    width: 100%;
    min-height: 100vh;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: block;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
}


/* ==========================================================================
   2. ACCESSIBLE CLICKABLE SIGNPOST NAVIGATION
   ========================================================================== */
.hotspot {
    position: absolute;
    display: block;
    cursor: pointer;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    /* Ensures percentage-based hotspots still meet minimum touch target size */
    min-height: 44px;
    min-width: 44px;
}

/* Desktop hover glow */
.hotspot:hover,
.hotspot:focus {
    background-color: rgba(255, 235, 59, 0.25);
    outline: 3px dashed #ff9800;
    outline-offset: 4px;
    transform: scale(1.05);
}

/* Touch tap feedback — brief glow before navigation fires */
.hotspot.tapped {
    background-color: rgba(255, 235, 59, 0.45);
    outline: 3px dashed #ff9800;
    outline-offset: 4px;
    transform: scale(1.05);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* High-Precision Signpost Coordinate Map */
.sign-castle       { top: 9%;  left: 1%;  width: 14%; height: 13%; }
.sign-secret-cove  { top: 13%; left: 38%; width: 14%; height: 11%; }
.sign-lighthouse   { top: 14%; left: 84%; width: 13%; height: 12%; }
.sign-kitchen      { top: 38%; left: 6%;  width: 14%; height: 12%; }
.sign-harbour      { top: 38%; left: 60%; width: 11%; height: 10%; }
.sign-storybook    { top: 36%; left: 71%; width: 13%; height: 11%; }
.sign-sparkles     { top: 70%; left: 5%;  width: 11%; height: 9%;  }
.sign-welcome      { top: 53%; left: 21%; width: 35%; height: 41%; border-radius: 20px; }
.sign-cottage      { top: 69%; left: 85%; width: 12%; height: 10%; }
.sign-tide-pools   { top: 83%; left: 88%; width: 11%; height: 11%; }


/* ==========================================================================
   3. HIGH-CONTRAST SITE FOOTER TYPOGRAPHY
   ========================================================================== */
.storybook-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 10px;
    text-align: center;
    z-index: 50;
    pointer-events: none;
}

.storybook-footer p {
    font-size: 1.1rem !important;
    color: #ffffff !important;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.9) !important;
    font-weight: 500;
    margin: 0;
    pointer-events: auto;
}

.storybook-footer p a {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: bold;
    cursor: pointer;
}
