/* Green Centre Guide - THEME 07 "Garden Centre UK" (green-centre-guide.txt §1, §8). Prefix gg- (BEM). No web fonts. */
:root {
	--gg-primary: #2e7d32;   /* Leaf Green: buttons, links, accents */
	--gg-secondary: #4fa64f; /* Garden Green: hover, badges */
	--gg-accent: #a8d45a;    /* Fresh Lime: chips, section title underline, checks */
	--gg-bg: #f8fbf4;        /* Soft Cream: page */
	--gg-section: #edf6e8;   /* Pale Green: alternate blocks, today row, placeholders */
	--gg-heading: #183d24;   /* Deep Forest: H1-H3, footer */
	--gg-text: #34443a;      /* Charcoal Green */
	--gg-border: #d6e5d2;    /* Soft Green */
	--gg-white: #ffffff;
	--gg-open: #1f8a3b;
	--gg-closed: #c0392b;
	--gg-star: #f2b01e;
	--gg-shell: 1240px;
	--gg-radius: 12px;
	--gg-radius-pill: 999px;
	--gg-shadow: 0 2px 10px rgba(24, 61, 36, 0.08);
	--gg-s1: 6px;
	--gg-s2: 12px;
	--gg-s3: 20px;
	--gg-s4: 32px;
	--gg-s5: 48px;
	--gg-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--gg-bg); color: var(--gg-text); font: 16px/1.6 var(--gg-font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gg-primary); }
a:hover { color: var(--gg-secondary); }
h1, h2, h3 { color: var(--gg-heading); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 0; }
p { margin: 0 0 var(--gg-s2); }
:focus-visible { outline: 3px solid var(--gg-accent); outline-offset: 2px; }

.gg-skip { position: absolute; left: -9999px; top: 0; background: var(--gg-white); padding: var(--gg-s2) var(--gg-s3); z-index: 100; }
.gg-skip:focus { left: var(--gg-s2); top: var(--gg-s2); }
.gg-shell { width: 100%; max-width: var(--gg-shell); margin: 0 auto; padding: 0 var(--gg-s3); }

