/* Palette drawn from the Dhar logo: tree green, tent blue, tent red, sun yellow */
:root {
  --forest: #1f3d2b;
  --forest-deep: #142a1d;
  --leaf: #3f7a3a;
  --sky: #4f8fc9;
  --clay: #b8522e;
  --clay-dark: #9a4224;
  --sun: #f2c230;
  --paper: #f7f2e8;
  --paper-tint: #ede5d4;
  --ink: #23271f;
  --ink-soft: #545a4c;
  --line: #d8ceb9;
  --white: #fffdf8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-script: "Caveat", cursive;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgb(20 42 29 / 0.25);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--clay); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--forest); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.container { padding-inline: 0; }
.section-tint { background: var(--paper-tint); }
.section-dark { background: var(--forest); color: #e9efe4; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--ink-soft); }
.section-dark .section-head p:last-child { color: #c4d2bf; }

.script { font-family: var(--font-script); font-size: 1.6rem; color: var(--clay); margin: 0 0 .1em; line-height: 1; }
.section-dark .script { color: var(--sun); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--clay);
  background: var(--clay); color: var(--white); font-weight: 700; text-decoration: none;
  font-size: 1rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: .55em 1.1em; font-size: .9rem; }
.btn-ghost { background: transparent; border-color: rgb(255 255 255 / .8); color: var(--white); }
.btn-ghost:hover { background: rgb(255 255 255 / .15); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--clay); }
.btn-outline:hover { color: var(--white); }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(16px, calc((100% - var(--max)) / 2));
  background: rgb(247 242 232 / .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.brand img { border-radius: 50%; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; }
.brand-sub { font-size: .75rem; color: var(--ink-soft); letter-spacing: .03em; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--clay); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--clay); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; color: var(--white); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 25 15 / .15) 30%, rgb(10 25 15 / .78)); }
.hero-content { position: relative; z-index: 1; width: min(var(--max), 100% - 32px); margin: 0 auto; padding: 0 0 clamp(48px, 9vh, 96px); }
.hero h1 { color: var(--white); max-width: 14ch; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34rem; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Intro */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(64px, 9vw, 112px) 0; }
.intro-text > p { color: var(--ink-soft); }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.facts strong { display: block; font-family: var(--font-display); color: var(--forest); font-size: 1.05rem; }
.facts span { font-size: .9rem; color: var(--ink-soft); }
.intro-images { position: relative; padding-bottom: 18%; }
.intro-images img { border-radius: var(--radius); box-shadow: var(--shadow); }
.intro-images img:first-child { width: 82%; aspect-ratio: 3/2; object-fit: cover; }
.intro-images img:last-child { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4/3; object-fit: cover; border: 6px solid var(--paper); }

/* Shared tags */
.meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.meta li { font-size: .8rem; font-weight: 700; color: var(--leaf); background: #e3ecd9; padding: 4px 10px; border-radius: 999px; }
.pill { position: absolute; top: 12px; left: 12px; background: rgb(255 253 248 / .92); color: var(--forest); font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pill-static { position: static; display: inline-block; background: #e3ecd9; color: var(--leaf); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 .8rem; }

/* Homepage link strip to the cottage pages */
.cottage-strip { background: var(--paper-tint); padding: clamp(48px, 7vw, 80px) 0; }
.cottage-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cottage-strip-inner p:not(.script) { color: var(--ink-soft); max-width: 40rem; }
.cottage-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cottage-chips a { display: inline-block; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--forest); font-weight: 700; font-size: .9rem; text-decoration: none; }
.cottage-chips a:hover { border-color: var(--leaf); color: var(--leaf); }

/* Cottage cards */
.cottage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.cottage-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cottage-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cottage-card-img { position: relative; display: block; overflow: hidden; }
.cottage-card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.cottage-card:hover .cottage-card-img img { transform: scale(1.04); }
.cottage-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.cottage-card-body h3 a { color: inherit; text-decoration: none; }
.cottage-card-body > p { color: var(--ink-soft); font-size: .97rem; }
.cottage-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-top: auto; padding-top: 18px; }
.cottage-card-foot .btn { white-space: nowrap; }

/* Cottages overview page */
.page-hero { position: relative; min-height: min(56vh, 520px); display: grid; align-items: end; color: var(--white); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 25 15 / .1) 30%, rgb(10 25 15 / .75)); }
.page-hero h1 { color: var(--white); }
.help-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.help-band p { color: var(--ink-soft); margin: 0; }

