/**
 * Quotel theme styles: details theme.json can't express, block styles and motion.
 * Motion is disabled for visitors who prefer reduced motion.
 */

:root {
	--qt-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--qt-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--qt-radius: var(--wp--custom--radius--medium, 18px);
	--qt-header-h: 84px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--accent); color: #fff; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color 0.25s var(--qt-ease); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------------
 * Header: transparent over the hero, frosted once you scroll.
 * ------------------------------------------------------------------ */
.qt-header-wrap { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.qt-header {
	transition: background-color 0.45s var(--qt-ease), box-shadow 0.45s var(--qt-ease), color 0.45s var(--qt-ease), padding 0.45s var(--qt-ease);
	background-color: rgba(251, 248, 243, 0.92);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid rgba(15, 27, 31, 0.06);
}
.qt-header .wp-block-site-title a { text-decoration: none; }
.qt-header .wp-block-navigation a { text-decoration: none; position: relative; }
.qt-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--qt-ease);
}
.qt-header .wp-block-navigation-item__content:hover::after,
.qt-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); transform-origin: left; }

/* Front page: header floats over the hero. */
body.home .qt-header-wrap { position: fixed; left: 0; right: 0; }
body.home .qt-header-wrap:not(.is-scrolled) .qt-header {
	background-color: transparent; border-bottom-color: transparent;
	-webkit-backdrop-filter: none; backdrop-filter: none; color: #fff;
}
body.home .qt-header-wrap:not(.is-scrolled) .qt-header :is(.wp-block-site-title a, .wp-block-navigation, .wp-block-navigation a, .wp-block-navigation__responsive-container-open) { color: #fff; }
body.home .qt-header-wrap:not(.is-scrolled) .qt-header .wp-block-button__link { background: #fff; color: var(--wp--preset--color--contrast); }
.qt-header-wrap.is-scrolled .qt-header { box-shadow: 0 10px 30px -18px rgba(15, 27, 31, 0.35); }
.qt-header-wrap.is-hidden { transform: translateY(-110%); }
.qt-header-wrap { transition: transform 0.45s var(--qt-ease); }

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--contrast) !important; color: var(--wp--preset--color--base) !important;
	padding: 2rem !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display); font-size: 2rem; color: var(--wp--preset--color--base) !important;
}

/* ------------------------------------------------------------------
 * Eyebrows, links, buttons
 * ------------------------------------------------------------------ */
.is-style-qt-eyebrow {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 600 !important; letter-spacing: 0.22em !important; text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	display: inline-flex; align-items: center; gap: 0.75rem;
}
.is-style-qt-eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: 0.8; }
.has-text-align-center.is-style-qt-eyebrow { justify-content: center; width: 100%; }

.wp-block-button__link { transition: background-color 0.35s var(--qt-ease), color 0.35s var(--qt-ease), transform 0.35s var(--qt-ease), box-shadow 0.35s var(--qt-ease); }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(15, 27, 31, 0.5); }
.wp-block-button.is-style-qt-light .wp-block-button__link { background: #fff; color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-qt-light .wp-block-button__link:hover { background: var(--wp--preset--color--accent); color: #fff; }
.wp-block-button.is-style-qt-outline .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.wp-block-button.is-style-qt-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-qt-arrow .wp-block-button__link {
	background: transparent !important; color: inherit; padding-left: 0; padding-right: 0; box-shadow: none !important; transform: none !important;
	border-bottom: 1px solid currentColor; border-radius: 0; padding-top: 0.2em; padding-bottom: 0.35em;
}
.wp-block-button.is-style-qt-arrow .wp-block-button__link::after { content: "→"; display: inline-block; margin-left: 0.6em; transition: transform 0.35s var(--qt-ease); }
.wp-block-button.is-style-qt-arrow .wp-block-button__link:hover::after { transform: translateX(6px); }

/* ------------------------------------------------------------------
 * Cards, glass, images
 * ------------------------------------------------------------------ */
.is-style-qt-card {
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--large, 28px);
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform 0.6s var(--qt-ease-out), box-shadow 0.6s var(--qt-ease-out);
	overflow: hidden;
}
.is-style-qt-card:hover { transform: translateY(-8px); box-shadow: var(--wp--preset--shadow--lift); }
.is-style-qt-glass {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	border-radius: var(--wp--custom--radius--large, 28px);
}

