/*
 * Hotel FAQ Accordion — CSS mặc định.
 * Có thể ghi đè toàn bộ biến và class bên dưới tại:
 * Divi → Theme Options → Custom CSS
 */

.hotel-faq {
	/* Các biến có thể tùy chỉnh */
	--hotel-faq-primary: #2F5233;
	--hotel-faq-question-bg: #f5f7f3;
	--hotel-faq-answer-bg: #ffffff;
	--hotel-faq-border: #dfe5dc;
	--hotel-faq-text: #333333;
	--hotel-faq-radius: 4px;

	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	color: var(--hotel-faq-text);
}

.hotel-faq *,
.hotel-faq *::before,
.hotel-faq *::after {
	box-sizing: border-box;
}

.hotel-faq__item {
	border: 1px solid var(--hotel-faq-border);
	border-radius: var(--hotel-faq-radius);
	margin-bottom: 12px;
	overflow: hidden;
	background-color: var(--hotel-faq-question-bg);
}

.hotel-faq__item:last-child {
	margin-bottom: 0;
}

.hotel-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 20px;
	background-color: var(--hotel-faq-question-bg);
	border: none;
	text-align: left;
	font-family: inherit;
	font-size: 1em;
	font-weight: 600;
	color: var(--hotel-faq-text);
	cursor: pointer;
	gap: 16px;
}

.hotel-faq__question:hover,
.hotel-faq__question:focus-visible {
	background-color: var(--hotel-faq-question-bg);
	filter: brightness(0.98);
}

.hotel-faq__question:focus-visible {
	outline: 2px solid var(--hotel-faq-primary);
	outline-offset: -2px;
}

.hotel-faq__question-text {
	flex: 1 1 auto;
	text-align: left;
}

.hotel-faq__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 1.2em;
	line-height: 1;
	color: var(--hotel-faq-primary);
}

.hotel-faq__answer {
	max-height: 0;
	overflow: hidden;
	background-color: var(--hotel-faq-answer-bg);
	transition: max-height 0.3s ease;
}

.hotel-faq__item.is-open .hotel-faq__answer {
	background-color: var(--hotel-faq-answer-bg);
}

.hotel-faq__answer-inner {
	padding: 4px 20px 18px;
	line-height: 1.6;
}

.hotel-faq__answer-inner p:first-child {
	margin-top: 0;
}

.hotel-faq__answer-inner p:last-child {
	margin-bottom: 0;
}

.hotel-faq__answer-inner img {
	max-width: 100%;
	height: auto;
}

.hotel-faq__answer-inner ul,
.hotel-faq__answer-inner ol {
	padding-left: 1.25em;
}

.hotel-faq__answer-inner a {
	color: var(--hotel-faq-primary);
	text-decoration: underline;
}

@media (max-width: 600px) {
	.hotel-faq__question {
		padding: 14px 16px;
		font-size: 0.95em;
	}

	.hotel-faq__answer-inner {
		padding: 4px 16px 16px;
	}
}
