/*
Theme Name: SingaporeMalaysiaBus Travel Guide
Theme URI: https://www.singaporemalaysiabus.com/
Author: BusOnlineTicket IT
Author URI: https://www.busonlineticket.com/
Description: Fast, dependency-free WordPress theme purpose-built for cross-border bus and coach travel guides. Responsive schedule tables with live filtering, operator and destination templates, built-in SEO meta and JSON-LD, and automatic UTM tagging on outbound booking links. No plugins required.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: singaporemalaysiabus
Tags: travel, custom-menu, custom-logo, responsive-layout, two-columns, right-sidebar, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--brand: #0f4c81;
	--brand-dark: #0a3557;
	--brand-light: #e8f0f8;
	--accent: #f6871f;
	--accent-dark: #d96f0c;
	--ink: #1b2733;
	--ink-soft: #46586b;
	--muted: #6b7c8f;
	--line: #dfe6ee;
	--line-soft: #eef2f7;
	--bg: #ffffff;
	--bg-soft: #f5f8fb;
	--ok: #17805d;
	--star: #f2b01e;

	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgba(16, 35, 55, .06), 0 4px 14px rgba(16, 35, 55, .06);
	--shadow-lg: 0 6px 28px rgba(16, 35, 55, .12);

	--wrap: 1200px;
	--sidebar: 292px;
	--gap: 34px;

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	--font-head: var(--font);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	line-height: 1.25;
	color: var(--ink);
	margin: 0 0 .55em;
	font-weight: 700;
	letter-spacing: -.01em;
}

h1 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.35rem); }
h2 { font-size: clamp(1.32rem, 1.1rem + .8vw, 1.65rem); margin-top: 1.9em; }
h3 { font-size: 1.16rem; margin-top: 1.6em; }
h4 { font-size: 1.02rem; margin-top: 1.3em; }

p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.35em; }
li { margin-bottom: .35em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

blockquote {
	margin: 1.5em 0;
	padding: .1em 0 .1em 1.15em;
	border-left: 4px solid var(--brand-light);
	color: var(--ink-soft);
}

code, kbd, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .92em;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--brand); color: #fff;
	padding: .7em 1.2em; z-index: 999; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. Layout
   ========================================================================== */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.site-main { padding: 26px 0 60px; }

