:root {
  --wool: #f3f0ea;
  --slate: #2f2c28;
  --moss: #5c6b52;
  --stone: #7a746a;
  --line: #ddd7cb;
  --accent: #8a6f4e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--slate);
  background: var(--wool);
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- GATE ---------- */
.gate {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: #201e1b;
  color: #cfc7b8;
}

.gate-mark {
  opacity: 0.4;
  width: min(60vw, 280px);
  height: auto;
  display: block;
}

.gate #gate-password {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(207, 199, 184, 0.45);
  color: #cfc7b8;
  text-align: center;
  font-size: 20px;
  letter-spacing: 8px;
  padding: 10px 4px;
  width: 140px;
  outline: none;
  caret-color: #cfc7b8;
}

.gate #gate-password::placeholder {
  color: rgba(207, 199, 184, 0.3);
}

.gate #gate-password:focus {
  border-bottom-color: rgba(207, 199, 184, 0.85);
}

.gate.shake {
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ---------- CONTENT ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.site-header nav a {
  color: var(--slate);
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
}

.site-header nav a:hover { color: var(--accent); }

.hero {
  position: relative;
}

.hero-image {
  height: 46vh;
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.hero-caption {
  padding: 28px 24px 8px;
}

.hero-caption h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 600;
}

.hero-caption p {
  margin: 0;
  color: var(--stone);
  font-size: 17px;
}

.about, .location, .gallery, .availability, .booking {
  padding: 40px 24px;
}

.location p {
  color: var(--stone);
  margin: 0 0 14px;
}

.location p a {
  color: var(--accent);
}

.map-embed {
  border-radius: 4px;
  overflow: hidden;
  max-width: 640px;
  border: 1px solid var(--line);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
}

h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 14px;
}

.about p {
  color: #4a463f;
  line-height: 1.6;
  max-width: 640px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  display: block;
  border: none;
  padding: 0;
  cursor: pointer;
}

.placeholder-img {
  background: repeating-linear-gradient(
    135deg,
    #e4ded0,
    #e4ded0 10px,
    #ded7c7 10px,
    #ded7c7 20px
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.placeholder-img::after {
  content: attr(data-placeholder);
  font-size: 12px;
  color: #8a8270;
  background: rgba(255,255,255,0.7);
  padding: 4px 8px;
  border-radius: 3px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 4px;
}

.availability-intro {
  color: var(--stone);
  margin-bottom: 16px;
}

.unavailable-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 480px;
}

.unavailable-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.unavailable-list .empty {
  color: var(--stone);
  border-bottom: none;
  padding: 4px 0;
}

.booking p { color: var(--stone); }

.booking form {
  max-width: 480px;
  margin-top: 20px;
}

.form-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-row-split {
  flex-direction: row;
  gap: 16px;
}

.form-row-split > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 6px;
}

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

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

button[type="submit"] {
  background: var(--slate);
  color: var(--wool);
  border: none;
  padding: 12px 22px;
  font-size: 15px;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: var(--moss);
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
}

.form-status.success { color: var(--moss); }
.form-status.error { color: #a5473a; }

.mailto-fallback {
  margin-top: 20px;
  font-size: 14px;
}

.mailto-fallback a, .site-footer a {
  color: var(--accent);
}

.site-footer {
  padding: 30px 24px 50px;
  color: var(--stone);
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row-split { flex-direction: column; gap: 0; }
  .hero-caption h1 { font-size: 24px; }
}

/* ---------- ADMIN ---------- */
.admin-login {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #201e1b;
}

.admin-login form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 260px;
}

.admin-login h1 {
  color: #cfc7b8;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
  text-align: center;
}

.admin-login input {
  background: transparent;
  border: 1px solid rgba(207, 199, 184, 0.35);
  color: #cfc7b8;
  padding: 10px 12px;
  border-radius: 4px;
}

.admin-login button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.admin-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-header h1 {
  font-size: 20px;
  margin: 0;
}

.admin-header a, .admin-header button {
  font-size: 14px;
  color: var(--stone);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.admin-section {
  margin-bottom: 36px;
}

.admin-section h2 {
  font-size: 16px;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.booking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.booking-table th {
  text-align: left;
  color: var(--stone);
  font-weight: 500;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.booking-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.status-pending { background: #f2e5c8; color: #8a6a1e; }
.status-approved { background: #dfe8d8; color: var(--moss); }
.status-declined { background: #f1dad5; color: #a5473a; }

.row-actions button {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 4px;
}

.row-actions button.approve { border-color: var(--moss); color: var(--moss); }
.row-actions button.decline { border-color: #a5473a; color: #a5473a; }

.block-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  max-width: 640px;
}

.block-form .form-row { margin-bottom: 0; min-width: 130px; }

.empty-note {
  color: var(--stone);
  font-size: 14px;
}
