/* Rihlati Maps — Discover. Mobile first. Brand: teal #22CCB2, deep #0C332F; font inherited from the theme. */
.rmaps-discover {
	--rmaps-teal: #22CCB2;
	--rmaps-deep: #0C332F;
	--rmaps-ink: #10201E;
	--rmaps-muted: #4A615E;
	--rmaps-soft: #E9FAF7;
	--rmaps-line: #D5EEEA;
	--rmaps-radius: 20px;
	--rmaps-shadow: 0 10px 30px rgba(12, 51, 47, .18), 0 2px 6px rgba(12, 51, 47, .08);
	position: relative;
	width: 100%;
	height: var(--rmaps-inline-h, 720px);
	max-height: 100dvh;
	overflow: hidden;
	font-family: inherit;
	color: var(--rmaps-ink);
	background: var(--rmaps-soft);
	-webkit-tap-highlight-color: transparent;
}
.rmaps-discover *,
.rmaps-discover *::before,
.rmaps-discover *::after { box-sizing: border-box; }
.rmaps-discover.is-fullscreen {
	position: fixed;
	inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0;
	width: auto;
	height: auto;
	max-width: none !important; /* block themes constrain every child of the content (is-layout-constrained) */
	max-height: none;
	margin: 0 !important;
	z-index: 99990;
}
body.rmaps-discover-fullscreen { overflow: hidden; }
.rmaps-discover__map { position: absolute; inset: 0; z-index: 0; }
.rmaps-discover button { font: inherit; cursor: pointer; }
.rmaps-discover :focus-visible { outline: 3px solid var(--rmaps-deep); outline-offset: 2px; }

/* ---------- Panel: bottom sheet on phones ---------- */
.rmaps-panel {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	max-height: min(78%, 640px);
	background: #fff;
	border-radius: var(--rmaps-radius) var(--rmaps-radius) 0 0;
	box-shadow: var(--rmaps-shadow);
	padding: 8px 16px calc(84px + env(safe-area-inset-bottom, 0px));
	transform: translateY(0);
	transition: transform .25s ease, visibility .25s;
}
.rmaps-discover[data-panel="closed"] .rmaps-panel { transform: translateY(105%); visibility: hidden; }
.rmaps-panel__grip { width: 44px; height: 5px; border-radius: 3px; background: var(--rmaps-line); margin: 0 auto 8px; flex: none; }
.rmaps-panel__head { position: relative; flex: none; padding-inline-end: 44px; }
.rmaps-panel__eyebrow {
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #0F7F6E;
}
.rmaps-panel__title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--rmaps-deep); }
.rmaps-panel__intro { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--rmaps-muted); }
.rmaps-panel__close {
	position: absolute;
	top: -2px;
	inset-inline-end: -6px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--rmaps-deep);
}
.rmaps-panel__close:hover { background: var(--rmaps-soft); }

.rmaps-filters { flex: none; margin-top: 14px; display: grid; gap: 10px; }
.rmaps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rmaps-field { display: grid; gap: 4px; min-width: 0; }
.rmaps-field label { font-size: 12px; font-weight: 600; color: var(--rmaps-muted); }
.rmaps-field input,
.rmaps-field select {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--rmaps-line);
	border-radius: 12px;
	background: #fff;
	color: var(--rmaps-ink);
	font: inherit;
	font-size: 15px;
	line-height: 1.2;
	box-shadow: none;
}
.rmaps-field select { appearance: auto; }
.rmaps-field input:focus,
.rmaps-field select:focus { border-color: var(--rmaps-teal); outline: 2px solid var(--rmaps-teal); outline-offset: 0; }
.rmaps-field--search { position: relative; }
.rmaps-field--search input { padding-inline-start: 40px; border-radius: 999px; background: var(--rmaps-soft); border-color: transparent; }
.rmaps-field__ico { position: absolute; inset-inline-start: 14px; top: 13px; color: var(--rmaps-muted); pointer-events: none; }
.rmaps-filters__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.rmaps-count { margin: 0; font-size: 14px; font-weight: 600; color: var(--rmaps-deep); }
.rmaps-clear {
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--rmaps-deep);
	border-radius: 999px;
	background: #fff;
	color: var(--rmaps-deep);
	font-size: 14px;
	font-weight: 600;
}
.rmaps-clear:hover { background: var(--rmaps-deep); color: #fff; }
.rmaps-clear[hidden] { display: none; }

.rmaps-list {
	flex: 1 1 auto;
	min-height: 0;
	margin: 8px -16px 0;
	padding: 0 8px 8px;
	list-style: none;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-top: 1px solid var(--rmaps-line);
}
.rmaps-list li { margin: 0; padding: 0; }
.rmaps-item {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 12px;
	align-items: center;
	width: 100%;
	padding: 10px 8px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: inherit;
	text-align: start;
}
.rmaps-item:hover,
.rmaps-item[aria-current="true"] { background: var(--rmaps-soft); }
.rmaps-item__img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--rmaps-soft); display: block; }
.rmaps-item__img--none { display: grid; place-items: center; color: var(--rmaps-teal); }
.rmaps-item__t { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--rmaps-ink); }
.rmaps-item__m { display: block; margin-top: 2px; font-size: 13px; color: var(--rmaps-muted); }
.rmaps-empty { padding: 18px 8px; color: var(--rmaps-muted); font-size: 14px; }

