/**
 * Atomic Shortcodes Styles
 * Basic styling for atomic property component shortcodes
 *
 * @package Holiday_Home_Booking
 */

/* ========================================================================
   PROPERTY PAGE WRAPPER
   ======================================================================== */

.hhb-property-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.hhb-property-header {
	margin-bottom: 30px;
}

.hhb-property-title {
	font-size: 2em;
	margin: 0 0 10px 0;
	color: #333;
}

.hhb-property-featured,
.hhb-property-quick-facts,
.hhb-property-description,
.hhb-property-house-rules,
.hhb-property-photo-gallery,
.hhb-property-booking-section {
	margin-bottom: 40px;
}

/* ========================================================================
   FEATURED IMAGE
   ======================================================================== */

.hhb-property-featured-image {
	margin-bottom: 20px;
}

.hhb-property-featured-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.hhb-property-link {
	display: block;
	text-decoration: none;
}

/* ========================================================================
   PROPERTY FACTS
   ======================================================================== */

.hhb-property-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	margin-bottom: 20px;
}

.hhb-fact-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
}

.hhb-fact-item .dashicons {
	color: #0073aa;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.hhb-fact-item strong {
	margin-right: 5px;
}

/* ========================================================================
   HOUSE RULES
   ======================================================================== */

.hhb-property-rules {
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	margin-bottom: 20px;
}

.hhb-rules-title {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 1.5em;
	color: #333;
}

.hhb-rules-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hhb-rule-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hhb-rule-item .dashicons {
	color: #0073aa;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* ========================================================================
   GALLERY
   ======================================================================== */

.hhb-property-gallery {
	display: grid;
	gap: 15px;
	margin-bottom: 20px;
}

/* Grid columns - responsive */
.hhb-gallery-columns-1 { grid-template-columns: repeat(1, 1fr); }
.hhb-gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.hhb-gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.hhb-gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.hhb-gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.hhb-gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }

.hhb-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 4/3;
}

.hhb-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.hhb-gallery-item a {
	display: block;
	text-decoration: none;
}

.hhb-gallery-item:hover img {
	transform: scale(1.05);
}

/* ========================================================================
   ERROR & INFO MESSAGES
   ======================================================================== */

.hhb-error,
.hhb-no-image,
.hhb-no-gallery {
	padding: 15px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
	margin-bottom: 20px;
}

/* ========================================================================
   RESPONSIVE ADJUSTMENTS
   ======================================================================== */

@media (max-width: 768px) {
	.hhb-property-facts {
		flex-direction: column;
		gap: 10px;
	}
	
	.hhb-gallery-columns-3,
	.hhb-gallery-columns-4,
	.hhb-gallery-columns-5,
	.hhb-gallery-columns-6 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.hhb-property-page {
		padding: 10px;
	}
	
	.hhb-property-title {
		font-size: 1.5em;
	}
	
	.hhb-gallery-columns-2,
	.hhb-gallery-columns-3,
	.hhb-gallery-columns-4,
	.hhb-gallery-columns-5,
	.hhb-gallery-columns-6 {
		grid-template-columns: repeat(1, 1fr);
	}
}
