/**
 * deadsea-he.css — Hebrew-only typography and RTL polish.
 * Enqueued only when WPML language is `he` (see functions.php).
 * Selectors are scoped to html[lang="he-IL"] / html[lang="he"] so EN and AR
 * pages that accidentally load this file are unchanged.
 *
 * Font: the theme already hosts DejaVu Sans locally via style.css @font-face
 * (assets/fonts/DejaVuSans*.woff2). DM Sans (the default body face) has no
 * Hebrew glyphs. This sheet prefers DejaVu Sans, then the system Hebrew
 * stack. No new font files and no Google Fonts host are added.
 */

html[lang="he-IL"],
html[lang="he"] {
	font-family: "DejaVu Sans", "Noto Sans Hebrew", "Arial Hebrew", "Tahoma", system-ui, sans-serif;
}

html[lang="he-IL"] body,
html[lang="he"] body,
html[lang="he-IL"] h1,
html[lang="he-IL"] h2,
html[lang="he-IL"] h3,
html[lang="he-IL"] h4,
html[lang="he-IL"] h5,
html[lang="he-IL"] h6,
html[lang="he-IL"] button,
html[lang="he-IL"] input,
html[lang="he-IL"] select,
html[lang="he-IL"] textarea,
html[lang="he-IL"] .footer__heading,
html[lang="he-IL"] .footer__grid ul a,
html[lang="he-IL"] .breadcrumb,
html[lang="he"] body,
html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] h3,
html[lang="he"] h4,
html[lang="he"] h5,
html[lang="he"] h6 {
	font-family: "DejaVu Sans", "Noto Sans Hebrew", "Arial Hebrew", "Tahoma", system-ui, sans-serif;
}

/* 2. Clipped 75px / 85px H1: clamp and allow wrap for long Hebrew titles. */
html[lang="he-IL"] .hotel-banner__content h1,
html[lang="he-IL"] .hotel-banner__content h1.reveal,
html[lang="he-IL"] .single .hotel-banner__content h1,
html[lang="he"] .hotel-banner__content h1,
html[lang="he"] .hotel-banner__content h1.reveal,
html[lang="he"] .single .hotel-banner__content h1 {
	font-size: clamp(28px, 4.2vw, 56px);
	line-height: 1.25;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
	overflow: visible;
	hyphens: none;
}

/* 4. Breadcrumb as a horizontal RTL trail, never a vertical bullet list. */
html[lang="he-IL"] .breadcrumb ul,
html[lang="he"] .breadcrumb ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35em 0.75em;
	list-style: none;
	padding: 0;
	margin: 0;
	direction: rtl;
}

html[lang="he-IL"] .breadcrumb ul li,
html[lang="he"] .breadcrumb ul li {
	display: inline-flex;
	align-items: center;
	list-style: none;
}

html[lang="he-IL"] .breadcrumb ul li::marker,
html[lang="he"] .breadcrumb ul li::marker {
	content: none;
}

/* 5. Footer headings must not clip in RTL. */
html[lang="he-IL"] .footer__heading,
html[lang="he"] .footer__heading,
html[lang="he-IL"] .footer__grid nav,
html[lang="he"] .footer__grid nav {
	overflow: visible;
	white-space: normal;
	text-overflow: unset;
	overflow-wrap: anywhere;
	max-width: 100%;
}

/* 6. 'At a glance' (and other simple-content) tables follow RTL. */
html[lang="he-IL"] .simple_content_sec table,
html[lang="he"] .simple_content_sec table {
	width: 100%;
	border-collapse: collapse;
	direction: rtl;
	text-align: start;
}

html[lang="he-IL"] .simple_content_sec table th,
html[lang="he-IL"] .simple_content_sec table td,
html[lang="he"] .simple_content_sec table th,
html[lang="he"] .simple_content_sec table td {
	text-align: start;
	vertical-align: top;
	padding: 0.6em 0.85em;
	border-bottom: 1px solid rgba(28, 43, 45, 0.2);
}

/* 8. Compact language switcher: do not let <summary> become list-item
      or stretch to full header width (style-rtl.css starter rule). */
html[lang="he-IL"] .ds-language-dropdown,
html[lang="he"] .ds-language-dropdown {
	position: relative;
	flex: 0 0 auto;
	width: auto;
	max-width: max-content;
	margin-inline: 12px;
}

html[lang="he-IL"] .ds-language-dropdown summary,
html[lang="he"] .ds-language-dropdown summary {
	list-style: none;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	width: auto;
	max-width: max-content;
	padding: 0 12px;
	border: 1px solid rgba(243, 237, 228, 0.7);
	border-radius: 5px;
	cursor: pointer;
	white-space: nowrap;
}

html[lang="he-IL"] .ds-language-dropdown summary::-webkit-details-marker,
html[lang="he"] .ds-language-dropdown summary::-webkit-details-marker {
	display: none;
}

/* Header chrome stays on one row once style.css is restored; reinforce wrap. */
html[lang="he-IL"] header.header .deadsea-header__inner,
html[lang="he"] header.header .deadsea-header__inner,
html[lang="he-IL"] header.header .header__inner,
html[lang="he"] header.header .header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

html[lang="he-IL"] header.header .logo img,
html[lang="he"] header.header .logo img {
	max-height: 81px;
	width: auto;
	height: auto;
}
