/* HotelFlow Pro – Frontend CSS v2.0.0
   All colours, sizes, and radii are driven by CSS custom properties
   injected by PHP (build_dynamic_css in class-frontend.php).
   ================================================================= */

/* ---- Box-sizing reset ---- */
.hfp-hero *, .hfp-room-wrap *, .hfp-related-section *,
.hfp-archive-wrap *, .hfp-grid *, .hfp-list *,
.hfp-search-wrap *, .hfp-hero-wrapper * { box-sizing: border-box; }

/* ---- CSS Variable Defaults ---- */
:root {
	--hfp-font:              'Outfit', sans-serif;
	--hfp-color-primary:     #e91e63;
	--hfp-color-price:       #e91e63;
	--hfp-color-card-title:  #1a1208;
	--hfp-color-card-bg:     #ffffff;
	--hfp-color-card-border: #ede8df;
	--hfp-color-badge-bg:    #fff3e0;
	--hfp-color-badge-text:  #e65100;
	--hfp-wa-btn-bg:         #25D366;
	--hfp-wa-btn-text:       #ffffff;
	--hfp-call-btn-bg:       #ffffff;
	--hfp-call-btn-text:     #333333;
	--hfp-call-btn-border:   #cccccc;
	--hfp-card-radius:       12px;
	--hfp-card-img-height:   200px;
	--hfp-btn-radius:        6px;
	--hfp-title-size:        16px;
	--hfp-price-size:        18px;
	--hfp-btn-size:          13px;
	--hfp-title-weight:      600;
	--hfp-navbar-h:          80px;
}

/* ================================================================
   HERO — Full-width bleed section  (all !important for theme overrides)
   ================================================================ */

/* Prevent horizontal scroll caused by negative margins */
html, body { overflow-x: clip !important; }

/* ---- Breakout wrappers: escape any theme max-width container ---- */
.hfp-breakout-wrapper {
	position: relative !important;
	display: block !important;
	clear: both !important;
	float: none !important;
	width: 100vw !important;
	max-width: 100vw !important;
	min-width: 100vw !important;
	left: 50% !important;
	right: auto !important;
	margin-left: -50vw !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box !important;
	transform: none !important;
}

.hfp-hero-wrapper,
.hfp-content-wrapper {
	width: 100%;
	position: relative;
	display: block;
}

/* Override theme wrappers that constrain width */
.entry-content .hfp-breakout-wrapper,
.post-content .hfp-breakout-wrapper,
.page-content .hfp-breakout-wrapper,
article .hfp-breakout-wrapper,
.container .hfp-breakout-wrapper,
.elementor-widget-container .hfp-breakout-wrapper,
main .hfp-breakout-wrapper {
	width: 100vw !important;
	max-width: 100vw !important;
	left: 50% !important;
	margin-left: -50vw !important;
	position: relative !important;
}

/* Parent containers: remove overflow:hidden that blocks bleed */
.entry-content,
.post-content,
.page-content {
	overflow: visible !important;
	overflow-x: visible !important;
}

.hfp-hero {
	position: relative !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 480px !important;
	display: flex !important;
	align-items: flex-end !important;
	background-color: #1a1208 !important;
	background-size: cover !important;
	background-position: center !important;
	padding: 80px 5% 60px !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

/* ---- Navbar Overlap Mode ---- */
body.hfp-hero-overlap .hfp-hero-wrapper {
	margin-top: calc(-1 * var(--hfp-navbar-h, 80px)) !important;
}
body.hfp-hero-overlap .hfp-hero {
	padding-top: calc(80px + var(--hfp-navbar-h, 80px)) !important;
	min-height: calc(420px + var(--hfp-navbar-h, 80px)) !important;
}
body.hfp-hero-overlap .hfp-hero-inner { position: relative; z-index: 2; }
body.hfp-hero-overlap .hfp-hero-overlay { z-index: 1; }

.hfp-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(12,8,2,.88) 0%, rgba(12,8,2,.45) 55%, rgba(12,8,2,.18) 100%);
}

.hfp-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 820px;
}

