@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Crimson+Pro:wght@400;600&display=swap");

:root {
  --bg: #f6f3ee;
  --bg-accent: #f1e6d2;
  --ink: #151515;
  --muted: #5a5a5a;
  --card: #ffffff;
  --line: #e0d6c4;
  --accent: #0f766e;
  --accent-2: #e07a5f;
  --danger: #c0392b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, #ffd3b6 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 10%, #cfe8dc 0%, transparent 60%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
}

.brand a {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 16px;
}

nav a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px;
}

.hero {
  padding: 24px 0 16px;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 8px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: grid;
  gap: 12px;
}

.card h2 {
  margin: 0;
  font-size: 1.3rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.items {
  display: grid;
  gap: 18px;
}

.item-card .item-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.image-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 320px;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

.image-preview {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 240px;
}

.image-preview img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
}

.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
}

.link {
  color: var(--accent);
  font-size: 0.95rem;
}

.price {
  font-weight: 700;
  color: var(--accent-2);
}

.status {
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 12px;
  display: inline-flex;
  width: fit-content;
  background: #f6f6f6;
}

.status-available {
  color: var(--accent);
  background: #e0f2f1;
}

.status-reserved {
  color: #b45309;
  background: #fef3c7;
}

.status-final {
  color: #1f2937;
  background: #e5e7eb;
}

.highlight-final {
  border: 2px solid #10b981;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
  background: #d1fae5;
  position: relative;
}

.highlight-final .status-final {
  background: #10b981;
  color: #ffffff;
}


.form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

input, textarea {
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.btn {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.25);
}

.btn.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn.danger {
  background: var(--danger);
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.inline-form {
  margin-top: 12px;
}

.inline-form .btn {
  display: inline-flex;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.overview-table th,
.overview-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.overview-table th {
  color: var(--muted);
  font-weight: 600;
}

.qr-wrap {
  width: 240px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.qr-wrap img {
  width: 100%;
  display: block;
}

.edit-box {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.edit-box summary {
  cursor: pointer;
  font-weight: 600;
}

.reservation,
.final {
  font-size: 0.95rem;
  color: var(--muted);
}

.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 700px) {
  .item-card .item-header {
    flex-direction: column;
  }

  nav {
    flex-direction: column;
    align-items: flex-end;
  }
}
