/**
 * Composite Layout Styles for [hhb_property_page] (Premium Only)
 * HHB-43.1.3: Rebuilt to exact specification matching Figma design
 * 
 * All styles scoped to .hhb-layout-property-page to prevent theme conflicts
 * Desktop-first responsive design with sticky sidebar
 *
 * @package HolidayHomeBooking
 */

/* ========================================
   JS-BASED BREAKOUT DETECTOR (HHB-43.1.3C)
   Runtime detection for safe widening across all environments
   NOTE: CSS-based container escape now active by default (lines 41-61)
   ======================================== */

/* Container now uses full width since parent handles viewport sizing */
.hhb-layout-property-page .hhb-pp-container {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: clamp(16px, 2vw, 24px);
}

/* Breakout mode: Legacy JS-based class (now redundant) */
.hhb-layout-property-page.hhb-pp-breakout {
	/* Styles now applied by default to .hhb-layout-property-page */
}

.hhb-layout-property-page.hhb-pp-breakout .hhb-pp-container {
	/* Already using 100% width by default */
}

/* ========================================
   SCOPED RESET & BASE CONTAINER
   ======================================== */

.hhb-layout-property-page {
	/* Reset box-sizing */
	box-sizing: border-box;
	
	/* Base typography */
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	
	/* Container escape: Break out using calc-based margins */
	width: 95vw;
	max-width: 1400px;
	margin-left: calc((100% - 95vw) / 2);
	margin-right: calc((100% - 95vw) / 2);
	margin-top: 0;
	margin-bottom: 0;
	padding: 0 16px;
}

.hhb-layout-property-page *,
.hhb-layout-property-page *::before,
.hhb-layout-property-page *::after {
	box-sizing: inherit;
}

/* Reset common elements */
.hhb-layout-property-page h1,
.hhb-layout-property-page h2,
.hhb-layout-property-page h3,
.hhb-layout-property-page h4,
.hhb-layout-property-page p {
	margin: 0;
	padding: 0;
	/* Theme override prevention */
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
}

.hhb-layout-property-page img {
	max-width: 100%;
	height: auto;
	display: block;
}

.hhb-layout-property-page a {
	color: #2563eb;
	text-decoration: none;
}

.hhb-layout-property-page a:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

/* ========================================
   HEADER SECTION: TITLE + STRAPLINE
   HHB-43.1.5: Moved above hero, clear hierarchy with locked spacing
   ======================================== */

.hhb-layout-property-page .hhb-pp-header {
	margin-bottom: 32px;
}

.hhb-layout-property-page .hhb-pp-title {
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
	margin-bottom: 12px;
	/* Prevent title from disappearing with locked spacing */
	min-height: 1.2em;
}

.hhb-layout-property-page .hhb-pp-strapline {
	font-size: clamp(16px, 2.5vw, 18px);
	line-height: 1.6;
	color: #6b7280;
	margin: 0;
	/* Secondary hierarchy - visually subordinate */
	font-weight: 400;
}

@media (max-width: 768px) {
	.hhb-layout-property-page .hhb-pp-header {
		margin-bottom: 24px;
	}
}

/* ========================================
   HERO SECTION: 2-COLUMN LAYOUT WITH THUMBNAIL GRID
   HHB-43.1.4: Desktop 2-column (main left + 6 thumbs right 2x3)
   Mobile: stacked (main top + 4 thumbs below 2x2)
   HHB-43.1.5: Hero now appears after title
   ======================================== */

.hhb-layout-property-page .hhb-pp-hero {
	margin-bottom: 40px;
}

/* Hero Grid Container - Desktop 2-column layout */
.hhb-layout-property-page .hhb-pp-hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 1024px) {
	.hhb-layout-property-page .hhb-pp-hero-grid {
		grid-template-columns: 2fr 1fr;
		gap: 16px;
	}
}

/* Main hero image */
.hhb-layout-property-page .hhb-pp-hero-main {
	width: 100%;
	height: 400px;
	border-radius: 12px;
	overflow: hidden;
	background: #f5f5f5;
}

@media (min-width: 1024px) {
	.hhb-layout-property-page .hhb-pp-hero-main {
		height: 520px;
	}
}

