/* SessionPass — Flatiron Fairways. Forest-green, clean, a little rugged. */
:root {
  --green: #3b671c;
  --green-dark: #2c4e14;
  --green-pale: #eef4e8;
  --ink: #1f2419;
  --ink-soft: #5a6152;
  --paper: #faf9f6;
  --card: #ffffff;
  --line: #dfe3d8;
  --amber: #b07d18;
  --amber-pale: #fdf3dd;
  --red: #a33a2a;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
h1, h2, h3 { font-family: "Barlow Condensed", "Barlow", system-ui, sans-serif; letter-spacing: 0.3px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--green-dark); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.wordmark { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 2px; color: #fff; text-decoration: none; }
.wordmark span { color: #b9d59a; }
.header-cta { background: #fff; color: var(--green-dark); text-decoration: none; font-weight: 600; padding: 8px 16px; border-radius: 999px; font-size: 0.9rem; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--green-dark), var(--green)); color: #fff; padding: 48px 0 56px; }
.badge {
  display: inline-block; border: 2px solid #b9d59a; color: #dcebc9;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; letter-spacing: 2.5px;
  padding: 4px 14px; border-radius: 999px; font-size: 0.85rem; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0 0 6px; text-transform: uppercase; }
.hero .meta { color: #d5e3c2; margin: 0 0 16px; font-size: 0.98rem; }
.hero .desc { max-width: 620px; font-size: 1.08rem; color: #f0f5e8; }
.btn {
  display: inline-block; background: #fff; color: var(--green-dark); font-weight: 700;
  border: 0; border-radius: var(--radius); padding: 13px 26px; font-size: 1.05rem;
  cursor: pointer; text-decoration: none; font-family: inherit;
}
.btn-green { background: var(--green); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.hero .btn { margin-top: 20px; }

/* Sections */
section { padding: 44px 0; }
section h2 { font-size: 1.7rem; text-transform: uppercase; margin: 0 0 18px; color: var(--green-dark); }
.section-alt { background: var(--green-pale); }

/* Photo placeholders — intentionally obvious, to be swapped for real photos */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.photo-ph {
  border: 2px dashed #9aab86; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #f2f5ec, #f2f5ec 12px, #eaefe2 12px, #eaefe2 24px);
  min-height: 170px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-weight: 600; text-align: center; padding: 12px; font-size: 0.95rem;
}
.photo-ph.tall { min-height: 240px; }

/* Amenities */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 0.95rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 640px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.price-card h3 { margin: 0 0 4px; font-size: 1.15rem; text-transform: uppercase; color: var(--green-dark); }
.price-card .amount { font-size: 2rem; font-weight: 700; color: var(--ink); }
.price-card .amount small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.price-card p { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.fineprint { color: var(--ink-soft); font-size: 0.9rem; max-width: 640px; }

/* Booking */
#booking-app { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.day-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.day-chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 8px 14px; cursor: pointer; font-family: inherit; font-size: 0.95rem; line-height: 1.3;
}
.day-chip b { display: block; font-size: 1.02rem; }
.day-chip.active { border-color: var(--green); background: var(--green-pale); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.slot {
  border: 1.5px solid var(--green); background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 12px 10px; cursor: pointer; font-family: inherit; text-align: center;
}
.slot b { display: block; font-size: 1.05rem; }
.slot small { color: var(--ink-soft); }
.slot:hover:not(:disabled) { background: var(--green-pale); }
.slot:disabled { cursor: not-allowed; }
.slot.held { border-color: var(--amber); background: var(--amber-pale); color: var(--amber); }
.slot.booked { border-color: var(--line); background: #f1f1ee; color: #9aa093; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; }
.msg { border-radius: var(--radius); padding: 11px 14px; margin-bottom: 14px; font-size: 0.95rem; }
.msg.error { background: #f9e8e4; color: var(--red); }
.msg.info { background: var(--green-pale); color: var(--green-dark); }

/* Hold / form */
.hold-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--amber-pale); border: 1.5px solid var(--amber); color: var(--amber);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-weight: 600;
}
.hold-banner .timer { font-variant-numeric: tabular-nums; font-size: 1.3rem; }
.summary { background: var(--green-pale); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.summary b { color: var(--green-dark); }
form label { display: block; font-weight: 600; margin: 14px 0 4px; font-size: 0.95rem; }
form input {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: #fff;
}
form input:focus { outline: 2px solid var(--green); border-color: var(--green); }
.form-actions { display: flex; gap: 14px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.linkish { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font-family: inherit; font-size: 0.95rem; }

/* Confirmation */
.confirm-box { text-align: left; }
.confirm-box .ref { font-family: "Barlow Condensed", sans-serif; font-size: 2rem; color: var(--green-dark); letter-spacing: 1px; }
.access { background: var(--green-pale); border-radius: var(--radius); padding: 16px 20px; margin: 18px 0; }
.access h3 { margin: 0 0 8px; text-transform: uppercase; color: var(--green-dark); }
.access ul { margin: 0; padding-left: 20px; }
.access li { margin: 6px 0; }

/* Footer */
.site-footer { background: var(--green-dark); color: #cfdec0; padding: 28px 0; font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 6px; }
.site-footer a { color: #e8f1dc; }

/* Owner page */
.owner-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.owner-table th, .owner-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.owner-table th { background: var(--green-pale); color: var(--green-dark); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.owner-table tr.past td { color: #a0a698; }
.owner-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.owner-tools input { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 1rem; }
.table-scroll { overflow-x: auto; }

@media (max-width: 560px) {
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); }
  #booking-app { padding: 16px; }
  .hero { padding: 36px 0 44px; }
}
