/* ohn-bar guesthouse - core stylesheet
   mobile-first, rtl-aware via [dir="rtl"], no browser-specific hacks */

@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;500;700&family=Assistant:wght@400;500;600;700&display=swap');

:root {
	--ink: #2b2318;
	--cream: #faefc2;
	--cream-deep: #ece2c9;
	--olive: #5b6b46;
	--olive-dark: #414d33;
	--clay: #b5652f;
	--dusk: #3d4a5c;
	--gold: #d8a44c;
	--white: #ffffff;

	--font-display: 'Frank Ruhl Libre', serif;
	--font-body: 'Assistant', sans-serif;

	--radius: 4px;
	--max-width: 1120px;
	--header-height: 64px;
}

/* reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	background: #000 url('../../images/wall.jpg') no-repeat center -10px;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--olive-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.25;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.8rem); }
p { margin: 0 0 1em; }

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

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* ============ header / hamburger nav ============ */

.site-header {
	position: fixed;
	top: 0;
	inset-inline: 0;
	z-index: 110;
	background: none;
	border: none;
	pointer-events: none;
}
.hamburger {
	position: fixed;
	top: 0.85rem;
	left: 0.85rem; /* physical left, intentionally not inset-inline-start - stays top-left even in rtl since the banner logo is always on the right */
	pointer-events: auto;
	appearance: none;
	background: rgba(20, 16, 10, 0.5);
	border: none;
	border-radius: 50%;
	width: 46px;
	height: 46px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	flex-shrink: 0;
	z-index: 110;
}
.hamburger span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--cream);
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.header-book-btn {
	position: fixed;
	top: 0.85rem;
	left: calc(0.85rem + 46px + 0.75rem); /* hamburger's left offset + its own width + a gap */
	pointer-events: auto;
	background: rgba(181, 101, 47, 0.8); /* --clay at 80% opacity */
	color: var(--white) !important;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.5rem 1rem;
	border-radius: var(--radius);
	text-decoration: none !important;
	z-index: 110;
	white-space: nowrap;
}
.header-book-btn:hover { background: rgba(156, 85, 39, 0.85); }
@media (max-width: 420px) {
	.header-book-btn { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
}
.nav-toggle:checked ~ .site-header .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .site-header .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .site-header .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-drawer {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(320px, 84vw);
	background: var(--olive-dark);
	color: var(--cream);
	z-index: 111;
	overflow-y: auto;
	padding: 1.5rem;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
}
.nav-toggle:checked ~ .nav-drawer { transform: translateX(0); }

.nav-scrim {
	position: fixed;
	inset: 0;
	background: rgba(20, 16, 10, 0.45);
	z-index: 109;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.nav-toggle:checked ~ .nav-scrim { opacity: 1; pointer-events: auto; }

.nav-close {
	appearance: none;
	background: none;
	border: none;
	color: var(--cream);
	font-size: 1.8rem;
	line-height: 1;
	position: absolute;
	top: 1rem;
	inset-inline-end: 1rem;
	cursor: pointer;
}

.nav-drawer ul { margin-bottom: 0.25rem; }
.nav-drawer > ul > li > a {
	display: block;
	color: var(--cream);
	font-family: var(--font-display);
	font-size: 1.15rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid rgba(246, 241, 228, 0.12);
}
.nav-drawer .menu-item-row {
	display: flex;
	align-items: center;
	border-bottom: 1px solid rgba(246, 241, 228, 0.12);
}
.nav-drawer .menu-item-row > .row-toggle {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--cream);
	font-family: var(--font-display);
	font-size: 1.15rem;
	padding: 0.55rem 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: start;
}
.nav-drawer .accordion-toggle {
	appearance: none;
	background: none;
	border: none;
	color: var(--cream);
	padding: 0.55rem 0.4rem;
	cursor: pointer;
}
.nav-drawer .accordion-toggle .chevron {
	display: inline-block;
	font-size: 0.9rem;
	transition: transform 0.25s ease;
	flex-shrink: 0;
}
.nav-drawer .menu-group.is-open .accordion-toggle .chevron { transform: rotate(180deg); }
.nav-drawer .menu-group .sub-list {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.nav-drawer .menu-group.is-open .sub-list { max-height: 1000px; }
.nav-drawer .sub-list { padding-inline-start: 1rem; }
.nav-drawer .sub-list a {
	display: block;
	color: rgba(246, 241, 228, 0.85);
	font-size: 0.95rem;
	padding: 0.4rem 0;
}

.nav-drawer .lang-label { display: flex; align-items: center; gap: 0.5rem; }
.nav-drawer .lang-glyph { font-size: 1.2rem; }
.nav-drawer .sub-list a.current {
	color: var(--gold);
	font-weight: 600;
}

.book-btn {
	background: var(--clay);
	color: var(--white) !important;
	font-family: var(--font-display);
	font-weight: 600;
	padding: 0.5rem 1.1rem;
	border-radius: var(--radius);
	white-space: nowrap;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	font-size: 0.95rem;
}
.book-btn:hover { background: #9c5527; }

/* ============ wall banner (defaultwall.jpg / per-room w.jpg, logo baked in) ============ */

.banner-wrap {
	position: relative;
	width: min(950px, 100%);
	margin: 0 auto;
	aspect-ratio: 950 / 400;
}
.wall-banner {
	position: relative;
	aspect-ratio: 950 / 400;
	overflow: hidden;
	background: transparent;
}
.wall-banner::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 18%;
	min-height: 40px;
	background: linear-gradient(to bottom, transparent, var(--cream));
	z-index: 1;
}
.wall-banner img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	/* homewall.jpg / w.jpg are the same 950x400 native size as this box, so they
	   fit exactly with no cropping needed - unlike wall.jpg behind it, nothing here
	   needs an object-position safe zone */
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.wall-banner img.is-active { opacity: 1; }

/* page title, transparent, floating directly over the banner image instead of
   sitting inside the cream content panel below it */
.banner-title {
	position: absolute;
	bottom: 27%;
	left: 1rem;
	right: 42%; /* physical - stops before the logo zone, which is always on the right */
	margin: 0;
	text-align: center;
	font-size: clamp(1.1rem, 4vw, 2rem);
	overflow-wrap: break-word;
	color: #fff;
	text-shadow:
		1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
		0 4px 12px rgba(0, 0, 0, 0.6);
	z-index: 2;
}
@media (max-width: 640px) {
	.banner-title {
		left: 1rem;
		right: 1rem;
		text-align: center;
	}
}

/* invisible hotspot over the moon/logo area - hover shows a glow + "homepage" tooltip
   and it links home, matching the original site's #homelink easter egg. lives outside
   .wall-banner (which clips for the crossfade) so the glow can spill onto wall.jpg
   beside it without being cut off. */
.moon-link {
	position: absolute;
	top: 0;
	right: 0; /* physical, not inset-inline-end - stays top-right in rtl too, matching the logo which is always on the right regardless of language */
	width: 40%;
	height: 78%;
	z-index: 3;
	display: block;
	overflow: visible;
}
.moon-glow {
	position: absolute;
	/* narrow/scaling screens: percentage-based so the offset shrinks proportionally
	   with the container instead of a fixed px value becoming relatively huge */
	top: -2px;
	right: -32px;
	width: clamp(100px, 63%, 260px);
	aspect-ratio: 305 / 209;
	background: url('../../images/moon_glow.png') no-repeat center / contain;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
	z-index: 4;
}
@media (min-width: 700px) {
	/* wide screens: banner-wrap is always capped at its 950px max here, so a fixed
	   pixel offset is stable - moved further up from the previous 12px, which
	   wasn't clipped, just not high enough to clear the moon's own top edge */
	.moon-glow { top: -2px; right: -63px; }
}
.moon-link:hover .moon-glow { opacity: 1; }
/* the gradient fade above (.wall-banner::after) already blends into this cream
   background, so there's no hard seam - matches the original's continuous look */
.content-panel {
	position: relative;
	z-index: 5;
	width: min(950px, 100%);
	margin: max(-90px, -9.5vw) auto 0;
	background: linear-gradient(to bottom, transparent 0, var(--cream) min(90px, 9.5vw), var(--cream) 100%);
	min-height: 30vh;
	display: flow-root; /* prevents a child's bottom margin (e.g. .room-grid) from
		collapsing through this panel's edge and exposing the body background below it */
}
.content-panel-home {
	margin-top: max(-135px, -14.2vw);
	background: linear-gradient(to bottom, transparent 0, var(--cream) min(135px, 14.2vw), var(--cream) 100%);
}

/* ============ page tagline (home page, under the wall banner) ============ */



/* ============ room grid ============ */

.room-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 2rem 0;
}
@media (min-width: 640px) {
	.room-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
	.room-grid { grid-template-columns: repeat(3, 1fr); }
}

.room-card {
	background: transparent;
	border-radius: var(--radius);
	overflow: hidden;
}
.room-card:hover { transform: translateY(-3px); }
.room-card a.card-link { color: inherit; text-decoration: none; display: block; }
.room-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); position: relative; }
.room-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-title-overlay {
	position: absolute;
	inset-inline: 0.6rem;
	bottom: 0;
	margin: 0;
	padding-bottom: 0.4rem;
	font-size: 1.656rem;
	color: #fff;
	-webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.85);
	text-shadow:
		0.5px 0.5px 0 #000, -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000,
		0 3px 8px rgba(0, 0, 0, 0.65);
	z-index: 2;
	line-height: 1.2;
}
.room-card .thumb .slider,
.room-card .thumb .slides,
.room-card .thumb .slides img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.room-card .thumb .slides img { opacity: 0; object-fit: cover; transition: opacity 0.9s ease; }
.room-card .thumb .slides img.is-active { opacity: 1; }
.room-card .body { padding: 0.1rem 0.2rem 1.1rem; }
.room-card .summary {
	font-size: 0.92rem;
	color: #55503f;
	margin: 0.05rem 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.room-card .specs { font-size: 0.82rem; color: var(--clay); margin: 0; font-weight: 600; text-align: end; }
.room-icon {
	display: inline-block !important;
	height: 1.275em !important;
	width: auto !important;
	max-width: none !important;
	vertical-align: middle !important;
	margin: 0 !important;
}
h1 .room-icon { height: 1.575em !important; }
.room-card .room-icon { height: 1.5em !important; vertical-align: text-top !important; }



/* ============ slider / lightbox (shared everywhere) ============ */

.slider {
	position: relative;
	background: var(--cream-deep);
	border-radius: var(--radius);
	overflow: hidden;
}
.slider .slides { position: relative; aspect-ratio: 4 / 3; }
.slider .slides img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
	cursor: zoom-in;
}
.slider .slides img.is-active { opacity: 1; pointer-events: auto; }
.slider .slide-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(20, 16, 10, 0.5);
	color: var(--white);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 1.3rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.slider .slide-nav.prev { inset-inline-start: 0.6rem; }
