/*
 * Hotel directory /hotels (component com_nmhotels). Loaded only on that page (the component adds it to its own <head>).
 * No images, no fonts, no script. Box styling of its own (white cards on the page, light borders, soft shadow), not the forum's blue bars.
 * Flexible: the page fills the whole content cell; the cards are a fluid grid (1 column when narrow, more when there is room),
 * type and spacing scale with clamp(). All colours are variables on #nmhotels (change them in one place).
 * The template stylesheet is linked after custom head tags, so rules that compete with it use id/element selectors.
 * No fixed widths; long words and URLs wrap. Touch targets are at least 44 px high.
 */

table.nmh-title {
	width: 100%;
}

table.nmh-title td.contentheading {
	border-bottom: 0;
	padding: 0;
}

table.nmh-title .contentheading h2 {
	margin: 0 0 12px;
	padding: 0 0 8px;
	border-bottom: 3px solid #2a5d9f;
	color: #1c2430;
	background: none;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: clamp(19px, 1.2vw + 15px, 26px);
	line-height: 1.25;
	font-weight: bold;
}

#nmhotels {
	--nmh-text: #1c2430;
	--nmh-muted: #46546a;
	--nmh-link: #1d4f94;
	--nmh-accent: #2a5d9f;
	--nmh-accent-deep: #1d4577;
	--nmh-border: #cfd8e6;
	--nmh-soft: #f3f6fb;
	--nmh-chip: #e4ecf7;
	--nmh-focus: #9b2c20;
	--nmh-gap: clamp(10px, 1.2vw, 18px);
	--nmh-pad: clamp(12px, 1.4vw, 18px);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--nmh-text);
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	overflow-wrap: anywhere;
}

#nmhotels *,
#nmhotels *::before,
#nmhotels *::after {
	box-sizing: border-box;
}

#nmhotels p,
#nmhotels h3,
#nmhotels ol,
#nmhotels ul,
#nmhotels li,
#nmhotels dl,
#nmhotels dd {
	margin: 0;
	padding: 0;
}

#nmhotels a {
	color: var(--nmh-link);
	text-decoration: underline;
}

#nmhotels a:hover {
	color: var(--nmh-text);
	text-decoration: none;
}

#nmhotels a:focus,
#nmhotels summary:focus {
	outline: 3px solid var(--nmh-focus);
	outline-offset: 2px;
}

#nmhotels .nmh-vh {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* index: a box with link chips that wrap */
#nmhotels nav.nmh-index {
	background: var(--nmh-soft);
	border: 1px solid var(--nmh-border);
	border-radius: 6px;
	padding: var(--nmh-pad);
	margin: 0 0 var(--nmh-gap);
}

#nmhotels h3.nmh-bar {
	color: var(--nmh-muted);
	font-size: 13px;
	line-height: 1.3;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 8px;
}

#nmhotels ol.nmh-toc {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

#nmhotels ol.nmh-toc li {
	list-style: none;
}

#nmhotels ol.nmh-toc a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 4px 12px;
	background: #fff;
	border: 1px solid var(--nmh-border);
	border-radius: 999px;
	text-decoration: none;
}

#nmhotels ol.nmh-toc a:hover {
	border-color: var(--nmh-accent);
	text-decoration: underline;
}

/* the cards: a fluid grid that uses the whole width */
#nmhotels div.nmh-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: var(--nmh-gap);
	align-items: start;
}

#nmhotels article.nmh-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--nmh-border);
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(28, 36, 48, .08);
	padding: var(--nmh-pad);
}

#nmhotels header.nmh-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

#nmhotels h3.nmh-name {
	flex: 1 1 12em;
	color: var(--nmh-text);
	font-size: clamp(16px, .5vw + 14px, 19px);
	line-height: 1.3;
	font-weight: bold;
}

#nmhotels .nmh-stars {
	color: var(--nmh-accent-deep);
	white-space: nowrap;
	letter-spacing: 1px;
}

#nmhotels .nmh-badge {
	background: var(--nmh-chip);
	color: var(--nmh-accent-deep);
	border-radius: 999px;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
	padding: 5px 9px;
}

#nmhotels p.nmh-addr {
	color: var(--nmh-muted);
	font-weight: bold;
}

/* quick actions */
#nmhotels ul.nmh-actions {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#nmhotels ul.nmh-actions li {
	list-style: none;
	flex: 1 1 110px;
}

#nmhotels a.nmh-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 6px 12px;
	border: 2px solid var(--nmh-accent);
	border-radius: 6px;
	background: #fff;
	color: var(--nmh-link);
	font-weight: bold;
	text-align: center;
	text-decoration: none;
}

#nmhotels a.nmh-btn:hover {
	background: var(--nmh-soft);
	color: var(--nmh-text);
	text-decoration: none;
}

#nmhotels a.nmh-btn-main {
	background: var(--nmh-accent);
	color: #fff;
}

#nmhotels a.nmh-btn-main:hover {
	background: var(--nmh-accent-deep);
	border-color: var(--nmh-accent-deep);
	color: #fff;
}

/* contacts as text */
#nmhotels dl.nmh-dl {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 2px;
}

#nmhotels dl.nmh-dl dt {
	color: var(--nmh-muted);
	font-weight: bold;
}

#nmhotels dl.nmh-dl dd {
	margin: 0;
}

#nmhotels a.nmh-tel {
	display: inline-block;
	padding: 3px 0;
}

#nmhotels p.nmh-note {
	color: var(--nmh-muted);
}

/* collapsible blocks (native <details>) */
#nmhotels details.nmh-more {
	border: 1px solid var(--nmh-border);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

#nmhotels details.nmh-more summary {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 12px;
	background: var(--nmh-soft);
	color: var(--nmh-link);
	font-weight: bold;
	cursor: pointer;
	list-style: none;
}

#nmhotels details.nmh-more summary::-webkit-details-marker {
	display: none;
}

#nmhotels details.nmh-more summary::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}

#nmhotels details.nmh-more[open] summary::before {
	transform: rotate(45deg);
}

#nmhotels details.nmh-more[open] summary {
	border-bottom: 1px solid var(--nmh-border);
}

#nmhotels details.nmh-more > p,
#nmhotels details.nmh-more > ul {
	padding: 10px 12px;
}

#nmhotels ul.nmh-services {
	padding-left: 32px;
}

#nmhotels ul.nmh-services li {
	list-style: disc;
	margin: 0 0 3px;
}

#nmhotels iframe.nmh-frame {
	display: block;
	width: 100%;
	height: clamp(220px, 28vw, 320px);
	border: 0;
	border-bottom: 1px solid var(--nmh-border);
}

#nmhotels p.nmh-maplink {
	padding: 4px 12px;
}

#nmhotels p.nmh-maplink a {
	display: inline-block;
	padding: 8px 0;
}

#nmhotels p.nmh-credit,
#nmhotels p.nmh-updated {
	color: var(--nmh-muted);
	font-size: 13px;
	margin: var(--nmh-gap) 0 0;
}

#nmhotels p.nmh-credit + p.nmh-credit,
#nmhotels p.nmh-credit + p.nmh-updated {
	margin-top: 4px;
}

/* narrow screens: label above value, actions fill the row */
@media (max-width: 520px) {
	#nmhotels dl.nmh-dl {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0;
	}

	#nmhotels dl.nmh-dl dd {
		margin: 0 0 8px;
	}

	#nmhotels ul.nmh-actions li {
		flex: 1 1 100%;
	}
}
