/* Amenities Section — Styles */

.ams-wrapper { width: 100%; }

.ams-section {
	background-color: #f5efe6;
	width: 100%;
	box-sizing: border-box;
	padding: 70px 60px;
}

.ams-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.ams-header-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	max-width: 640px;
}

.ams-eyebrow {
	font-size: 11px;
	letter-spacing: 1.5px;
	font-weight: 700;
	color: #b06a4f;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.ams-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 30px;
	font-weight: 400;
	color: #2c2420;
	margin: 0;
	line-height: 1.3;
}

.ams-description {
	font-size: 15px;
	line-height: 1.7;
	color: #6b6459;
	max-width: 520px;
	margin: 18px 0 0 0;
}

/* Button — three selectable styles: text link, outline, solid */
.ams-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: #b06a4f;
	font-size: 12px;
	letter-spacing: 1px;
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.ams-btn.ams-btn-outline {
	border: 1px solid #b06a4f;
	padding: 14px 26px;
}

.ams-btn.ams-btn-outline:hover {
	background-color: #b06a4f;
	color: #ffffff;
}

.ams-btn.ams-btn-solid {
	background-color: #b06a4f;
	color: #ffffff;
	padding: 14px 26px;
}

.ams-btn.ams-btn-solid:hover {
	background-color: #8a4a34;
}

.ams-btn:hover {
	color: #2c2420;
}

.ams-btn-arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.ams-btn:hover .ams-btn-arrow {
	transform: translateX(4px);
}

/* ---------------- Grid of amenity items ---------------- */
.ams-grid {
	--ams-cols: 4;
	--ams-gap: 24px;
	display: grid;
	grid-template-columns: repeat(var(--ams-cols), 1fr);
	gap: var(--ams-gap);
}

/* Classic row layout: plain icon + label, no borders, minimal spacing. */
.ams-layout-row .ams-grid {
	--ams-cols: 7;
}

.ams-layout-row .ams-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	cursor: pointer;
	padding: 6px 0;
}

/* Editorial layout: a bordered "table" of cards, generous whitespace,
   numbering, one-line descriptions, and a gentle, understated hover. */
.ams-layout-editorial .ams-grid {
	border: 1px solid #e4d9c9;
	gap: 0;
}

.ams-layout-editorial .ams-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	cursor: pointer;
	padding: 32px 28px;
	border-right: 1px solid #e4d9c9;
	border-bottom: 1px solid #e4d9c9;
	background-color: transparent;
	transition: background-color 0.4s ease;
}

.ams-layout-editorial .ams-item:hover {
	background-color: #ffffff;
}

.ams-item-number {
	font-size: 13px;
	color: #d9c9b3;
	margin-bottom: 16px;
	letter-spacing: 0.5px;
}

.ams-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	font-size: 28px;
	color: #b06a4f;
	margin-bottom: 16px;
	transition: color 0.35s ease, transform 0.35s ease;
}

.ams-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.ams-item:hover .ams-icon {
	color: #8a4a34;
	transform: scale(1.08);
}

.ams-item-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: #2c2420;
	transition: color 0.3s ease;
}

.ams-item:hover .ams-item-title {
	color: #8a4a34;
}

.ams-item-desc {
	font-size: 13px;
	line-height: 1.6;
	color: #8a8175;
	margin: 8px 0 0 0;
}

/* Popup */
.ams-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	--ams-overlay-opacity: 0.6;
}

.ams-popup-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: #2c2420;
	opacity: var(--ams-overlay-opacity);
	z-index: 0;
}

.ams-popup-overlay.ams-popup-active {
	display: flex;
}

.ams-popup-modal {
	position: relative;
	z-index: 1;
	background: #ffffff;
	max-width: 420px;
	width: 100%;
	border-radius: 8px;
	padding: 44px 36px;
	text-align: center;
	transform: translateY(20px) scale(0.97);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.ams-popup-overlay.ams-popup-active .ams-popup-modal {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.ams-popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: transparent;
	border: none;
	font-size: 15px;
	cursor: pointer;
	color: #2c2420;
	width: 32px;
	height: 32px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	outline: none !important;
	box-shadow: none !important;
	transition: transform 0.3s ease;
}

.ams-popup-close:hover {
	transform: rotate(90deg);
}

.ams-popup-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	font-size: 56px;
	color: #b06a4f;
	margin: 0 auto 20px auto;
}

.ams-popup-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.ams-popup-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 22px;
	font-weight: 400;
	color: #2c2420;
	margin: 0 0 14px 0;
}

.ams-popup-desc {
	font-size: 14px;
	line-height: 1.7;
	color: #5a5248;
	margin: 0;
}

/* Entrance animation */
.ams-wrapper[data-entrance="true"] .ams-entrance-item {
	opacity: 0;
}

.ams-wrapper[data-entrance="true"] .ams-entrance-item.ams-in-view {
	animation-name: amsFadeUp;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	animation-fill-mode: forwards;
}

@keyframes amsFadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 991px) {
	.ams-section { padding: 50px 32px; }
	.ams-layout-row .ams-grid { row-gap: 32px; }
	.ams-title { font-size: 24px; }
	.ams-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
	.ams-section { padding: 40px 20px; }
	.ams-layout-editorial .ams-item {
		border-right: none;
		border-bottom: 1px solid #e4d9c9;
	}
	.ams-layout-editorial .ams-item:last-child {
		border-bottom: none;
	}
}
