/**
 * HotelResort — base theme stylesheet.
 *
 * Implements the CSS custom property architecture and component set
 * described in docs/design-system.md. Demo-specific palettes override the
 * --hotelresort-color-* variables; this file only defines defaults and
 * layout/behavior, not per-demo visuals.
 */

/* -----------------------------------------------------------------------
   1. Custom properties (design tokens)
   ----------------------------------------------------------------------- */
:root {
	--hotelresort-color-primary: #1b2b22;
	--hotelresort-color-accent: #c9a35c;
	--hotelresort-color-surface: #ffffff;
	--hotelresort-color-surface-alt: #f6f5f2;
	--hotelresort-color-text: #1c1c1c;
	--hotelresort-color-text-muted: #6b6b6b;
	--hotelresort-color-border: #e5e3dd;

	--hotelresort-font-heading: Georgia, 'Times New Roman', serif;
	--hotelresort-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	--hotelresort-space-xs: 0.5rem;
	--hotelresort-space-sm: 1rem;
	--hotelresort-space-md: 2rem;
	--hotelresort-space-lg: 4rem;
	--hotelresort-space-xl: 6rem;

	--hotelresort-container-width: 1200px;
	--hotelresort-radius: 4px;
}

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

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

body {
	margin: 0;
	font-family: var( --hotelresort-font-body );
	color: var( --hotelresort-color-text );
	background-color: var( --hotelresort-color-surface );
	line-height: 1.6;
}

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

a {
	color: var( --hotelresort-color-primary );
	text-decoration: none;
}

a:hover,
a:focus {
	color: var( --hotelresort-color-accent );
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var( --hotelresort-font-heading );
	line-height: 1.2;
	margin: 0 0 var( --hotelresort-space-sm );
}

p {
	margin: 0 0 var( --hotelresort-space-sm );
}

ul,
ol {
	margin: 0 0 var( --hotelresort-space-sm );
	padding-left: 1.25em;
}

@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;
	}
}

/* -----------------------------------------------------------------------
   3. Accessibility helpers
   ----------------------------------------------------------------------- */
.screen-reader-text {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.hotelresort-skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var( --hotelresort-color-primary );
	color: #fff;
	padding: var( --hotelresort-space-xs ) var( --hotelresort-space-sm );
	z-index: 1000;
}

.hotelresort-skip-link:focus {
	top: 0;
}

/* -----------------------------------------------------------------------
   4. Layout
   ----------------------------------------------------------------------- */
.hotelresort-header-inner,
.hotelresort-content,
.hotelresort-footer-widgets,
.hotelresort-footer-bottom {
	max-width: var( --hotelresort-container-width );
	margin-left: auto;
	margin-right: auto;
	padding-left: var( --hotelresort-space-sm );
	padding-right: var( --hotelresort-space-sm );
}

.hotelresort-content {
	padding-top: var( --hotelresort-space-md );
	padding-bottom: var( --hotelresort-space-lg );
}

/* -----------------------------------------------------------------------
   5. Header
   ----------------------------------------------------------------------- */
.hotelresort-header {
	border-bottom: 1px solid var( --hotelresort-color-border );
}

.hotelresort-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	padding-top: var( --hotelresort-space-sm );
	padding-bottom: var( --hotelresort-space-sm );
	gap: var( --hotelresort-space-sm );
}

.hotelresort-site-title {
	margin: 0;
	font-family: var( --hotelresort-font-heading );
	font-size: 1.5rem;
}

.hotelresort-site-title a {
	color: var( --hotelresort-color-text );
}

.hotelresort-site-description {
	margin: 0;
	font-size: 0.875rem;
	color: var( --hotelresort-color-text-muted );
}

.hotelresort-primary-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: var( --hotelresort-space-md );
	margin: 0;
	padding: 0;
	list-style: none;
}

.hotelresort-primary-nav a {
	color: var( --hotelresort-color-text );
	font-weight: 500;
}

.hotelresort-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.hotelresort-nav-toggle-bar {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var( --hotelresort-color-text );
}

/* -----------------------------------------------------------------------
   6. Entries (blog/archive/single)
   ----------------------------------------------------------------------- */
.hotelresort-entry {
	margin-bottom: var( --hotelresort-space-lg );
}

.hotelresort-entry-thumbnail {
	margin-bottom: var( --hotelresort-space-sm );
	border-radius: var( --hotelresort-radius );
	overflow: hidden;
}