.layout {
	display: grid;
	grid-template-columns: var(--sidebar) minmax(0, 1fr);
	gap: var(--gap);
	align-items: start;
}
.layout--full { grid-template-columns: minmax(0, 1fr); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.topbar {
	background: var(--brand-dark);
	color: #cfe0ef;
	font-size: .82rem;
}
.topbar .wrap {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar__note { margin: 0; padding: 5px 0; }

.site-header {
	background: #fff;
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 60;
}
.site-header .wrap {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand__mark {
	width: 40px; height: 40px; flex: none; border-radius: 9px;
	background: linear-gradient(135deg, var(--brand) 0%, #1c6fb0 100%);
	display: grid; place-items: center; color: #fff;
}
.brand__mark svg { width: 23px; height: 23px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name {
	font-weight: 800; font-size: 1.06rem; color: var(--ink); letter-spacing: -.02em;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__tag {
	font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav-toggle {
	display: none;
	flex: none;
	background: var(--bg-soft); border: 1px solid var(--line);
	border-radius: var(--radius-sm); padding: 9px 12px;
	font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink);
	cursor: pointer; align-items: center; gap: 8px;
}
.nav-toggle:hover { background: var(--brand-light); }
.nav-toggle__bars { display: block; width: 17px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
	content: ""; position: absolute; left: 0; width: 17px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav li { margin: 0; position: relative; }
.primary-nav > ul > li > a {
	display: block; padding: 9px 13px; border-radius: var(--radius-sm);
	font-weight: 600; font-size: .93rem; color: var(--ink-soft); text-decoration: none;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current-page-ancestor > a {
	background: var(--brand-light); color: var(--brand); text-decoration: none;
}

/* dropdowns */
.primary-nav ul ul {
	display: none; position: absolute; top: 100%; left: 0;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); min-width: 250px; padding: 7px; flex-direction: column; z-index: 70;
	max-height: 72vh; overflow-y: auto;
}
.primary-nav li:hover > ul, .primary-nav li:focus-within > ul { display: flex; }
.primary-nav ul ul a {
	display: block; padding: 7px 11px; border-radius: var(--radius-sm);
	font-size: .89rem; color: var(--ink-soft); text-decoration: none;
}
.primary-nav ul ul a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }

.btn-book-head { display: inline-flex; }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: var(--radius-sm);
	font-weight: 700; font-size: .93rem; line-height: 1.2;
	border: 1px solid transparent; cursor: pointer; text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }

.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); color: #fff; }

.btn--ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { background: var(--brand-light); border-color: #c6d8e8; }

.btn--sm { padding: 7px 13px; font-size: .84rem; }
.btn--block { display: flex; width: 100%; }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
	background: linear-gradient(140deg, var(--brand-dark) 0%, var(--brand) 52%, #1a72b3 100%);
	color: #fff; padding: 52px 0 56px; position: relative; overflow: hidden;
}
.hero::after {
	content: ""; position: absolute; right: -90px; top: -90px;
	width: 380px; height: 380px; border-radius: 50%;
	background: rgba(255, 255, 255, .06);
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p { font-size: 1.08rem; color: #dbe8f4; margin-bottom: 1.5em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px; margin-top: 38px; position: relative; z-index: 1;
}
.hero-stat {
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .17);
	border-radius: var(--radius); padding: 15px 17px;
}
.hero-stat__n { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.hero-stat__l { font-size: .82rem; color: #cddff0; margin-top: 3px; }

/* page hero (inner pages) */
.page-hero {
	background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 24px 0 26px;
}
.page-hero h1 { margin-bottom: .3em; }
.page-hero__sub { color: var(--ink-soft); margin: 0; max-width: 74ch; }

.factbar {
	display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.fact {
	background: #fff; border: 1px solid var(--line); border-radius: 100px;
	padding: 6px 15px; font-size: .855rem; color: var(--ink-soft);
	display: inline-flex; align-items: center; gap: 7px;
}
.fact strong { color: var(--ink); font-weight: 700; }
.fact--price strong { color: var(--ok); }

/* ==========================================================================
   7. Breadcrumbs
   ========================================================================== */
.breadcrumbs {
	font-size: .83rem; color: var(--muted);
	padding: 12px 0 0; margin: 0;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 7px; }
.breadcrumbs li + li::before { content: "›"; color: #b7c3d0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink-soft); font-weight: 600; }

/* ==========================================================================
   8. Sidebar
   ========================================================================== */
.sidebar { position: sticky; top: 94px; }

.side-block {
	background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); margin-bottom: 18px; overflow: hidden;
}
.side-block__head {
	background: var(--bg-soft); border-bottom: 1px solid var(--line);
	padding: 11px 16px; font-weight: 700; font-size: .86rem;
	text-transform: uppercase; letter-spacing: .05em; color: var(--brand-dark);
}
.side-block__body { padding: 8px 8px; max-height: 430px; overflow-y: auto; }
.side-block__body--pad { padding: 16px; }

.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav li { margin: 0; }
.side-nav a {
	display: flex; justify-content: space-between; align-items: center; gap: 8px;
	padding: 7px 11px; border-radius: var(--radius-sm);
	font-size: .875rem; color: var(--ink-soft); text-decoration: none;
}
.side-nav a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.side-nav .current-menu-item > a,
.side-nav .is-current > a {
	background: var(--brand-light); color: var(--brand); font-weight: 700;
}
.side-nav .count {
	font-size: .74rem; color: var(--muted); background: var(--bg-soft);
	border-radius: 100px; padding: 1px 8px; flex: none;
}
.side-nav a:hover .count { background: #fff; }

.side-cta { text-align: center; }
.side-cta p { font-size: .87rem; color: var(--ink-soft); margin-bottom: 1em; }

/* ==========================================================================
   9. Content
   ========================================================================== */
.content { min-width: 0; }

.entry-content > *:first-child { margin-top: 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--brand-dark); }

.lead { font-size: 1.06rem; color: var(--ink-soft); }

.section-head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 16px; flex-wrap: wrap; margin: 2.1em 0 1em;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; font-size: .87rem; color: var(--muted); }

.notice {
	background: #fffaf0; border: 1px solid #f6e0b8; border-left: 4px solid var(--accent);
	border-radius: var(--radius-sm); padding: 13px 17px; font-size: .89rem;
	color: #6b4d18; margin: 1.5em 0;
}
.notice strong { color: #533a0e; }
.notice p:last-child { margin-bottom: 0; }

.callout {
	background: var(--bg-soft); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 18px 20px; margin: 1.7em 0;
}
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ==========================================================================
   10. Cards
   ========================================================================== */
.card-grid {
	display: grid; gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
	margin: 1.4em 0 1.9em;
}
.card-grid--wide { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 16px 17px; display: flex; flex-direction: column; gap: 7px;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
	position: relative;
}
.card:hover { border-color: #c3d6e7; box-shadow: var(--shadow); transform: translateY(-2px); }
.card__title { font-size: 1rem; font-weight: 700; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { color: var(--brand); }
.card__meta { font-size: .82rem; color: var(--muted); margin: 0; }
.card__price { font-size: .87rem; font-weight: 700; color: var(--ok); margin: 0; }
.card__foot {
	margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line-soft);
	font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px;
}

/* operator card with logo */
.op-card { flex-direction: row; gap: 14px; align-items: flex-start; }
.op-card__logo {
	width: 62px; height: 62px; flex: none; border-radius: 8px;
	border: 1px solid var(--line-soft); background: #fff;
	object-fit: contain; padding: 5px;
}
.op-card__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.rating { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--ink-soft); }
.rating__star { color: var(--star); }

.badge {
	display: inline-block; font-size: .72rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em;
	padding: 3px 8px; border-radius: 4px;
	background: var(--brand-light); color: var(--brand);
}
.badge--accent { background: #fdf0e2; color: var(--accent-dark); }
.badge--ok { background: #e6f4ef; color: var(--ok); }

/* ==========================================================================
   11. Schedule tables
   ========================================================================== */
.sched {
	border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; margin: 1.3em 0 2em; background: #fff;
}

.sched__head {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	padding: 14px 17px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.sched__logo {
	width: 54px; height: 54px; flex: none; border-radius: 8px; background: #fff;
	border: 1px solid var(--line); object-fit: contain; padding: 4px;
}
.sched__id { min-width: 0; flex: 1 1 220px; }
.sched__id h3 { margin: 0 0 2px; font-size: 1.05rem; }
.sched__id h3 a { color: var(--ink); text-decoration: none; }
.sched__id h3 a:hover { color: var(--brand); }
.sched__id p { margin: 0; font-size: .82rem; color: var(--muted); }
.sched__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.sched__tools {
	display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
	padding: 11px 17px; border-bottom: 1px solid var(--line-soft); background: #fff;
}
.sched__search {
	flex: 1 1 210px; min-width: 0;
	padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
	font: inherit; font-size: .88rem; color: var(--ink); background: #fff;
}
.sched__search::placeholder { color: #9aa9b8; }
.sched__count { font-size: .8rem; color: var(--muted); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.sched__table { width: 100%; border-collapse: collapse; font-size: .885rem; }
table.sched__table th, table.sched__table td {
	padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-soft);
	vertical-align: top;
}
table.sched__table thead th {
	background: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
	color: var(--muted); font-weight: 700; white-space: nowrap;
	border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 2;
}
table.sched__table thead th.is-sortable { cursor: pointer; user-select: none; }
table.sched__table thead th.is-sortable:hover { color: var(--brand); }
table.sched__table thead th.is-sortable::after {
	content: "↕"; margin-left: 5px; opacity: .38; font-size: .95em;
}
table.sched__table thead th[aria-sort="ascending"]::after { content: "↑"; opacity: 1; color: var(--brand); }
table.sched__table thead th[aria-sort="descending"]::after { content: "↓"; opacity: 1; color: var(--brand); }
table.sched__table tbody tr:hover { background: #fafcfe; }
table.sched__table tbody tr:last-child td { border-bottom: 0; }

.t-route { font-weight: 600; color: var(--ink); }
.t-sub { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: 1px; }
.t-price { font-weight: 700; color: var(--ok); white-space: nowrap; }
.t-coach { white-space: nowrap; font-size: .82rem; color: var(--ink-soft); }

.times { display: flex; flex-wrap: wrap; gap: 5px; }
.time-pill {
	display: inline-block; background: var(--brand-light); color: var(--brand-dark);
	border-radius: 4px; padding: 2px 7px; font-size: .8rem;
	font-variant-numeric: tabular-nums; white-space: nowrap;
}
.time-pill--night { background: #eae7f7; color: #4b3d8f; }

.sched__empty { padding: 22px 17px; color: var(--muted); font-size: .89rem; display: none; }
.sched.is-empty .sched__empty { display: block; }
.sched.is-empty .table-scroll { display: none; }

.sched__foot {
	padding: 12px 17px; background: var(--bg-soft); border-top: 1px solid var(--line);
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	font-size: .82rem; color: var(--muted);
}
.sched__foot .btn { margin-left: auto; }

/* generic content tables */
.entry-content table:not(.sched__table) {
	width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.4em 0;
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.entry-content table:not(.sched__table) th,
.entry-content table:not(.sched__table) td {
	padding: 9px 13px; border-bottom: 1px solid var(--line-soft); text-align: left;
}
.entry-content table:not(.sched__table) thead th {
	background: var(--bg-soft); font-size: .78rem; text-transform: uppercase;
	letter-spacing: .04em; color: var(--muted);
}

/* ==========================================================================
   12. Definition rows / gallery / FAQ
   ========================================================================== */
.dl-rows { margin: 1.2em 0; }
.dl-rows dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 0; }
.dl-rows dt {
	padding: 8px 0; font-weight: 700; font-size: .87rem; color: var(--ink-soft);
	border-bottom: 1px solid var(--line-soft);
}
.dl-rows dd {
	padding: 8px 0; margin: 0; font-size: .9rem;
	border-bottom: 1px solid var(--line-soft);
}

.bus-gallery {
	display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
	margin: 1.4em 0 1.8em;
}
.bus-gallery figure { margin: 0; }
.bus-gallery img {
	width: 100%; height: 165px; object-fit: cover;
	border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft);
}
.bus-gallery figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; }

.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.4em 0 2em; }
.faq details { border-bottom: 1px solid var(--line-soft); background: #fff; }
.faq details:last-child { border-bottom: 0; }
.faq summary {
	padding: 14px 17px; cursor: pointer; font-weight: 600; font-size: .95rem;
	list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--bg-soft); }
.faq__body { padding: 0 17px 15px; font-size: .92rem; color: var(--ink-soft); }
.faq__body p:last-child { margin-bottom: 0; }

/* chip list */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: .9em 0 1.5em; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips a, .chips span {
	display: inline-block; padding: 5px 12px; border-radius: 100px;
	border: 1px solid var(--line); background: #fff;
	font-size: .84rem; color: var(--ink-soft); text-decoration: none;
}
.chips a:hover { background: var(--brand-light); border-color: #c6d8e8; color: var(--brand); text-decoration: none; }

/* ==========================================================================
   13. Ads
   ========================================================================== */
.ad-slot { margin: 22px 0; text-align: center; min-height: 1px; }
.ad-slot--leader { margin: 18px 0 4px; }
.ad-slot__label {
	font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
	color: #a9b6c4; margin-bottom: 5px;
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
	background: var(--brand-dark); color: #b9cddf;
	padding: 44px 0 24px; margin-top: 40px; font-size: .89rem;
}
.footer-grid {
	display: grid; gap: 30px;
	grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
	padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.site-footer h4 {
	color: #fff; font-size: .82rem; text-transform: uppercase;
	letter-spacing: .07em; margin: 0 0 13px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #b9cddf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0 0 .8em; }
.footer-bottom {
	padding-top: 20px; display: flex; justify-content: space-between;
	gap: 14px; flex-wrap: wrap; font-size: .82rem; color: #93aec7;
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   15. Pagination / search / 404
   ========================================================================== */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin: 2em 0; }
.pagination .page-numbers {
	display: inline-block; padding: 8px 13px; border: 1px solid var(--line);
	border-radius: var(--radius-sm); color: var(--ink-soft); text-decoration: none; font-size: .9rem;
}
.pagination .page-numbers:hover { background: var(--bg-soft); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
	flex: 1; padding: 9px 13px; border: 1px solid var(--line);
	border-radius: var(--radius-sm); font: inherit; font-size: .9rem; min-width: 0;
}

.post-list { list-style: none; margin: 1.4em 0; padding: 0; }
.post-list li {
	padding: 15px 0; border-bottom: 1px solid var(--line-soft); margin: 0;
}
.post-list h2 { font-size: 1.1rem; margin: 0 0 4px; }
.post-list p { margin: 0; font-size: .89rem; color: var(--ink-soft); }

.err-404 { text-align: center; padding: 40px 0 20px; }
.err-404 .code { font-size: 4.5rem; font-weight: 800; color: var(--brand-light); line-height: 1; }

/* ==========================================================================
   16. WordPress core classes
   ========================================================================== */
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { margin-left: 0; margin-right: 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 1040px) {
	:root { --sidebar: 250px; --gap: 26px; }
}

@media (max-width: 900px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: static; order: 2; }
	.side-block__body { max-height: none; }
	.content { order: 1; }

	.nav-toggle { display: inline-flex; }
	.primary-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-lg); padding: 10px 20px 16px;
		max-height: 76vh; overflow-y: auto;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 1px; }
	.primary-nav ul ul {
		display: flex; position: static; border: 0; box-shadow: none;
		padding: 2px 0 6px 14px; min-width: 0; max-height: none; overflow: visible;
		border-left: 2px solid var(--line);
	}
	.btn-book-head { display: none; }
	.dl-rows dl { grid-template-columns: minmax(0, 1fr); }
	.dl-rows dt { border-bottom: 0; padding-bottom: 0; }
	.dl-rows dd { padding-top: 2px; }
}

@media (max-width: 620px) {
	body { font-size: 15.5px; }
	.hero { padding: 34px 0 38px; }
	.hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.hero-stat__n { font-size: 1.3rem; }
	.site-main { padding: 18px 0 40px; }
	.sched__head { padding: 12px 13px; gap: 11px; }
	.sched__logo { width: 44px; height: 44px; }
	.sched__actions { margin-left: 0; width: 100%; }
	.sched__actions .btn { flex: 1; }
	table.sched__table th, table.sched__table td { padding: 9px 11px; }
	.card-grid { grid-template-columns: minmax(0, 1fr); }
	.bus-gallery { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { gap: 22px; }
}

/* Narrow phones: keep the header on one line without overflowing the viewport. */
@media (max-width: 480px) {
	.wrap { padding: 0 14px; }
	.site-header .wrap { gap: 10px; min-height: 62px; }
	.brand { flex: 1 1 auto; gap: 9px; }
	.brand__mark { width: 34px; height: 34px; border-radius: 8px; }
	.brand__mark svg { width: 20px; height: 20px; }
	.brand__name { font-size: .92rem; }
	.brand__tag { font-size: .64rem; letter-spacing: .05em; }
	.nav-toggle { padding: 8px 10px; }
	.nav-toggle > span:not(.nav-toggle__bars) { display: none; }
	.topbar { font-size: .76rem; }
	.primary-nav { padding: 10px 14px 16px; }
}

@media print {
	.site-header, .topbar, .sidebar, .site-footer, .ad-slot,
	.sched__tools, .sched__actions, .hero__actions, .nav-toggle { display: none !important; }
	body { font-size: 11pt; }
	.layout { grid-template-columns: minmax(0, 1fr); }
	a[href]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; word-break: break-all; }
	.time-pill { border: 1px solid #ccc; background: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important; transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.card:hover { transform: none; }
}
