* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--text);
}

.topbar {
  background: var(--blue);
  color: var(--white);
  padding: var(--space-6) var(--space-7);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
}

.brand i { color: var(--gold); }

.sub,
.badge {
  font-size: 12px;
  color: #e5e7eb;
  opacity: 0.95;
}

.container {
  max-width: 1100px;
  margin: var(--space-7) auto 40px;
  padding: 0 var(--space-7);
}

.container-narrow { max-width: 900px; }

.row { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: flex-start; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }

label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="datetime-local"],
input[type="file"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--surface);
  outline: none;
}

textarea { resize: vertical; }

input[type="text"]:focus-visible,
input[type="password"]:focus-visible,
input[type="datetime-local"]:focus-visible,
input[type="file"]:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
.tab:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px rgba(49, 70, 109, 0.35), 0 0 0 4px rgba(252, 182, 20, 0.35);
}

a:not(.btn):not(.tab) {
  color: var(--blue);
  text-decoration: none;
}

a:not(.btn):not(.tab):hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-outline {
  background: var(--white);
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: #eef2ff; }

.btn-accent {
  background: #f2c95a;
  border-color: #e4b941;
  color: #2e2a1d;
}
.btn-accent:hover { background: #f0c24a; }

.btn-outline-gold {
  background: var(--white);
  border-color: #ddb24c;
  color: #8a6a1d;
}
.btn-outline-gold:hover { background: #fff8e6; }

.btn-danger { background: var(--white); border-color: #fecaca; color: var(--danger); }
.btn-sm { padding: 8px 10px; border-radius: var(--radius-sm); }

.alert {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin: 14px 0;
  border: 1px solid var(--border);
}
.alert.ok { border-color: #a7f3d0; color: var(--ok); }
.alert.err { border-color: #fecaca; color: var(--danger); }

.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.muted { color: var(--muted); font-size: 12px; }
.hr { height: 1px; background: var(--border-soft); margin: 14px 0; }
.footer-actions { display: flex; gap: var(--space-3); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--space-3); }
.right { display: flex; gap: var(--space-3); align-items: center; justify-content: flex-end; flex-wrap: wrap; }

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 14px 0 18px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.grid .card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  margin-bottom: 0;
  padding: 0;
}
.card .img { height: 160px; background: var(--border-soft); overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .content { padding: 14px; display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card .footer { padding: 12px 14px 14px; display: flex; justify-content: flex-end; gap: var(--space-3); }

.title { font-size: 16px; font-weight: 800; line-height: 1.2; }
.meta { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
.meta .row { gap: var(--space-2); }
.meta i { color: var(--blue); margin-top: 2px; }

.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.tab {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.tab.active { border-color: var(--gold); box-shadow: 0 6px 16px rgba(252, 182, 20, 0.2); }

.mini-title { font-size: 14px; font-weight: 900; margin: 0 0 10px; }
.hotel { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-4); background: #fbfcff; }
.tip-row { display: grid; grid-template-columns: 1.2fr .6fr .2fr; gap: var(--space-3); align-items: end; margin-bottom: var(--space-3); }
@media (max-width: 820px) { .tip-row { grid-template-columns: 1fr 1fr; } .tip-row .col-del { grid-column: 1 / -1; } }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: #fbfcff;
  font-size: 12px;
  font-weight: 800;
}
.pill.warn { border-color: #fde68a; background: #fffbeb; }
.pill.ok { border-color: #bbf7d0; background: #f0fdf4; }
.pill.bad { border-color: #fecaca; background: #fef2f2; }
.box { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: var(--space-4); background: #fbfcff; }
a.link { color: var(--blue); text-decoration: none; font-weight: 900; }

.top { background: var(--blue); color: var(--white); padding: var(--space-6); }
.top .wrap { display: block; padding: 0 var(--space-7); }
.top + .card {
  max-width: 1100px;
  margin: 18px auto;
  padding: var(--space-5);
  box-shadow: var(--shadow);
}
.top + .card a { color: var(--blue); text-decoration: none; font-weight: 800; }

.table-wrap { overflow: auto; }
.table-base { width: 100%; border-collapse: collapse; }
.table-base th, .table-base td { text-align: left; padding: 8px; }
.table-base td { border-top: 1px solid var(--border-soft); }

.u-list { margin: 0; padding-left: 18px; }
.u-mt-8 { margin-top: 8px; }
.u-mt-10 { margin-top: 10px; }
.u-mt-12 { margin-top: 12px; }
.u-mb-6 { margin-bottom: 6px; }
.u-mb-8 { margin-bottom: 8px; }
.u-fw-800 { font-weight: 800; }
.u-fw-900 { font-weight: 900; }
.u-fw-1000 { font-weight: 1000; }
.u-overflow-auto { overflow: auto; }
.u-text-center { text-align: center; }
.u-w-100 { width: 100%; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 0 30px; }