.slider .slide-nav.next { inset-inline-end: 0.6rem; }

/* compact mode (home page room cards): smaller buttons, hidden until hover */
.slider-compact { z-index: 0; }
.slider-compact .slide-nav {
	width: 30px;
	height: 30px;
	font-size: 1.1rem;
	opacity: 0;
	transition: opacity 0.2s ease;
	z-index: 2;
}
.room-card .thumb:hover .slider-compact .slide-nav { opacity: 1; }
.slider .slide-caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 0.5rem 0.9rem;
	background: linear-gradient(to top, rgba(20,16,10,0.7), transparent);
	color: var(--white);
	font-size: 0.85rem;
}
.slider .dots {
	position: absolute;
	bottom: 0.6rem;
	inset-inline: 0;
	display: flex;
	justify-content: center;
	gap: 0.35rem;
}
.slider .dots button {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.55);
	cursor: pointer;
	padding: 0;
}
.slider .dots button.is-active { background: var(--white); }

.single-image { text-align: center; margin: 1.25rem 0; }
.single-image img { border-radius: var(--radius); cursor: zoom-in; display: inline-block; }
.single-image.float-start { float: inline-start; max-width: 45%; margin-inline-end: 1.25rem; }
.single-image.float-end { float: inline-end; max-width: 45%; margin-inline-start: 1.25rem; }
.single-image .caption { font-size: 0.85rem; color: #6b6552; margin-top: 0.35rem; }
@media (max-width: 600px) {
	.single-image.float-start, .single-image.float-end { float: none; max-width: 100%; margin-inline: 0; }
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(10, 8, 5, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.lightbox.is-open { display: flex; }
.lightbox img {
	max-width: none;
	max-height: none;
	border-radius: 2px;
	cursor: zoom-in;
	touch-action: none;
	will-change: transform;
	user-select: none;
	-webkit-user-drag: none;
}
.lightbox .lb-close {
	position: absolute;
	top: 1rem;
	right: 1.25rem; /* physical, not inset-inline-end - stays top-right regardless of language direction */
	width: 44px;
	height: 44px;
	color: var(--white);
	font-size: 2rem;
	line-height: 1;
	background: rgba(20, 16, 10, 0.45);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 5;
}
.lightbox .lb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: var(--white);
	background: none;
	border: none;
	font-size: 2.2rem;
	cursor: pointer;
	padding: 0.5rem 1rem;
}
.lightbox .lb-nav.prev { inset-inline-start: 0.5rem; }
.lightbox .lb-nav.next { inset-inline-end: 0.5rem; }
.lightbox .lb-caption { position: absolute; bottom: 1.5rem; color: var(--cream); text-align: center; inset-inline: 1rem; }

/* ============ page content ============ */

.page-main { max-width: 760px; margin: 0 auto; padding: 0.125rem 1.25rem 4rem; }
.page-content ul.mul { list-style: disc; padding-inline-start: 1.3em; }
.biz-para { clear: both; margin-bottom: 1.5em; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.page-content th, .page-content td { padding: 0.5rem; text-align: center; border-bottom: 1px solid var(--cream-deep); }
.page-content th { background: var(--cream-deep); font-family: var(--font-display); }

/* sub-page menu list (for section landing pages like "service" / "about") */
.subpage-list { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.subpage-list a {
	display: block;
	background: var(--white);
	padding: 0.9rem 1.1rem;
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-size: 1.1rem;
	color: var(--ink);
	box-shadow: 0 1px 3px rgba(43,35,24,0.1);
}
.subpage-list a:hover { text-decoration: none; background: var(--cream-deep); }

/* ============ room detail ============ */

.room-hero-gallery { margin-bottom: 1.5rem; }
.room-summary { font-family: var(--font-display); font-style: italic; text-align: center; font-size: 1.15rem; margin: 1rem 0 1.5rem; }
.room-quicklinks { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 1.25rem 0; }
.room-quicklinks a {
	border: 1px solid var(--olive);
	color: var(--olive-dark);
	border-radius: var(--radius);
	padding: 0.35rem 0.8rem;
	font-size: 0.9rem;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.9rem;
	margin: 1.5rem 0;
}
.feature-grid li { font-size: 0.92rem; display: flex; align-items: center; gap: 0.4rem; position: relative; }
.feature-grid li.stacked { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.feature-grid .feature-icon { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.feature-grid .glyph-stack { letter-spacing: -0.55em; padding-inline-end: 0.55em; }
.feature-grid li.has-tooltip { cursor: help; }
.feature-grid .desc {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	max-width: 220px;
	background: var(--ink);
	color: var(--cream);
	font-size: 0.78rem;
	line-height: 1.4;
	padding: 0.5rem 0.7rem;
	border-radius: var(--radius);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease;
	z-index: 5;
	pointer-events: none;
	text-align: start;
}
.feature-grid .desc::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: var(--ink);
}
.feature-grid li.has-tooltip:hover .desc,
.feature-grid li.has-tooltip:focus .desc,
.feature-grid li.has-tooltip.tooltip-open .desc {
	opacity: 1;
	visibility: visible;
}

.rates-section { margin-top: 2.5rem; }
.rates-section h2 { text-align: center; }
.rates-table { margin: 1.5rem 0; overflow-x: auto; }
.rates-table table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--cream-deep);
	font-size: 0.95rem;
}
.rates-table th, .rates-table td {
	padding: 0.5rem 0.6rem;
	text-align: center;
	border: 1px solid var(--cream-deep);
}
.rates-table thead th {
	background: var(--cream-deep);
	font-family: var(--font-display);
	font-weight: 600;
}
.rates-table tbody td {
	background: var(--white);
	font-weight: 600;
	color: var(--olive-dark);
}
.rates-table .rates-loading, .rates-table .rates-error, .rates-table .rates-stale-note {
	text-align: center;
	color: #6b6552;
	font-style: italic;
	font-size: 0.8rem;
}

/* ============ footer ============ */

.site-footer {
	font-size: 0.9rem;
	text-align: center;
}
.footer-info {
	width: min(950px, 100%);
	margin: 0 auto;
	background: var(--cream);
	color: var(--ink);
	padding: 0.75rem 1.25rem;
}
.footer-info a { color: var(--ink); }
.footer-info .glyph-inline { font-size: 0.85em; }
.footer-info .badges { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.footer-info .badges img { border-radius: 2px; }

.footer-photo {
	position: relative;
	width: min(950px, 100%);
	margin: 0 auto;
	background: transparent url('../../images/botwall.jpg') no-repeat center bottom;
	background-size: cover;
	min-height: 130px;
}
.footer-photo #funny {
	position: absolute;
	top: calc(58% + 12px);
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	max-width: 500px;
	text-align: start;
	font-size: 0.9rem;
	font-style: italic;
	color: var(--cream);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
	min-height: 1.2em;
}
.footer-photo .composed {
	position: absolute;
	bottom: 0;
	inset-inline-end: 0;
	margin: 0;
	padding: 0.3rem 0.8rem 0;
}
.footer-photo .composed a { color: var(--cream); opacity: 0.4; font-size: 0.8rem; }

/* ============ print ============ */

@media print {
	.site-header, .nav-drawer, .nav-scrim, .wall-banner, .book-cta, .site-footer,
	.room-quicklinks, .lightbox, .slider .slide-nav, .slider .dots { display: none !important; }
	body { background: none; font-size: 12pt; }
	.page-main { max-width: none; padding: 0; }
	a { color: inherit; text-decoration: none; }
}
