/* TEST DADO 123 */

:root {
  --bg: #f5f7f8;
  --card: #ffffff;
  --text: #162027;
  --muted: /*#64707d;*/#999999;
  --line: #dde4ea;
  --primary: #146c43;
  --primary-dark: #0f5635;
  --warning: #c28400;
  --danger: #b42318;
  --success-bg: #e8f7ee;
  --warning-bg: #fff6df;
  --danger-bg: #feeceb;
  --muted-bg: #eff3f6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  background: linear-gradient(135deg, #0d3d2a, #146c43);
  color: #fff;
  padding: 24px 0;
  margin-bottom: 24px;
}
.header-row, .actions-row, .card-top, .card-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.grid.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, .05);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.auth-page .btn-outline { color: var(--primary); border-color: var(--primary); }
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge-success { background: var(--success-bg); color: var(--primary-dark); }
.badge-warning { background: var(--warning-bg); color: #8a5a00; }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-muted { background: var(--muted-bg); color: #55606d; }
.muted { color: var(--muted); }
.meta-list, .info-grid { padding: 0; margin: 16px 0; list-style: none; }
.meta-list li { margin: 8px 0; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  align-items: start;
}
.sticky-card { position: sticky; top: 20px; }
.form-stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: #fff;
}
textarea { resize: vertical; }
.checkbox-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-weight: 400;
}
.checkbox-row input { margin-top: 3px; }
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: var(--primary-dark); border-color: #b8e0c8; }
.alert-warning { background: var(--warning-bg); color: #8a5a00; border-color: #f0d28a; }
.alert-danger { background: var(--danger-bg); color: var(--danger); border-color: #f3b6b1; }
.note-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.auth-card { width: min(460px, calc(100% - 32px)); margin: 60px auto; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.back-link { color: rgba(255,255,255,.9); }
.lead { line-height: 1.65; }
@media (max-width: 840px) {
  .detail-grid, .two-col { grid-template-columns: 1fr; }
  .header-row, .actions-row, .card-top, .card-actions { flex-wrap: wrap; }
  .sticky-card { position: static; }
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.status-form select {
  min-width: 140px;
  padding: 8px 10px;
}
.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
}
section.gallery-grid,
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 16px !important;
    align-items: start !important;
}

figure.gallery-item,
.gallery-item,
.admin-gallery {
    width: 100% !important;
    max-width: 220px !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
}

figure.gallery-item img,
.gallery-item img,
.admin-gallery img {
    width: 100% !important;
    max-width: 200px !important;
    height: 140px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 10px !important;
}

.admin-gallery form {
    margin-top: 10px !important;
    display: block !important;
}

.trip-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 12px 0;
}

.trip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.trip-card-image {
    width: 100%;
    height: 35vh;
    object-fit: cover;
    display: block;
}

.trip-card-body {
    padding: 18px;
}

.trip-card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.trip-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef7ee;
    color: #166534;
    font-size: 13px;
    font-weight: 700;
}

.trip-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

.trip-route {
    color: #64748b;
    margin-bottom: 14px;
}

.trip-meta {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 14px;
    margin-bottom: 16px;
}

.trip-card-actions {
    margin-top: 14px;
}

.trip-card-actions .btn,
.trip-card .btn {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #166534;
    color: #fff;
    border-color: #166534;
}

.btn-primary:hover {
    background: #14532d;
    color: #fff;
}

.site-footer {
    height: 15vh;
    margin-top: 30px;
    padding: 5% 0;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-left strong {
    color: #22c55e;
}

.footer-center {
    text-align: center;
    opacity: 0.8;
}

.footer-right a {
    color: #e2e8f0;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
.site-footer {
    border-top: 1px solid #1e293b;
}

.price-row span {
    padding-right: 12px;
}
