/*
Theme Name: Hotel and BnB
Description: A fast theme made for the Hotel and BnB directory plugin – a big search on the home page, places to stay, browse by province and an owner sign-up band. Colours follow the Hotel n BNB logo: blue, sky blue and slate.
Version: 1.2.0
Requires at least: 5.8
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: hotel-bnb
Tags: one-column, custom-logo, custom-menu, featured-images, wide-blocks
*/

@font-face {
	font-family: "Fraunces HB";
	src: url("assets/fonts/fraunces-heading.woff2") format("woff2");
	font-weight: 500 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--hb-clay: #0a6fc2;      /* logo blue (main buttons, links) */
	--hb-clay-d: #08599c;
	--hb-green: #0d3b66;     /* deep navy (owner band, accents) */
	--hb-green-d: #18222e;   /* slate from the wordmark (footer) */
	--hb-ochre: #1e94e7;     /* sky blue from the pin (lines, focus) */
	--hb-ink: #26313e;
	--hb-muted: #5b6672;
	--hb-line: #dfe5ec;
	--hb-soft: #f1f6fb;
	--hb-bg: #fbfcfe;
	--hb-w: 1200px;
	--hb-head: "Fraunces HB", Georgia, "Times New Roman", serif;
	--hb-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.hb-noscroll { overflow: hidden; }
body { margin: 0; background: var(--hb-bg); color: var(--hb-ink); font: 17px/1.6 var(--hb-body); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--hb-clay); text-underline-offset: .15em; }
a:hover { color: var(--hb-clay-d); }
h1, h2, h3, h4 { font-family: var(--hb-head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--hb-ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--hb-ochre); outline-offset: 2px; }
.hb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hb-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 14px; border-radius: 6px; }
.hb-skip:focus { left: 8px; }
.hb-container { width: 100%; max-width: var(--hb-w); margin: 0 auto; padding: 0 24px; }
.hb-narrow { max-width: 760px; }
.hb-main { min-height: 50vh; }