/* ---- Breadcrumb ---- */
.hfp-breadcrumb {
	font-size: 12px;
	letter-spacing: .08em;
	color: rgba(255,255,255,.5);
	margin-bottom: 12px;
}
.hfp-breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; }
.hfp-breadcrumb a:hover { color: #fff; }
.hfp-breadcrumb span { margin: 0 6px; }

/* ---- Hero Badge ---- */
.hfp-hero-badge {
	display: inline-block;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hfp-color-badge-text, #e65100);
	background: var(--hfp-color-badge-bg, #fff3e0);
	border-radius: 20px;
	padding: 4px 14px;
	margin-bottom: 14px;
	font-weight: 600;
}

/* ---- Hero Title ---- */
.hfp-hero-title {
	font-size: clamp(28px, 5vw, 50px);
	font-weight: 300;
	color: #fff;
	line-height: 1.1;
	letter-spacing: -.02em;
	margin: 0 0 18px;
}

/* ---- Hero Price ---- */
.hfp-hero-price {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}
.hfp-price-sale {
	font-size: 26px;
	font-weight: 700;
	color: var(--hfp-color-price, #e91e63);
}
.hfp-hero-price .hfp-price-sale { color: #EF9F27; }
.hfp-price-regular {
	font-size: 15px;
	color: rgba(255,255,255,.45);
}
.hfp-strikethrough { text-decoration: line-through; }
.hfp-per-night {
	font-size: 13px;
	color: rgba(255,255,255,.6);
	border-left: 1px solid rgba(255,255,255,.25);
	padding-left: 12px;
	margin-left: 2px;
}

/* ---- Hero Actions ---- */
.hfp-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================================================================
   BUTTONS
   ================================================================ */
.hfp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: var(--hfp-btn-radius, 6px);
	font-size: var(--hfp-btn-size, 13px);
	font-weight: 500;
	text-decoration: none !important;
	cursor: pointer;
	transition: opacity .2s, transform .15s;
	border: none;
	font-family: var(--hfp-font);
}
.hfp-btn:hover { opacity: .88; transform: translateY(-1px); }
.hfp-btn:active { transform: scale(.98); }

.hfp-btn-wa {
	background: var(--hfp-wa-btn-bg, #25D366);
	color: var(--hfp-wa-btn-text, #fff) !important;
}
.hfp-btn-call {
	background: transparent;
	color: #fff !important;
	border: 1px solid rgba(255,255,255,.4);
}
.hfp-btn-call-dark {
	background: var(--hfp-call-btn-bg, #fff);
	color: var(--hfp-call-btn-text, #333) !important;
	border: 1px solid var(--hfp-call-btn-border, #ccc);
}
.hfp-btn-full {
	width: 100%;
	justify-content: center;
	margin-bottom: 8px;
}

/* ================================================================
   MAIN CONTENT LAYOUT
   ================================================================ */
.hfp-room-wrap {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 36px;
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 5%;
	align-items: start;
}
@media (max-width: 960px) {
	.hfp-room-wrap { grid-template-columns: 1fr; }
}

/* ================================================================
   GALLERY
   ================================================================ */
.hfp-gallery-wrap { margin-bottom: 28px; }

.hfp-main-image img,
.hfp-feat-img {
	width: 100%;
	height: auto;
	border-radius: var(--hfp-card-radius, 12px);
	display: block;
}

.hfp-gallery-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}
.hfp-thumb,
.hfp-thumb-img {
	display: block;
}
.hfp-thumb img,
.hfp-thumb-img {
	width: 74px;
	height: 74px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	transition: opacity .2s;
}
.hfp-thumb:hover img { opacity: .78; }
.hfp-thumb-active img,
.hfp-thumb-active.hfp-thumb-img {
	opacity: 1;
	outline: 2px solid var(--hfp-color-primary, #e91e63);
	outline-offset: 2px;
}

/* ================================================================
   ROOM STATS BAR
   ================================================================ */
.hfp-room-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	background: #faf7f2;
	border: 1px solid #ede8df;
	border-radius: var(--hfp-card-radius, 12px);
	margin-bottom: 28px;
	overflow: hidden;
}
.hfp-stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 18px 24px;
	border-right: 1px solid #ede8df;
	flex: 1;
	text-align: center;
	min-width: 90px;
}
.hfp-stat-item:last-child { border-right: none; }
.hfp-stat-item svg { color: var(--hfp-color-primary, #e91e63); opacity: .75; }
.hfp-stat-val {
	font-size: 15px;
	font-weight: 600;
	color: #1a1208;
}
.hfp-stat-label {
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #888;
}

/* ================================================================
   SECTION HEADINGS
   ================================================================ */
.hfp-section-heading {
	font-size: 22px;
	font-weight: 400;
	color: #1a1208;
	margin: 32px 0 16px;
	letter-spacing: -.01em;
}

/* ================================================================
   DESCRIPTION
   ================================================================ */
.hfp-desc-content {
	font-size: 15px;
	line-height: 1.78;
	color: #444;
}

/* ================================================================
   AMENITIES
   ================================================================ */
.hfp-amenities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 10px;
}
.hfp-amenity-card {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f9f6f0;
	border: 1px solid #ede8df;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 500;
	color: #2a2010;
}
.hfp-check-icon {
	width: 22px; height: 22px;
	background: #d6f0d5;
	color: #2e7d32;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px;
	flex-shrink: 0;
}

/* ================================================================
   FEATURES
   ================================================================ */
.hfp-features-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.hfp-feature-card {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff;
	border: 1px solid #e5ddd0;
	border-radius: 20px;
	padding: 7px 16px;
	font-size: 13px;
	color: #4a3520;
}
.hfp-feature-icon { color: var(--hfp-color-primary, #e91e63); font-size: 13px; }

/* ================================================================
   BOOKING CARD
   ================================================================ */
.hfp-booking-card {
	background: #fff;
	border: 1px solid #e5ddd0;
	border-radius: var(--hfp-card-radius, 14px);
	padding: 24px;
	position: sticky;
	top: 28px;
	box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.hfp-booking-title {
	font-size: 18px;
	font-weight: 500;
	color: #1a1208;
	margin: 0 0 14px;
}
.hfp-booking-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	padding: 14px 0;
	border-top: 1px solid #f0ebe2;
	border-bottom: 1px solid #f0ebe2;
	margin-bottom: 16px;
}
.hfp-booking-price .hfp-price-sale {
	font-size: 28px;
	color: var(--hfp-color-price, #e91e63);
}
.hfp-booking-price .hfp-price-regular { font-size: 14px; color: #aaa; }
.hfp-per-night-sm { font-size: 12px; color: #999; }

.hfp-booking-meta-list { margin-bottom: 16px; }
.hfp-booking-meta-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 7px 0;
	border-bottom: 1px solid #f9f6f0;
}
.hfp-booking-meta-row:last-child { border-bottom: none; }
.hfp-booking-meta-label { color: #999; }
.hfp-booking-meta-val { font-weight: 500; color: #1a1208; }

.hfp-booking-amenities {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	font-size: 12px;
	color: #555;
	border-top: 1px solid #f0ebe2;
	padding-top: 14px;
}
.hfp-booking-amenities li {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 7px;
}
.hfp-booking-amenities li span { color: #2e7d32; font-size: 13px; }

/* ================================================================
   RELATED ROOMS
   ================================================================ */
.hfp-related-section {
	background: #faf7f2;
	padding: 48px 5%;
	margin-top: 20px;
}
.hfp-related-inner { max-width: 1200px; margin: 0 auto; }
.hfp-related-card {
	display: block;
	text-decoration: none !important;
	background: #fff;
	border: 1px solid #ede8df;
	border-radius: var(--hfp-card-radius, 10px);
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}
.hfp-related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.09); }
.hfp-related-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.hfp-related-info { padding: 12px 14px; }
.hfp-related-info h3 { font-size: 14px; font-weight: 500; color: #1a1208; margin: 0 0 6px; line-height: 1.3; }
.hfp-related-price { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.hfp-related-price .hfp-price-sale { font-size: 14px; color: var(--hfp-color-price, #e91e63); font-weight: 600; }
.hfp-related-beds { color: #999; font-size: 11px; }

/* ================================================================
   GRID / CARD COMPONENTS (archive + shortcodes)
   ================================================================ */
.hfp-grid { display: grid; gap: 20px; }
.hfp-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hfp-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hfp-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .hfp-grid-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .hfp-grid-cols-2, .hfp-grid-cols-3, .hfp-grid-cols-4 { grid-template-columns: 1fr; } }

.hfp-card {
	background: var(--hfp-color-card-bg, #fff);
	border: 1px solid var(--hfp-color-card-border, #ede8df);
	border-radius: var(--hfp-card-radius, 12px);
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
	font-family: var(--hfp-font);
}
.hfp-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.hfp-card-img a, .hfp-card-img { display: block; }
.hfp-card-img img { width: 100%; height: var(--hfp-card-img-height, 200px); object-fit: cover; display: block; }
.hfp-card-body { padding: 16px; }
.hfp-card-badge {
	display: inline-block;
	font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
	background: var(--hfp-color-badge-bg, #fff3e0);
	color: var(--hfp-color-badge-text, #e65100);
	border-radius: 10px; padding: 3px 10px; margin-bottom: 8px; font-weight: 600;
}
.hfp-card-title {
	font-size: var(--hfp-title-size, 16px);
	font-weight: var(--hfp-title-weight, 600);
	margin: 0 0 8px;
}
.hfp-card-title a { color: var(--hfp-color-card-title, #1a1208); text-decoration: none !important; }
.hfp-card-title a:hover { color: var(--hfp-color-primary, #e91e63); }
.hfp-card-price { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.hfp-card-price .hfp-price-sale { font-size: var(--hfp-price-size, 18px); color: var(--hfp-color-price, #e91e63); }
.hfp-card-price .hfp-price-regular { font-size: 13px; color: #aaa; }
.hfp-card-meta { font-size: 12px; color: #888; margin-bottom: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.hfp-card-excerpt { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 14px; }
.hfp-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hfp-card-actions .hfp-btn { padding: 9px 14px; font-size: 12px; }

/* ================================================================
   LIST VIEW
   ================================================================ */
.hfp-list { display: flex; flex-direction: column; gap: 14px; }
.hfp-list-row {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid #ede8df;
	border-radius: var(--hfp-card-radius, 10px);
	padding: 14px;
}
.hfp-list-thumb img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; display: block; }
.hfp-list-info { flex: 1; }
.hfp-list-info h3 { font-size: 15px; font-weight: 500; margin: 0 0 5px; }
.hfp-list-info h3 a { color: #1a1208; text-decoration: none; }
.hfp-list-info h3 a:hover { color: var(--hfp-color-primary); }
.hfp-list-price { display: flex; gap: 8px; align-items: baseline; }
.hfp-list-price .hfp-price-sale { font-size: 16px; color: var(--hfp-color-price, #e91e63); font-weight: 600; }
.hfp-list-price .hfp-price-regular { font-size: 13px; color: #aaa; }
.hfp-list-actions { flex-shrink: 0; display: flex; gap: 8px; }

/* ================================================================
   ARCHIVE
   ================================================================ */
.hfp-archive-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 5%; }
.hfp-archive-header { margin-bottom: 32px; }
.hfp-archive-title { font-size: 32px; font-weight: 400; color: #1a1208; margin: 0 0 10px; }
.hfp-archive-desc { font-size: 15px; color: #666; margin-bottom: 20px; }
.hfp-cat-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.hfp-cat-btn {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 13px;
	color: #555;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.hfp-cat-btn:hover, .hfp-cat-btn.active {
	background: #1a1208;
	color: #fff;
	border-color: #1a1208;
}

/* ================================================================
   SEARCH
   ================================================================ */
.hfp-search-wrap { max-width: 900px; margin: 0 auto; padding: 20px 0; }
.hfp-search-bar { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.hfp-search-bar input[type="text"] {
	flex: 1; min-width: 200px;
	padding: 10px 16px;
	border: 1px solid #ddd; border-radius: 6px;
	font-size: 14px; outline: none;
}
.hfp-search-bar select {
	padding: 10px 16px;
	border: 1px solid #ddd; border-radius: 6px;
	font-size: 14px; background: #fff; outline: none;
}
.hfp-no-results { color: #888; font-size: 14px; grid-column: 1/-1; }

/* ================================================================
   CATEGORY GRID
   ================================================================ */
.hfp-cat-grid .hfp-cat-card {
	display: flex; flex-direction: column; justify-content: center; align-items: center;
	background: #faf7f2; border: 1px solid #ede8df;
	border-radius: var(--hfp-card-radius, 12px);
	padding: 24px; text-decoration: none;
	transition: background .2s, transform .2s; text-align: center;
}
.hfp-cat-card:hover { background: #1a1208; transform: translateY(-3px); }
.hfp-cat-card:hover .hfp-cat-name, .hfp-cat-card:hover .hfp-cat-count { color: #fff; }
.hfp-cat-name { font-size: 16px; font-weight: 500; color: #1a1208; margin-bottom: 4px; }
.hfp-cat-count { font-size: 12px; color: #888; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
	.hfp-hero { padding: 60px 5% 40px; min-height: 320px; }
	.hfp-hero-actions { flex-direction: column; }
	.hfp-btn-wa, .hfp-btn-call { width: 100%; justify-content: center; }
	.hfp-booking-card { position: static; }
	.hfp-room-stats { flex-wrap: wrap; }
	.hfp-stat-item { min-width: 50%; border-bottom: 1px solid #ede8df; }
	.hfp-list-row { flex-wrap: wrap; }
	.hfp-list-actions { width: 100%; }
}
