/* page foundation */
* {
    box-sizing: border-box;
}

html,
html * {
    cursor: none !important;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #2d1d0f;
    background: linear-gradient(180deg, #fffdf8 0%, #f9f1e4 100%);
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1rem;
}

.landing {
    min-height: 88vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 4.5rem 0 3rem;
}

.landing-copy h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0 0 0.8rem;
    color: #3b2613;
}

.landing-copy h2 {
    margin: 0 0 1.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #644325;
}

.dataset-card {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid #e0c8a5;
    background: #fff9ef;
}

.dataset-card h3 {
    margin: 0 0 0.5rem;
    color: #54361f;
}

.dataset-card p {
    margin: 0;
    color: #5f4228;
}

.start-btn {
    margin-top: 1.2rem;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 999px;
    background: #8a4f1e;
    color: #fff;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
}

.start-btn:hover {
    background: #6f3e17;
}

.squirrel-visual {
    display: flex;
    justify-content: center;
}

.squirrel-visual img {
    width: min(100%, 340px);
    height: auto;
    filter: drop-shadow(0 10px 14px rgba(90, 46, 14, 0.2));
}

.acorn-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 26px;
    height: 34px;
    pointer-events: none;
    z-index: 9999;
    /* Hotspot at center of acorn; position set via left/top in JS */
    transform: translate(-50%, -50%);
    margin: 0;
}

.acorn-cursor svg {
    display: block;
    width: 100%;
    height: 100%;
}

#main-visualization {
    padding: 1.5rem 0 3rem;
}

/* otherwise you can't see the svg */
#vis svg {
    margin: 2rem 0;
    border: 1px solid #ccc; 
}

@media (max-width: 760px) {
    .landing {
        grid-template-columns: 1fr;
        padding-top: 3rem;
    }

    .landing-copy h1 {
        font-size: 1.9rem;
    }
}

.vis-header h2 {
    margin: 0 0 0.35rem;
    color: #3b2613;
}

.vis-header p {
    margin: 0 0 1rem;
    color: #6a4a2c;
}

.controls-panel,
.timeline-panel,
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e4d0b3;
    border-radius: 14px;
    background: rgba(255, 249, 239, 0.9);
}

.control-group {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    gap: 0.35rem;
}

.control-group label,
.slider-wrap label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #5b3b20;
}

.control-group select,
.slider-wrap input[type="range"] {
    padding: 0.45rem 0.55rem;
    border: 1px solid #cfae86;
    border-radius: 8px;
    background: #fff;
    color: #3b2613;
}

.timeline-btn {
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 999px;
    background: #8a4f1e;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.timeline-btn:hover {
    background: #6f3e17;
}

.slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 260px;
    flex: 1;
}

.timeline-date {
    min-width: 120px;
    font-weight: 700;
    color: #5b3b20;
}

.timeline-mode {
    font-size: 0.92rem;
    color: #5b3b20;
}

.chart-wrap {
    overflow-x: auto;
}

.map-chart-stack {
    position: relative;
}

#leafletMap {
    min-height: 720px;
    width: 100%;
    z-index: 1;
    filter: brightness(1.15) saturate(0.45) contrast(0.85);
}

#mapSvg {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2;
    pointer-events: none;
    background: transparent;
    border: none !important;
}

#mapSvg .plot-bg,
#mapSvg .park-boundary {
    display: none;
}

#mapSvg circle {
    pointer-events: auto;
}

#vis svg:not(#mapSvg) {
    margin: 0.5rem 0 1rem;
    border: 1px solid #dbc4a4;
    border-radius: 18px;
    background: #fcf8f0;
}

.plot-bg {
    fill: rgba(243, 234, 215, 0.55);
}

.park-boundary {
    fill: none;
    stroke: none;
}

.map-title {
    font-size: 1.2rem;
    font-weight: 700;
    fill: #3b2613;
}

.map-subtitle {
    font-size: 0.9rem;
    fill: #6a4a2c;
}

.compass-rose .compass-axis {
    stroke: #5a3d22;
    stroke-linecap: round;
}

.compass-rose .compass-axis-ns {
    stroke-width: 2;
}

.compass-rose .compass-axis-ew {
    stroke-width: 1.35;
}

.compass-rose .compass-arrowhead {
    fill: #5a3d22;
}

.compass-rose .compass-center-dot {
    fill: #fffdf8;
    stroke: #5a3d22;
    stroke-width: 1.2;
}