.wp-block-image.is-style-qt-arch img { border-radius: 999px 999px var(--qt-radius) var(--qt-radius) / 42% 42% var(--qt-radius) var(--qt-radius); }
.is-style-qt-zoom { overflow: hidden; border-radius: var(--qt-radius); }
.is-style-qt-zoom img { transition: transform 1.4s var(--qt-ease-out); will-change: transform; }
.is-style-qt-zoom:hover img, .qt-room-card:hover .is-style-qt-zoom img { transform: scale(1.07); }

ul.is-style-qt-check { list-style: none; padding-left: 0; }
ul.is-style-qt-check li { position: relative; padding-left: 1.9em; margin-bottom: 0.55em; }
ul.is-style-qt-check li::before {
	content: ""; position: absolute; left: 0; top: 0.45em; width: 1.1em; height: 1.1em; border-radius: 50%;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 65% no-repeat;
}

/* ------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------ */
.qt-hero { min-height: 100svh !important; }
.qt-hero .wp-block-cover__inner-container { width: 100%; }
.qt-hero h1 { text-wrap: balance; }
.qt-hero .qt-hero-title em { font-style: italic; color: #E9D3B0; }
.is-style-qt-kenburns .wp-block-cover__image-background,
.qt-hero .wp-block-cover__image-background { animation: qt-kenburns 22s var(--qt-ease-out) both; transform-origin: 60% 40%; }
@keyframes qt-kenburns { from { transform: scale(1.18); } to { transform: scale(1.02); } }

.qt-hero .qt-hero-in > * { animation: qt-rise 1.2s var(--qt-ease-out) both; }
.qt-hero .qt-hero-in > *:nth-child(1) { animation-delay: 0.15s; }
.qt-hero .qt-hero-in > *:nth-child(2) { animation-delay: 0.3s; }
.qt-hero .qt-hero-in > *:nth-child(3) { animation-delay: 0.45s; }
.qt-hero .qt-hero-in > *:nth-child(4) { animation-delay: 0.6s; }
@keyframes qt-rise { from { opacity: 0; transform: translateY(36px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.qt-booking-card { animation: qt-rise 1.2s 0.8s var(--qt-ease-out) both; }
.qt-booking-card .qhb-booking-bar, .qt-booking-card [class*="booking-bar"] { margin: 0 !important; box-shadow: none !important; background: transparent !important; }

.qt-scroll-hint { display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; color: rgba(255, 255, 255, 0.8); font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; text-decoration: none; }
.qt-scroll-hint span.qt-mouse { width: 22px; height: 36px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; }
.qt-scroll-hint span.qt-mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: qt-wheel 1.8s ease-in-out infinite; }
@keyframes qt-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------------
 * Room cards (query loop)
 * ------------------------------------------------------------------ */
.qt-room-card { height: 100%; display: flex; flex-direction: column; }
.qt-room-card .wp-block-post-featured-image { margin: 0; border-radius: var(--wp--custom--radius--large, 28px) var(--wp--custom--radius--large, 28px) 0 0; }
.qt-room-card .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.qt-room-card .qt-room-body { flex: 1; display: flex; flex-direction: column; }
.qt-room-card .qt-room-foot { margin-top: auto; }
.qt-room-card .wp-block-post-title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--qt-ease); }
.qt-room-card:hover .wp-block-post-title a { background-size: 100% 1px; }
.qt-price { font-family: var(--wp--preset--font-family--display); font-weight: 600; color: var(--wp--preset--color--contrast); }
.qt-room-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.wp-block-post-template.is-layout-grid > li { height: 100%; }

/* ------------------------------------------------------------------
 * Amenities marquee + icon tiles
 * ------------------------------------------------------------------ */
.qt-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.qt-marquee__track { display: flex; width: max-content; gap: 3.5rem; animation: qt-marquee 45s linear infinite; }
.qt-marquee:hover .qt-marquee__track { animation-play-state: paused; }
.qt-marquee__track > * { margin: 0 !important; white-space: nowrap; display: inline-flex; align-items: center; gap: 3.5rem; }
.qt-marquee__track > *::after { content: "✦"; font-size: 0.7em; color: var(--wp--preset--color--accent); }
@keyframes qt-marquee { to { transform: translateX(-50%); } }

.qt-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--wp--preset--color--base-2); color: var(--wp--preset--color--accent); transition: transform 0.5s var(--qt-ease-out), background-color 0.4s; }
.qt-icon svg { width: 26px; height: 26px; }
.qt-amenity:hover .qt-icon { transform: translateY(-4px) rotate(-6deg); background: var(--wp--preset--color--accent); color: #fff; }

/* ------------------------------------------------------------------
 * Bento gallery
 * ------------------------------------------------------------------ */
.qt-bento { display: grid !important; gap: clamp(0.75rem, 1.6vw, 1.25rem); grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 18vw, 250px); }
.qt-bento > * { margin: 0 !important; position: relative; }
.qt-bento > .qt-bento-lg { grid-column: span 2; grid-row: span 2; }
.qt-bento > .qt-bento-tall { grid-row: span 2; }
.qt-bento > .qt-bento-wide { grid-column: span 2; }
.qt-bento .wp-block-image, .qt-bento figure { height: 100%; margin: 0; }
.qt-bento img { width: 100%; height: 100% !important; object-fit: cover; border-radius: var(--qt-radius); }
.qt-bento figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 1.25rem 1.25rem 1rem;
	color: #fff; font-family: var(--wp--preset--font-family--display); font-size: 1.15rem; text-align: left;
	background: linear-gradient(180deg, transparent, rgba(15, 27, 31, 0.75)); border-radius: 0 0 var(--qt-radius) var(--qt-radius);
	transform: translateY(8px); opacity: 0.92; transition: transform 0.6s var(--qt-ease-out), opacity 0.6s;
}
.qt-bento figure:hover figcaption { transform: none; opacity: 1; }
@media (max-width: 781px) {
	.qt-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
	.qt-bento > .qt-bento-lg { grid-column: span 2; }
}