.hhb-layout-property-page .hhb-pp-hero-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Thumbnails grid */
/* HHB-47.1: Thumbnail Carousel Wrapper */
.hhb-layout-property-page .hhb-pp-hero-thumbs-wrapper {
	position: relative;
}

/* Thumbnail grid with carousel functionality */
.hhb-layout-property-page .hhb-pp-hero-thumbs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 12px;
	overflow: hidden;
	transition: transform 0.3s ease-in-out;
}

@media (min-width: 1024px) {
	.hhb-layout-property-page .hhb-pp-hero-thumbs {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(3, 1fr);
		height: 520px;
	}
}

/* Individual thumbnail */
.hhb-layout-property-page .hhb-pp-thumb {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.hhb-layout-property-page .hhb-pp-thumb:hover {
	opacity: 0.8;
	transform: scale(0.98);
}

/* Active thumbnail state */
.hhb-layout-property-page .hhb-pp-thumb--active {
	outline: 3px solid #2563eb;
	outline-offset: -3px;
}

.hhb-layout-property-page .hhb-pp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Hide thumbnails 7+ by default to prevent flash on page load */
/* JavaScript will manage visibility by removing this class when initializing carousel */
.hhb-layout-property-page .hhb-pp-hero-thumbs:not(.hhb-carousel-initialized) > .hhb-pp-thumb:nth-child(n+7) {
	display: none !important;
}

/* HHB-47.1: Carousel Navigation Arrows */
.hhb-layout-property-page .hhb-pp-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hhb-layout-property-page .hhb-pp-carousel-arrow:hover:not(:disabled) {
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-50%) scale(1.05);
}

.hhb-layout-property-page .hhb-pp-carousel-arrow:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* HHB-47.1 URGENT FIX: Unicode arrow styling (replaced Dashicons) */
.hhb-layout-property-page .hhb-pp-carousel-arrow .hhb-arrow {
	font-size: 32px;
	line-height: 1;
	color: #1e293b;
	font-weight: 300;
	display: block;
}

.hhb-layout-property-page .hhb-pp-carousel-prev {
	left: -20px;
}

.hhb-layout-property-page .hhb-pp-carousel-next {
	right: -20px;
}

/* HHB-47.1 FIX: Mobile carousel arrows - positioned inside, larger touch targets */
@media (max-width: 1023px) {
	.hhb-layout-property-page .hhb-pp-carousel-arrow {
		width: 44px;
		height: 44px;
	}
	
	.hhb-layout-property-page .hhb-pp-carousel-prev {
		left: 8px;
	}
	
	.hhb-layout-property-page .hhb-pp-carousel-next {
		right: 8px;
	}
	
	.hhb-layout-property-page .hhb-pp-carousel-arrow .hhb-arrow {
		font-size: 40px;
	}
}

/* ========================================
   LEFT COLUMN: CONTENT SECTIONS
   ======================================== */

.hhb-layout-property-page .hhb-pp-main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

/* Desktop: Two columns - fluid content + fixed-width sidebar */
/* HHB-43.1.6: One-fixed/one-fluid layout for booking panel stability */
/* HHB-43.1.6 Final Tuning: Increased sidebar to 460px for better balance */
/* HHB-43.1.6 Final Tuning v2: Increased to 480px for optimal proportions */
@media (min-width: 1024px) {
	.hhb-layout-property-page .hhb-pp-main {
		grid-template-columns: 1fr 480px;
		gap: 48px;
	}
}

/* ========================================
   LEFT COLUMN: CONTENT SECTIONS
   ======================================== */

.hhb-layout-property-page .hhb-pp-content {
	/* Content flows naturally */
}

.hhb-layout-property-page .hhb-pp-content > section {
	padding: 32px 0;
	border-bottom: 1px solid #e5e7eb;
}

.hhb-layout-property-page .hhb-pp-content > section:first-child {
	padding-top: 0;
}

.hhb-layout-property-page .hhb-pp-content > section:last-child {
	border-bottom: none;
}

/* Section headings - H3 for section titles (H2 is page title) */
.hhb-layout-property-page .hhb-pp-section-heading {
	font-size: 24px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 20px;
	line-height: 1.3;
}

/* Legacy H2 support for existing content */
.hhb-layout-property-page .hhb-pp-content h2 {
	font-size: 24px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 20px;
}