/* ---------- Bottom bar ---------- */
.rmaps-bar {
	position: absolute;
	z-index: 4;
	left: 50%;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 4px;
	max-width: calc(100% - 32px);
	padding: 5px;
	border-radius: 999px;
	background: var(--rmaps-deep);
	box-shadow: var(--rmaps-shadow);
}
.rmaps-bar__back,
.rmaps-bar__filters {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none !important;
}
.rmaps-bar__back { color: #fff !important; background: transparent; overflow: hidden; text-overflow: ellipsis; }
.rmaps-bar__back:hover { background: rgba(255, 255, 255, .1); }
.rmaps-bar__back span { overflow: hidden; text-overflow: ellipsis; }
.rmaps-bar__filters { background: var(--rmaps-teal); color: var(--rmaps-deep); }
.rmaps-bar__filters:hover { background: #1db39c; }
.rmaps-bar__count {
	min-width: 26px;
	padding: 4px 7px;
	border-radius: 999px;
	background: var(--rmaps-deep);
	color: #fff;
	font-size: 12px;
	text-align: center;
}
.rmaps-bar :focus-visible { outline-color: #fff; }
/* Moved beside a floating widget (e.g. the chat launcher): placed by the script; squeezed = back link becomes an icon. */
.rmaps-bar.is-placed { transform: none; }
.rmaps-bar.is-tight .rmaps-bar__back span {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.rmaps-bar.is-tight .rmaps-bar__back { padding-inline: 14px; }
[dir="rtl"] .rmaps-ico--flip, .rtl .rmaps-ico--flip { transform: scaleX(-1); }

/* ---------- Desktop: floating side panel ---------- */
@media (min-width: 900px) {
	.rmaps-panel {
		top: 16px;
		bottom: 92px;
		inset-inline-start: 16px;
		inset-inline-end: auto;
		width: 380px;
		max-height: none;
		border-radius: var(--rmaps-radius);
		padding: 20px 20px 0;
	}
	.rmaps-panel__grip { display: none; }
	.rmaps-discover[data-panel="closed"] .rmaps-panel { transform: translateX(calc(-100% - 24px)); }
	.rmaps-discover[dir="rtl"][data-panel="closed"] .rmaps-panel { transform: translateX(calc(100% + 24px)); }
	.rmaps-list { margin-inline: -20px; padding-inline: 12px; }
	.rmaps-panel__title { font-size: 26px; }
}

/* ---------- Markers, clusters, popups ---------- */
.rmaps-pin { background: none; border: 0; }
.rmaps-pin span {
	position: relative;
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 50% 50% 50% 0;
	background: var(--rmaps-teal, #22CCB2);
	border: 3px solid #0C332F;
	transform: rotate(-45deg);
	box-shadow: 0 2px 6px rgba(12, 51, 47, .35);
}
.rmaps-pin span::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #0C332F;
}
.rmaps-pin.is-active span { background: #0C332F; border-color: #22CCB2; }
.rmaps-pin.is-active span::after { background: #22CCB2; }
.rmaps-cluster { background: none; border: 0; }
.rmaps-cluster span {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #0C332F;
	color: #fff;
	font: 700 14px/1 system-ui, sans-serif;
	border: 4px solid rgba(34, 204, 178, .85);
	box-shadow: 0 0 0 6px rgba(34, 204, 178, .25);
}
.rmaps-card { width: 260px; max-width: 100%; font-family: inherit; color: var(--rmaps-ink, #10201E); }
.rmaps-card__media { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #E9FAF7; }
.rmaps-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rmaps-card__body { padding-top: 10px; }
.rmaps-card__t { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; }
.rmaps-card__t a { color: #0C332F !important; text-decoration: none; }
.rmaps-card__m { margin: 4px 0 0; font-size: 13px; color: #4A615E; }
.rmaps-card__p { margin: 8px 0 0; font-size: 14px; color: #10201E; }
.rmaps-card__p strong { font-size: 16px; color: #0C332F; }
.rmaps-card__p del { color: #4A615E; margin-inline-end: 4px; }
.rmaps-card__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 10px;
	border-radius: 999px;
	background: #22CCB2;
	color: #0C332F !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
}
.rmaps-card__cta:hover { background: #1db39c; }
.rmaps-discover .leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; box-shadow: var(--rmaps-shadow); }
.rmaps-discover .leaflet-popup-content { margin: 42px 12px 12px; width: auto !important; } /* the × sits above the image */
.rmaps-discover .leaflet-container a.leaflet-popup-close-button { top: 4px; right: 6px; }
.rmaps-discover .leaflet-container { font-family: inherit; }
.rmaps-discover .leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 22px; line-height: 30px; color: #0C332F; }
/* Phone: the open filter sheet goes above floating chat buttons so nothing in the list is covered. */
.rmaps-discover.is-sheet-open { z-index: 2147483000; }
.rmaps-discover.is-sheet-open:not(.is-fullscreen) { position: relative; }
.rmaps-discover .gm-style .gm-style-iw-c { border-radius: 16px; padding: 12px !important; }
.rmaps-discover .gm-style .gm-style-iw-d { overflow: auto !important; }
@media (prefers-reduced-motion: reduce) {
	.rmaps-panel { transition: none; }
}
.rmaps-discover .screen-reader-text:not(:focus) {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
/* Mixed English/Arabic text (e.g. an English title on an Arabic page, prices with an RTL currency) keeps its own
 * reading order whatever the page direction. */
.rmaps-count,
.rmaps-item__t,
.rmaps-item__m,
.rmaps-card__t,
.rmaps-card__m,
.rmaps-card__p,
.rmaps-panel__title,
.rmaps-panel__intro,
.rmaps-bar__back span { unicode-bidi: plaintext; }

/* ---------- 1.0.4: phone = the chosen tour as a card docked above the bar (nothing opens at the pin first) ---------- */
.rmaps-dock {
	position: absolute;
	z-index: 5;
	inset-inline: 12px;
	bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	max-width: 520px;
	margin-inline: auto;
	padding: 10px;
	padding-inline-end: 44px;
	background: #fff;
	border-radius: 18px;
	box-shadow: var(--rmaps-shadow);
	animation: rmaps-dock-in .18s ease-out;
}
.rmaps-dock[hidden] { display: none; }
.rmaps-dock .rmaps-card { width: auto; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; }
.rmaps-dock .rmaps-card > :only-child { grid-column: 1 / -1; }
.rmaps-dock .rmaps-card__media { aspect-ratio: 1 / 1; }
.rmaps-dock .rmaps-card__body { padding-top: 0; }
.rmaps-dock .rmaps-card__t { font-size: 15px; }
.rmaps-dock .rmaps-card__m { margin-top: 2px; }
.rmaps-dock .rmaps-card__p { margin-top: 4px; }
.rmaps-dock .rmaps-card__cta { min-height: 40px; margin-top: 8px; }
.rmaps-dock__close {
	position: absolute;
	top: 4px;
	inset-inline-end: 4px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--rmaps-deep);
}
.rmaps-dock__close:hover { background: var(--rmaps-soft); }
@keyframes rmaps-dock-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rmaps-dock { animation: none; } }
@media (min-width: 900px) { .rmaps-dock { display: none !important; } }
/* Titles in the brand display font (the theme's global heading font is a serif meant for block pages). */
.rmaps-panel__title,
.rmaps-card__t { font-family: var(--rh-font-display, inherit); }