/* Cottage detail page */
.crumbs { padding: 20px 0 14px; font-size: .9rem; color: var(--ink-soft); }
.crumbs a { color: var(--leaf); font-weight: 700; text-decoration: none; }
.photo-grid { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 10px; border-radius: var(--radius); overflow: hidden; }
.photo-grid-3 { grid-template-columns: 2fr 1fr; }
.photo-tile { all: unset; display: block; overflow: hidden; cursor: zoom-in; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-tile:hover img { transform: scale(1.03); }
.photo-tile:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.photo-main { grid-row: span 2; }
.photo-all { position: absolute; right: 14px; bottom: 14px; background: var(--white); border-color: var(--white); color: var(--forest); }
.photo-all:hover { background: var(--paper); border-color: var(--paper); }
.cottage-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; padding: 40px 0 clamp(64px, 8vw, 96px); }
.cottage-info h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: .2em; }
.cottage-tagline { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 0; }
.cottage-block { margin-top: 2.4rem; }
.cottage-block h2 { font-size: 1.6rem; }
.cottage-block > p { color: var(--ink-soft); }
.video-embed { max-width: 400px; }
.video-embed .instagram-media { margin: 0 !important; }
.ig-fallback { position: relative; display: block; max-width: 340px; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--forest-deep); box-shadow: var(--shadow); text-decoration: none; }
.ig-fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.ig-play { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 10px 14px; border-radius: 999px; background: var(--white); color: var(--forest); font-weight: 700; font-size: .9rem; text-align: center; }
.booking-card { position: sticky; top: 96px; display: grid; gap: 12px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.booking-title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--forest); margin: 0; line-height: 1.2; }
.booking-sub { margin: 0 0 6px; color: var(--ink-soft); }
.booking-note { margin: 4px 0 0; font-size: .85rem; color: var(--ink-soft); text-align: center; }

/* Experiences */
.experience-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.exp { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.exp img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.exp:hover img { transform: scale(1.04); }
.exp-wide { grid-column: span 2; grid-row: span 2; }
.exp-tall { grid-row: span 2; }
.exp figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgb(10 25 15 / .85)); color: #dfe7da; font-size: .88rem; }
.exp figcaption strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }

/* Wildlife */
.bird-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bird-row figure { margin: 0; }
.bird-row img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 50% 50% var(--radius) var(--radius); }
.bird-row figcaption { font-family: var(--font-script); font-size: 1.45rem; color: var(--forest); text-align: center; margin-top: 10px; }

/* Gallery */
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery button { all: unset; display: block; width: 100%; margin-bottom: 14px; border-radius: 10px; overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.gallery button:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.gallery img { width: 100%; transition: transform .5s ease, opacity .3s; }
.gallery button:hover img { transform: scale(1.03); }

/* Host page */
.host-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.host-photo { margin: 0; }
.host-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.host-text h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.host-text p { color: var(--ink-soft); }
.host-text .host-lede { font-size: 1.2rem; color: var(--ink); }
.host-story { max-width: 760px; }
.host-story > p { color: var(--ink-soft); font-size: 1.05rem; }
.host-vision { max-width: 820px; text-align: center; }
.host-vision blockquote { margin: 0 0 1.8rem; }
.host-vision blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-size: 4.5rem; line-height: .6; color: var(--sun); margin-bottom: .2em; }
.host-vision blockquote p { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--forest); margin: 0; }
.host-vision > p { color: var(--ink-soft); }
.host-vision .host-sign { font-family: var(--font-script); font-size: 2.2rem; color: var(--clay); margin: .4rem 0 0; }