/* ------------------------------------------------------------------
 * Stats, testimonials, image stack, FAQ
 * ------------------------------------------------------------------ */
.qt-stat-number { font-family: var(--wp--preset--font-family--display); font-variant-numeric: tabular-nums; line-height: 1; }
.qt-quote-mark { font-family: var(--wp--preset--font-family--display); font-size: 4.5rem; line-height: 0.6; color: var(--wp--preset--color--accent); height: 2.2rem; }
.qt-stars { color: var(--wp--preset--color--accent); letter-spacing: 0.2em; }

.qt-stack { position: relative; }
.qt-stack .qt-stack-float { position: absolute !important; right: -6%; bottom: -10%; width: 46% !important; z-index: 2; box-shadow: var(--wp--preset--shadow--lift); border-radius: var(--qt-radius); border: 8px solid var(--wp--preset--color--base); }
.qt-stack .qt-stack-float img { border-radius: 10px !important; }
.qt-badge-float {
	position: absolute !important; left: -4%; top: 12%; z-index: 3;
	animation: qt-float 6s ease-in-out infinite;
}
@keyframes qt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 781px) { .qt-stack .qt-stack-float { right: 4%; bottom: -8%; } .qt-badge-float { left: 4%; } }

.wp-block-details summary { cursor: pointer; list-style: none; font-family: var(--wp--preset--font-family--display); font-size: 1.2rem; color: var(--wp--preset--color--contrast); display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--body); font-weight: 300; font-size: 1.6rem; line-height: 1; transition: transform 0.4s var(--qt-ease); color: var(--wp--preset--color--accent); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > *:not(summary) { margin-top: 0.75rem; color: var(--wp--preset--color--muted); }

/* Page header band */
.qt-page-band { position: relative; overflow: hidden; }
.qt-page-band::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(180, 135, 75, 0.22), transparent 65%); pointer-events: none; }

/* Footer */
.qt-footer a { text-decoration: none; }
.qt-footer a:hover { color: var(--wp--preset--color--accent) !important; }
.qt-footer .wp-block-social-links .wp-social-link { transition: transform 0.35s var(--qt-ease); }
.qt-footer .wp-block-social-links .wp-social-link:hover { transform: translateY(-3px); }

.qt-plugin-hint { padding: 1rem 1.25rem; border: 1px dashed var(--wp--preset--color--accent); border-radius: 12px; font-size: 0.9rem; background: rgba(180, 135, 75, 0.08); }

/* ------------------------------------------------------------------
 * Scroll reveal (only when JS is running; never in the editor)
 * ------------------------------------------------------------------ */
.qt-js body:not(.wp-admin) .qt-reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--qt-ease-out), transform 1s var(--qt-ease-out); transition-delay: var(--qt-delay, 0s); }
.qt-js body:not(.wp-admin) .qt-reveal.qt-reveal--left { transform: translate3d(-40px, 0, 0); }
.qt-js body:not(.wp-admin) .qt-reveal.qt-reveal--right { transform: translate3d(40px, 0, 0); }
.qt-js body:not(.wp-admin) .qt-reveal.qt-reveal--zoom { transform: scale(0.94); }
.qt-js body:not(.wp-admin) .qt-reveal.is-visible { opacity: 1; transform: none; }
.qt-js body:not(.wp-admin) .qt-stagger > * { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s var(--qt-ease-out), transform 0.9s var(--qt-ease-out); transition-delay: calc(var(--qt-i, 0) * 110ms); }
.qt-js body:not(.wp-admin) .qt-stagger.is-visible > * { opacity: 1; transform: none; }
.qt-parallax img { will-change: transform; }

