/* ── Global ─────────────────────────────────────────────────────────────── */
body {
    background: #f0f2f5;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ── Top header bar ─────────────────────────────────────────────────────── */
#app-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2563a8 100%);
    color: #fff;
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

#app-header h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
}

/* ── Controls bar ───────────────────────────────────────────────────────── */
#controls-bar {
    background: #fff;
    border: 1px solid #dce1e9;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#controls-bar label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0;
    white-space: nowrap;
}

#date-input {
    width: 140px !important;
    font-size: 0.9rem;
    border: 1px solid #c8cfda;
    border-radius: 5px;
    padding: 5px 10px;
    transition: border-color 0.15s;
}

#date-input:focus {
    border-color: #2563a8;
    box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.15);
    outline: none;
}

#generate-btn {
    font-size: 0.875rem;
    padding: 6px 18px;
    border-radius: 5px;
    font-weight: 600;
    background: #2563a8;
    border-color: #2563a8;
    transition: background 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

#generate-btn:hover {
    background: #1a4f8f;
    border-color: #1a4f8f;
    box-shadow: 0 2px 6px rgba(37, 99, 168, 0.35);
}

#error-msg {
    font-size: 0.85rem;
    color: #c0392b;
    font-weight: 500;
}

/* ── Map cards ──────────────────────────────────────────────────────────── */
.map-card {
    background: #fff;
    border: 1px solid #dce1e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
    transition: box-shadow 0.2s;
    width: calc(50% - 10px);
    min-width: 620px;
    display: inline-block;
    vertical-align: top;
    margin: 0 10px 18px 0;
}

.map-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
}

.map-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: linear-gradient(90deg, #f0f4fa 0%, #e8edf5 100%);
    border-bottom: 1px solid #dce1e9;
}

.map-card-header .card-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a3a5c;
    letter-spacing: 0.01em;
}

.close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #7a8898;
    line-height: 1;
    padding: 0 3px;
    border-radius: 3px;
    transition: color 0.15s, background 0.15s;
}

.close-btn:hover {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.08);
}

/* ── Empty state ────────────────────────────────────────────────────────── */
#empty-state {
    border: 2px dashed #c8cfda;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #8a94a0;
    background: #fff;
    font-size: 0.95rem;
}

#empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.45;
}