.compass-rose .compass-label {
    font-size: 0.74rem;
    font-weight: 700;
    fill: #5a3d22;
}

.compass-rose .compass-dir-n {
    font-size: 0.82rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-right: 0.8rem;
}

.legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.legend-label {
    font-size: 0.92rem;
    color: #4b311a;
}

.tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(47, 30, 16, 0.95);
    color: #fffaf2;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    max-width: 260px;
    z-index: 10000;
}

.error-message {
    color: #8b2d2d;
    font-weight: 700;
    margin-top: 1rem;
}

.map-chart-stack {
    margin-bottom: 0.35rem;
}

.park-reference-map {
    margin: 0 0 1.25rem;
    padding: 0;
    border: 1px solid #dbc4a4;
    border-radius: 14px;
    overflow: hidden;
    background: #fcf8f0;
    max-width: 920px;
}

.park-reference-map img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.park-reference-map figcaption {
    padding: 0.55rem 0.85rem;
    font-size: 0.84rem;
    color: #6a4a2c;
    border-top: 1px solid #e4d0b3;
    background: rgba(255, 249, 239, 0.85);
}

.park-map-raster {
    opacity: 0.92;
}

.day-shift-segment-selected {
    stroke: #3b2613;
    stroke-width: 2px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}


.fur-waffle-footnote {
    font-size: 0.82rem;
    fill: #6a4a2c;
}

.fur-waffle-icon {
    pointer-events: none;
}

.behavior-explorer-section {
    margin-top: 1.2rem;
}

.interaction-explorer-section {
    margin-top: 1.2rem;
}

.behavior-explorer-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.interaction-controls {
    display: flex;
    align-items: flex-end;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.interaction-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #e4d0b3;
    border-radius: 999px;
    background: rgba(255, 249, 239, 0.9);
    color: #5b3b20;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.interaction-toggle input {
    accent-color: #8a4f1e;
}

.behavior-explorer-header h3 {
    margin: 0 0 0.3rem;
    color: #3b2613;
    font-size: 1.2rem;
}

.behavior-explorer-header p {
    margin: 0;
    color: #6a4a2c;
}

.behavior-btn {
    white-space: nowrap;
}

.behavior-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid #e4d0b3;
    border-radius: 14px;
    background: rgba(255, 249, 239, 0.9);
}

.interaction-legend {
    margin-bottom: 1.35rem;
}

.behavior-title {
    font-size: 1.1rem;
    font-weight: 700;
    fill: #3b2613;
}

.behavior-subtitle {
    font-size: 0.88rem;
    fill: #6a4a2c;
}

.interaction-title {
    font-size: 1.1rem;
    font-weight: 700;
    fill: #3b2613;
}

.interaction-subtitle {
    font-size: 0.88rem;
    fill: #6a4a2c;
}

.interaction-axis text {
    fill: #5a3d22;
    font-size: 0.8rem;
    font-style: normal;
}

.interaction-axis-x .tick text {
    font-weight: 700;
}

.interaction-axis path,
.interaction-axis line {
    stroke: #cfae86;
}

.interaction-panel-bg {
    fill: rgba(255, 249, 239, 0.75);
    stroke: #e4d0b3;
    stroke-width: 1.2;
}

.interaction-panel-bg.interaction-panel-selected {
    stroke: #3b2613;
    stroke-width: 2;
}

.interaction-panel-title {
    font-size: 0.9rem;
    font-weight: 700;
    fill: #5b3b20;
}

.interaction-group.interaction-selected .interaction-segment {
    stroke: #3b2613;
    stroke-width: 2;
}

.interaction-segment.interaction-segment-locked {
    stroke: #1f1207;
    stroke-width: 2.4;
}

.behavior-axis text {
    fill: #5a3d22;
    font-size: 0.8rem;
}

.behavior-axis-x .tick text {
    font-weight: 700;
}

.behavior-axis path,
.behavior-axis line {
    stroke: #cfae86;
}

.behavior-shift-label {
    font-size: 0.72rem;
    text-anchor: middle;
    fill: #6a4a2c;
    pointer-events: none;
}

.behavior-group.behavior-selected .behavior-segment {
    stroke: #3b2613;
    stroke-width: 2;
}

.behavior-segment.behavior-segment-selected {
    stroke: #1f1207;
    stroke-width: 2.4;
}

@media (max-width: 760px) {
    .behavior-explorer-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