/* Facilities Section - Stable Grid Layout */
/* HHB-43.1.5: Fixed grid rules per breakpoint, no fluid wrapping */
.hhb-layout-property-page .hhb-pp-facilities {
	/* Section padding from parent */
}

.hhb-layout-property-page .hhb-pp-facilities-chips {
	display: grid;
	gap: 12px;
	/* Mobile: 2 columns */
	grid-template-columns: repeat(2, 1fr);
}

/* Tablet: 3 columns */
@media (min-width: 640px) {
	.hhb-layout-property-page .hhb-pp-facilities-chips {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
	.hhb-layout-property-page .hhb-pp-facilities-chips {
		grid-template-columns: repeat(4, 1fr);
	}
}

.hhb-layout-property-page .hhb-chip {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	padding: 12px 16px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	transition: background 0.2s ease;
	/* Prevent text from wrapping awkwardly */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hhb-layout-property-page .hhb-chip:hover {
	background: #e5e7eb;
}

.hhb-layout-property-page .hhb-chip-ico {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #2563eb;
	flex-shrink: 0;
	/* Reserve space for icons */
	display: inline-block;
}

.hhb-layout-property-page .hhb-chip-label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* About This Property Section */
/* HHB-43.1.5: Left-aligned desktop, improved vertical rhythm */
/* HHB-43.1.5 Corrective: Remove max-width constraint for natural flow */
.hhb-layout-property-page .hhb-pp-about {
	/* Section padding from parent */
}

.hhb-layout-property-page .hhb-pp-about-text {
	font-size: 16px;
	line-height: 1.8;
	color: #4b5563;
	/* Let text flow naturally within content column */
	text-align: left;
}

.hhb-layout-property-page .hhb-pp-about-text p {
	margin-bottom: 20px;
}

.hhb-layout-property-page .hhb-pp-about-text p:last-child {
	margin-bottom: 0;
}

/* Location Section */
/* HHB-43.1.5: Clean text block, clear heading */
.hhb-layout-property-page .hhb-pp-location {
	/* Section padding from parent */
}

/* Location Meta Block - Text items above map */
.hhb-layout-property-page .hhb-pp-location-meta {
	margin-bottom: 20px;
}

.hhb-layout-property-page .hhb-pp-location-text {
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
	margin-bottom: 12px;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.hhb-layout-property-page .hhb-pp-location-text strong {
	color: #1f2937;
}

.hhb-layout-property-page .hhb-pp-location-what3words {
	font-size: 14px;
	line-height: 1.6;
	color: #6b7280;
	margin-bottom: 8px;
}

.hhb-layout-property-page .hhb-pp-location-what3words .hhb-what3words-label {
	font-weight: 600;
	color: #4b5563;
	margin-right: 6px;
}

.hhb-layout-property-page .hhb-pp-location-what3words .hhb-what3words-link {
	color: #2563eb;
	text-decoration: none;
	word-break: break-all;
}

.hhb-layout-property-page .hhb-pp-location-what3words .hhb-what3words-link:hover {
	text-decoration: underline;
}

/* Map Link - Text link below embedded map */
.hhb-layout-property-page .hhb-pp-map-link {
	margin-top: 12px;
	text-align: right;
}

.hhb-layout-property-page .hhb-pp-map-link .hhb-map-link-btn {
	display: inline-block;
	font-size: 14px;
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
}

.hhb-layout-property-page .hhb-pp-map-link .hhb-map-link-btn:hover {
	text-decoration: underline;
	color: #1d4ed8;
}

/* Legacy map link styles (kept for backwards compatibility) */
.hhb-layout-property-page .hhb-pp-maplink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #2563eb;
	color: #fff;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}

.hhb-layout-property-page .hhb-pp-maplink:hover {
	background: #1d4ed8;
	color: #fff;
	text-decoration: none;
}

/* Map Embed Styles */
/* HHB-43.2.1: Embedded Google Maps with configurable height */
.hhb-layout-property-page .hhb-map-embed {
	margin-top: 20px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hhb-layout-property-page .hhb-map-embed iframe {
	width: 100%;
	max-width: 100%;
	border: 0;
	display: block;
}

/* Also support map embed in shortcode/property location contexts */
.hhb-property-location .hhb-map-embed,
.hhb-property-map .hhb-map-embed {
	margin-top: 16px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hhb-property-location .hhb-map-embed iframe,
.hhb-property-map .hhb-map-embed iframe {
	width: 100%;
	max-width: 100%;
	border: 0;
	display: block;
}

/* Location and What3Words styling for shortcodes */
.hhb-property-location .hhb-location-address,
.hhb-property-map .hhb-map-address {
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
	margin-bottom: 12px;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.hhb-property-location .hhb-location-address strong,
.hhb-property-map .hhb-map-address strong {
	color: #1f2937;
}

.hhb-property-location .hhb-location-what3words,
.hhb-property-map .hhb-map-what3words {
	font-size: 14px;
	line-height: 1.6;
	color: #6b7280;
	margin-bottom: 12px;
}

.hhb-property-location .hhb-location-what3words .hhb-what3words-label,
.hhb-property-map .hhb-map-what3words .hhb-what3words-label {
	font-weight: 600;
	color: #4b5563;
	margin-right: 6px;
}

.hhb-property-location .hhb-location-what3words .hhb-what3words-link,
.hhb-property-map .hhb-map-what3words .hhb-what3words-link {
	color: #2563eb;
	text-decoration: none;
	word-break: break-all;
}

.hhb-property-location .hhb-location-what3words .hhb-what3words-link:hover,
.hhb-property-map .hhb-map-what3words .hhb-what3words-link:hover {
	text-decoration: underline;
}

/* Map link styling for shortcodes */
.hhb-property-location .hhb-location-map-link,
.hhb-property-map .hhb-map-link-wrapper {
	margin-top: 12px;
	text-align: right;
}

.hhb-property-location .hhb-location-map-link .hhb-map-link-text,
.hhb-property-map .hhb-map-link-wrapper .hhb-map-link-text {
	display: inline-block;
	font-size: 14px;
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
}

.hhb-property-location .hhb-location-map-link .hhb-map-link-text:hover,
.hhb-property-map .hhb-map-link-wrapper .hhb-map-link-text:hover {
	text-decoration: underline;
	color: #1d4ed8;
}

/* ========================================
   RIGHT COLUMN: SIDEBAR WITH BOOKING CARD
   HHB-43.1.5: Improved containment, prevent excessive shrinking
   HHB-43.1.5 Corrective: Increase min-width, reduce padding for better usability
   HHB-43.1.6: Fixed-width sidebar for step stability and consistent UX
   HHB-43.1.6 Corrective: Prevent overflow and ensure box-sizing
   ======================================== */

.hhb-layout-property-page .hhb-pp-sidebar {
	/* Sidebar container - no width constraints on mobile */
	min-width: 0;
	box-sizing: border-box;
}

/* Desktop: Fixed width for consistency */
/* HHB-43.1.6 Final Tuning: Increased to 460px for better balance */
/* HHB-43.1.6 Final Tuning v2: Increased to 480px for optimal proportions */
@media (min-width: 1024px) {
	.hhb-layout-property-page .hhb-pp-sidebar {
		width: 480px;
		box-sizing: border-box;
		/* Prevent overflow */
		overflow-x: hidden;
	}
}

/* Sticky behavior on desktop only */
/* HHB-43.1.6: Improved sticky with container awareness */
@media (min-width: 1024px) {
	.hhb-layout-property-page .hhb-pp-booking-card {
		position: sticky;
		top: 24px;
		/* Prevent overflow */
		max-height: calc(100vh - 48px);
		overflow-y: auto;
	}
}

/* Booking Card Styling */
/* HHB-43.1.5 Corrective: Reduce padding to increase usable content width */
/* HHB-43.1.6: Explicit width for step stability */
/* HHB-43.1.6 Corrective: Prevent horizontal overflow */
/* HHB-43.1.6 Final Tuning v2: Reduced padding from 20px to 16px for more usable space */
.hhb-layout-property-page .hhb-pp-booking-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	padding: 16px;
	/* Fixed width on desktop for step stability */
	width: 100%;
	box-sizing: border-box;
	/* Prevent horizontal overflow - CRITICAL */
	overflow-x: hidden;
	/* Ensure all children respect container width */
	max-width: 100%;
}

/* Price Display */
.hhb-layout-property-page .hhb-pp-price {
	font-size: 16px;
	color: #6b7280;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e7eb;
}

.hhb-layout-property-page .hhb-pp-price span {
	font-size: 28px;
	font-weight: 700;
	color: #111827;
	margin-right: 4px;
}

/* Dates and Guests Section */
.hhb-layout-property-page .hhb-pp-dates {
	margin-bottom: 16px;
}

/* Override booking form styles within card */
.hhb-layout-property-page .hhb-pp-booking-card .hhb-booking-form {
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: none;
	background: transparent;
}

.hhb-layout-property-page .hhb-pp-booking-card .hhb-form-group {
	margin-bottom: 16px;
}

.hhb-layout-property-page .hhb-pp-booking-card label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}

.hhb-layout-property-page .hhb-pp-booking-card input[type="text"],
.hhb-layout-property-page .hhb-pp-booking-card input[type="date"],
.hhb-layout-property-page .hhb-pp-booking-card input[type="number"],
.hhb-layout-property-page .hhb-pp-booking-card select {
	width: 100%;
	max-width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.hhb-layout-property-page .hhb-pp-booking-card input:focus,
.hhb-layout-property-page .hhb-pp-booking-card select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* CTA Button */
.hhb-layout-property-page .hhb-pp-cta,
.hhb-layout-property-page .hhb-pp-booking-card button[type="submit"],
.hhb-layout-property-page .hhb-pp-booking-card .hhb-button-primary {
	width: 100%;
	max-width: 100%;
	padding: 14px 20px;
	background: linear-gradient(to right, #2563eb, #1d4ed8);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
	box-sizing: border-box;
}

/* HHB-43.1.6 Corrective: Prevent any child from causing horizontal overflow */
.hhb-layout-property-page .hhb-pp-booking-card * {
	box-sizing: border-box;
	max-width: 100%;
}

.hhb-layout-property-page .hhb-pp-booking-card table {
	width: 100%;
	table-layout: fixed;
	word-wrap: break-word;
}

.hhb-layout-property-page .hhb-pp-cta:hover,
.hhb-layout-property-page .hhb-pp-booking-card button[type="submit"]:hover,
.hhb-layout-property-page .hhb-pp-booking-card .hhb-button-primary:hover {
	background: linear-gradient(to right, #1d4ed8, #1e40af);
	box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.4);
	transform: translateY(-1px);
}

/* Note Text */
.hhb-layout-property-page .hhb-pp-note {
	text-align: center;
	font-size: 13px;
	color: #6b7280;
	margin-top: 12px;
}

/* ========================================
   AVAILABILITY MICRO INDICATOR (HHB-43.6.3)
   Premium feature: Shows availability confidence near CTA
   ======================================== */

.hhb-layout-property-page .hhb-pp-availability-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	margin: 12px 0;
	background: rgba(25, 118, 210, 0.08);
	border-left: 3px solid #1976d2;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.4;
	color: #1565c0;
}

.hhb-layout-property-page .hhb-availability-indicator-icon {
	flex-shrink: 0;
	font-size: 16px;
	opacity: 0.9;
}

.hhb-layout-property-page .hhb-availability-indicator-text {
	flex: 1;
	font-weight: 500;
}

/* ========================================
   RESPONSIVE BEHAVIOR
   HHB-43.1.5: Improved mobile reflow and spacing
   ======================================== */

/* Tablet adjustments */
@media (max-width: 1023px) {
	/* Disable sticky on tablet */
	.hhb-layout-property-page .hhb-pp-booking-card {
		position: static !important;
		min-width: auto;
		max-height: none;
		overflow-y: visible;
	}
}

/* Mobile adjustments */
@media (max-width: 768px) {
	.hhb-layout-property-page .hhb-pp-hero {
		margin-bottom: 32px;
	}
	
	.hhb-layout-property-page .hhb-pp-hero-main {
		height: 280px;
	}
	
	.hhb-layout-property-page .hhb-pp-hero-thumbs {
		gap: 8px;
	}
	
	.hhb-layout-property-page .hhb-pp-main {
		gap: 32px;
	}
	
	.hhb-layout-property-page .hhb-pp-content > section {
		padding: 28px 0;
	}
	
	.hhb-layout-property-page .hhb-pp-content h2 {
		font-size: 20px;
		margin-bottom: 16px;
	}
	
	/* Mobile facilities: 2 columns, maintain grid */
	.hhb-layout-property-page .hhb-pp-facilities-chips {
		gap: 10px;
	}
	
	.hhb-layout-property-page .hhb-chip {
		font-size: 13px;
		padding: 10px 12px;
	}
	
	.hhb-layout-property-page .hhb-pp-about-text {
		font-size: 15px;
		line-height: 1.7;
		max-width: 100%;
	}
	
	.hhb-layout-property-page .hhb-pp-about-text p {
		margin-bottom: 16px;
	}
	
	.hhb-layout-property-page .hhb-pp-booking-card {
		padding: 20px;
		min-width: auto;
	}
	
	.hhb-layout-property-page .hhb-pp-price span {
		font-size: 24px;
	}
}

/* Small mobile adjustments */
@media (max-width: 480px) {
	.hhb-layout-property-page .hhb-pp-hero {
		margin-bottom: 24px;
	}
	
	.hhb-layout-property-page .hhb-pp-hero-main {
		height: 240px;
	}
	
	.hhb-layout-property-page .hhb-pp-content > section {
		padding: 24px 0;
	}
	
	.hhb-layout-property-page .hhb-pp-content h2 {
		font-size: 18px;
	}
}

/* ========================================
   PAGE BUILDER COMPATIBILITY
   Prevent overflow in Breakdance and other builders
   ======================================== */

/* Ensure no negative margins or full viewport widths */
.hhb-layout-property-page,
.hhb-layout-property-page * {
	max-width: 100%;
	overflow-wrap: break-word;
}

/* Respect parent container constraints */
.bde-section .hhb-layout-property-page,
.elementor-section .hhb-layout-property-page,
.wp-block .hhb-layout-property-page {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* ========================================
   COMPACT AVAILABILITY CALENDAR
   HHB-43.6.1: Read-only availability visualisation
   HHB-44.4: Navigation controls added
   ======================================== */

.hhb-compact-availability-calendar {
width: 100%;
margin: 1.5rem 0;
box-sizing: border-box;
position: relative;
}

/* HHB-44.4: Navigation controls */
.hhb-compact-cal-nav {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}

.hhb-compact-nav-prev,
.hhb-compact-nav-next {
background: #2563eb;
color: #fff;
border: none;
border-radius: 6px;
padding: 10px 16px;
font-size: 1rem;
cursor: pointer;
transition: all 0.2s ease;
min-width: 44px;
min-height: 44px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.hhb-compact-nav-prev:hover:not(:disabled),
.hhb-compact-nav-next:hover:not(:disabled) {
background: #1d4ed8;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);
transform: translateY(-1px);
}

.hhb-compact-nav-prev:active:not(:disabled),
.hhb-compact-nav-next:active:not(:disabled) {
transform: translateY(0);
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

.hhb-compact-nav-prev:disabled,
.hhb-compact-nav-next:disabled {
background: #e5e7eb;
color: #9ca3af;
cursor: not-allowed;
box-shadow: none;
}

.hhb-compact-nav-prev:focus,
.hhb-compact-nav-next:focus {
outline: 3px solid rgba(37, 99, 235, 0.3);
outline-offset: 2px;
}

/* HHB-44.4: Month visibility control */
.hhb-compact-cal-months-container {
overflow: hidden;
}

.hhb-compact-cal-months {
display: flex;
flex-direction: column;
gap: 1rem;
}

/* HHB-44.4: Hidden months */
.hhb-compact-cal-month.hhb-compact-month-hidden {
display: none;
}

/* Single month container - consolidated */
.hhb-compact-cal-month {
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Month header */
.hhb-compact-month-header {
background: #2563eb;
color: #fff;
padding: 0.75rem;
text-align: center;
}

.hhb-compact-month-name {
font-size: 0.875rem;
font-weight: 600;
line-height: 1.4;
}

/* Calendar grid */
.hhb-compact-cal-grid {
padding: 0.75rem;
}

/* Weekday headers (S M T W T F S) */
.hhb-compact-cal-weekdays {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2px;
margin-bottom: 4px;
}

.hhb-compact-weekday {
text-align: center;
font-size: 0.625rem;
font-weight: 600;
color: #6b7280;
padding: 4px 0;
text-transform: uppercase;
}

/* Days grid */
.hhb-compact-cal-days {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2px;
}

/* Individual day cell */
.hhb-compact-day {
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
border: 1px solid #e5e7eb;
font-size: 0.75rem;
min-height: 32px;
position: relative;
box-sizing: border-box;
}

/* Empty day (padding cells) */
.hhb-compact-day-empty {
background: transparent;
border: none;
visibility: hidden;
}

/* Past dates */
.hhb-compact-day-past {
background: #f9fafb;
color: #9ca3af;
border-color: #e5e7eb;
}

/* Available dates */
.hhb-compact-day-available {
background: #d1fae5;
color: #065f46;
border-color: #10b981;
font-weight: 500;
}

/* Blocked dates */
.hhb-compact-day-blocked {
background: #fee2e2;
color: #991b1b;
border-color: #ef4444;
font-weight: 500;
}

/* Today indicator */
.hhb-compact-day-today {
box-shadow: 0 0 0 2px #2563eb;
font-weight: 600;
}

.hhb-compact-day-number {
font-weight: inherit;
line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.hhb-compact-cal-months {
		gap: 0.75rem;
	}
	
	.hhb-compact-cal-grid {
		padding: 0.5rem;
	}
	
	.hhb-compact-day {
		font-size: 0.625rem;
		min-height: 28px;
	}
	
	.hhb-compact-month-name {
		font-size: 0.75rem;
	}
}

/* Print styles */
@media print {
	.hhb-compact-availability-calendar {
		page-break-inside: avoid;
	}
	
	.hhb-compact-cal-month {
		border: 2px solid #000;
		box-shadow: none;
		page-break-inside: avoid;
	}
}

/* ========================================
   COMPACT CALENDAR CLICK-TO-POPULATE
   HHB-43.6.2: Interactive date selection
   ======================================== */

/* Make available days clickable */
.hhb-compact-day-available {
	cursor: pointer;
	transition: transform 0.1s ease, background-color 0.15s ease;
}

.hhb-compact-day-available:hover {
	transform: scale(1.05);
	background: #a7f3d0;
	border-color: #059669;
}

.hhb-compact-day-available:active {
	transform: scale(0.95);
}

/* Selected start date */
.hhb-compact-day.hhb-cal-selected-start {
	background: #2563eb !important;
	color: #fff !important;
	border-color: #1d4ed8 !important;
	font-weight: 700;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* Selected end date */
.hhb-compact-day.hhb-cal-selected-end {
	background: #2563eb !important;
	color: #fff !important;
	border-color: #1d4ed8 !important;
	font-weight: 700;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* In-range dates (between start and end) */
.hhb-compact-day.hhb-cal-in-range {
	background: #bfdbfe !important;
	color: #1e40af !important;
	border-color: #60a5fa !important;
}

.hhb-compact-day.hhb-cal-in-range:hover {
	background: #93c5fd !important;
}

/* Calendar message area */
.hhb-cal-message {
	display: none;
	margin-top: 0.75rem;
	padding: 0.625rem 0.75rem;
	border-radius: 6px;
	font-size: 0.8125rem;
	line-height: 1.4;
}

.hhb-cal-message-error {
	display: block;
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #ef4444;
}

.hhb-cal-message-info {
	display: block;
	background: #dbeafe;
	color: #1e40af;
	border: 1px solid #60a5fa;
}

/* Clear dates button */
.hhb-cal-clear-btn {
	display: block;
	width: 100%;
	margin-top: 0.75rem;
	padding: 0.5rem 1rem;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	color: #374151;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: center;
}

.hhb-cal-clear-btn:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	color: #111827;
}

.hhb-cal-clear-btn:active {
	background: #f3f4f6;
	transform: scale(0.98);
}

.hhb-cal-clear-btn:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

/* Disable pointer events on blocked and past dates */
.hhb-compact-day-blocked,
.hhb-compact-day-past {
	cursor: not-allowed;
	pointer-events: none;
}