/* Enquiry page */
.enquire-page { min-height: calc(100vh - 73px); }
.enquire { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.enquire-intro h1 { color: var(--white); font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.enquire-intro > p { color: #c4d2bf; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sun); color: var(--forest-deep); font-weight: 700;
}
.steps strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.steps span { color: #c4d2bf; font-size: .95rem; }
.form-success { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(28px, 5vw, 44px); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5); }
.form-success:focus { outline: none; }
.section-dark .form-success h2 { color: var(--forest); }
.section-dark .form-success .script { color: var(--clay); }
.form-success p { color: var(--ink-soft); }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.enquiry-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5); }
.enquiry-form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--forest); }
.optional { font-weight: 400; color: var(--ink-soft); }
.label-row { display: flex; justify-content: space-between; gap: 12px; }
.field-link { font-weight: 600; font-size: .85rem; color: var(--clay); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: .7em .85em; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgb(63 122 58 / .2); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--clay); }
.nights { margin: -6px 0 0; font-size: .9rem; color: var(--leaf); font-weight: 700; min-height: 1em; }
.form-error { color: var(--clay); font-weight: 700; font-size: .92rem; margin: 0; min-height: 0; }
.form-error:empty { display: none; }
.form-note { font-size: .85rem; color: var(--ink-soft); text-align: center; margin: 0; }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.location p { color: var(--ink-soft); }
.location img { border-radius: var(--radius); box-shadow: var(--shadow); }
.address { font-style: normal; font-size: 1.05rem; line-height: 1.6; color: var(--ink); margin-bottom: 1.4rem; }
.route-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 14px; }
.route-list li { padding-left: 16px; border-left: 3px solid var(--leaf); }
.route-list strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--forest); font-size: 1.1rem; }
.route-list span { color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--forest-deep); color: #b9c8b4; padding: 56px 0 24px; font-size: .95rem; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.site-footer a { color: #e3ecd9; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { border-radius: 50%; background: var(--white); }
.social { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 1.2rem; }
.social a { display: inline-flex; align-items: center; gap: 8px; }
.copyright { text-align: center; font-size: .8rem; margin: 40px 0 0; opacity: .7; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgb(8 16 10 / .94); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 6px; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 10px 16px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 960px) {
  .cottage-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; max-width: 480px; }
  .experience-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .enquire, .location, .intro, .host-intro { grid-template-columns: 1fr; }
  .host-photo { max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  /* Homepage hero on phones: smaller text and buttons, lighter shading, so more of the photo shows */
  .hero::after { background: linear-gradient(180deg, rgb(10 25 15 / 0) 45%, rgb(10 25 15 / .7)); }
  .hero-content { padding-bottom: 28px; text-shadow: 0 1px 14px rgb(0 0 0 / .45); }
  .hero h1 { max-width: 16ch; font-size: 1.8rem; margin-bottom: .3em; }
  .hero .lede { font-size: .95rem; max-width: 28rem; }
  .hero-actions { gap: 10px; margin-top: 1.1rem; }
  .hero-actions .btn { padding: .55em 1.15em; font-size: .88rem; text-shadow: none; }
  .nav-toggle { display: inline-block; font: inherit; font-weight: 700; background: none; border: 1.5px solid var(--forest); color: var(--forest); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
  .photo-grid, .photo-grid-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 130px; }
  .photo-main { grid-column: span 2; grid-row: auto; }
  .photo-tile:nth-child(n+4) { display: none; }
  .ig-fallback { max-width: 300px; }
  .facts { grid-template-columns: 1fr; }
  .exp-wide { grid-column: span 2; grid-row: span 1; }
  .exp-tall { grid-row: span 1; }
  .exp-fill { grid-column: span 2; }
  .field-row:not(.field-row-pair) { grid-template-columns: 1fr; }
  .bird-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .bird-row figcaption { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
