/* ============================================================
   OLD KYLE FARM — Global Stylesheet
   Design: Unplugged-inspired · Warm cream · Olive · Amber
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300;1,9..144,400;1,9..144,500&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  --cream:        #faf7f2;
  --cream-mid:    #f2ece0;
  --cream-dark:   #e8dece;
  --olive:        #2c3b2c;
  --olive-mid:    #3d5240;
  --olive-light:  #e8ede8;
  --amber:        #c9961e;
  --amber-hover:  #b5860e;
  --amber-pale:   #fef3d0;
  --text:         #1a1a18;
  --text-mid:     #4a4a42;
  --text-light:   #7a7a6e;
  --border:       rgba(26,26,24,0.1);
  --radius-card:  16px;
  --radius-btn:   100px;
  --shadow-card:  0 8px 32px rgba(0,0,0,0.08);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.12);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── TYPOGRAPHY ── */
.f-serif { font-family: 'Fraunces', serif; }
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.overline {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-bottom: 12px;
}
.body-text { font-weight: 300; line-height: 1.8; color: var(--text-mid); }

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar {
  background: var(--amber-pale);
  border-bottom: 1px solid rgba(201,150,30,0.25);
  padding: 11px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.announcement-bar a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}
.announcement-bar a:hover { opacity: 0.75; }

/* ── HEADER / NAV ── */
.site-header {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo img { height: 90px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-amber {
  background: var(--amber);
  color: white;
  border: 2px solid var(--amber);
}
.btn-amber:hover { background: var(--amber-hover); border-color: var(--amber-hover); }

.btn-olive {
  background: var(--olive);
  color: white;
}
.btn-olive:hover { background: var(--olive-mid); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text); background: var(--text); color: white; }

.btn-text {
  background: transparent;
  color: var(--text);
  padding: 0;
  font-weight: 500;
  font-size: 14px;
}
.btn-text::after { content: ' →'; transition: margin 0.2s; }
.btn-text:hover { color: var(--olive); transform: none; }
.btn-text:hover::after { margin-left: 4px; }

/* ── LAYOUT ── */
.container { max-width: 1360px; margin: 0 auto; }
.section { padding: 88px 40px; }
.section--cream    { background: var(--cream); }
.section--mid      { background: var(--cream-mid); }
.section--olive    { background: var(--olive); color: white; }
.section--olive h1, .section--olive h2, .section--olive h3, .section--olive h4 { color: white; }
.section--olive .overline { color: rgba(255,255,255,0.55); }
.section--olive p, .section--olive .body-text { color: rgba(255,255,255,0.8); }
.section--olive a:not(.btn) { color: rgba(255,255,255,0.85); }
.section--amber    { background: var(--amber-pale); border-top: 1px solid rgba(201,150,30,0.2); border-bottom: 1px solid rgba(201,150,30,0.2); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 92vh;
  min-height: 580px;
  max-height: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 60%;
  filter: brightness(0.52) saturate(0.8);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.08) 40%, rgba(0,0,0,0.5) 100%);
}
.hero__content { position: relative; z-index: 2; }
.hero__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  display: block;
}
.hero h1 {
  color: white;
  max-width: 840px;
  margin: 0 auto 20px;
  letter-spacing: -0.01em;
}
.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  margin: 0 auto 44px;
  font-weight: 300;
  line-height: 1.75;
}

/* Page hero (shorter, for inner pages) */
.page-hero {
  position: relative;
  height: 52vh;
  min-height: 360px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px 56px;
  text-align: center;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.5) saturate(0.75);
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}
.page-hero__content { position: relative; z-index: 2; }
.page-hero__breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-hero__breadcrumb a:hover { color: white; }
.page-hero h1 { color: white; font-size: clamp(2rem, 4vw, 3.6rem); margin-bottom: 8px; }
.page-hero__sub { color: rgba(255,255,255,0.75); font-size: 1rem; font-weight: 300; }

/* ── SEARCH / PILL BAR ── */
.search-bar {
  background: white;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  padding: 8px 8px 8px 28px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.22);
  max-width: 580px;
  width: 100%;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 20px 4px 0;
  border-right: 1px solid var(--border);
  flex: 1;
  cursor: pointer;
}
.search-field:last-of-type { border-right: none; padding-right: 14px; }
.search-field svg { color: var(--text-light); flex-shrink: 0; }
.search-field span { font-size: 14px; color: var(--text-light); white-space: nowrap; }
.search-btn {
  background: var(--amber);
  color: white;
  border: none;
  border-radius: var(--radius-btn);
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--amber-hover); }

/* ── STAR STRIP ── */
.star-strip {
  background: var(--olive);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.star-strip__stars { color: #f5c842; font-size: 1rem; letter-spacing: 3px; }
.star-strip__text { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 300; }
.star-strip__text strong { color: white; font-weight: 500; }

/* ── PROPERTY CAROUSEL ── */
.carousel-outer {
  position: relative;
  padding: 0 60px;
  margin-top: 2rem;
}
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 20px;
  will-change: transform;
}
.carousel-nav {
  position: absolute;
  top: 130px; /* vertically centred over the image area */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.15s;
  padding: 0;
}
.carousel-nav:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.22); transform: scale(1.06); }
.carousel-nav--prev { left: 4px; }
.carousel-nav--next { right: 4px; }

