/* ── Fonts & Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #2D4A22;
  --green-mid:    #3B5E2B;
  --amber:        #C8860A;
  --amber-light:  #E6A820;
  --brown-dark:   #2C1810;
  --brown-mid:    #6B3A2A;
  --brown-light:  #A0623A;
  --cream:        #FAF6EE;
  --cream-dark:   #F0E9DA;
  --sage:         #E8EFE0;
  --sage-dark:    #C9D9B8;
  --text:         #2C1810;
  --text-muted:   #6B5040;
  --border:       #C4A882;
  --shadow:       rgba(44, 24, 16, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Typography ─────────────────────────────────────────────────────────────── */
.cabin-title {
  font-family: 'Rye', serif;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  color: var(--cream);
  text-shadow: 2px 3px 8px rgba(0,0,0,0.6);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.section-title {
  font-family: 'Rye', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--green-dark);
  text-align: center;
  letter-spacing: 0.03em;
}

.signature {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--brown-mid);
  text-align: right;
  margin-top: 1rem;
}

/* ── Decorative Dividers ────────────────────────────────────────────────────── */
.divider-rope {
  width: 180px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0px, var(--amber) 8px,
    transparent 8px, transparent 12px
  );
  margin: 1rem auto;
  border-radius: 2px;
}

.divider-short {
  width: 80px;
  height: 3px;
  background: var(--amber);
  margin: 0.6rem auto 1.8rem;
  border-radius: 2px;
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  background-image: url('/images/hero.jpg');
  background-size: cover;
  background-position: center 40%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 35, 15, 0.55) 0%,
    rgba(20, 35, 15, 0.70) 60%,
    rgba(20, 15, 5, 0.82) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.hero-content {
  text-align: center;
  max-width: 600px;
}

.cabin-badge {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--amber-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cabin-location {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: var(--cream-dark);
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

.hero-tagline {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream-dark);
  margin: 1rem 0 1.5rem;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Rye', serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--amber);
  color: var(--brown-dark);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* ── Welcome Section ────────────────────────────────────────────────────────── */
.welcome-section {
  background: var(--sage);
  padding: 3.5rem 0;
  border-top: 4px solid var(--green-dark);
  border-bottom: 4px solid var(--green-dark);
}

.welcome-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.welcome-card p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* ── Listings Section ───────────────────────────────────────────────────────── */
.listings-section {
  padding: 3rem 0;
  background: var(--brown-dark);
  border-top: 4px solid var(--amber);
}

.listings-section .section-title { color: var(--amber-light); }
.listings-section .divider-short { background: var(--amber); }

.listings-intro {
  text-align: center;
  color: var(--cream-dark);
  font-style: italic;
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

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

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

.listing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.4rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 2px solid var(--amber);
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
}

.listing-card:hover {
  background: rgba(200, 134, 10, 0.18);
  transform: translateY(-2px);
}

.listing-name {
  font-family: 'Rye', serif;
  font-size: 1rem;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.listing-cta {
  font-size: 0.82rem;
  color: var(--amber-light);
  font-style: italic;
}

/* ── Form Section ───────────────────────────────────────────────────────────── */
.form-section {
  padding: 3.5rem 0 4rem;
  background: var(--cream);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

label {
  display: block;
  font-family: 'Rye', serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.required { color: var(--brown-mid); }
.optional  { font-family: 'Lora', serif; font-style: italic; font-size: 0.8rem;
              text-transform: none; letter-spacing: 0; color: var(--text-muted); }

input[type="text"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(45, 74, 34, 0.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B3A2A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

/* Photo drop zone */
.photo-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 6px;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--cream-dark);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.photo-drop-zone:hover,
.photo-drop-zone.drag-over {
  border-color: var(--green-dark);
  background: var(--sage);
}

.drop-icon { font-size: 2.2rem; margin-bottom: 0.4rem; }
.drop-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }

.photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.preview-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--border);
}

.preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(44, 24, 16, 0.8);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  padding: 0;
}

/* Form messages */
.form-message {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.form-message.error {
  background: #fde8e8;
  border: 1px solid #e08080;
  color: #7a1a1a;
}

.form-message.success {
  background: var(--sage);
  border: 1px solid var(--sage-dark);
  color: var(--green-dark);
}

/* ── Success Banner ─────────────────────────────────────────────────────────── */
.success-banner {
  background: var(--green-dark);
  color: var(--cream);
  padding: 2rem 0;
  text-align: center;
}

.success-banner h3 {
  font-family: 'Rye', serif;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

/* ── Entries Section ────────────────────────────────────────────────────────── */
.entries-section {
  padding: 3.5rem 0 5rem;
  background: var(--cream-dark);
  border-top: 4px solid var(--green-dark);
}

.entries-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.loading-text, .no-entries {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  padding: 2rem 0;
}

/* Individual entry card */
.entry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 2px 8px var(--shadow);
  position: relative;
}

.entry-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--green-dark);
  border-radius: 6px 0 0 6px;
}

.entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.entry-author {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--brown-mid);
  line-height: 1.2;
}

.entry-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.5;
}

.entry-platform {
  display: inline-block;
  background: var(--sage);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-family: 'Rye', serif;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.entry-comments {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 0.75rem;
}

/* Entry photo gallery */
.entry-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.entry-photo-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.entry-photo-thumb:hover {
  transform: scale(1.04);
  border-color: var(--amber);
}

/* ── Lightbox ───────────────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 0.25rem;
  opacity: 0.85;
  z-index: 1001;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  font-size: 3rem;
  line-height: 1;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.2s, background 0.2s;
  z-index: 1001;
  user-select: none;
}

.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: rgba(0,0,0,0.7); }

.lightbox-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.4);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  pointer-events: none;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--brown-dark);
  color: var(--cream-dark);
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
}

.footer-title {
  font-family: 'Rye', serif;
  font-size: 1.3rem;
  color: var(--amber-light);
  margin-bottom: 0.3rem;
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: var(--amber);
  margin: 0.8rem auto;
}

.footer-note {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--cream-dark);
  opacity: 0.7;
}

/* ── Responsive tweaks ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .entry-card { padding: 1.2rem 1rem 1rem; }
  .entry-header { flex-direction: column; }
  .entry-meta { text-align: left; }
}