.hb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font: 700 16px/1.2 var(--hb-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.hb-btn--clay { background: var(--hb-clay); color: #fff; }
.hb-btn--clay:hover { background: var(--hb-clay-d); color: #fff; }
.hb-btn--ghost { background: #fff; color: var(--hb-ink); border-color: #cfcdc7; }
.hb-btn--ghost:hover { border-color: var(--hb-ink); color: var(--hb-ink); }
.hb-btn--light { background: #fff; color: var(--hb-green); }
.hb-btn--light:hover { background: var(--hb-soft); color: var(--hb-green); }
.hb-eyebrow { font: 700 13px/1.3 var(--hb-body); letter-spacing: .08em; text-transform: uppercase; color: var(--hb-clay); margin: 0 0 6px; }
.hb-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.hb-arrow::after { content: " →"; }

/* ---------- header ---------- */
.hb-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 252, 254, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .hb-header { top: 32px; }
.hb-header.is-scrolled { border-bottom-color: var(--hb-line); box-shadow: 0 2px 14px rgba(13, 40, 70, .06); }
.hb-header__in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.hb-brand { flex: none; }
.hb-brand__name { font: 600 24px/1 var(--hb-head); color: var(--hb-ink); text-decoration: none; letter-spacing: -.01em; }
.hb-brand .custom-logo { display: block; max-height: 52px; width: auto; }
.hb-brand__logo { display: block; line-height: 0; }
.hb-brand__logo img { display: block; height: 52px; width: auto; }
.hb-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.hb-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hb-nav__list a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--hb-ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.hb-nav__list a:hover, .hb-nav__list .current-menu-item > a { background: var(--hb-soft); color: var(--hb-ink); }
.hb-nav__list .sub-menu { display: none; }
.hb-nav__cta { min-height: 42px; padding: 0 18px; font-size: 15px; }
.hb-menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--hb-line); border-radius: 8px; background: #fff; cursor: pointer; position: relative; }
.hb-menu-btn__bars, .hb-menu-btn__bars::before, .hb-menu-btn__bars::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--hb-ink); border-radius: 2px; content: ""; transition: transform .2s; }
.hb-menu-btn__bars { top: 22px; }
.hb-menu-btn__bars::before { left: 0; top: -6px; }
.hb-menu-btn__bars::after { left: 0; top: 6px; }
.is-open .hb-menu-btn__bars { background: transparent; }
.is-open .hb-menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .hb-menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- home: hero ---------- */
.hb-hero {
	position: relative; overflow: hidden; color: #fff;
	padding: 96px 0 120px;
	background: linear-gradient(180deg, #0b2f52 0%, #0a5ea8 42%, #2b8fe0 74%, #8cc6f2 100%);
}
.hb-hero.has-photo { background: linear-gradient(180deg, rgba(20, 22, 21, .55), rgba(20, 22, 21, .25) 55%, rgba(20, 22, 21, .55)), var(--hb-hero) center / cover no-repeat; }
.hb-hero__land { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; }
.hb-hero__in { position: relative; text-align: center; }
.hb-hero__title { color: #fff; font-size: clamp(36px, 6vw, 64px); max-width: 15ch; margin: 0 auto 14px; text-wrap: balance; }
.hb-hero__text { font-size: clamp(17px, 2vw, 20px); max-width: 52ch; margin: 0 auto 30px; opacity: .95; text-wrap: pretty; }
.hb-hero__search { max-width: 940px; margin: 0 auto; text-align: left; }
.hb-hero__search .zs-sform { margin-bottom: 0; box-shadow: 0 18px 50px rgba(5, 25, 50, .32); border: 0; }
.hb-hero__note { background: rgba(255, 255, 255, .15); display: inline-block; padding: 10px 16px; border-radius: 8px; }
.hb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; }
.hb-chip { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; }
.hb-chip:hover { background: #fff; color: var(--hb-clay); }

/* ---------- home: sections ---------- */
.hb-section { padding: 72px 0; }
.hb-section--soft { background: var(--hb-soft); }
.hb-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.hb-section__title { font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.zs-grid.hb-stays { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }

.hb-prov { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hb-prov__item { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 128px; padding: 16px; border-radius: 12px; color: #fff; text-decoration: none; overflow: hidden; transition: transform .2s; }
.hb-prov__item::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.hb-prov__item:hover { transform: translateY(-3px); color: #fff; }
.hb-prov__item--0 { background: var(--hb-clay); }
.hb-prov__item--1 { background: var(--hb-green); }
.hb-prov__item--2 { background: #1f7fb8; }
.hb-prov__item--3 { background: #323d4b; }
.hb-prov__item--4 { background: #4f6478; }
.hb-prov__name { font: 600 21px/1.15 var(--hb-head); }
.hb-prov__n { font-size: 14px; opacity: .85; margin-top: 4px; }

.hb-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.hb-why h3 { font-size: 22px; padding-top: 16px; border-top: 3px solid var(--hb-ochre); }
.hb-why p { color: var(--hb-muted); margin: 0; }

.hb-band { background: var(--hb-green); color: #fff; padding: 56px 0; }
.hb-band__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hb-band__title { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.hb-band p { margin: 0; opacity: .9; max-width: 56ch; }

/* ---------- pages and content ---------- */
.hb-pagehead { padding: 48px 0 20px; }
.hb-pagehead__title { font-size: clamp(32px, 4.4vw, 50px); margin: 0; }
.hb-directory-page .hb-pagehead { padding: 36px 0 10px; }
.entry-content { padding-bottom: 72px; }
.entry-content > *:not(.zs):not(.alignwide):not(.alignfull):not(.hb-wide) { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--hb-w); }
.entry-content > .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry-content h2 { font-size: 30px; margin-top: 1.4em; }
.entry-content h3 { font-size: 23px; margin-top: 1.3em; }
.entry-content img { border-radius: 8px; }
.entry-content blockquote { border-left: 4px solid var(--hb-ochre); margin-left: 0; padding: 4px 0 4px 18px; font-family: var(--hb-head); font-size: 21px; }

.hb-listing-page { padding-top: 22px; }
.hb-crumbs { font-size: 14px; color: var(--hb-muted); margin-bottom: 6px; }
.hb-crumbs a { color: var(--hb-muted); text-decoration: none; }
.hb-crumbs a:hover { color: var(--hb-clay); text-decoration: underline; }
.hb-listing-page__title { font-size: clamp(30px, 4vw, 46px); margin-bottom: 20px; }
.hb-listing-page .entry-content { padding-bottom: 40px; }

.hb-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding-bottom: 40px; }
.hb-card__link { display: block; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--hb-line); border-radius: 12px; overflow: hidden; height: 100%; }
.hb-card__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hb-card__body { padding: 18px 20px 20px; }
.hb-card__title { font-size: 22px; }
.hb-card__ex { color: var(--hb-muted); font-size: 16px; }
.hb-card__ex p { margin: 0; }
.hb-post__img img { border-radius: 12px; display: block; margin: 0 auto 30px; }
.hb-pager { padding-bottom: 60px; }
.hb-pager .nav-links { display: flex; gap: 6px; justify-content: center; }
.hb-pager .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--hb-line); border-radius: 8px; text-decoration: none; color: var(--hb-ink); font-weight: 600; }
.hb-pager .current { background: var(--hb-ink); color: #fff; }
.hb-searchtip { background: var(--hb-soft); padding: 14px 18px; border-radius: 10px; }
.hb-empty, .hb-404 { padding: 20px 0 60px; }
.hb-404 .hb-btn { margin: 4px 8px 4px 0; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid var(--hb-line); }
.post-navigation a { font-weight: 600; text-decoration: none; }

/* search form & comments (theme's own, not the plugin's) */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfcdc7; border-radius: 8px; font: inherit; background: #fff;
}
.search-submit, .comment-form .submit { min-height: 46px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--hb-clay); color: #fff; font: 700 16px var(--hb-body); cursor: pointer; }
.hb-comments { padding: 30px 0 60px; }
.hb-comments__list { padding-left: 0; list-style: none; }
.hb-comments__list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--hb-line); }

/* ---------- footer ---------- */
.hb-foot { background: var(--hb-green-d); color: rgba(255, 255, 255, .78); padding: 60px 0 26px; font-size: 15px; }
.hb-foot a { color: #fff; text-decoration: none; }
.hb-foot a:hover { text-decoration: underline; color: #fff; }
.hb-foot__grid { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.hb-foot__grid > * { flex: 1 1 160px; }
.hb-foot__grid > .hb-foot__brand { flex: 2 1 280px; }
.hb-foot__name { font: 600 26px/1.1 var(--hb-head); display: inline-block; margin-bottom: 10px; }
.hb-foot__brand p { max-width: 40ch; }
.hb-foot__h { color: #fff; font: 700 13px/1.3 var(--hb-body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.hb-foot__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hb-foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }

/* ---------- plugin pages sit nicely in the theme ---------- */
.hb-directory-page .entry-content > .zs, .hb-listing-page .zs-single { margin-top: 6px; }
.hb-listing .zs-back { display: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
	.hb-prov { grid-template-columns: repeat(3, 1fr); }
	.zs-grid.hb-stays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.hb-menu-btn { display: block; }
	.hb-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 10px;
		padding: 12px 24px 24px; background: var(--hb-bg); border-bottom: 1px solid var(--hb-line); box-shadow: 0 16px 30px rgba(13, 40, 70, .1);
	}
	.is-open .hb-nav { display: flex; }
	.hb-nav__list { flex-direction: column; }
	.hb-nav__list a { padding: 12px 8px; font-size: 18px; border-bottom: 1px solid var(--hb-line); border-radius: 0; }
	.hb-nav__cta { min-height: 50px; }
	.hb-why { grid-template-columns: 1fr; gap: 20px; }
	.hb-band__in { flex-direction: column; align-items: flex-start; }
	.hb-section__head { flex-direction: column; align-items: flex-start; gap: 6px; }
	.admin-bar .hb-header { top: 46px; }
}
@media (max-width: 600px) {
	.hb-container { padding: 0 16px; }
	.hb-header__in { min-height: 62px; }
	.hb-brand__logo img, .hb-brand .custom-logo { height: 40px; max-height: 40px; }
	.hb-hero { padding: 48px 0 104px; }
	.hb-hero__land { height: 92px; }
	.hb-section { padding: 52px 0; }
	.hb-prov { grid-template-columns: 1fr 1fr; gap: 10px; }
	.hb-prov__item { min-height: 104px; padding: 14px; }
	.hb-prov__name { font-size: 18px; }
	.zs-grid.hb-stays { grid-template-columns: 1fr; }
	.hb-foot__grid > * { flex-basis: 40%; }
	.hb-foot__grid > .hb-foot__brand { flex-basis: 100%; }
}
@media (max-width: 782px) and (min-width: 601px) {
	.admin-bar .hb-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .hb-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hb-prov__item, .hb-menu-btn__bars::before, .hb-menu-btn__bars::after { transition: none; }
}

/* ---------- Hotel and BnB plugin buttons in the logo blue ---------- */
/* The plugin has its own clay-red buttons; these rules make its main buttons match the theme. */
.zs-btn--primary, .zs .zs-btn--primary, .hb-hero__search .zs-btn--primary { background: var(--hb-clay); border-color: var(--hb-clay); color: #fff; }
.zs-btn--primary:hover, .zs .zs-btn--primary:hover { background: var(--hb-clay-d); border-color: var(--hb-clay-d); color: #fff; }