/* ---- header: white, logo left, menu right, soft green bottom border */
.gg-header { background: var(--gg-white); border-bottom: 1px solid var(--gg-border); position: relative; z-index: 20; }
.gg-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--gg-s3); min-height: 68px; }
.gg-brand { display: flex; flex-direction: column; text-decoration: none; color: var(--gg-heading); }
.gg-brand:hover { color: var(--gg-heading); }
.gg-brand__logo { height: 40px; width: auto; }
.gg-brand__name { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.gg-brand__tagline { font-size: 0.85rem; color: var(--gg-text); }
.gg-nav__list { list-style: none; display: flex; gap: var(--gg-s1); margin: 0; padding: 0; }
.gg-nav__link { display: block; padding: var(--gg-s1) var(--gg-s2); border-radius: var(--gg-radius-pill); color: var(--gg-heading); text-decoration: none; font-weight: 600; }
.gg-nav__link:hover, .gg-nav__item.is-current .gg-nav__link { background: var(--gg-section); color: var(--gg-primary); }
.gg-menu-toggle { display: none; align-items: center; gap: var(--gg-s1); background: none; border: 1px solid var(--gg-border); border-radius: var(--gg-radius-pill); padding: var(--gg-s1) var(--gg-s2); color: var(--gg-heading); font: inherit; font-weight: 600; cursor: pointer; }
.gg-menu-toggle__bars, .gg-menu-toggle__bars::before, .gg-menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.gg-menu-toggle__bars::before { position: absolute; top: -6px; }
.gg-menu-toggle__bars::after { position: absolute; top: 6px; }

/* ---- banner: no image, 135deg gradient Leaf Green -> Deep Forest, faint leaves drawn with radial gradients */
.gg-banner {
	color: var(--gg-white);
	background:
		radial-gradient(ellipse 120px 60px at 88% 22%, rgba(168, 212, 90, 0.16) 0 60%, transparent 61%),
		radial-gradient(ellipse 90px 44px at 78% 70%, rgba(168, 212, 90, 0.12) 0 60%, transparent 61%),
		radial-gradient(ellipse 70px 34px at 12% 80%, rgba(255, 255, 255, 0.08) 0 60%, transparent 61%),
		radial-gradient(circle 220px at 100% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
		linear-gradient(135deg, #2e7d32 0%, #183d24 100%);
}
.gg-banner__inner { padding-top: var(--gg-s5); padding-bottom: var(--gg-s5); }
.gg-banner__title { color: var(--gg-white); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.gg-banner__lead { margin-top: var(--gg-s2); max-width: 760px; font-size: 1.05rem; color: rgba(255, 255, 255, 0.92); }
.gg-banner__lead p:last-child { margin-bottom: 0; }
.gg-trail__list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--gg-s1); margin: 0 0 var(--gg-s2); padding: 0; font-size: 0.9rem; }
.gg-trail__item + .gg-trail__item::before { content: "›"; margin-right: var(--gg-s1); color: var(--gg-accent); }
.gg-trail__link { color: var(--gg-white); }
.gg-trail__link:hover { color: var(--gg-accent); }
.gg-trail__here { color: rgba(255, 255, 255, 0.8); }

/* ---- sections and titles: Deep Forest title with a 48px lime underline */
.gg-main { display: block; }
.gg-section { padding: var(--gg-s5) 0; }
.gg-section--alt { background: var(--gg-section); }
.gg-section__title { font-size: 1.6rem; margin-bottom: var(--gg-s4); }
.gg-section__title::after, .gg-panel__title::after { content: ""; display: block; width: 48px; height: 4px; margin-top: var(--gg-s2); background: var(--gg-accent); border-radius: var(--gg-radius-pill); }

/* ---- grids */
.gg-grid { display: grid; gap: var(--gg-s3); }
.gg-grid--cards { grid-template-columns: 1fr; }
.gg-grid--towns { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---- vertical Brand card: 4:3 image on top, name, town, rating, open/closed */
.gg-card { display: flex; flex-direction: column; background: var(--gg-white); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); box-shadow: var(--gg-shadow); overflow: hidden; }
.gg-card__media { display: block; aspect-ratio: 4 / 3; background: var(--gg-section); }
.gg-card__img { width: 100%; height: 100%; object-fit: cover; }
.gg-card__media--empty { display: flex; align-items: center; justify-content: center; padding: var(--gg-s3); text-decoration: none; }
.gg-card__placeholder { color: var(--gg-primary); font-weight: 700; font-size: 1.1rem; text-align: center; line-height: 1.3; }
.gg-card__body { display: flex; flex-direction: column; gap: var(--gg-s1); padding: var(--gg-s3); flex: 1; }
.gg-card__title { font-size: 1.08rem; }
.gg-card__link { color: var(--gg-heading); text-decoration: none; }
.gg-card__link:hover { color: var(--gg-primary); text-decoration: underline; }
.gg-card__town, .gg-card__distance, .gg-card__meta { margin: 0; font-size: 0.92rem; }
.gg-card__distance { color: var(--gg-primary); font-weight: 600; }
.gg-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gg-s1) var(--gg-s2); margin-top: auto; padding-top: var(--gg-s1); }

/* ---- Town card: 16:10 image if any, name, count */
.gg-town { background: var(--gg-white); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); box-shadow: var(--gg-shadow); overflow: hidden; }
.gg-town__link { display: block; color: inherit; text-decoration: none; }
.gg-town__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--gg-section); }
.gg-town__img { width: 100%; height: 100%; object-fit: cover; }
.gg-town__initial { font-size: 2.4rem; font-weight: 700; color: var(--gg-primary); }
.gg-town__body { display: flex; flex-direction: column; padding: var(--gg-s2) var(--gg-s3) var(--gg-s3); }
.gg-town__name { font-weight: 700; color: var(--gg-heading); font-size: 1.05rem; }
.gg-town__link:hover .gg-town__name { color: var(--gg-primary); }
.gg-town__count { font-size: 0.9rem; }

