* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
    margin: 0;
    padding: 2rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

h1 {
    margin-top: 0;
    font-size: 1.5rem;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-bar input[type="text"] {
    flex: 1;
    max-width: 320px;
    padding: 0.55rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
}

.search-bar button {
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.search-bar button:hover {
    background: #1d4ed8;
}

.clear-link {
    color: #6b7280;
    font-size: 0.9rem;
    text-decoration: none;
}

.clear-link:hover {
    text-decoration: underline;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.log-table th,
.log-table td {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.log-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.log-table tr:hover {
    background: #fafbfc;
}

.no-results {
    text-align: center;
    color: #9ca3af;
    padding: 2rem;
}

.map-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.map-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.map-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 640px;
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.modal-header h2 {
    font-size: 1.1rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.modal-close:hover {
    color: #1f2937;
}

.map-box {
    width: 100%;
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-coords {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}
