/* דף מאיה — מובייל-פירסט, נפרש לרוחב בדסקטופ. */

:root {
	--ks-sand: #f6efe6;
	--ks-cream: #fffdfa;
	--ks-ink: #1f1d1b;
	--ks-mute: #6d655c;
	--ks-teal: #1c7d8a;
	--ks-pink: #f6c9cd;
	--ks-pink-deep: #e79aa2;
	--ks-line: #e7ddd0;
	--ks-radius: 16px;
	--ks-shadow: 0 2px 14px rgba(60, 45, 30, .07);
}

body.ks-maya {
	margin: 0;
	background: var(--ks-sand);
	color: var(--ks-ink);
	font-family: "Heebo", "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

body.ks-maya * { box-sizing: border-box; }
body.ks-maya img { max-width: 100%; height: auto; display: block; }

.ks-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 28px 16px 48px;
}

/* ---------- Hero ---------- */

.ks-hero { text-align: center; max-width: 560px; margin: 0 auto; }

.ks-hero__img {
	width: 108px;
	height: 108px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 16px;
	border: 3px solid var(--ks-cream);
	box-shadow: var(--ks-shadow);
}

.ks-hero__title { margin: 0 0 8px; font-size: 25px; font-weight: 700; line-height: 1.3; }
.ks-hero__sub { margin: 0 0 22px; color: var(--ks-mute); font-size: 16px; }

/* ---------- CTA ---------- */

.ks-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 16px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--ks-pink);
	color: var(--ks-ink);
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(231, 154, 162, .35);
	transition: transform .15s ease, background .15s ease;
}

.ks-cta:hover { background: var(--ks-pink-deep); }
.ks-cta:active { transform: scale(.98); }

/* ---------- מקטעים ---------- */

.ks-sec { margin-top: 36px; }

.ks-sec__title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	text-align: center;
}

/* ---------- רשת הכרטיסים ---------- */

.ks-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

@media (min-width: 620px) { .ks-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px) { .ks-grid { grid-template-columns: repeat(4, 1fr); } }

.ks-card2 {
	display: flex;
	flex-direction: column;
	background: var(--ks-cream);
	border: 1px solid var(--ks-line);
	border-radius: var(--ks-radius);
	box-shadow: var(--ks-shadow);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}

.ks-card2:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(60, 45, 30, .13); }
.ks-card2:active { transform: scale(.99); }

.ks-card2__media { position: relative; display: block; }

.ks-card2__media img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* דירוג ומחיר הם מה שהופך "שם מלון" ל"החלטה". */
.ks-badge {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	padding: 3px 8px;
	border-radius: 7px;
	background: rgba(28, 125, 138, .95);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.ks-card2__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 11px 12px 13px;
	flex: 1;
}

.ks-card2__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ks-card2__price { color: var(--ks-mute); font-size: 13px; }

.ks-card2__go {
	margin-top: auto;
	padding-top: 6px;
	color: var(--ks-teal);
	font-size: 13px;
	font-weight: 700;
}

/* ---------- רצועת הסרטונים ---------- */

.ks-reel {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.ks-reel::-webkit-scrollbar { height: 6px; }
.ks-reel::-webkit-scrollbar-thumb { background: var(--ks-line); border-radius: 3px; }

.ks-reel__item {
	position: relative;
	flex: 0 0 auto;
	width: 168px;
	aspect-ratio: 9 / 16;
	border-radius: var(--ks-radius);
	overflow: hidden;
	background: #000;
	cursor: pointer;
	scroll-snap-align: start;
	box-shadow: var(--ks-shadow);
}

.ks-reel__cover { width: 100%; height: 100%; object-fit: cover; opacity: .92; }

.ks-reel__item iframe,
.ks-reel__item video {
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.ks-reel__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
	pointer-events: none;
}

.ks-reel__title {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 18px 10px 9px;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	pointer-events: none;
}

.ks-reel__item.is-playing .ks-reel__play,
.ks-reel__item.is-playing .ks-reel__title { display: none; }

/* ---------- כרטיס הסרטון האחרון ---------- */

.ks-card {
	display: block;
	max-width: 560px;
	margin: 28px auto 0;
	padding: 18px;
	background: var(--ks-cream);
	border: 1px solid var(--ks-line);
	border-radius: var(--ks-radius);
	box-shadow: var(--ks-shadow);
	text-decoration: none;
	color: inherit;
}

.ks-eyebrow { display: block; margin-bottom: 10px; color: var(--ks-mute); font-size: 13px; font-weight: 600; }

.ks-video__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 12px;
}

