/*
Theme Name: LodgeSeek MTC
Theme URI: https://lodgeseek.com/
Author: Marketing the Change
Author URI: https://marketingthechange.com/
Description: Editorial FSE theme for LodgeSeek. Timber + Cream + Forest + Ember + Paper palette. Manrope + Fraunces + Inter + JetBrains Mono. Custom post types for lodge, park, county, forest. Region-first UK lodge editorial with honest hot-tub disclosure, private tub badges, and Awin affiliate widgets (Sykes, Hoseasons, Cottages.com, Forest Holidays).
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lodgeseek-mtc
Tags: full-site-editing, block-patterns, editorial, travel, lodges, uk
*/

/* Minimal supplemental styles. Bulk flows from theme.json. */

:root {
  --ls-timber: #1F2A24;
  --ls-bark:   #2C3A32;
  --ls-cream:  #F5F0E4;
  --ls-paper:  #FBF7EE;
  --ls-forest: #2F6D4A;
  --ls-ember:  #C6552A;
  --ls-ink:    #1A1F1B;
  --ls-snow:   #F8F9F5;
  --ls-moss:   #7A857C;
  --ls-fern:   #3E4A42;
  --ls-sage:   #4E8C6C;
  --ls-copper: #A64A24;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ls-forest);
  color: var(--ls-snow);
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* Timber Wash overlay: hero, full-bleed, park review heroes */
.wp-block-cover.is-style-timber-wash::after,
.img-timber-wash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,42,36,0.35) 0%, rgba(31,42,36,0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Ember Glow: log-fire interiors, romantic hero, autumn / winter posts */
.img-ember-glow { position: relative; overflow: hidden; isolation: isolate; }
.wp-block-image.is-style-ember-glow img,
.img-ember-glow img { filter: contrast(1.05) saturate(1.05); }
.wp-block-image.is-style-ember-glow::after,
.img-ember-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(198,85,42,0.16) 0%, transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

/* Cream Frame: editorial inline images on Paper sections */
.wp-block-image.is-style-cream-frame,
.img-cream-frame {
  padding: 12px;
  background: var(--ls-cream);
  border: 1px solid #E4DBC8;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(26,31,27,0.06);
  display: inline-block;
}
.wp-block-image.is-style-cream-frame img,
.img-cream-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* Pills / chips */
.ls-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.ls-pill--forest { background: var(--ls-forest); color: var(--ls-snow); }
.ls-pill--ember  { background: var(--ls-ember);  color: var(--ls-snow); }
.ls-pill--sage   { background: var(--ls-sage);   color: var(--ls-snow); }
.ls-pill--moss   { background: var(--ls-cream);  color: var(--ls-ink); border: 1px solid var(--ls-moss); }
.ls-pill--bark   { background: var(--ls-bark);   color: var(--ls-snow); }
.ls-pill--copper { background: var(--ls-copper); color: var(--ls-snow); }

/* Amenity chip specific: hot tub badge with steam glyph */
.ls-chip--hot-tub::before { content: '\2668'; margin-right: 6px; }
.ls-chip--dog::before     { content: '\1F43E'; margin-right: 6px; }
.ls-chip--luxury::before  { content: '\2731'; margin-right: 6px; }
.ls-chip--family::before  { content: '\1F46A'; margin-right: 6px; }

/* Monospace numeric (prices, drive times, ratings) */
.ls-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
}

/* Editorial eyebrow */
.ls-eyebrow {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--ls-forest);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

/* Trust strip */
.ls-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px;
  background: var(--ls-timber);
  color: var(--ls-snow);
}
.ls-trust-strip .stat-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  color: var(--ls-forest);
  display: block;
  line-height: 1;
}
.ls-trust-strip .stat-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  margin-top: 8px;
  display: block;
}
@media (max-width: 782px) {
  .ls-trust-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Lodge review card */
.ls-lodge-card {
  background: var(--ls-snow);
  border: 1px solid #E4DBC8;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 150ms ease-out, border-color 150ms ease-out;
}
.ls-lodge-card:hover {
  transform: translateY(-4px);
  border-color: var(--ls-forest);
}
.ls-lodge-card .card-body { padding: 24px; }
.ls-lodge-card .card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.ls-lodge-card .card-price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 13px;
  color: var(--ls-ink);
  padding: 4px 8px;
  border: 1px solid var(--ls-moss);
  border-radius: 4px;
  display: inline-block;
}

/* Rating leaves (5 leaf marks) */
.ls-rating {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.ls-rating .leaf {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--ls-moss);
  opacity: 0.4;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.ls-rating .leaf.filled {
  background: var(--ls-forest);
  opacity: 1;
}
.ls-rating .label {
  margin-left: 8px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--ls-moss);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Amenity filter row */
.ls-amenity-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}
.ls-amenity-filter .ls-pill { cursor: pointer; }

/* Affiliate disclosure band (mandatory above every widget) */
.ls-disclosure {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ls-moss);
  padding: 8px 12px;
  background: var(--ls-cream);
  border-left: 3px solid var(--ls-forest);
  margin: 16px 0 8px;
  line-height: 1.5;
}
.ls-disclosure a { color: var(--ls-fern); text-decoration: underline; }

/* Seasonal availability banner (Copper accent) */
.ls-seasonal-alert {
  background: var(--ls-paper);
  color: var(--ls-ink);
  border-left: 4px solid var(--ls-copper);
  padding: 16px 20px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ls-seasonal-alert strong { color: var(--ls-copper); }

/* Hot tub disclosure table */
.ls-hot-tub-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ls-paper);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin: 24px 0;
}
.ls-hot-tub-table th,
.ls-hot-tub-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #E4DBC8;
  text-align: left;
}
.ls-hot-tub-table th {
  font-weight: 600;
  color: var(--ls-fern);
  width: 34%;
}
.ls-hot-tub-table td { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Sticky header */
.ls-sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 200ms ease-out;
}
.ls-sticky-header.scrolled { box-shadow: 0 2px 12px rgba(31,42,36,0.15); }

/* Motion respect */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
