* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
    color: #1f2937;
}
.page, .auth-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-card, .card, .trip-card, .stat-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 28px;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.topbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.card {
    padding: 22px;
    margin-bottom: 22px;
}
h1, h2, h3 { margin-top: 0; }
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}
input, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 15px;
}
textarea { resize: vertical; }
input:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.full { grid-column: 1 / -1; }
.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: end;
}
.cards-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}
.trip-card {
    overflow: hidden;
}
.trip-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.trip-content {
    padding: 18px;
}
.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 700;
}
.btn.secondary { background: #475569; }
.btn.danger { background: #dc2626; }
.btn.light { background: #0f766e; }
.trip-actions, .form-actions, .filter-actions, .table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 700;
}
.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }
.auth-link { margin-top: 12px; }
.auth-link a { color: #2563eb; text-decoration: none; }
.current-image img {
    max-width: 320px;
    width: 100%;
    border-radius: 12px;
    display: block;
    margin: 10px 0;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}
.checkbox input {
    width: auto;
    margin: 0;
}
.stat-card {
    padding: 24px;
    text-align: center;
}
.stat-card h3 {
    font-size: 34px;
    margin-bottom: 8px;
    color: #2563eb;
}
.table-wrap {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}
th {
    background: #f8fafc;
}
.admin-thumb {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}
.muted {
    color: #64748b;
    font-size: 14px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}
.map-legend {
    padding: 10px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    white-space: nowrap;
}
.map-box {
    width: 100%;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dbeafe;
}
.map-empty {
    display: grid;
    place-items: center;
    min-height: 420px;
    color: #64748b;
    background: #f8fafc;
    font-weight: 700;
}
@media (max-width: 700px) {
    .topbar, .section-header { flex-direction: column; align-items: flex-start; }
}
