:root {
  --bg: #f6f1ea;
  --bg-soft: #ece2d6;
  --paper: #fffdf9;
  --panel: #f8f3ec;
  --text: #2d2b2a;
  --muted: #6b6762;
  --line: #e5d8ca;
  --accent: #8ca3b2;
  --accent-deep: #607f92;
  --gold: #b79a6d;
  --ok: #6f8f6a;
  --warn: #a88453;
  --shadow: 0 18px 44px rgba(72, 58, 40, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(140, 163, 178, 0.18), transparent 70%),
    radial-gradient(800px 450px at 0% 15%, rgba(183, 154, 109, 0.11), transparent 64%),
    var(--bg);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(to right, rgba(109, 94, 75, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(109, 94, 75, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(246, 241, 234, 0.88);
  border-bottom: 1px solid rgba(110, 96, 77, 0.17);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(252, 248, 241, 0.94);
  box-shadow: 0 8px 28px rgba(70, 55, 35, 0.1);
  border-bottom-color: rgba(122, 106, 86, 0.23);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #483a2f;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.1rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.16rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: #4f4a45;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.hero {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 1.2rem;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 251, 245, 0.95));
  border: 1px solid rgba(134, 113, 87, 0.16);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero .card:first-child {
  padding: clamp(1.3rem, 2.8vw, 2.4rem);
}

.hero .card:last-child {
  overflow: hidden;
  padding: 0;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  transform: scale(1.02);
  transition: transform 1.4s ease;
}

.hero img:hover {
  transform: scale(1.08);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  margin: 0 0 0.48rem;
  line-height: 1.08;
  color: #3f3329;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 600;
}

p {
  color: var(--muted);
  line-height: 1.72;
  margin: 0.45rem 0 0.8rem;
  font-size: 0.98rem;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--accent);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 999px;
  padding: 0.68rem 1.08rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(86, 120, 142, 0.25);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.65);
  color: var(--accent-deep);
  border-color: rgba(140, 163, 178, 0.6);
}

.btn.secondary:hover {
  box-shadow: 0 10px 22px rgba(86, 120, 142, 0.15);
}

.section {
  margin: clamp(2.2rem, 4vw, 3.6rem) 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.tile {
  background: linear-gradient(180deg, #fffdfa, #fff9f1);
  border: 1px solid rgba(142, 121, 95, 0.19);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(73, 56, 33, 0.12);
  border-color: rgba(167, 138, 102, 0.35);
}

.tile img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.tile-body {
  padding: 1rem 1rem 1.05rem;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(130, 111, 87, 0.24);
  padding: 0.23rem 0.6rem;
  font-size: 0.74rem;
  color: #72624f;
  letter-spacing: 0.03em;
}

.status-available {
  color: var(--ok);
}

.status-reserved {
  color: var(--warn);
}

label {
  font-size: 0.86rem;
  color: #4a433b;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(143, 122, 96, 0.28);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(140, 163, 178, 0.33);
  border-color: rgba(103, 127, 146, 0.55);
}

textarea {
  min-height: 135px;
  resize: vertical;
}

form {
  display: grid;
  gap: 0.86rem;
}

.flash {
  margin-top: 1rem;
  padding: 0.84rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(128, 109, 86, 0.24);
}

.flash.success {
  background: #eff9ed;
}

.flash.error {
  background: #fff2ed;
}

.footer {
  margin: 2.8rem auto 1.2rem;
  border-top: 1px solid rgba(126, 109, 89, 0.19);
  padding-top: 1.2rem;
  font-size: 0.9rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.admin-nav {
  position: sticky;
  top: 5rem;
  align-self: start;
}

.admin-nav a {
  display: block;
  color: var(--muted);
  padding: 0.45rem 0;
}

.admin-nav a:hover {
  color: #4f4438;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(132, 114, 91, 0.18);
  text-align: left;
  padding: 0.62rem;
  font-size: 0.9rem;
  vertical-align: top;
}

.qr-code {
  width: 120px;
  height: 120px;
  min-width: 120px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid rgba(132, 114, 91, 0.22);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

[data-filter].active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero img {
    min-height: 300px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
