/* My Hotel Snippet - Main Styles */

.my-hotel-snippet {
	--mhs-primary-color: #1a73e8;
	--mhs-primary-hover: #1557b0;
	--mhs-border-radius: 8px;
	--mhs-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	--mhs-transition: all 0.3s ease;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.mhs-container {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px;
	background: #ffffff;
	border-radius: var(--mhs-border-radius);
	box-shadow: var(--mhs-shadow);
	overflow: hidden;
}

/* Content Block - Two Column Layout */
.mhs-content-block {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	align-items: stretch;
}

/* Left Half: Image Section */
.mhs-image-section {
	overflow: hidden;
	border-radius: var(--mhs-border-radius);
}

.mhs-main-image-wrapper {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: var(--mhs-border-radius);
	background: #f5f5f5;
	aspect-ratio: 3 / 2;
	width: 100%;
}

.mhs-main-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--mhs-transition);
}

.mhs-main-image:hover {
	transform: scale(1.02);
}

/* Right Half: Text Section */
.mhs-text-section {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 12px 0;
}

.mhs-title {
	margin: 0 0 16px 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	color: #202124;
}

.mhs-excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #5f6368;
}

/* Thumbnails Section */
.mhs-thumbnails-section {
	padding: 12px 0;
	border-top: 1px solid #e8e9eb;
	border-bottom: 1px solid #e8e9eb;
}

.mhs-thumbnails-wrapper {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-behavior: smooth;
}

.mhs-thumbnails-wrapper::-webkit-scrollbar {
	height: 6px;
}

.mhs-thumbnails-wrapper::-webkit-scrollbar-track {
	background: #f1f3f4;
	border-radius: 3px;
}

.mhs-thumbnails-wrapper::-webkit-scrollbar-thumb {
	background: #dadce0;
	border-radius: 3px;
}

.mhs-thumbnails-wrapper::-webkit-scrollbar-thumb:hover {
	background: #bdc1c6;
}

.mhs-thumbnail {
	flex: 0 0 auto;
	width: 80px;
	height: 80px;
	padding: 2px;
	border: 2px solid transparent;
	border-radius: var(--mhs-border-radius);
	background: none;
	cursor: pointer;
	transition: var(--mhs-transition);
	overflow: hidden;
}

.mhs-thumbnail:hover {
	border-color: var(--mhs-primary-color);
	opacity: 0.8;
}

.mhs-thumbnail.active {
	border-color: var(--mhs-primary-color);
}

.mhs-thumbnail-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Button Section */
.mhs-button-section {
	display: flex;
	justify-content: flex-end;
	padding-top: 8px;
}

/* Responsive Design */

/* Tablet: 768px and below */
@media (max-width: 768px) {
	.mhs-container {
		padding: 16px;
		gap: 16px;
	}

	.mhs-content-block {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mhs-title {
		font-size: 20px;
		margin-bottom: 12px;
	}

	.mhs-excerpt {
		font-size: 14px;
	}

	.mhs-thumbnail {
		width: 70px;
		height: 70px;
	}
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
	.mhs-container {
		padding: 12px;
		gap: 12px;
	}

	.mhs-content-block {
		gap: 12px;
	}

	.mhs-image-section {
		min-height: 250px;
	}

	.mhs-title {
		font-size: 18px;
		margin-bottom: 8px;
	}

	.mhs-excerpt {
		font-size: 13px;
		line-height: 1.5;
	}

	.mhs-thumbnails-wrapper {
		gap: 8px;
	}

	.mhs-thumbnail {
		width: 60px;
		height: 60px;
	}

	.mhs-detail-button {
		width: 100%;
		justify-content: center;
		padding: 14px 16px;
	}

	.mhs-button-section {
		justify-content: stretch;
	}
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.my-hotel-snippet * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	.my-hotel-snippet {
		--mhs-primary-color: #8ab4f8;
		--mhs-primary-hover: #aecbfa;
	}

	.mhs-container {
		background: #202124;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	}

	.mhs-title {
		color: #e8eaed;
	}

	.mhs-excerpt {
		color: #9aa0a6;
	}

	.mhs-thumbnails-section {
		border-top-color: #303134;
		border-bottom-color: #303134;
	}

	.mhs-thumbnails-wrapper::-webkit-scrollbar-track {
		background: #303134;
	}

	.mhs-thumbnails-wrapper::-webkit-scrollbar-thumb {
		background: #5f6368;
	}

	.mhs-thumbnails-wrapper::-webkit-scrollbar-thumb:hover {
		background: #9aa0a6;
	}
}