/* ---- rating, stars, open/closed */
.gg-rating { display: inline-flex; align-items: center; gap: var(--gg-s1); }
.gg-stars { display: inline-flex; letter-spacing: 1px; }
.gg-stars__star { color: var(--gg-border); }
.gg-stars__star.is-lit { color: var(--gg-star); }
.gg-rating__value { font-weight: 700; color: var(--gg-heading); }
.gg-rating__count { font-size: 0.9em; }
.gg-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--gg-s1); }
.gg-status:empty { display: none; }
.gg-status__badge { display: inline-block; padding: 2px 10px; border-radius: var(--gg-radius-pill); font-size: 0.82rem; font-weight: 700; color: var(--gg-white); }
.gg-status__badge--open { background: var(--gg-open); }
.gg-status__badge--closed { background: var(--gg-closed); }
.gg-status__note { font-size: 0.88rem; }

/* ---- buttons */
.gg-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--gg-s1); padding: 10px var(--gg-s3); border: 2px solid var(--gg-primary); border-radius: var(--gg-radius-pill); background: var(--gg-primary); color: var(--gg-white); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.gg-button:hover { background: var(--gg-secondary); border-color: var(--gg-secondary); color: var(--gg-white); }
.gg-button--ghost { background: var(--gg-white); color: var(--gg-primary); }
.gg-button--ghost:hover { background: var(--gg-section); color: var(--gg-primary); border-color: var(--gg-primary); }

/* ---- Brand page: 2 columns >= 992px (main 2/3, sticky "Today" sidebar 1/3) */
.gg-entry { display: grid; grid-template-columns: 1fr; gap: var(--gg-s4); padding-top: var(--gg-s4); padding-bottom: var(--gg-s5); }
.gg-entry__main { display: flex; flex-direction: column; gap: var(--gg-s3); min-width: 0; }
.gg-summary { background: var(--gg-white); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); box-shadow: var(--gg-shadow); padding: var(--gg-s3); }
.gg-summary__text p:last-child { margin-bottom: 0; }
.gg-summary__text + .gg-summary__facts { margin-top: var(--gg-s3); padding-top: var(--gg-s3); border-top: 1px solid var(--gg-border); }
.gg-summary__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gg-s2); }
.gg-summary__fact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gg-s1) var(--gg-s2); }
.gg-summary__label { min-width: 72px; font-weight: 700; color: var(--gg-heading); }
.gg-today { background: var(--gg-white); border: 1px solid var(--gg-border); border-top: 4px solid var(--gg-primary); border-radius: var(--gg-radius); box-shadow: var(--gg-shadow); padding: var(--gg-s3); }
.gg-today__label { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gg-primary); }
.gg-today__hours { display: flex; flex-direction: column; margin: var(--gg-s1) 0 var(--gg-s2); }
.gg-today__hours:not(.is-ready) { display: none; }
.gg-today__day { font-weight: 700; color: var(--gg-heading); font-size: 1.1rem; }
.gg-today__time { font-size: 1.05rem; }
.gg-today__actions { display: flex; flex-wrap: wrap; gap: var(--gg-s2); margin: var(--gg-s2) 0; }
.gg-today__actions .gg-button { flex: 1 1 120px; }
.gg-today__phone { margin: 0; font-weight: 700; }
.gg-today__phone-link { color: var(--gg-heading); text-decoration: none; }

/* ---- white section cards (H2) */
.gg-panel { background: var(--gg-white); border: 1px solid var(--gg-border); border-radius: var(--gg-radius); box-shadow: var(--gg-shadow); padding: var(--gg-s3); }
.gg-panel__title { font-size: 1.3rem; margin-bottom: var(--gg-s3); }

/* Opening Times: 7 rows, today pale green + bold */
.gg-hours { width: 100%; border-collapse: collapse; }
.gg-hours__row th, .gg-hours__row td { padding: 10px var(--gg-s2); border-bottom: 1px solid var(--gg-border); text-align: left; }
.gg-hours__row:last-child th, .gg-hours__row:last-child td { border-bottom: 0; }
.gg-hours__day { font-weight: 600; color: var(--gg-heading); width: 45%; }
.gg-hours__time { text-align: right !important; }
.gg-hours__row.is-today th, .gg-hours__row.is-today td { background: var(--gg-section); font-weight: 700; }

