﻿:root {
    --cream: #A9A9A9;
    --ink: #1a1a18;
    --terracotta: #c4613a;
    --sage: #7a9e7e;
    --offwhite: #090909;
    --royalblue: #4169E1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--offwhite);
    color: var(--ink);
    height: 100vh;
    overflow: hidden;
}

/* ── Header ── */
.app-header {
    background: var(--ink);
    color: var(--cream);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    border-bottom: 3px solid var(--terracotta);
}


    .app-header span {
        font-size: 0.75rem;
        font-weight: 300;
        opacity: 0.6;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

/* ── Main layout ── */
.main-layout {
    display: flex;
    height: calc(100vh  52px); /* subtract header */
}

/* ── List column ── */
.list-col {
    width: 240px;
    min-width: 200px;
    padding-right: 8px;
    border-right: 1px solid var(--offwhite);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.list-header {
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--offwhite);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .list-header h2 {
        font-size: 0.80rem;
    }

.badge-count {
    background: #0275d8;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 10px;
    padding: 0.2rem 0.55rem;
}

.location-list {
    overflow-y: auto;
    flex: 1;
    padding: 0.1rem 0;
}

    .location-list::-webkit-scrollbar {
        width: 4px;
    }

    .location-list::-webkit-scrollbar-thumb {
        background: var(--offwhite);
        border-radius: 4px;
    }

.location-item {
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

    .location-item:hover {
        background: #999;
    }

    .location-item.active {
        background: #fff;
        border-left-color: var(--terracotta);
    }

.loc-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-item.active .loc-icon {
    background: var(--terracotta);
}

.loc-info {
    flex: 1;
}

.loc-name {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.10rem;
    color: var(--royalblue);
}

.loc-sub {
    font-size: 0.60rem;
    color: #888;
    font-weight: 400;
}
.loc-sub-order {
    font-size: 0.70rem;
    color: #888;
    font-weight: 800;
}
.loc-tag {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--terracotta);
    margin-top: 0.25rem;
}

/* ── Map column ── */
.map-col {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

/* Map overlay info card */
.map-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--ink);
    color: var(--cream);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    max-width: 260px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.map-card h3 {
    .map-card h3 {
        font-family: 'DM Serif Display', serif;
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .map-card p {
        font-size: 0.78rem;
        opacity: 0.7;
        font-weight: 300;
    }

    .map-card .card-tag {
        display: inline-block;
        margin-top: 0.6rem;
        font-size: 0.65rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--terracotta);
        border: 1px solid var(--terracotta);
        border-radius: 4px;
        padding: 0.15rem 0.45rem;
    }
    /* ── Details column (2nd list) ── */
    .details-col {
        width: 280px;
        min-width: 220px;
        background: #fff;
        border-right: 1px solid var(--offwhite);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .details-empty {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        text-align: center;
        color: #bbb;
    }

        .details-empty .empty-icon {
            font-size: 2.5rem;
            margin-bottom: 0.75rem;
        }

        .details-empty p {
            font-size: 0.8rem;
            line-height: 1.5;
        }

    .detail-section {
        padding: 0.6rem 0;
        flex: 1;
        overflow-y: auto;
    }

        .detail-section::-webkit-scrollbar {
            width: 4px;
        }

        .detail-section::-webkit-scrollbar-thumb {
            background: var(--offwhite);
            border-radius: 4px;
        }

    .detail-item {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 1.25rem;
        border-left: 3px solid transparent;
        cursor: default;
        transition: background 0.15s;
    }

        .detail-item:hover {
            background: var(--cream);
        }

    .detail-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--sage);
        margin-top: 5px;
        flex-shrink: 0;
    }

    .detail-item.highlight .detail-dot {
        background: var(--terracotta);
    }

    .detail-text {
        flex: 1;
    }

    .detail-title {
        font-size: 0.85rem;
        font-weight: 500;
        margin-bottom: 0.1rem;
    }

    .detail-sub {
        font-size: 0.73rem;
        color: #999;
        font-weight: 300;
    }

    .detail-divider {
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #aaa;
        padding: 0.75rem 1.25rem 0.25rem;
    }
    /* Mobile fallback */
    @media (max-width: 768px) {
        body {
            overflow: auto;
        }

        .main-layout {
            flex-direction: column;
            height: auto;
        }

        .list-col, .details-col {
            width: 100%;
            border-right: none;
            border-bottom: 1px solid var(--offwhite);
            height: 40vh;
        }

        .map-col {
            height: 50vh;
        }
    }
}
