﻿

.location-header {
    align-items: center;
    padding: 2px;
    margin-left: 2px;
    border: none;
    display: flex;
    text-decoration: underline;
}

.location-details {    
    color: #f0f0f0;
}

    .location-details .location-stat {
        margin: 0.5rem 0;
        font-size: 1rem;
        
        display: flex;
        align-items: center;
    }
        .location-details .location-stat:hover {
            filter: drop-shadow(0 0 2px lightsteelblue);
            cursor: pointer;
        }

.location-stat.active {
    opacity: 1;
}
.location-stat.dimmed {
    opacity: 0.4;
}

.location-details .stat-label {
    font-weight: bold;
    margin-right: 0.5rem;
    align-items: center;
    text-decoration: underline;
}

.location-stat .stat-value {
    align-items: center;
    text-decoration: none;
}

.inline-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.item-set {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: -1rem;
    margin-top: -1rem;
    margin-bottom: -1rem;
    overflow: hidden;
}

.inventory-item {
    font-size: 0.90rem;
}

.item-price {
    font-size: 0.85rem;
    color: lightsteelblue;
    font-style: italic;
}

.grotto-header {
    display: inline-flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin: 2px;
    margin-left: 1rem;
    
    cursor: pointer;
}

.item-entry {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;    
    position: relative;
}

.item-count {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    font-weight: bold;
    color: #ccc;
}

.inline-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0;
}

.chest-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.chest-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    font-size: 0.95rem;
    cursor: pointer;
}

    .chest-item:hover {
        filter: drop-shadow(0 0 2px lightsteelblue);
    }

    .chest-item.active {
        opacity: 1;
    }
    .chest-item.dimmed {
        opacity: 0.4;
    }
    .chest-item.obtained {
        color: steelblue;
        opacity: 1;
    }

.toggle-group {
    display: inline-flex;
    border: 1px solid #555;
    border-radius: 4px;
    overflow: hidden;
    background: #222;
    min-height: 25px;
    max-height: 50px;
    margin: 5px;
}

    .toggle-group span {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 5px;
        color: #aaa;
        cursor: pointer;
        user-select: none;
        white-space: normal; /* allow wrapping */
        transition: background 0.2s ease, color 0.2s ease;
        min-width: 50px;
    }

        .toggle-group span.selected {
            background: steelblue;
            color: #fff;
        }

        .toggle-group span:not(.selected):hover {
            background: rgba(255, 255, 255, 0.08);
        }

.map-controls-desc {
    font-size: 0.75rem;
    align-items: center;
    color: #ccc;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px;
}

    .map-controls-desc span {
        padding-left: 0.75em;
    }