/* What You Can Find: one card per category, prices right-aligned */
.gg-offers { display: grid; gap: var(--gg-s3); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gg-offers__group { border: 1px solid var(--gg-border); border-radius: var(--gg-radius); padding: var(--gg-s2) var(--gg-s3); background: var(--gg-bg); }
.gg-offers__title { font-size: 1.05rem; margin-bottom: var(--gg-s2); }
.gg-offers__list { list-style: none; margin: 0; padding: 0; }
.gg-offers__item { display: flex; justify-content: space-between; gap: var(--gg-s2); padding: var(--gg-s1) 0; border-bottom: 1px dashed var(--gg-border); }
.gg-offers__item:last-child { border-bottom: 0; }
.gg-offers__price { margin-left: auto; text-align: right; font-weight: 700; color: var(--gg-primary); white-space: nowrap; }

/* Visitor Facilities: lime checks */
.gg-facilities { display: grid; gap: var(--gg-s3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gg-facilities__title { margin-bottom: var(--gg-s1); color: var(--gg-heading); }
.gg-facilities__list { list-style: none; margin: 0; padding: 0; }
.gg-facilities__item { position: relative; padding: 3px 0 3px 26px; }
.gg-facilities__item::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--gg-accent); color: var(--gg-heading); font-size: 0.75rem; font-weight: 700; line-height: 18px; text-align: center; }

/* Photos: 1 -> 1 column, 2 -> 2, 3 -> 3, 4+ -> first large + small grid */
.gg-photos { display: grid; gap: var(--gg-s2); }
.gg-photos__item { display: block; border-radius: var(--gg-radius); overflow: hidden; background: var(--gg-section); aspect-ratio: 4 / 3; }
.gg-photos__img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gg-photos__item:hover .gg-photos__img { transform: scale(1.03); }
.gg-photos--2 { grid-template-columns: repeat(2, 1fr); }
.gg-photos--3 { grid-template-columns: repeat(3, 1fr); }
.gg-photos--many { grid-template-columns: repeat(4, 1fr); }
.gg-photos--many .gg-photos__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* Reviews */
.gg-reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gg-s2); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gg-review { border: 1px solid var(--gg-border); border-radius: var(--gg-radius); padding: var(--gg-s3); background: var(--gg-bg); }
.gg-review__stars { margin-bottom: var(--gg-s1); }
.gg-review__name { font-weight: 700; color: var(--gg-heading); margin-bottom: var(--gg-s1); }
.gg-review__quote { margin: 0; border-left: 3px solid var(--gg-accent); padding-left: var(--gg-s2); font-style: italic; }
.gg-review__quote p { margin: 0; }

/* Location & Contact */
.gg-contact { margin: 0 0 var(--gg-s3); display: grid; gap: var(--gg-s2); }
.gg-contact__row { display: grid; grid-template-columns: 90px 1fr; gap: var(--gg-s2); }
.gg-contact__label { font-weight: 700; color: var(--gg-heading); }
.gg-contact__value { margin: 0; }
.gg-map { border-radius: var(--gg-radius); overflow: hidden; border: 1px solid var(--gg-border); }
.gg-map__frame { display: block; width: 100%; height: 360px; border: 0; }

/* ---- pager */
.gg-pager { margin-top: var(--gg-s4); }
.gg-pager__list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--gg-s1); justify-content: center; margin: 0; padding: 0; }
.gg-pager__link { display: inline-block; min-width: 40px; padding: 8px 14px; border: 1px solid var(--gg-border); border-radius: var(--gg-radius-pill); background: var(--gg-white); text-align: center; text-decoration: none; font-weight: 600; }
.gg-pager__link:hover { border-color: var(--gg-primary); }
.gg-pager__link.is-current { background: var(--gg-primary); border-color: var(--gg-primary); color: var(--gg-white); }