.prop-card {
  width: 300px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.prop-card__img {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  height: 260px;
}

/* Gallery slides */
.prop-card__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.prop-card__slide.active { opacity: 1; }

/* Arrow buttons */
.prop-card__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  padding: 0;
}
.prop-card:hover .prop-card__arrow { opacity: 1; }
.prop-card__arrow:hover { background: #fff; }
.prop-card__arrow--prev { left: 10px; }
.prop-card__arrow--next { right: 10px; }

/* Dot indicators */
.prop-card__dots {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 4;
}
.prop-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.prop-card__dot.active { background: #fff; transform: scale(1.3); }

.prop-card__img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s;
}
.prop-card:hover .prop-card__img img { transform: scale(1.05); }
.prop-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: white;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.prop-card__location { font-size: 13px; color: var(--text-light); font-style: italic; margin-bottom: 4px; }
.prop-card__name { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 400; margin-bottom: 10px; line-height: 1.2; }
.prop-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prop-card__tag {
  font-size: 12px;
  color: var(--text-mid);
  background: var(--cream-mid);
  padding: 4px 11px;
  border-radius: var(--radius-btn);
}

/* Grid cards (for accommodation listing) */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prop-grid-card {
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.prop-grid-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,0,0,0.05); }
.prop-grid-card__img {
  height: 230px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: background-size 0.6s ease;
}
.prop-grid-card:hover .prop-grid-card__img { background-size: 108%; }
.prop-grid-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  background: white;
  color: var(--text);
  font-size: 12px; font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.prop-grid-card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.prop-grid-card__location { font-size: 12px; color: var(--text-light); font-style: italic; margin-bottom: 4px; }
.prop-grid-card__name { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 400; margin-bottom: 12px; }
.prop-grid-card__desc { font-size: 0.875rem; color: var(--text-mid); line-height: 1.7; font-weight: 300; flex: 1; margin-bottom: 16px; }
.prop-grid-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.prop-grid-card__tag { font-size: 11px; color: var(--text-mid); background: var(--cream-mid); padding: 3px 10px; border-radius: var(--radius-btn); }

/* ── SPLIT SECTIONS ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__img { border-radius: 20px; overflow: hidden; }
.split__img img { width: 100%; height: 520px; object-fit: cover; }
.split__text h2 { margin-bottom: 18px; }
.split__text p { margin-bottom: 16px; }

/* ── FEATURE STRIP ── */
.feature-strip { background: var(--olive); padding: 72px 40px; }
.feature-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.feature-item { text-align: center; }
.feature-item__icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-item h3 { color: white; font-size: 1.25rem; margin-bottom: 8px; }
.feature-item p { color: rgba(255,255,255,0.62); font-size: 0.9rem; line-height: 1.7; font-weight: 300; }

/* ── AMENITIES LIST (property pages) ── */
.amenities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
.amenity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.amenity-item::before { content: '✓'; color: var(--olive); font-weight: 700; flex-shrink: 0; }

/* ── GALLERY GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.gallery-grid .wide { grid-column: span 2; aspect-ratio: 2/1; }

/* ── SAVINGS ROW ── */
.savings-row { display: flex; justify-content: center; gap: 56px; margin: 36px 0; flex-wrap: wrap; }
.saving-item { text-align: center; }
.saving-item__num { font-family: 'Fraunces', serif; font-size: 2.8rem; font-weight: 400; display: block; line-height: 1; margin-bottom: 6px; }
.saving-item__label { font-size: 12px; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── SECTION HEADER PAIR ── */
.section-header { margin-bottom: 48px; }
.section-header--between { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--text-mid); font-weight: 300; max-width: 480px; }

/* ── BOOK DIRECT BANNER (inline) ── */
.book-banner {
  background: var(--olive);
  border-radius: 20px;
  padding: 52px 48px;
  text-align: center;
}
.book-banner h2 { color: white; margin-bottom: 12px; }
.book-banner p { color: rgba(255,255,255,0.7); font-weight: 300; margin-bottom: 32px; }

/* ── NEARBY TAGS ── */
.nearby-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.nearby-tag {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--olive);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 72px 40px 36px;
}
.footer-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-brand img { height: 52px; filter: none; opacity: 1; margin-bottom: 20px; display: block; background: var(--cream); padding: 8px 16px; border-radius: 10px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.75; max-width: 280px; font-weight: 300; }
.footer-col h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 18px; font-family: 'DM Sans', sans-serif; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; font-weight: 300; transition: color 0.2s; }
.footer-col ul a:hover { color: white; }
.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── PLACEHOLDER FLAGS ── */
.needs-confirmation {
  background: #fff3cd;
  border: 1px dashed #c9961e;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
  color: #7a5800;
  display: inline-block;
  margin: 4px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .section { padding: 64px 24px; }
  .header-inner { padding: 0 24px; }
  .site-nav { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; direction: ltr !important; }
  .split__img img { height: 300px; }
  .feature-strip .container { grid-template-columns: 1fr; gap: 36px; }
  .prop-grid { grid-template-columns: 1fr; }
  .cards-scroll-wrap { margin: 0 -24px; padding: 0 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .wide { grid-column: span 1; aspect-ratio: 1; }
  .amenities-grid { grid-template-columns: 1fr; }
  .savings-row { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; border-radius: 12px; padding: 16px; }
  .search-field { border-right: none; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .search-field:last-of-type { border-bottom: none; }
  .search-btn { width: 100%; justify-content: center; border-radius: 8px; }
}
