/* Lodge website styles. Colours, font and width come from the template theme as CSS variables. */
* { box-sizing: border-box; }
body { margin:0; font:16px/1.6 var(--font); color:var(--text); background:var(--bg); }
img { max-width:100%; height:auto; }
a { color:var(--primary); }
.wrap { max-width:var(--width); margin:0 auto; padding:0 20px; }
h1, h2, h3 { line-height:1.25; }
h2 { font-size:1.75em; margin:0 0 .6em; }
.muted { opacity:.7; }
.small { font-size:.92em; }
.tag { display:inline-block; font-size:.7em; padding:1px 7px; border-radius:9px; background:var(--accent); color:#111; vertical-align:middle; font-weight:600; }

/* admin / preview bar */
.preview-bar { background:#fff4c2; color:#3d3200; padding:6px 20px; font-size:.9em; text-align:center; }
.preview-bar.admin { background:#1d2330; color:#dfe3ea; }
.preview-bar.admin a { color:#fff; }

/* header */
.site-header { background:var(--primary); color:var(--header-text); position:relative; z-index:10; }
.site-header a { color:var(--header-text); text-decoration:none; }
.head-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:12px; padding-bottom:12px; flex-wrap:wrap; }
.site-brand { display:flex; align-items:center; gap:12px; }
.site-brand img { height:60px; width:auto; }
.site-name { display:block; font-size:1.35em; font-weight:700; }
.site-number { display:block; font-size:.85em; opacity:.85; }
.site-nav ul { list-style:none; margin:0; padding:0; }
.site-nav > ul { display:flex; flex-wrap:wrap; gap:2px; }
.site-nav li { position:relative; }
.site-nav a { display:block; padding:8px 12px; border-radius:4px; }
.site-nav a:hover, .site-nav a.active { background:rgba(255,255,255,.15); }
.site-nav a.active { box-shadow:inset 0 -3px 0 var(--accent); }
.site-nav .sub { display:none; position:absolute; left:0; top:100%; min-width:200px; background:var(--primary); padding:6px; border-radius:0 0 6px 6px; box-shadow:0 6px 18px rgba(0,0,0,.2); }
.site-nav li.has-sub:hover > .sub, .site-nav li.has-sub:focus-within > .sub { display:block; }
.nav-toggle, .nav-burger { display:none; }
.layout-centered .head-inner { flex-direction:column; text-align:center; }
.layout-centered .site-brand { flex-direction:column; }
.layout-banner .site-header { background:linear-gradient(135deg, var(--primary), #000 160%); }
.layout-banner .head-inner { flex-direction:column; align-items:flex-start; padding-top:28px; }
.layout-banner .site-name { font-size:2em; }
.layout-banner .site-brand img { height:90px; }
.layout-banner .site-nav { width:100%; border-top:1px solid rgba(255,255,255,.25); padding-top:6px; }

/* blocks */
.block { padding:44px 0; }
.bg-alt { background:rgba(0,0,0,.04); }
.bg-primary { background:var(--primary); color:var(--header-text); }
.bg-primary a:not(.btn) { color:var(--header-text); }
.bg-dark { background:#1b1b1f; color:#eee; }
.bg-dark a:not(.btn) { color:var(--accent); }
.hero { background:var(--primary) center/cover no-repeat; color:#fff; display:flex; align-items:center; text-align:center; }
.hero-small { min-height:220px; } .hero-medium { min-height:380px; } .hero-large { min-height:560px; }
.hero .wrap { width:100%; padding-top:40px; padding-bottom:40px; }
.hero h1 { font-size:clamp(2em, 5vw, 3.4em); margin:0 0 .3em; text-shadow:0 2px 8px rgba(0,0,0,.35); }
.hero .lead { font-size:1.25em; max-width:720px; margin:0 auto 1em; }
.btn { display:inline-block; background:var(--accent); color:#111; padding:10px 22px; border-radius:6px; font-weight:600; text-decoration:none; border:2px solid var(--accent); cursor:pointer; font:inherit; font-weight:600; }
.btn:hover { filter:brightness(1.07); }
.btn-ghost { background:transparent; color:inherit; border-color:currentColor; }
.buttons { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:12px; }
.cta.align-left .buttons { justify-content:flex-start; }
.cta.align-center { text-align:center; }
.more { font-weight:600; text-decoration:none; }
.rich p:first-child { margin-top:0; }
.cols-2 { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.media { display:flex; gap:28px; align-items:flex-start; }
.media-left { flex-direction:row; } .media-right { flex-direction:row-reverse; }
.media .side-img { width:40%; border-radius:8px; }
.media > div { flex:1; }
.cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:20px; }
.card { background:#fff; color:#222; border-radius:10px; overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,.08); display:flex; flex-direction:column; text-decoration:none; }
.card > img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.card-body { padding:16px 18px 18px; }
.card-body h3 { margin:.1em 0 .4em; }
.card .when, .when { color:var(--primary); font-weight:600; font-size:.88em; text-transform:uppercase; letter-spacing:.03em; }
.link-card:hover { transform:translateY(-2px); }
figure { margin:0; }
figure.img-small { max-width:420px; margin:0 auto; }
figure.img-full img { width:100%; }
figcaption { font-size:.9em; opacity:.75; margin-top:6px; }
.notice { border-left:5px solid var(--primary); background:#fff; color:#222; padding:14px 18px; border-radius:6px; }
.notice-warn { border-color:#d9822b; background:#fff6ea; }
.notice-success { border-color:#2e8b57; background:#eef9f2; }
.block-notice { padding:18px 0; }

/* events & calendar */
.event-list { display:flex; flex-direction:column; gap:10px; }
.event { display:flex; gap:16px; background:#fff; color:#222; border-radius:8px; padding:12px 14px; box-shadow:0 1px 5px rgba(0,0,0,.06); }
.ev-date { width:58px; flex:none; text-align:center; background:var(--primary); color:var(--header-text); border-radius:6px; padding:6px 0; line-height:1.1; }
.ev-date .d-mon { display:block; font-size:.8em; text-transform:uppercase; }
.ev-date .d-day { display:block; font-size:1.5em; font-weight:700; }
.ev-date .d-rep { display:block; font-size:1.6em; padding-top:4px; }
.ev-body { flex:1; }
.ev-img { max-width:280px; display:block; margin:8px 0; border-radius:6px; }
details summary { cursor:pointer; color:var(--primary); font-size:.9em; margin-top:4px; }
.cal-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.cal-nav strong { font-size:1.2em; }
.calendar { display:grid; grid-template-columns:repeat(7, 1fr); gap:3px; }
.cal-head { text-align:center; font-weight:600; font-size:.85em; padding:4px; }
.cal-day { background:#fff; color:#222; min-height:96px; padding:4px 5px; border-radius:4px; font-size:.82em; }
.cal-day.empty { background:transparent; }
.cal-day.today { outline:2px solid var(--accent); }
.cal-day .num { font-weight:700; display:block; }
.cal-day .wd { display:none; }
.cal-ev { background:var(--primary); color:var(--header-text); border-radius:3px; padding:1px 4px; margin-top:3px; line-height:1.3; }
.cal-ev.members { background:var(--accent); color:#111; }
.cal-ev .t { opacity:.85; }

/* news, docs, hours, people, gallery, links, stats */
.post-sum { border-bottom:1px solid rgba(0,0,0,.1); padding:10px 0 14px; }
.post-sum h3 { margin:0; }
.post-img { max-height:420px; border-radius:8px; margin:10px 0; }
.docs, .links { padding-left:1.2em; }
.docs li, .links li { margin:6px 0; }
.hours-wrap { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:24px; }
.hours-group h3 { margin:0 0 6px; }
table.hours { border-collapse:collapse; width:100%; }
table.hours th, table.hours td { text-align:left; padding:5px 8px; border-bottom:1px solid rgba(0,0,0,.1); }
table.hours th { font-weight:600; width:45%; }
.people { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:18px; }
.person { display:flex; gap:12px; align-items:flex-start; }
.person img, .avatar { width:72px; height:72px; border-radius:50%; object-fit:cover; flex:none; }
.avatar { background:var(--primary); color:var(--header-text); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.3em; }
.person .role { font-size:.82em; text-transform:uppercase; letter-spacing:.04em; color:var(--primary); font-weight:600; }
.bg-primary .person .role, .bg-dark .person .role { color:var(--accent); }
.person p { margin:.3em 0 0; }
.gallery { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:10px; }
.gallery img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:6px; display:block; }
.tiles { display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.tile { background:#fff; padding:12px 16px; border-radius:8px; }
.tile img { max-height:70px; }
.stats { display:flex; flex-wrap:wrap; justify-content:center; gap:40px; text-align:center; }
.stat .num { font-size:2.6em; font-weight:800; color:var(--primary); line-height:1.1; }
.bg-primary .stat .num, .bg-dark .stat .num { color:var(--accent); }
blockquote { font-size:1.3em; font-style:italic; margin:0 auto; max-width:760px; text-align:center; }
blockquote cite { display:block; font-size:.7em; font-style:normal; margin-top:10px; opacity:.8; }
.rate { font-weight:700; color:var(--primary); }
.map iframe, .embed iframe { width:100%; border:0; border-radius:8px; }
.map iframe { height:320px; }
.socials { display:flex; gap:10px; flex-wrap:wrap; margin-top:8px; }
.social { padding:4px 12px; border-radius:14px; background:var(--primary); color:var(--header-text) !important; text-decoration:none; font-size:.9em; }

/* forms */
.form-wrap { max-width:640px; }
.site-form label { display:block; margin:12px 0 4px; font-weight:600; }
.site-form label.check { display:flex; gap:8px; font-weight:400; align-items:center; }
.site-form input[type=text], .site-form input[type=email], .site-form input[type=tel], .site-form input[type=date],
.site-form input[type=time], .site-form input[type=number], .site-form select, .site-form textarea {
  width:100%; padding:9px 11px; border:1px solid #bbb; border-radius:6px; font:inherit; background:#fff; color:#222; }
.site-form .btn { margin-top:16px; }
.req { color:#b42318; }
.hp { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.flash { padding:10px 14px; border-radius:6px; margin:14px 0; border:1px solid; }
.flash.ok { background:#ecf7f0; border-color:#b5e0c4; color:#1d7a46; }
.flash.warn { background:#fff8e6; border-color:#f1d48a; color:#9a6700; }
.flash.error { background:#fdeceb; border-color:#f4b8b3; color:#b42318; }
.admin-note { border:1px dashed #999; padding:8px 12px; border-radius:6px; }

/* footer */
.site-footer { background:#1b1b1f; color:#cfcfd4; padding:36px 0 14px; margin-top:20px; font-size:.95em; }
.site-footer a { color:#fff; }
.foot-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:24px; }
.foot-links { display:flex; flex-direction:column; gap:6px; }
.copy { margin-top:24px; padding-top:12px; border-top:1px solid rgba(255,255,255,.12); font-size:.85em; opacity:.75; }

/* small screens */
@media (max-width: 760px) {
  .nav-burger { display:block; font-size:1.7em; cursor:pointer; padding:4px 10px; }
  .site-nav { display:none; width:100%; }
  .nav-toggle:checked ~ .site-nav { display:block; }
  .site-nav > ul { flex-direction:column; }
  .site-nav .sub { display:block; position:static; box-shadow:none; padding:0 0 0 16px; }
  .layout-centered .head-inner, .layout-banner .head-inner { flex-direction:row; align-items:center; }
  .cols-2, .media { display:block; }
  .media .side-img { width:100%; margin-bottom:14px; }
  .calendar { display:block; }
  .cal-head, .cal-day.empty, .cal-day:not(.has-events) { display:none; }
  .cal-day { min-height:0; margin-bottom:4px; font-size:.95em; }
  .cal-day .wd { display:inline; }
}

/* reservations */
.space-pick { margin-bottom:10px; }
.space-pick select { padding:6px 8px; border-radius:6px; font:inherit; }
.calendar.avail .cal-day.closed { background:rgba(255,255,255,.45); color:#999; }
.calendar.avail .cal-day.free { background:#f1faf4; }
.slot { display:inline-block; font-size:.8em; border-radius:3px; padding:1px 5px; margin-top:3px; line-height:1.3; }
.calendar .slot { display:block; }
.slot-free { background:#d9f2e2; color:#1d6b3e; }
.slot-confirmed { background:var(--primary); color:var(--header-text); }
.slot-pending { background:#f6dd93; color:#5c4300; }
.slot-blocked { background:#8a8f98; color:#fff; }
.legend .slot { margin-right:8px; }
.form-row { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:0 14px; }
.terms { margin:12px 0; }
.res-status { max-width:560px; }
.tag.status-confirmed { background:#2e8b57; color:#fff; }
.tag.status-pending { background:#f6dd93; }
.tag.status-declined, .tag.status-cancelled { background:#f4c7c3; }
p.notice { margin-top:16px; }

/* the visitor's own template (My templates) */
.preview-bar.personal { background:#e7f0fb; color:#173a63; }
.preview-bar.personal a { color:#0b4a8f; font-weight:600; }

/* moved dates of repeating events */
.cal-ev.moved { outline:1px dashed var(--accent); }
.cal-ev .mv { opacity:.8; font-style:italic; }
.tag.moved { background:#f6dd93; color:#5c4300; }
.moved-note { font-size:.88em; margin-top:2px; }
