/* The Travel Guide — floating site assistant (v2.0.6)
   Brand: navy #102A43 / teal #167D8D / ivory #F8F6F0 / gold #D6AD60 / charcoal #263238 */

.tg-assistant-btn {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 120;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: 2px solid #D6AD60;
	background: #102A43;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(16, 42, 67, .35);
	transition: transform .2s ease, background .2s ease;
}
.tg-assistant-btn:hover { background: #167D8D; transform: translateY(-2px); }
.tg-assistant-btn:focus-visible { outline: 3px solid #D6AD60; outline-offset: 2px; }
.tg-assistant-btn svg { width: 28px; height: 28px; }
.tg-assistant-btn .tg-assistant-close-icon { display: none; }
.tg-assistant-btn[aria-expanded="true"] .tg-assistant-open-icon { display: none; }
.tg-assistant-btn[aria-expanded="true"] .tg-assistant-close-icon { display: block; }

/* Keep the back-to-top button clear of the assistant button. */
.tg-back-to-top { bottom: 6.25rem; }

.tg-assistant-panel {
	position: fixed;
	right: 1.25rem;
	bottom: 6.75rem;
	z-index: 119;
	width: min(380px, calc(100vw - 2rem));
	max-height: min(600px, calc(100dvh - 9rem));
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(16, 42, 67, .35);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.tg-assistant-panel.tg-open { opacity: 1; visibility: visible; transform: translateY(0); }

.tg-assistant-head {
	background: #102A43;
	color: #fff;
	padding: .9rem 1.1rem;
	display: flex;
	align-items: center;
	gap: .7rem;
}
.tg-assistant-avatar {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: #167D8D;
	border: 2px solid #D6AD60;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.15rem;
	flex: 0 0 auto;
}
.tg-assistant-head h2 {
	margin: 0;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.08rem;
	line-height: 1.2;
	color: #fff;
}
.tg-assistant-head p { margin: .1rem 0 0; font-size: .78rem; color: #cfd8dc; }
.tg-assistant-close {
	margin-left: auto;
	background: none;
	border: 0;
	color: #fff;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	padding: .25rem .4rem;
	border-radius: 6px;
}
.tg-assistant-close:hover { background: rgba(255, 255, 255, .15); }

.tg-assistant-messages {
	padding: 1rem;
	overflow-y: auto;
	background: #F8F6F0;
	display: flex;
	flex-direction: column;
	gap: .6rem;
	flex: 1 1 auto;
}
.tg-msg {
	max-width: 88%;
	padding: .6rem .8rem;
	border-radius: 14px;
	font-size: .9rem;
	line-height: 1.5;
	overflow-wrap: break-word;
}
.tg-msg-bot {
	background: #fff;
	color: #263238;
	border: 1px solid #e3ded2;
	border-bottom-left-radius: 4px;
	align-self: flex-start;
}
.tg-msg-user {
	background: #167D8D;
	color: #fff;
	border-bottom-right-radius: 4px;
	align-self: flex-end;
}
.tg-msg p { margin: 0 0 .45rem; }
.tg-msg p:last-child { margin-bottom: 0; }
.tg-msg-links { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.tg-msg-link {
	display: block;
	padding: .5rem .7rem;
	background: #F8F6F0;
	border: 1px solid #D6AD60;
	border-radius: 10px;
	color: #102A43;
	text-decoration: none;
	font-weight: 600;
	font-size: .85rem;
	transition: background .15s ease;
}
.tg-msg-link:hover { background: #fdf3dd; color: #102A43; }
.tg-msg-link small { display: block; font-weight: 400; color: #5b6b73; font-size: .76rem; }

.tg-msg-typing { display: inline-flex; gap: 4px; padding: .7rem .85rem; }
.tg-msg-typing span {
	width: 7px; height: 7px; border-radius: 50%;
	background: #167D8D;
	animation: tg-typing 1.1s infinite ease-in-out;
}
.tg-msg-typing span:nth-child(2) { animation-delay: .15s; }
.tg-msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes tg-typing {
	0%, 60%, 100% { transform: translateY(0); opacity: .45; }
	30% { transform: translateY(-4px); opacity: 1; }
}

.tg-assistant-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	padding: .6rem 1rem 0;
	background: #F8F6F0;
}
.tg-chip {
	border: 1px solid #167D8D;
	background: #fff;
	color: #167D8D;
	border-radius: 999px;
	padding: .32rem .75rem;
	font-size: .8rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.tg-chip:hover { background: #167D8D; color: #fff; }

.tg-assistant-form {
	display: flex;
	gap: .5rem;
	padding: .7rem 1rem 1rem;
	background: #F8F6F0;
}
.tg-assistant-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid #cfd8dc;
	border-radius: 999px;
	padding: .6rem .95rem;
	font-size: .9rem;
	font-family: inherit;
	background: #fff;
	color: #263238;
}
.tg-assistant-input:focus { outline: 2px solid #167D8D; outline-offset: 0; border-color: #167D8D; }
.tg-assistant-send {
	flex: 0 0 auto;
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 0;
	background: #167D8D;
	color: #fff;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background .15s ease;
}
.tg-assistant-send:hover { background: #102A43; }
.tg-assistant-send svg { width: 19px; height: 19px; }

@media (max-width: 480px) {
	.tg-assistant-panel {
		right: .75rem;
		bottom: 6.5rem;
		width: calc(100vw - 1.5rem);
	}
	.tg-assistant-btn { right: .9rem; bottom: .9rem; }
	.tg-back-to-top { bottom: 5.9rem; }
}

@media (prefers-reduced-motion: reduce) {
	.tg-assistant-panel, .tg-assistant-btn { transition: none; }
	.tg-msg-typing span { animation: none; }
}

@media print {
	.tg-assistant-btn, .tg-assistant-panel { display: none !important; }
}