/* ---- static pages, contact form */
.gg-reading { padding-top: var(--gg-s4); padding-bottom: var(--gg-s5); max-width: 860px; }
.gg-prose h2 { font-size: 1.35rem; margin: var(--gg-s4) 0 var(--gg-s2); }
.gg-prose h3 { font-size: 1.12rem; margin: var(--gg-s3) 0 var(--gg-s1); }
.gg-prose > :first-child { margin-top: 0; }
.gg-form-card { margin-top: var(--gg-s3); }
.gg-form-card__title { font-size: 1.25rem; margin-bottom: var(--gg-s3) !important; }
.gg-form { display: grid; gap: var(--gg-s2); }
.gg-form__field { display: flex; flex-direction: column; gap: var(--gg-s1); margin: 0; }
.gg-form__label { font-weight: 700; color: var(--gg-heading); }
.gg-form__input { width: 100%; padding: 10px var(--gg-s2); border: 1px solid var(--gg-border); border-radius: 8px; background: var(--gg-white); color: var(--gg-text); font: inherit; }
.gg-form__input:focus { border-color: var(--gg-primary); outline: none; box-shadow: 0 0 0 3px rgba(168, 212, 90, 0.5); }
.gg-form__input[aria-invalid="true"] { border-color: var(--gg-closed); }
.gg-form__input--area { resize: vertical; }
.gg-form__actions { margin: 0; }
.gg-form-card__thanks { padding: var(--gg-s2) var(--gg-s3); border-radius: var(--gg-radius); background: var(--gg-section); color: var(--gg-heading); font-weight: 600; }

/* ---- footer: Deep Forest */
.gg-footer { background: var(--gg-heading); color: rgba(255, 255, 255, 0.86); padding-top: var(--gg-s5); }
.gg-footer__grid { display: grid; gap: var(--gg-s4); grid-template-columns: 1fr; }
.gg-footer__name { color: var(--gg-white); font-weight: 700; font-size: 1.2rem; }
.gg-footer__heading { color: var(--gg-accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.gg-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gg-s1); }
.gg-footer__link { color: var(--gg-white); text-decoration: none; }
.gg-footer__link:hover { color: var(--gg-accent); text-decoration: underline; }
.gg-footer__base { margin-top: var(--gg-s4); padding-top: var(--gg-s3); padding-bottom: var(--gg-s3); border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.88rem; }
.gg-footer__copy { margin: 0; }

/* ---- Back to top (§8): round Leaf Green button, white arrow, bottom right 20px; shown by frontend.js past ~600px */
.gg-totop { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #2e7d32; color: #ffffff; box-shadow: 0 4px 14px rgba(24, 61, 36, 0.25); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.gg-totop[hidden] { display: none; }
.gg-totop.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
.gg-totop:hover { background: var(--gg-secondary); }
.gg-totop:focus-visible { outline: 3px solid var(--gg-accent); outline-offset: 3px; }
.gg-totop__icon { display: block; }

/* ---- lightbox (lightbox.js) */
.gg-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(24, 61, 36, 0.92); padding: var(--gg-s4); }
.gg-lightbox[hidden] { display: none; }
.gg-lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--gg-s2); }
.gg-lightbox__img { max-width: min(1200px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 8px; }
.gg-lightbox__caption { color: var(--gg-white); font-size: 0.92rem; text-align: center; }
.gg-lightbox__button { position: absolute; background: rgba(255, 255, 255, 0.14); color: var(--gg-white); border: 0; border-radius: var(--gg-radius-pill); width: 46px; height: 46px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.gg-lightbox__button:hover { background: var(--gg-primary); }
.gg-lightbox__button--close { top: var(--gg-s3); right: var(--gg-s3); }
.gg-lightbox__button--prev { left: var(--gg-s3); top: 50%; transform: translateY(-50%); }
.gg-lightbox__button--next { right: var(--gg-s3); top: 50%; transform: translateY(-50%); }
body.gg-no-scroll { overflow: hidden; }