.hotelresort-entry-title {
	font-size: 1.75rem;
}

.hotelresort-entry-meta,
.hotelresort-entry-footer {
	font-size: 0.875rem;
	color: var( --hotelresort-color-text-muted );
}

.hotelresort-cat-links,
.hotelresort-tag-links {
	margin-right: var( --hotelresort-space-sm );
}

.hotelresort-no-results {
	text-align: center;
	padding: var( --hotelresort-space-xl ) 0;
}

/* -----------------------------------------------------------------------
   7. Footer
   ----------------------------------------------------------------------- */
.hotelresort-footer {
	background-color: var( --hotelresort-color-surface-alt );
	margin-top: var( --hotelresort-space-lg );
}

.hotelresort-footer-widgets {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: var( --hotelresort-space-md );
	padding-top: var( --hotelresort-space-lg );
	padding-bottom: var( --hotelresort-space-lg );
}

.hotelresort-footer-widget-title {
	font-size: 1.125rem;
	margin-bottom: var( --hotelresort-space-xs );
}

.hotelresort-footer-nav ul {
	display: flex;
	justify-content: center;
	gap: var( --hotelresort-space-md );
	margin: 0;
	padding: var( --hotelresort-space-sm ) 0;
	list-style: none;
}

.hotelresort-footer-bottom {
	text-align: center;
	border-top: 1px solid var( --hotelresort-color-border );
	padding-top: var( --hotelresort-space-sm );
	padding-bottom: var( --hotelresort-space-sm );
}

.hotelresort-copyright {
	margin: 0;
	font-size: 0.875rem;
	color: var( --hotelresort-color-text-muted );
}

/* -----------------------------------------------------------------------
   8. Buttons
   ----------------------------------------------------------------------- */
.hotelresort-button {
	display: inline-block;
	padding: 0.75em 1.75em;
	border-radius: var( --hotelresort-radius );
	background-color: var( --hotelresort-color-primary );
	color: #fff;
	font-weight: 600;
	text-align: center;
}

.hotelresort-button:hover,
.hotelresort-button:focus {
	background-color: var( --hotelresort-color-accent );
	color: #fff;
}

/* -----------------------------------------------------------------------
   9. Hero
   ----------------------------------------------------------------------- */
.hotelresort-hero {
	position: relative;
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	padding: var( --hotelresort-space-xl ) var( --hotelresort-space-sm );
}

/* Home template: let the hero run edge to edge; inner sections re-constrain themselves. */
.hotelresort-home {
	max-width: none;
	padding: 0;
}

.hotelresort-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient( rgba( 0, 0, 0, 0.35 ), rgba( 0, 0, 0, 0.55 ) );
}

.hotelresort-hero-inner {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

.hotelresort-hero-title {
	color: #fff;
	font-size: 2.5rem;
}

.hotelresort-hero-tagline {
	font-size: 1.125rem;
}

.hotelresort-hero .hotelresort-button {
	margin-top: var( --hotelresort-space-sm );
}

/* -----------------------------------------------------------------------
   10. Sections
   ----------------------------------------------------------------------- */
.hotelresort-section {
	max-width: var( --hotelresort-container-width );
	margin: 0 auto;
	padding: var( --hotelresort-space-lg ) var( --hotelresort-space-sm );
}

.hotelresort-section-title {
	text-align: center;
	margin-bottom: var( --hotelresort-space-md );
}

.hotelresort-cta {
	text-align: center;
	background-color: var( --hotelresort-color-surface-alt );
}

/* -----------------------------------------------------------------------
   11. Rooms — grid + card
   ----------------------------------------------------------------------- */
.hotelresort-rooms-archive .hotelresort-room-grid {
	max-width: var( --hotelresort-container-width );
	margin: 0 auto;
	padding-left: var( --hotelresort-space-sm );
	padding-right: var( --hotelresort-space-sm );
}

.hotelresort-room-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: var( --hotelresort-space-md );
}

.hotelresort-room-card {
	border: 1px solid var( --hotelresort-color-border );
	border-radius: var( --hotelresort-radius );
	overflow: hidden;
	background-color: var( --hotelresort-color-surface );
}

.hotelresort-room-card-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hotelresort-room-card-body {
	padding: var( --hotelresort-space-sm );
}

