.leaflet-marker-icon.hint-icon,
.leaflet-marker-icon:has(.hint-label) {
    z-index: 10000 !important;
}

/* Shared scene overview belongs to the hint panel, not an individual hint. */
.hint-scene-overview-panel {
    position: relative;
    flex: 0 0 auto;
    margin: 0 3px 7px;
    padding: 13px 15px 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.30), rgba(226,239,249,0.22));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.62), 0 4px 14px rgba(0,20,40,0.06);
}

.hint-scene-overview-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.hint-scene-overview-header h2 {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: 0.02em;
    color: #061321;
}

.hint-scene-overview-description {
    margin: 7px 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 500;
    color: #102234;
}

.hint-scene-overview-loading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 9px;
    font-size: 0.80rem;
    line-height: 1.4;
    font-weight: 550;
    color: #29485d;
}

.hint-scene-overview-spinner {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 2px solid rgba(41, 72, 93, 0.22);
    border-top-color: #29485d;
    border-radius: 50%;
    animation: photographer-read-spin 0.8s linear infinite;
}

@keyframes photographer-read-spin {
    to { transform: rotate(360deg); }
}

/* Wide screens get a two-column idea board. A single hint still uses the full width. */
@media (min-width: 900px) {
    #hint-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 9px;
    }

    #hint-list .hint-item { width: auto; }
    #hint-list.single-hint .hint-item { grid-column: 1 / -1; }
}


@media (max-width: 600px) {
    .hint-scene-overview-panel {
        margin-left: 2px;
        margin-right: 2px;
        padding: 11px 12px 12px;
        border-radius: 15px;
    }

    .hint-scene-overview-description { font-size: 0.80rem; }
}

/* Alternate photographic approaches within the same scene are deliberately compact. */
.hint-navigation {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding: 3px 5px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.hint-navigation-counter {
    min-width: 34px;
    text-align: center;
    font-size: 0.70rem;
    line-height: 1.2;
    font-weight: 750;
    color: #29485d;
    user-select: none;
}

.hint-navigation-button {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.54);
    color: #061321;
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hint-navigation-button:hover {
    background: rgba(255, 255, 255, 0.82);
}

/* Hint-specific scene contribution remains useful in the detail dialog. */
.hint-scene-analysis {
    margin: 10px 0;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    background: rgba(255,255,255,0.045);
    overflow: hidden;
}

.hint-scene-analysis summary {
    cursor: pointer;
    padding: 9px 10px;
    font-weight: 650;
    font-size: 0.88rem;
    user-select: none;
}

.hint-scene-analysis summary::marker { opacity: 0.65; }

.hint-scene-opportunity {
    margin: 0 10px 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.hint-scene-analysis-description {
    margin-top: 5px;
    font-size: 0.76rem;
    line-height: 1.4;
    opacity: 0.86;
}


.hint-scene-overview-heading {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #29485d;
}

.hint-list-heading {
    grid-column: 1 / -1;
    padding: 2px 4px 0;
    font-size: 0.70rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(6, 19, 33, 0.68);
}


.hint-scene-overview-warning {
    margin-top: 9px;
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(255, 244, 214, 0.58);
    border: 1px solid rgba(145, 102, 24, 0.22);
    color: #5b4317;
    font-size: 0.72rem;
    line-height: 1.35;
    font-weight: 650;
}
