/* Nomad Horizons Safari AI Chatbot — front-end styles */

.nhaf-widget {
	--nhaf-primary: #0b6b3a;
	--nhaf-secondary: #f4a300;
	--nhaf-text: #1a1a1a;
	position: fixed;
	z-index: 99990;
}

#nhaf-chatbot-root.nhaf-pos-bottom-right { right: 20px; bottom: 20px; }
#nhaf-chatbot-root.nhaf-pos-bottom-left  { left: 20px; bottom: 20px; }

/* Trigger bubble */
.nhaf-chatbot-trigger {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	background: var(--nhaf-primary);
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.25 );
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nhaf-chatbot-trigger:hover { transform: scale( 1.06 ); }
.nhaf-chatbot-trigger.nhaf-hidden { display: none; }

.nhaf-inline-trigger {
	width: auto;
	height: auto;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 600;
}

/* Chat window */
.nhaf-window {
	position: absolute;
	bottom: 74px;
	right: 0;
	width: 370px;
	max-width: calc( 100vw - 32px );
	height: 560px;
	max-height: calc( 100vh - 110px );
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.28 );
	display: none;
	flex-direction: column;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--nhaf-text);
}
.nhaf-pos-bottom-left .nhaf-window { left: 0; right: auto; }
.nhaf-window.nhaf-open { display: flex; }

.nhaf-embedded { position: relative; }
.nhaf-embedded .nhaf-window {
	position: relative;
	bottom: auto;
	right: auto;
	width: 100%;
	height: 100%;
	max-height: none;
	box-shadow: 0 2px 14px rgba( 0, 0, 0, 0.12 );
}

/* Header */
.nhaf-header {
	background: var(--nhaf-primary);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.nhaf-title { font-weight: 700; font-size: 15px; }
.nhaf-header-actions { display: flex; gap: 6px; }
.nhaf-icon-btn {
	background: rgba( 255, 255, 255, 0.18 );
	border: none;
	color: #fff;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
}
.nhaf-icon-btn:hover { background: rgba( 255, 255, 255, 0.32 ); }

/* Messages */
.nhaf-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: #f7f7f5;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.nhaf-msg {
	max-width: 84%;
	padding: 10px 13px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
	word-wrap: break-word;
}
.nhaf-msg p { margin: 0 0 8px; }
.nhaf-msg p:last-child { margin-bottom: 0; }
.nhaf-msg a { color: var(--nhaf-primary); font-weight: 600; }
.nhaf-msg-bot {
	background: #fff;
	align-self: flex-start;
	border: 1px solid #ececec;
	border-bottom-left-radius: 4px;
}
.nhaf-msg-user {
	background: var(--nhaf-primary);
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}
.nhaf-msg-user a { color: #fff; text-decoration: underline; }

/* Typing indicator */
.nhaf-typing { display: flex; gap: 4px; align-items: center; }
.nhaf-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #bbb;
	animation: nhaf-blink 1.2s infinite ease-in-out;
}
.nhaf-typing span:nth-child( 2 ) { animation-delay: 0.2s; }
.nhaf-typing span:nth-child( 3 ) { animation-delay: 0.4s; }
@keyframes nhaf-blink {
	0%, 80%, 100% { opacity: 0.3; }
	40% { opacity: 1; }
}

/* Input */
.nhaf-input-row {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #eee;
	background: #fff;
}
.nhaf-input {
	flex: 1;
	resize: none;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 14px;
	font-family: inherit;
	max-height: 100px;
	outline: none;
}
.nhaf-input:focus { border-color: var(--nhaf-primary); }
.nhaf-send {
	background: var(--nhaf-secondary);
	color: #1a1a1a;
	border: none;
	border-radius: 10px;
	padding: 0 16px;
	font-weight: 700;
	cursor: pointer;
	font-size: 14px;
}
.nhaf-send:hover { filter: brightness( 0.95 ); }

/* Booking form */
.nhaf-form-mount { background: #fff; }
.nhaf-booking-form {
	padding: 14px 16px;
	border-top: 1px solid #eee;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fbfbf9;
}
.nhaf-form-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.nhaf-booking-form input {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
	font-family: inherit;
}
.nhaf-booking-form input:focus { border-color: var(--nhaf-primary); outline: none; }
.nhaf-form-submit {
	background: var(--nhaf-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 9px;
	font-weight: 700;
	cursor: pointer;
}
.nhaf-form-msg { font-size: 12px; color: #c0392b; min-height: 14px; }
.nhaf-cta {
	display: inline-block;
	margin-top: 8px;
	background: var(--nhaf-secondary);
	color: #1a1a1a !important;
	padding: 8px 14px;
	border-radius: 8px;
	text-decoration: none !important;
	font-weight: 700;
}

/* Mobile full screen */
@media ( max-width: 480px ) {
	.nhaf-window.nhaf-open {
		position: fixed;
		inset: 0;
		width: 100vw;
		height: 100vh;
		max-width: none;
		max-height: none;
		border-radius: 0;
	}
	#nhaf-chatbot-root .nhaf-chatbot-trigger { z-index: 99991; }
}

/* Quick replies */
.nhaf-quick-replies {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 4px 0 8px;
}

.nhaf-quick-reply {
	border: 1px solid var(--nhaf-primary, #0b6b3a);
	color: var(--nhaf-primary, #0b6b3a);
	background: #fff;
	border-radius: 16px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.nhaf-quick-reply:hover,
.nhaf-quick-reply:focus {
	background: var(--nhaf-primary, #0b6b3a);
	color: #fff;
	outline: none;
}

/* Lists inside bot messages */
.nhaf-msg-bot ul {
	margin: 6px 0 6px 18px;
	padding: 0;
}

.nhaf-msg-bot li {
	margin: 2px 0;
}