.hotelresort-room-card-title {
	font-size: 1.25rem;
	margin-bottom: var( --hotelresort-space-xs );
}

.hotelresort-room-card-title a {
	color: var( --hotelresort-color-text );
}

.hotelresort-room-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var( --hotelresort-space-xs ) var( --hotelresort-space-sm );
	list-style: none;
	margin: 0 0 var( --hotelresort-space-xs );
	padding: 0;
	font-size: 0.875rem;
	color: var( --hotelresort-color-text-muted );
}

.hotelresort-room-card-price {
	font-weight: 600;
	color: var( --hotelresort-color-primary );
	margin-bottom: var( --hotelresort-space-sm );
}

/* -----------------------------------------------------------------------
   12. Single Room
   ----------------------------------------------------------------------- */
.hotelresort-room-header {
	max-width: var( --hotelresort-container-width );
	margin: 0 auto;
	padding: var( --hotelresort-space-md ) var( --hotelresort-space-sm ) 0;
}

.hotelresort-room-gallery {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: var( --hotelresort-space-xs );
	max-width: var( --hotelresort-container-width );
	margin: var( --hotelresort-space-sm ) auto;
	padding: 0 var( --hotelresort-space-sm );
}

.hotelresort-room-gallery img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var( --hotelresort-radius );
}

.hotelresort-room-layout {
	max-width: var( --hotelresort-container-width );
	margin: 0 auto;
	padding: 0 var( --hotelresort-space-sm );
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var( --hotelresort-space-lg );
}

.hotelresort-room-facts {
	border: 1px solid var( --hotelresort-color-border );
	border-radius: var( --hotelresort-radius );
	padding: var( --hotelresort-space-sm );
	position: sticky;
	top: var( --hotelresort-space-sm );
}

.hotelresort-room-price {
	font-size: 1.5rem;
	font-weight: 600;
	color: var( --hotelresort-color-primary );
}

.hotelresort-room-facts-list {
	list-style: none;
	margin: 0 0 var( --hotelresort-space-sm );
	padding: 0;
}

.hotelresort-room-facts-list li {
	padding: var( --hotelresort-space-xs ) 0;
	border-bottom: 1px solid var( --hotelresort-color-border );
}

.hotelresort-room-facts .hotelresort-button {
	display: block;
	text-align: center;
}

.hotelresort-room-inquiry {
	max-width: var( --hotelresort-container-width );
	margin: var( --hotelresort-space-lg ) auto 0;
	padding: 0 var( --hotelresort-space-sm );
}

.hotelresort-room-amenities {
	margin-top: var( --hotelresort-space-md );
}

/* -----------------------------------------------------------------------
   13. Amenities list
   ----------------------------------------------------------------------- */
.hotelresort-amenities-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hotelresort-amenities-list--grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: var( --hotelresort-space-sm );
	text-align: center;
}

.hotelresort-amenities-list--grid li {
	border: 1px solid var( --hotelresort-color-border );
	border-radius: var( --hotelresort-radius );
	padding: var( --hotelresort-space-sm );
}

/* -----------------------------------------------------------------------
   14. Archive header (Rooms archive, blog archives)
   ----------------------------------------------------------------------- */
.hotelresort-archive-header {
	max-width: var( --hotelresort-container-width );
	margin: 0 auto var( --hotelresort-space-md );
	padding: 0 var( --hotelresort-space-sm );
	text-align: center;
}

/* -----------------------------------------------------------------------
   15. Native WordPress gallery block (used on Gallery-type pages)
   ----------------------------------------------------------------------- */
.hotelresort-entry-content .gallery {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: var( --hotelresort-space-xs );
}

.hotelresort-entry-content .gallery-item {
	margin: 0;
}

.hotelresort-entry-content .gallery-icon img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var( --hotelresort-radius );
}

/* -----------------------------------------------------------------------
   16. Responsive breakpoints
   ----------------------------------------------------------------------- */
@media ( max-width: 767px ) {
	.hotelresort-primary-nav {
		display: none;
		width: 100%;
		order: 3;
	}

	.hotelresort-primary-nav.is-open {
		display: block;
	}

	.hotelresort-primary-nav ul {
		flex-direction: column;
		gap: var( --hotelresort-space-xs );
	}

	.hotelresort-nav-toggle {
		display: flex;
	}

	.hotelresort-footer-widgets {
		grid-template-columns: 1fr;
	}

	.hotelresort-room-grid,
	.hotelresort-amenities-list--grid,
	.hotelresort-room-gallery,
	.hotelresort-entry-content .gallery {
		grid-template-columns: 1fr;
	}

	.hotelresort-room-layout {
		grid-template-columns: 1fr;
	}

	.hotelresort-room-facts {
		position: static;
	}
}