.ks-video__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.ks-video__text { margin: 0 0 12px; color: var(--ks-mute); font-size: 15px; }
.ks-link { color: var(--ks-teal); font-weight: 700; text-decoration: none; font-size: 15px; }
.ks-link:hover { text-decoration: underline; }

/* ---------- קיצורי דרך ---------- */

.ks-quick {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	max-width: 560px;
	margin: 34px auto 0;
}

.ks-quick__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 16px 8px;
	background: var(--ks-cream);
	border: 1px solid var(--ks-line);
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	box-shadow: var(--ks-shadow);
}

.ks-quick__icon { font-size: 22px; }

/* ---------- Footer ---------- */

.ks-foot { margin-top: 40px; text-align: center; }
.ks-foot__brand { margin: 0; font-size: 17px; font-weight: 700; }
.ks-foot__tag { margin: 4px 0 0; color: var(--ks-mute); font-size: 14px; }
.ks-foot__note { margin: 14px 0 0; color: var(--ks-mute); font-size: 12px; opacity: .8; }

/* ---------- השיחה עם מאיה ---------- */

.ks-chat { position: fixed; inset: 0; z-index: 99999; }
.ks-chat[hidden] { display: none !important; }

.ks-chat__scrim { position: absolute; inset: 0; background: rgba(31, 29, 27, .45); }

.ks-chat__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 400px;
	background: #ece4d9;
	box-shadow: 0 0 40px rgba(0, 0, 0, .25);
	animation: ks-slide .24s ease;
}

@keyframes ks-slide { from { transform: translateX(-16px); opacity: 0; } }

@media (max-width: 560px) {
	.ks-chat__panel { max-width: none; animation: ks-up .24s ease; }
	@keyframes ks-up { from { transform: translateY(20px); opacity: 0; } }
}

.ks-chat__hd {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 12px 14px;
	background: var(--ks-teal);
	color: #fff;
	flex: 0 0 auto;
}

.ks-chat__ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ks-chat__who { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.ks-chat__who strong { font-size: 16px; }
.ks-chat__who small { font-size: 12px; opacity: .85; }

.ks-chat__x {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.ks-chat__msgs {
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ks-msg {
	max-width: 82%;
	padding: 9px 12px;
	border-radius: 14px;
	font-size: 15px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

.ks-msg--bot { align-self: flex-start; background: #fff; border-start-start-radius: 4px; }
.ks-msg--me { align-self: flex-end; background: #d6f1c8; border-start-end-radius: 4px; }

.ks-msg__note {
	align-self: center;
	max-width: 90%;
	color: var(--ks-mute);
	font-size: 12px;
	text-align: center;
}

.ks-chat__typing {
	display: flex;
	gap: 4px;
	padding: 0 22px 8px;
	flex: 0 0 auto;
}

.ks-chat__typing[hidden] { display: none !important; }

.ks-chat__typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ks-mute);
	animation: ks-blink 1.2s infinite;
}

.ks-chat__typing span:nth-child(2) { animation-delay: .2s; }
.ks-chat__typing span:nth-child(3) { animation-delay: .4s; }

@keyframes ks-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.ks-chat__form {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	background: #ded5c9;
	flex: 0 0 auto;
}

.ks-chat__form input {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 16px; /* מתחת ל-16px ספארי מזייף זום בפוקוס. */
}

.ks-chat__form input:focus { outline: 2px solid var(--ks-teal); }

.ks-chat__form button {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: var(--ks-teal);
	color: #fff;
	font-size: 19px;
	cursor: pointer;
}

/* ההצעות של מאיה נכנסות לרשת בדף — לכן היא נשארת פתוחה בצד. */
@media (min-width: 900px) {
	body.ks-maya.ks-chat-on .ks-wrap {
		margin-inline-start: 400px;
		max-width: calc(1120px - 200px);
	}
	body.ks-maya.ks-chat-on .ks-chat__scrim { display: none; }
}