/* Editor: always show content */
.editor-styles-wrapper .qt-reveal, .editor-styles-wrapper .qt-stagger > * { opacity: 1 !important; transform: none !important; }
.editor-styles-wrapper .qt-header-wrap { position: relative !important; }

/* ------------------------------------------------------------------
 * Plugin integration: make Quotel Hotel Booking screens match the theme
 * ------------------------------------------------------------------ */
.qhb-single-room-page main { background: var(--wp--preset--color--base); }
body .qhb-concierge { --qhb-cc-accent: var(--wp--preset--color--contrast); font-family: var(--wp--preset--font-family--body); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.qt-js body .qt-reveal, .qt-js body .qt-stagger > * { opacity: 1 !important; transform: none !important; }
	.qt-marquee__track { animation: none; }
}

/* ------------------------------------------------------------------
 * Fixes and plugin booking bar integration
 * ------------------------------------------------------------------ */
.qt-footer a { color: inherit; }
.wp-block-column > .is-style-qt-card { height: 100%; }
.qt-split-head .qt-split-aside { max-width: 30rem; margin: 0; }

.qt-booking-card .qhb-booking-bar { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.qt-booking-card .qhb-booking-bar-form {
	display: grid; align-items: stretch;
	grid-template-columns: minmax(140px, 1.25fr) minmax(140px, 1.25fr) repeat(3, minmax(72px, 0.6fr)) minmax(150px, 1.1fr) auto;
}
.qt-booking-card .qhb-booking-bar-form .qhb-field { padding: 0.5rem 1.25rem; border-right: 1px solid var(--wp--preset--color--line); min-width: 0; }
.qt-booking-card .qhb-booking-bar-form .qhb-field-action { border-right: 0; padding-right: 0; }
.qt-booking-card .qhb-label { font-family: var(--wp--preset--font-family--body); color: var(--wp--preset--color--muted); letter-spacing: 0.14em; font-size: 0.68rem; }
.qt-booking-card .qhb-date-row, .qt-booking-card .qhb-select { color: var(--wp--preset--color--contrast); font-family: var(--wp--preset--font-family--body); font-size: 0.98rem; }
.qt-booking-card .qhb-num { color: var(--wp--preset--color--contrast) !important; font-family: var(--wp--preset--font-family--display); font-size: 1.35rem !important; font-weight: 500; }
.qt-booking-card .qhb-cal-icon { color: var(--wp--preset--color--accent); }
.qt-booking-card .qhb-btn-book {
	background: var(--wp--preset--color--contrast) !important; color: var(--wp--preset--color--base) !important;
	border-radius: 999px !important; padding: 1.05em 2em !important; font-family: var(--wp--preset--font-family--body);
	font-weight: 600; letter-spacing: 0.04em; text-transform: none; height: 100%; min-height: 3.4rem; white-space: nowrap;
	transition: background-color 0.35s var(--qt-ease), transform 0.35s var(--qt-ease);
}
.qt-booking-card .qhb-btn-book:hover { background: var(--wp--preset--color--accent) !important; transform: translateY(-2px); }
@media (max-width: 1100px) {
	.qt-booking-card .qhb-booking-bar-form { grid-template-columns: repeat(3, 1fr); row-gap: 0.75rem; }
	.qt-booking-card .qhb-booking-bar-form .qhb-field { border-right: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.5rem 0.75rem; }
	.qt-booking-card .qhb-booking-bar-form .qhb-field-action { grid-column: 1 / -1; border-bottom: 0; padding: 0.25rem 0 0; }
	.qt-booking-card .qhb-btn-book { width: 100%; }
}
@media (max-width: 600px) {
	.qt-booking-card .qhb-booking-bar-form { grid-template-columns: 1fr 1fr; }
	.qt-booking-card .qhb-booking-bar-form .qhb-field-checkin, .qt-booking-card .qhb-booking-bar-form .qhb-field-checkout { grid-column: span 1; }
}
.qt-booking-card .qhb-fp-anchor { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
	.qt-header-cta .wp-block-button__link { padding: 0.7em 1.15em; font-size: 0.8rem; }
	.qt-header { padding-left: 1rem !important; padding-right: 1rem !important; }
}
.has-text-align-center.is-style-qt-eyebrow { display: flex; }