@media ( min-width: 768px ) and ( max-width: 1023px ) {
	.hotelresort-footer-widgets {
		grid-template-columns: repeat( 2, 1fr );
	}

	.hotelresort-room-grid,
	.hotelresort-room-gallery,
	.hotelresort-entry-content .gallery {
		grid-template-columns: repeat( 2, 1fr );
	}

	.hotelresort-amenities-list--grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

/* Search form, comments */
.hotelresort-search-form{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.hotelresort-search-field{flex:1 1 200px;padding:10px 12px;border:1px solid rgba(0,0,0,.2);border-radius:4px;font:inherit}
.hotelresort-comments{margin-top:48px}
.hotelresort-comment-list{list-style:none;margin:0 0 24px;padding:0}
.hotelresort-comment-list .comment{padding:16px 0;border-bottom:1px solid rgba(0,0,0,.1)}
.hotelresort-comment-list .children{list-style:none;margin-left:24px;padding:0}

/* WordPress core classes */
.alignleft{float:left;margin:0 1.5em 1em 0}
.alignright{float:right;margin:0 0 1em 1.5em}
.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}
.wp-caption{max-width:100%;margin-bottom:1em}
.wp-caption-text,.gallery-caption{font-size:.875em;color:#6b625a;text-align:center;margin-top:.5em}
.sticky{border-left:3px solid var(--hotelresort-color-accent,#c9a35c);padding-left:16px}
.bypostauthor>.comment-body{border-left:3px solid var(--hotelresort-color-accent,#c9a35c);padding-left:12px}
.hotelresort-page-links{margin:1em 0}

/* Header refinement: refined nav and a transparent header over the Home hero */
.hotelresort-primary-nav a{font-size:.8125rem;letter-spacing:.12em;text-transform:uppercase;padding:6px 0;border-bottom:2px solid transparent;transition:border-color .2s,color .2s}
.hotelresort-primary-nav a:hover,.hotelresort-primary-nav .current-menu-item>a,.hotelresort-primary-nav .current_page_item>a{border-bottom-color:var(--hotelresort-color-accent)}
.hotelresort-site-title{font-size:1.625rem;letter-spacing:.02em}
.hotelresort-site-title a,.hotelresort-primary-nav a{text-decoration:none}
.page-template-home .hotelresort-header{position:absolute;top:0;left:0;right:0;z-index:20;background:transparent;border-bottom:1px solid rgba(255,255,255,.25)}
.page-template-home .hotelresort-site-title a,
.page-template-home .hotelresort-primary-nav a{color:#fff}
.page-template-home .hotelresort-site-description{display:none}
.page-template-home .hotelresort-nav-toggle-bar{background-color:#fff}
.page-template-home .hotelresort-hero{padding-top:calc(var(--hotelresort-space-xl) + 56px)}
.admin-bar.page-template-home .hotelresort-header{top:32px}
@media (max-width:767px){
	.page-template-home .hotelresort-primary-nav.is-open{background:rgba(0,0,0,.75);padding:12px 16px;border-radius:4px}
	.admin-bar.page-template-home .hotelresort-header{top:46px}
}

/* Availability bar (Home hero) — plain GET form to the inquiry page */
.hotelresort-availability{display:grid;grid-template-columns:repeat(3,1fr) auto;gap:12px;align-items:end;margin:32px auto 0;padding:16px;max-width:860px;background:rgba(255,255,255,.96);border-radius:6px;color:#1c1c1c;text-align:left}
.hotelresort-availability p{margin:0}
.hotelresort-availability label{display:block;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:#6b6b6b;margin-bottom:4px}
.hotelresort-availability input{width:100%;padding:10px;border:1px solid #d9d6cf;border-radius:4px;font:inherit;background:#fff}
.hotelresort-availability .hotelresort-button{white-space:nowrap}
@media (max-width:767px){.hotelresort-availability{grid-template-columns:1fr 1fr}.hotelresort-availability p:last-child{grid-column:1/-1}}

/* Header call-to-action menu item (give a menu item the CSS class "menu-item-cta") */
.hotelresort-primary-nav .menu-item-cta>a{padding:10px 20px;border:1px solid var(--hotelresort-color-accent);background:var(--hotelresort-color-accent);color:#fff!important;border-radius:var(--hotelresort-radius)}
.hotelresort-primary-nav .menu-item-cta>a:hover{background:transparent;border-color:var(--hotelresort-color-accent)}
.page-template-home .hotelresort-primary-nav .menu-item-cta>a:hover{background:rgba(255,255,255,.15)}

/* Reusable content patterns for demo pages (plain HTML — work without any page builder) */
.hotelresort-home-content{max-width:var(--hotelresort-container-width);margin:0 auto;padding:0 var(--hotelresort-space-sm)}
.hotelresort-lead{max-width:720px;margin:0 auto var(--hotelresort-space-md);text-align:center;font-size:1.125rem;color:var(--hotelresort-color-text-muted)}
.hotelresort-entry-content h2.hotelresort-center,.hotelresort-center{text-align:center}
.hotelresort-split{display:grid;grid-template-columns:1fr 1fr;gap:var(--hotelresort-space-md);align-items:center;margin:var(--hotelresort-space-lg) 0}
.hotelresort-split--reverse .hotelresort-split-media{order:2}
.hotelresort-split-media img{width:100%;height:auto;border-radius:var(--hotelresort-radius);display:block}
.hotelresort-split-body h2{margin-top:0}
.hotelresort-eyebrow{display:block;font-size:.8125rem;letter-spacing:.14em;text-transform:uppercase;color:var(--hotelresort-color-accent);margin-bottom:8px;font-weight:600}
.hotelresort-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--hotelresort-space-sm);margin:var(--hotelresort-space-md) 0}
.hotelresort-card{border:1px solid var(--hotelresort-color-border);border-radius:var(--hotelresort-radius);padding:var(--hotelresort-space-sm) 1.25rem;background:var(--hotelresort-color-surface)}
.hotelresort-card h3{margin-top:0}
.hotelresort-card img{width:calc(100% + 2.5rem);max-width:none;margin:calc(-1 * var(--hotelresort-space-sm)) -1.25rem 1rem;display:block;border-radius:var(--hotelresort-radius) var(--hotelresort-radius) 0 0;aspect-ratio:4/3;object-fit:cover}
.hotelresort-card-tag{display:inline-block;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;background:var(--hotelresort-color-accent);color:#fff;padding:2px 10px;border-radius:999px;margin-bottom:8px}
.hotelresort-card-price{font-weight:700;color:var(--hotelresort-color-accent)}
.hotelresort-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--hotelresort-space-sm);text-align:center;margin:var(--hotelresort-space-md) 0;padding:var(--hotelresort-space-md) 0;background:var(--hotelresort-color-surface-alt);border-radius:var(--hotelresort-radius)}
.hotelresort-stats strong{display:block;font-family:var(--hotelresort-font-heading);font-size:2.25rem;color:var(--hotelresort-color-accent)}
.hotelresort-quotes{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--hotelresort-space-sm);margin:var(--hotelresort-space-md) 0}
.hotelresort-quote{margin:0;padding:1.5rem;background:var(--hotelresort-color-surface-alt);border-left:3px solid var(--hotelresort-color-accent);border-radius:var(--hotelresort-radius)}
.hotelresort-quote footer{margin-top:.75rem;font-size:.875rem;color:var(--hotelresort-color-text-muted)}
.hotelresort-menu-list{list-style:none;margin:0 0 var(--hotelresort-space-md);padding:0}
.hotelresort-menu-list li{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px dotted var(--hotelresort-color-border)}
.hotelresort-menu-list span{color:var(--hotelresort-color-text-muted);font-size:.875rem;display:block}
.hotelresort-menu-list strong+span{margin-top:2px}
.hotelresort-menu-list .hotelresort-card-price{white-space:nowrap}
@media (max-width:767px){.hotelresort-split{grid-template-columns:1fr}.hotelresort-split--reverse .hotelresort-split-media{order:0}.hotelresort-stats{grid-template-columns:1fr 1fr}}

/* Centered titles on standard pages */
.page:not(.page-template-home) .hotelresort-entry-header .hotelresort-entry-title{text-align:center}
.hotelresort-footer-widget p{margin:0 0 .5rem}
