/* Fig Cottage — fig leaf & fruit theme.
   Palette: fig-skin purple, flesh rose, leaf greens, sun-dried cream. */
:root {
  --fig-ink: #2d1e2f;
  --fig-purple: #6b4468;
  --fig-deep: #472b46;
  --fig-flesh: #c26d78;
  --leaf: #4c7a4f;
  --leaf-deep: #2e5233;
  --cream: #faf5ec;
  --cream-dark: #f1e8d8;
  --gold: #c99a3c;
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  background: var(--cream);
  color: var(--fig-ink);
  line-height: 1.55;
}
h1, h2, h3, h4 { font-weight: 600; color: var(--fig-deep); }
h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 1.5rem; }
h2 svg { color: var(--leaf); flex: none; }
a { color: var(--fig-purple); }
.muted { color: #7a6f7a; }
.small { font-size: 0.85rem; }

/* Hero */
.hero {
  min-height: 62vh;
  background: linear-gradient(160deg, var(--fig-deep), var(--fig-purple) 55%, var(--leaf-deep));
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(45, 30, 47, 0.82), rgba(45, 30, 47, 0.12) 60%);
}
.hero-inner { position: relative; z-index: 1; padding: 44px clamp(20px, 6vw, 72px); color: var(--cream); max-width: 900px; }
.hero-inner h1 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 3rem); margin: 10px 0 6px; }
.hero .tag { color: var(--cream-dark); margin-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-dark); }
.brand svg { color: var(--gold); }

.btn-fig {
  display: inline-block;
  background: var(--leaf); color: #fff;
  border: none; border-radius: 999px;
  padding: 12px 26px; font-size: 1rem; font-family: inherit;
  text-decoration: none; cursor: pointer;
}
.btn-fig:hover { background: var(--leaf-deep); }
.btn-fig.soft { background: var(--cream-dark); color: var(--fig-deep); }
.btn-fig.soft:hover { background: #e6dac4; }

/* Sections */
section, .fig-footer { padding: 40px clamp(20px, 6vw, 72px); max-width: 1080px; margin: 0 auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.gallery figure { border-radius: 14px; overflow: hidden; background: var(--cream-dark); }
.gallery img { width: 100%; height: 210px; object-fit: cover; display: block; }
.gallery figcaption { padding: 8px 12px; font-size: 0.85rem; color: #6d5f6d; font-style: italic; }
.story p { max-width: 68ch; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
ul.rooms, ul.attractions { list-style: none; }
ul.rooms li { padding: 10px 0; border-bottom: 1px dashed var(--cream-dark); }
ul.rooms li strong { display: block; color: var(--fig-deep); }
ul.rooms li span { font-size: 0.88rem; color: #7a6f7a; }
ul.amenities { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
ul.amenities li { background: #ecf1e6; color: var(--leaf-deep); border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; }
ul.attractions li { padding: 8px 0; border-bottom: 1px dashed var(--cream-dark); }
blockquote { border-left: 3px solid var(--fig-flesh); padding: 6px 16px; margin: 14px 0; }
blockquote footer { color: var(--gold); margin-top: 4px; font-size: 0.9rem; }

/* Calendar */
.book { background: #fff; border-radius: 18px; margin-bottom: 40px; box-shadow: 0 2px 14px rgba(45, 30, 47, 0.08); }
.cal-strip { display: flex; gap: 22px; flex-wrap: wrap; margin: 10px 0; }
.cal-month h4 { text-align: center; margin-bottom: 6px; color: var(--fig-purple); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 30px); gap: 3px; }
.cal-h { font-size: 0.7rem; text-align: center; color: #9a8f9a; }
.cal-day { width: 30px; height: 30px; display: grid; place-items: center; font-size: 0.78rem; border-radius: 7px; }
.cal-day.free { background: #e2edda; color: var(--leaf-deep); }
.cal-day.taken { background: #efd9dc; color: #9c5560; text-decoration: line-through; }
.cal-day.pad { background: transparent; }

/* Forms */
form.dates { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin: 18px 0; }
label { display: block; font-size: 0.92rem; color: var(--fig-deep); }
input, textarea, select {
  width: 100%; padding: 10px 12px; margin-top: 4px;
  border: 1px solid #d8cdc0; border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: #fffdf8;
}
form.dates label { flex: 1; min-width: 150px; }
.book-form { margin-top: 18px; display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.quote { background: var(--cream); border-radius: 12px; padding: 18px; margin: 14px 0; }
.quote table { width: 100%; max-width: 380px; border-collapse: collapse; }
.quote td { padding: 5px 0; }
.quote td:last-child { text-align: right; }
.quote .total td { font-weight: 700; border-top: 1px solid var(--cream-dark); color: var(--fig-deep); }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--cream-dark); margin: 12px 0; }
.notice.error { background: #f3dede; color: #8c3b45; }
.notice.ok { background: #e2edda; color: var(--leaf-deep); }

.fig-footer { text-align: center; color: #8a7f8a; font-size: 0.9rem; padding-top: 10px; padding-bottom: 34px; }
.fig-footer svg { vertical-align: -4px; color: var(--leaf); }
.fig-footer a { color: inherit; }

/* Setup / thanks / errors */
.setup-note { max-width: 560px; margin: 12vh auto; text-align: center; padding: 0 20px; }
.setup-note h1 svg { color: var(--leaf); }

/* Admin */
.admin-body { background: var(--cream); }
.admin { max-width: 860px; margin: 0 auto; padding: 24px 20px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.admin-head nav { display: flex; gap: 16px; align-items: center; }
.admin .card { background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 2px 12px rgba(45, 30, 47, 0.07); }
.admin form { display: grid; gap: 14px; margin: 14px 0; }
.admin hr { border: none; border-top: 1px dashed var(--cream-dark); margin: 22px 0; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 12px; font-family: -apple-system, sans-serif; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--cream-dark); vertical-align: top; }
.pill { border-radius: 999px; padding: 3px 11px; font-size: 0.8rem; background: var(--cream-dark); }
.pill.pending { background: #f5ecd4; color: #8c6d1f; }
.pill.accepted { background: #e2edda; color: var(--leaf-deep); }
.pill.declined, .pill.cancelled { background: #f3dede; color: #8c3b45; }
.pill.completed { background: #e2e6f5; color: #3d4c8c; }
.linklike { background: none; border: none; color: var(--fig-purple); font-family: inherit; font-size: 1rem; cursor: pointer; text-decoration: underline; padding: 0; }

@media (max-width: 640px) {
  .hero { min-height: 48vh; }
  .cal-grid { grid-template-columns: repeat(7, 26px); }
  .cal-day { width: 26px; height: 26px; }
}
