/* ============================================================
   Bookably Guest Agent — Chat UI
   ============================================================ */

/* Soft-keyboard inset — JS sets this from window.visualViewport so the chat
   container can shrink to make room for the on-screen keyboard. Defaults to
   0 on desktop and on platforms where the layout viewport already shrinks. */
:root {
	--bga-kb-inset: 0px;
}

/* ---- Wrapper (holds chat + bars + fullscreen toggle) ---- */

/* Inline style="visibility:hidden" on the wrapper prevents flash of
   unstyled content. JS adds .bga-ready after init to show it. */
.bga-chat-wrapper {
	position: relative;
}

.bga-chat-wrapper.bga-ready {
	visibility: visible !important;
}

/* ============================================================
   Hero prompt (rendered by [bookably_chat_prompt] shortcode)
   ============================================================ */

/* Inline style="visibility:hidden" prevents flash. This rule shows it
   once the CSS file has loaded (meaning styles are ready). */
.bga-hero {
	visibility: visible !important;
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a1a;
	box-sizing: border-box;
	text-align: center;
}

.bga-hero__title {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
}

.bga-hero__subtitle {
	margin: 0 0 18px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	color: #6b7280;
}

.bga-hero__form-wrap {
	position: relative;
}
.bga-hero__help {
	position: absolute;
	top: -10px;
	right: -10px;
	z-index: 1;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ffffff;
	border: 1.5px solid #d1d5db;
	color: #9ca3af;
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.bga-hero__help:hover {
	border-color: #1097c5;
	color: #1097c5;
	box-shadow: 0 1px 4px rgba(16, 151, 197, 0.2);
}

.bga-hero__divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 20% 16px;
}
.bga-hero__divider::before,
.bga-hero__divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #d1d5db;
}
.bga-hero__divider span {
	font-size: 13px;
	font-weight: 500;
	color: #9ca3af;
	text-transform: lowercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.bga-hero__form {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 14px;
	padding: 8px 8px 8px 16px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.bga-hero__form:focus-within {
	border-color: #1097c5;
	box-shadow: 0 6px 24px rgba(16, 151, 197, 0.18);
}

.bga-hero__input {
	flex: 1;
	resize: none;
	border: none;
	outline: none;
	background: transparent;
	padding: 10px 4px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	color: #111827;
	field-sizing: content;
	max-height: 140px;
	overflow-y: hidden;
}

.bga-hero__input::placeholder {
	color: #9ca3af;
}

.bga-hero__submit {
	flex-shrink: 0;
	align-self: center;
	padding: 10px 22px;
	border: none;
	border-radius: 10px;
	background: #1097c5;
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.bga-hero__submit:hover {
	background: #0d7fa8;
}

@media (max-width: 600px) {
	.bga-hero {
		padding: 18px 14px;
	}
	.bga-hero__title {
		font-size: 22px;
	}
	.bga-hero__subtitle {
		font-size: 14px;
	}
	.bga-hero__form {
		flex-direction: column;
		align-items: stretch;
		padding: 10px;
		gap: 8px;
	}
	.bga-hero__input {
		font-size: 16px; /* prevents iOS zoom on focus */
		min-height: 56px; /* ~2 lines on mobile */
	}
	.bga-hero__submit {
		align-self: stretch;
		padding: 14px 22px;
		font-size: 16px;
	}
}

/* Transient toast at the top of the chat — used for the email-verification
   welcome message. JS adds .bga-toast--visible after a reflow to trigger
   the slide-in transition, then removes it after ~4.5s. */
.bga-toast {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -120%);
	z-index: 100;
	padding: 11px 22px;
	border-radius: 24px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	transition: transform 0.35s ease;
	white-space: nowrap;
	pointer-events: none;
	max-width: calc(100% - 24px);
	overflow: hidden;
	text-overflow: ellipsis;
}

.bga-toast--success {
	background: #10b981;
	color: #ffffff;
}

.bga-toast--visible {
	transform: translate(-50%, 16px);
}

/* Resend-verification link inside the auth-form error message. */
.bga-auth-resend {
	display: inline-block;
	color: #1097c5;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	margin-left: 4px;
}

.bga-auth-resend:hover {
	color: #0d7fa8;
}

.bga-chat-wrapper.bga-fullscreen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: calc(100vh - var(--bga-kb-inset));
	height: calc(100dvh - var(--bga-kb-inset)); /* dynamic viewport height for mobile browsers */
	z-index: 99999;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.bga-chat-wrapper.bga-fullscreen .bga-chat-container {
	flex: 1;
	height: auto !important;
	min-height: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.bga-chat-wrapper.bga-fullscreen .bga-trip-bar {
	border-radius: 0;
}

.bga-chat-wrapper.bga-fullscreen .bga-notifications {
	border-radius: 0;
}

/* Hide third-party chat widgets (e.g. Tawk.to) when fullscreen */
.bga-chat-wrapper.bga-fullscreen ~ iframe[src*="tawk"],
.bga-chat-wrapper.bga-fullscreen ~ div[class*="tawk"],
body.bga-fullscreen-active iframe[src*="tawk"],
body.bga-fullscreen-active div[class*="tawk"],
body.bga-fullscreen-active #tawk-bubble-container,
body.bga-fullscreen-active .tawk-min-container {
	display: none !important;
}

/* ---- Fullscreen toggle button ---- */

.bga-fullscreen-toggle {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 10;
	width: 34px;
	height: 34px;
	border: 1px solid #e0e4ea;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.9);
	color: #666;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
	padding: 0;
}

.bga-fullscreen-toggle:hover {
	background: #ffffff;
	color: #333;
	border-color: #ccc;
}

.bga-fullscreen-toggle__collapse {
	display: none;
}

.bga-chat-wrapper.bga-fullscreen .bga-fullscreen-toggle__expand {
	display: none;
}

.bga-chat-wrapper.bga-fullscreen .bga-fullscreen-toggle__collapse {
	display: block;
}

.bga-chat-container {
	display: flex;
	flex-direction: column;
	height: 75vh;
	min-height: 420px;
	width: 100%;
	border: 1px solid #e0e4ea;
	border-radius: 14px;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	background: #ffffff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ---- Message list ---- */

.bga-messages {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
}

/* Non-message UI elements (cards, forms, payment, detail, nearby map)
   appended directly inside .bga-messages align with the agent bubble's
   left edge (34px = avatar width + gap). */
.bga-messages > :not(.bga-message):not(.bga-quick-actions):not(.bga-trip-bar) {
	margin-left: 34px;
}

.bga-message {
	display: flex;
	align-items: flex-end;
}

.bga-message--user {
	justify-content: flex-end;
}

.bga-message--system {
	justify-content: center;
}

.bga-system-notification {
	background: #f0f7ff;
	border: 1px solid #b8d4f0;
	border-radius: 10px;
	padding: 12px 16px;
	max-width: 420px;
	text-align: center;
}

.bga-system-notification__text {
	font-size: 14px;
	color: #1a1a1a;
	margin-bottom: 10px;
}

.bga-system-notification__actions {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.bga-system-notification__btn {
	padding: 6px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: none;
}

.bga-system-notification__btn--primary {
	background: #1097c5;
	color: #fff;
}

.bga-system-notification__btn--primary:hover {
	background: #0d7fa8;
}

.bga-system-notification__btn--secondary {
	background: transparent;
	color: #666;
	border: 1px solid #ccc;
}

.bga-system-notification__btn--secondary:hover {
	background: #f5f5f5;
}

/* Unread thread row inside notification */
.bga-unread-thread {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
}
.bga-unread-thread + .bga-unread-thread {
	border-top: 1px solid #d4e4f0;
}
.bga-unread-thread__host-photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.bga-unread-thread__info {
	flex: 1;
	min-width: 0;
}
.bga-unread-thread__host-name {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 6px;
}
.bga-unread-thread__property {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #555;
	background: #e8f0f8;
	border-radius: 6px;
	padding: 6px 8px;
}
.bga-unread-thread__property-photo {
	width: 48px;
	height: 36px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
}
.bga-unread-thread__property-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
}

.bga-message--assistant {
	justify-content: flex-start;
	position: relative;
	padding-left: 34px;
}

.bga-message--assistant::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	width: 30px;
	height: 30px;
	background: url('/wp-content/uploads/2025/07/bookably-logo-pin.png') no-repeat center / contain;
}

/* ---- Bubbles ---- */

.bga-bubble {
	max-width: 72%;
	padding: 10px 14px;
	border-radius: 18px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
}

.bga-message--user .bga-bubble {
	background: #1097c5;
	color: #ffffff;
	border-bottom-right-radius: 4px;
}

.bga-message--assistant .bga-bubble {
	background: #f1f3f6;
	color: #111827;
	border-bottom-left-radius: 4px;
}

/* ---- Quick-action chips ---- */

.bga-quick-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	padding: 8px 0 12px 34px;
	max-width: 980px;
}

/* 3 per row on desktop — produces a clean 2 × 3 layout for 6 cards.
   Wrapper + per-card caps keep them a comfortable entry-point size. */
.bga-quick-card {
	flex: 0 0 calc(33.333% - 8px);
	min-width: 0;
	max-width: 320px;
}

.bga-quick-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px;
	border: 1px solid #d8dde5;
	border-radius: 14px;
	background: #fafbfd;
	color: #1a1a1a;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.bga-quick-card:hover {
	transform: translateY(-2px);
	border-color: #1097c5;
	box-shadow: 0 6px 14px rgba(16, 151, 197, 0.12);
}

/* Coloured rounded-square icon container — accent set per category. */
.bga-quick-card__icon-wrap {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
	background: #e6f0f7; /* fallback */
}

.bga-quick-card__icon {
	font-size: 1.45rem;
	line-height: 1;
}

.bga-quick-card__title {
	font-size: 0.98rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.25;
	margin-top: 2px;
}

.bga-quick-card__desc {
	font-size: 0.78rem;
	color: #6b7280;
	line-height: 1.5;
	margin-top: 4px;
}

/* Per-category accent fills for the icon container. */
.bga-quick-card--teal   .bga-quick-card__icon-wrap { background: #ccfbf1; }
.bga-quick-card--coral  .bga-quick-card__icon-wrap { background: #ffe4e6; }
.bga-quick-card--amber  .bga-quick-card__icon-wrap { background: #fef3c7; }
.bga-quick-card--blue   .bga-quick-card__icon-wrap { background: #dbeafe; }
.bga-quick-card--indigo .bga-quick-card__icon-wrap { background: #e0e7ff; }
.bga-quick-card--pink   .bga-quick-card__icon-wrap { background: #fce7f3; }
.bga-quick-card--violet .bga-quick-card__icon-wrap { background: #ede9fe; }
.bga-quick-card--green  .bga-quick-card__icon-wrap { background: #d1fae5; }

/* Tablet: 2 per row (partial row centred). */
@media (max-width: 900px) and (min-width: 601px) {
	.bga-quick-actions {
		padding-left: 16px;
	}
	.bga-quick-card {
		flex: 0 0 calc(50% - 6px);
	}
}

/* Phone: revert cards to compact pills.
   Hides description, places icon inline next to title, smaller padding,
   wraps multiple pills per row. */
@media (max-width: 600px) {
	.bga-quick-actions {
		justify-content: center;
		gap: 6px;
		padding: 4px 12px 8px 12px;
	}
	.bga-quick-card {
		flex: 0 0 auto;
		flex-direction: row;
		align-items: center;
		gap: 6px;
		padding: 7px 12px;
		border-radius: 18px;
		background: #ffffff;
		box-shadow: none;
	}
	.bga-quick-card:hover {
		transform: none;
		box-shadow: none;
	}
	.bga-quick-card__icon-wrap {
		width: auto;
		height: auto;
		background: transparent !important;
		margin: 0;
		border-radius: 0;
	}
	.bga-quick-card__icon {
		font-size: 1rem;
	}
	.bga-quick-card__title {
		font-size: 0.8rem;
		font-weight: 600;
		margin-top: 0;
	}
	.bga-quick-card__desc {
		display: none;
	}
}

/* ---- Inline option buttons (select/radio attribute questions) ---- */

.bga-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px 0 4px 0;
	flex-basis: 100%;
}

.bga-message:has(.bga-options) {
	flex-wrap: wrap;
}

.bga-option-btn {
	display: block;
	width: fit-content;
	padding: 8px 16px;
	border: 1.5px solid #1097c5;
	border-radius: 20px;
	background: #ffffff;
	color: #1097c5;
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	white-space: normal;
	text-align: left;
	line-height: 1.3;
}

.bga-option-btn:hover {
	background: #1097c5;
	color: #ffffff;
}

.bga-option-btn--selected {
	background: #1097c5;
	color: #ffffff;
	border-color: #1097c5;
}

.bga-option-btn--disabled {
	opacity: 0.5;
	cursor: default;
	pointer-events: none;
}

/* ---- Inline auth form ---- */

.bga-auth-form {
	width: 300px;
	padding: 16px;
	background: #ffffff;
	border: 1px solid #e0e4ea;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Social login buttons */

.bga-auth-social {
	margin-bottom: 4px;
}

.bga-social-btn {
	display: block;
	width: 100%;
	padding: 10px 0;
	margin-bottom: 8px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
	color: #374151;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.bga-social-btn:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.bga-social-btn--google {
	border-color: #4285f4;
	color: #374151;
}

.bga-social-btn--google:hover {
	background: #f0f4ff;
}

.bga-social-btn--facebook {
	border-color: #1877f2;
	color: #374151;
}

.bga-social-btn--facebook:hover {
	background: #f0f4ff;
}

.bga-auth-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 12px 0;
	color: #9ca3af;
	font-size: 12px;
}

.bga-auth-divider::before,
.bga-auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e0e4ea;
}

.bga-auth-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 14px;
	border-bottom: 2px solid #e0e4ea;
}

.bga-auth-tab {
	flex: 1;
	padding: 8px 0;
	border: none;
	background: none;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: #9ca3af;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s, border-color 0.15s;
}

.bga-auth-tab:hover {
	color: #374151;
}

.bga-auth-tab--active {
	color: #1097c5;
	border-bottom-color: #1097c5;
}

.bga-auth-field {
	margin-bottom: 10px;
}

/* First + last name row — two equal-width inputs side-by-side. */
.bga-auth-field--name-row {
	display: flex;
	gap: 8px;
}

.bga-auth-field--name-row .bga-auth-input {
	flex: 1 1 0;
	min-width: 0;
}

.bga-auth-input {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: #111827;
	background: #ffffff;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.bga-auth-input:focus {
	outline: none;
	border-color: #1097c5;
}

.bga-auth-input::placeholder {
	color: #9ca3af;
}

.bga-auth-submit {
	display: block;
	width: 100%;
	padding: 10px 0;
	margin-top: 4px;
	border: none;
	border-radius: 8px;
	background: #1097c5;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s;
}

.bga-auth-submit:hover {
	background: #0d7fa8;
}

.bga-auth-submit:disabled {
	background: #7dcde6;
	cursor: not-allowed;
}

.bga-auth-error {
	padding: 8px 10px;
	margin-bottom: 10px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #dc2626;
	font-size: 13px;
}

.bga-auth-success {
	text-align: center;
	padding: 12px;
	color: #059669;
	font-size: 14px;
}

.bga-auth-form--done {
	border-color: #a7f3d0;
	background: #ecfdf5;
}

/* "Forgot your password?" link below the Log In button — login mode only. */
.bga-auth-forgot {
	display: block;
	text-align: center;
	margin-top: 10px;
	font-size: 13px;
	color: #6b7280;
	text-decoration: none;
}

.bga-auth-forgot:hover {
	color: #1097c5;
	text-decoration: underline;
}

/* Password reset form — variant of the auth form, no tabs, with a heading
   and sub-text. Reuses .bga-auth-input / .bga-auth-submit / .bga-auth-error. */
.bga-auth-reset-heading {
	font-size: 15px;
	font-weight: 600;
	color: #111827;
	margin-bottom: 4px;
}

.bga-auth-reset-sub {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.45;
	margin-bottom: 12px;
}

.bga-auth-reset-cancel {
	display: block;
	text-align: center;
	margin-top: 8px;
	font-size: 13px;
	color: #6b7280;
	text-decoration: none;
}

.bga-auth-reset-cancel:hover {
	color: #1097c5;
	text-decoration: underline;
}

/* ---- Typing indicator ---- */

.bga-typing-indicator {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 13px 16px;
}

.bga-typing-pin {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	object-fit: contain;
	margin-right: 4px;
}

.bga-typing-indicator span {
	display: inline-block;
	width: 7px;
	height: 7px;
	background: #9ca3af;
	border-radius: 50%;
	animation: bga-bounce 1.2s ease-in-out infinite;
}

.bga-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.bga-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bga-bounce {
	0%, 60%, 100% { transform: translateY(0); }
	30%            { transform: translateY(-6px); }
}

/* ---- Input area ---- */

.bga-input-area {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
}

.bga-input {
	flex: 1;
	resize: none;
	overflow-y: auto;
	border: 1px solid #d1d5db;
	border-radius: 20px;
	padding: 9px 15px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	max-height: 120px;
	outline: none;
	background: #ffffff;
	color: #111827;
	transition: border-color 0.15s;
}

.bga-input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bga-input:disabled {
	background: #f3f4f6;
	color: #9ca3af;
	cursor: not-allowed;
}

.bga-input::placeholder {
	color: #9ca3af;
}

/* ---- New chat button ---- */

.bga-new-chat-btn {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #9ca3af;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s, background 0.15s;
}

.bga-new-chat-btn:hover {
	color: #1097c5;
	background: rgba(16, 151, 197, 0.08);
}

.bga-new-chat-btn:active {
	transform: scale(0.93);
}

/* ---- Send button ---- */

.bga-send-btn {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #1097c5;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, transform 0.1s;
}

.bga-send-btn:hover:not(:disabled) {
	background: #0d7fa8;
}

.bga-send-btn:active:not(:disabled) {
	transform: scale(0.93);
}

.bga-send-btn:disabled {
	background: #7dcde6;
	cursor: not-allowed;
}

/* ---- Listing cards carousel ---- */

.bga-cards-wrapper {
	position: relative;
	flex-shrink: 0;
	isolation: isolate;
}

.bga-cards-carousel {
	position: relative;
}

.bga-cards-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.95);
	color: #333333;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	transition: opacity 0.15s, background 0.15s;
	padding: 0 0 2px;
}

.bga-cards-nav:hover:not(:disabled) {
	background: #ffffff;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.bga-cards-nav:disabled {
	opacity: 0.2;
	pointer-events: none;
}

/* Inside the carousel bounds so overflow clipping doesn't hide them */
.bga-cards-nav--prev { left: 6px; }
.bga-cards-nav--next { right: 6px; }

/* Position counter — hidden on desktop (arrows serve the purpose); shown on mobile. */
.bga-cards-counter {
	display: none;
}

.bga-cards {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overflow-y: visible;
	padding: 4px 0 10px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	/* Explicit height + flex-shrink:0 prevents the carousel collapsing when messages fill the container */
	height: 330px;
	flex-shrink: 0;
	align-items: stretch;
}

.bga-cards::-webkit-scrollbar {
	display: none;
}

.bga-card {
	flex: 0 0 244px;
	height: 100%;
	border: 1px solid #e0e4ea;
	cursor: pointer;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: #333333;
	scroll-snap-align: start;
	background: #ffffff;
	transition: box-shadow 0.2s;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.bga-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Featured listing — gold border */

.bga-card--featured {
	border-color: #ffc107;
	border-width: 2px;
	box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.3);
}

.bga-card--featured:hover {
	box-shadow: 0 6px 18px rgba(255, 193, 7, 0.25);
}

/* Photo */

.bga-card__photo-wrap {
	position: relative;
	width: 100%;
	height: 150px;
	flex-shrink: 0;
}

.bga-card__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bga-card__photo--empty {
	width: 100%;
	height: 100%;
	background: #e8ecf0;
}

/* Category badge */

.bga-card__category {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #ffffff;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 3px 8px;
	border-radius: 3px;
}

/* Rating badge on property tile photo */

/* FEATURED label on photo */

.bga-card__featured-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #ffc107;
	color: #1a1a1a;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 3px 8px;
	border-radius: 3px;
	line-height: 1;
	z-index: 1;
}

.bga-card__fav-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ff5a5f;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	width: 28px;
	height: 28px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	z-index: 1;
	pointer-events: none;
}

.bga-card__rating-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	gap: 4px;
	background: rgba(0, 0, 0, 0.6);
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 5px;
	line-height: 1;
	z-index: 1;
}

.bga-card__rating-star {
	color: #ffc107;
	font-size: 0.9rem;
}

.bga-card__rating-value {
	color: #ffffff;
}

.bga-card__rating-count {
	color: rgba(255, 255, 255, 0.75);
	font-weight: 400;
	font-size: 0.78rem;
}

/* Body */

.bga-card__body {
	padding: 8px 11px 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-height: 0;
}

.bga-card__title {
	font-size: 0.825rem;
	font-weight: 700;
	line-height: 1.25;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex-shrink: 0;
}

.bga-card__location {
	font-size: 0.7rem;
	color: #888888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex-shrink: 0;
}

/* Meta — single line of plain text */

.bga-card__meta {
	font-size: 0.7rem;
	color: #666666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex-shrink: 0;
}

/* Divider */

.bga-card__divider {
	border-top: 1px solid #eeeeee;
	flex-shrink: 0;
	margin-top: auto;
	padding-top: 4px;
}

/* Price */

.bga-card__price {
	font-size: 0.8rem;
	font-weight: 600;
	color: #1097c5;
	flex-shrink: 0;
}

.bga-card__action {
	text-align: center;
	margin-top: auto;
	padding-top: 8px;
}

.bga-card__detail-btn {
	padding: 6px 20px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #ffffff;
	background: #1097c5;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.bga-card__detail-btn:hover {
	background: #0d7fa8;
}

/* ---- Detail browser (prev/next navigation panel) ---- */

.bga-detail-browser {
	position: relative;
	margin-top: 10px;
	border-radius: 12px;
	overflow: hidden;
}

/* Directional slide + fade for navigating between properties.
   JS toggles these classes during browseDetail prev/next transitions. */
.bga-detail-browser--exit-left {
	animation: bga-detail-exit-left 200ms ease-in forwards;
}
.bga-detail-browser--exit-right {
	animation: bga-detail-exit-right 200ms ease-in forwards;
}
.bga-detail-browser--enter-from-right {
	animation: bga-detail-enter-from-right 250ms ease-out forwards;
}
.bga-detail-browser--enter-from-left {
	animation: bga-detail-enter-from-left 250ms ease-out forwards;
}

@keyframes bga-detail-exit-left {
	from { transform: translateX(0); opacity: 1; }
	to   { transform: translateX(-30px); opacity: 0; }
}
@keyframes bga-detail-exit-right {
	from { transform: translateX(0); opacity: 1; }
	to   { transform: translateX(30px); opacity: 0; }
}
@keyframes bga-detail-enter-from-right {
	from { transform: translateX(30px); opacity: 0; }
	to   { transform: translateX(0); opacity: 1; }
}
@keyframes bga-detail-enter-from-left {
	from { transform: translateX(-30px); opacity: 0; }
	to   { transform: translateX(0); opacity: 1; }
}

/* Mobile-only top bar (counter + close). Hidden on desktop — desktop uses the full nav. */
.bga-detail-browser__mobile-bar {
	display: none;
}

.bga-detail-browser__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 44px;
	flex-shrink: 0;
	background: #1097c5;
	padding-left: 50px;
	padding-right: 50px;
	position: relative;
}

.bga-detail-browser__nav--footer {
	border-radius: 0 0 12px 12px;
}

.bga-detail-browser__nav-left {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.bga-detail-browser__nav-right {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

/* Title area is absolutely centred so it's independent of left/right button widths */
.bga-detail-browser__title-area {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: baseline;
	gap: 8px;
	max-width: 60%;
	pointer-events: none;
}

.bga-detail-browser__title {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bga-detail-browser__counter {
	font-size: 12px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
	white-space: nowrap;
	flex-shrink: 0;
}

.bga-detail-browser__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s;
	flex-shrink: 0;
	padding: 0 0 2px;
}

.bga-detail-browser__arrow:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.3);
}

.bga-detail-browser__arrow:disabled {
	opacity: 0.25;
	cursor: default;
}

.bga-detail-browser__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s;
	flex-shrink: 0;
	padding: 0;
}

.bga-detail-browser__close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.bga-detail-browser__loading {
	padding: 40px 20px;
	text-align: center;
	font-size: 14px;
	color: #6b7280;
	background: #ffffff;
	border: 1px solid #e0e4ea;
	border-top: none;
	border-radius: 0 0 12px 12px;
}

.bga-detail-browser__content {
}

.bga-detail-browser__content .bga-detail {
	width: 100%;
	max-width: 100%;
	border-radius: 0;
	border-top: none;
}

.bga-detail-browser__content .bga-nearby {
	margin: 0;
	border-radius: 0;
	border-top: none;
}

@media (max-width: 600px) {
	/* Hide the desktop top + bottom nav bars — replaced by swipe + mobile bar. */
	.bga-detail-browser__nav {
		display: none !important;
	}

	/* Mobile top bar — counter pill + close button. */
	.bga-detail-browser__mobile-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 40px;
		padding: 0 12px;
		background: #1097c5;
		flex-shrink: 0;
	}
	.bga-detail-browser__mobile-counter {
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.03em;
		color: rgba(255, 255, 255, 0.92);
	}
	.bga-detail-browser__mobile-close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		border: none;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.18);
		color: #ffffff;
		font-size: 20px;
		line-height: 1;
		cursor: pointer;
		padding: 0 0 2px;
	}
	.bga-detail-browser__mobile-close:hover {
		background: rgba(255, 255, 255, 0.3);
	}

	/* One-time swipe hint — shimmies the content + shows a label, fired on
	   the first detail open per device. JS toggles the --hint class. */
	.bga-detail-browser--hint .bga-detail-browser__content {
		animation: bga-swipe-hint-shimmy 1.6s ease-in-out;
	}
	.bga-detail-browser--hint::after {
		content: '\2190  Swipe  \2192';
		position: absolute;
		top: 110px;
		left: 50%;
		transform: translateX(-50%);
		padding: 11px 22px;
		background: rgba(0, 0, 0, 0.78);
		color: #ffffff;
		font-size: 14px;
		font-weight: 600;
		letter-spacing: 0.03em;
		border-radius: 24px;
		white-space: nowrap;
		pointer-events: none;
		z-index: 50;
		animation: bga-swipe-hint-fade 1.6s ease-in-out;
	}
}

@keyframes bga-swipe-hint-shimmy {
	0%, 100% { transform: translateX(0); }
	22% { transform: translateX(-26px); }
	44% { transform: translateX(0); }
	66% { transform: translateX(-13px); }
	88% { transform: translateX(0); }
}

@keyframes bga-swipe-hint-fade {
	0%, 100% { opacity: 0; }
	18%, 82% { opacity: 1; }
}

/* ---- Detail skeleton loader ---- */

@keyframes bga-shimmer {
	0%   { background-position: -400px 0; }
	100% { background-position: 400px 0; }
}

.bga-detail-skeleton {
	border: 1px solid #e0e4ea;
	border-top: none;
	border-radius: 0;
	overflow: hidden;
	background: #ffffff;
}

.bga-detail-skeleton__photo {
	width: 100%;
	height: 300px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 800px 100%;
	animation: bga-shimmer 1.5s infinite linear;
}

.bga-detail-skeleton__body {
	padding: 16px;
}

.bga-detail-skeleton__line {
	border-radius: 4px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 800px 100%;
	animation: bga-shimmer 1.5s infinite linear;
	margin-bottom: 10px;
}

.bga-detail-skeleton__line--title {
	height: 20px;
	width: 65%;
}

.bga-detail-skeleton__line--subtitle {
	height: 14px;
	width: 45%;
}

.bga-detail-skeleton__line--spacer {
	height: 0;
	margin-bottom: 14px;
	background: none;
	animation: none;
}

.bga-detail-skeleton__line--text {
	height: 13px;
	width: 100%;
}

.bga-detail-skeleton__line--text-short {
	height: 13px;
	width: 70%;
}

.bga-detail-skeleton__line--price {
	height: 18px;
	width: 35%;
}

.bga-detail-skeleton__attrs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 16px;
	margin-top: 4px;
}

.bga-detail-skeleton__line--attr {
	height: 14px;
	width: 80%;
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.bga-detail-skeleton__photo {
		height: 200px;
	}
}

/* ---- Listing detail view ---- */

.bga-detail {
	border: 1px solid #e0e4ea;
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
	flex-shrink: 0;
	width: 80%;
	max-width: 80%;
}

/* Featured detail — gold border */

.bga-detail--featured {
	border-color: #ffc107;
	border-width: 2px;
	box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.3);
}

/* Photo gallery */

/* --- Media tabs (Video / Photos) --- */
.bga-detail__media-tabs {
	display: flex;
	border-bottom: 2px solid #e0e4ea;
}

.bga-detail__media-tab {
	flex: 1;
	padding: 8px 0;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 600;
	color: #888888;
	transition: color 0.15s, border-color 0.15s;
}

.bga-detail__media-tab:hover {
	color: #333333;
}

.bga-detail__media-tab--active {
	color: #0073aa;
	border-bottom-color: #0073aa;
}

.bga-detail__video-panel {
	width: 100%;
	background: #000000;
}

.bga-detail__video {
	width: 100%;
	height: 460px;
	display: block;
	object-fit: contain;
}

.bga-detail__gallery {
	position: relative;
	width: 100%;
	height: 460px;
	overflow: hidden;
}

.bga-detail__track {
	display: flex;
	height: 100%;
	transition: transform 0.3s ease;
}

.bga-detail__photo {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bga-detail__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	color: #333333;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	padding: 0 0 2px;
	transition: opacity 0.15s;
}

.bga-detail__nav:hover:not(:disabled) {
	background: #ffffff;
}

.bga-detail__nav:disabled {
	opacity: 0.2;
	pointer-events: none;
}

.bga-detail__nav--prev { left: 10px; }
.bga-detail__nav--next { right: 10px; }

.bga-detail__counter {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 12px;
}

.bga-detail__expand {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.45);
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	animation: bga-expand-pulse 1.8s ease-in-out 0.5s 2;
}
.bga-detail__expand:hover {
	background: rgba(0, 0, 0, 0.7);
}
.bga-detail__expand svg {
	width: 16px;
	height: 16px;
}

@keyframes bga-expand-pulse {
	0%, 100% { transform: scale(1); box-shadow: none; }
	50% { transform: scale(1.2); box-shadow: 0 0 10px rgba(255,255,255,0.4); }
}

.bga-detail__photo-count {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}
.bga-detail__photo-count svg {
	width: 12px;
	height: 12px;
}

.bga-detail__photo {
	cursor: zoom-in;
}

/* Info section */

.bga-detail__info {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bga-detail__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

/* Heart toggle — sits on the gallery image, top-right.
   White circular bubble for visibility on any photo. */
.bga-detail__fav {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.25);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	color: #ffffff;
	cursor: pointer;
	transition: color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.bga-detail__fav:hover {
	color: #ff5a5f;
	transform: scale(1.08);
	background: rgba(255, 255, 255, 0.85);
}

.bga-detail__fav:disabled {
	cursor: wait;
	opacity: 0.6;
}

.bga-detail__fav--on {
	color: #ff5a5f;
}

.bga-detail__fav--on:hover {
	color: #e0484e;
}

/* Inline rating below the title in the info section. */
.bga-detail__rating {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin-top: 2px;
	font-size: 0.85rem;
	color: #444;
}

.bga-detail__rating-star {
	color: #f5a623;
	font-size: 0.95rem;
	line-height: 1;
}

.bga-detail__rating-value {
	font-weight: 600;
	color: #1a1a1a;
}

.bga-detail__rating-count {
	color: #777;
}

.bga-detail__location {
	font-size: 0.8rem;
	color: #888888;
}

.bga-detail__desc {
	font-size: 0.82rem;
	color: #444444;
	line-height: 1.6;
	margin-top: 6px;
	white-space: pre-line;
}
.bga-detail__read-more {
	background: none;
	border: none;
	color: #0099cc;
	cursor: pointer;
	font-size: 0.82rem;
	padding: 0;
	display: inline;
}
.bga-detail__read-more:hover {
	text-decoration: underline;
}

.bga-detail__map {
	width: 100%;
	height: 360px;
	border-radius: 6px;
	margin-top: 6px;
	overflow: hidden;
}

.bga-detail__map .mapboxgl-popup-content {
	font-family: inherit;
	font-size: 0.72rem;
	color: #333333;
	padding: 6px 10px;
	border-radius: 4px;
	line-height: 1.4;
}

.bga-detail__map .mapboxgl-popup-content strong {
	font-weight: 600;
}

.bga-detail__map .mapboxgl-popup-content span {
	color: #1097c5;
	font-weight: 600;
}

.bga-detail__map .gm-style-iw {
	font-family: inherit;
	font-size: 0.72rem;
	color: #333333;
	line-height: 1.4;
}

.bga-detail__map .gm-style-iw strong {
	font-weight: 600;
}

.bga-detail__map .gm-style-iw span {
	color: #1097c5;
	font-weight: 600;
}

/* --- Nearby Places --- */
.bga-nearby {
	margin: 0 16px 8px;
	max-width: 720px;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	flex-shrink: 0;
}
.bga-nearby__map {
	width: 100%;
	height: 300px;
	min-height: 300px;
	flex-shrink: 0;
}
.bga-nearby__list {
	padding: 8px 0;
	max-height: 320px;
	overflow-y: auto;
}
.bga-nearby__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border-bottom: 1px solid #f0f0f0;
}
.bga-nearby__item:last-child {
	border-bottom: none;
}
.bga-nearby__info {
	flex: 1;
	min-width: 0;
}
.bga-nearby__name-row {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.bga-nearby__name {
	font-size: 0.84rem;
	font-weight: 600;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bga-nearby__mode-icon {
	flex-shrink: 0;
	font-size: 0.8rem;
	line-height: 1;
	color: #1097c5;
}

.bga-nearby__category {
	flex-shrink: 0;
	padding: 2px 8px;
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 10px;
	background: #f0f7ff;
	color: #1097c5;
	white-space: nowrap;
}

.bga-nearby__hours {
	font-size: 0.72rem;
	color: #666;
	margin-top: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bga-nearby__meta {
	font-size: 0.74rem;
	color: #666;
	margin-top: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bga-nearby__link {
	color: #0099cc;
	text-decoration: none;
}
.bga-nearby__link:hover {
	text-decoration: underline;
}
.bga-nearby__addr {
	font-size: 0.72rem;
	color: #999;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 1px;
}
.bga-nearby__dist {
	font-size: 0.78rem;
	font-weight: 600;
	color: #888;
	white-space: nowrap;
	text-align: right;
	flex-shrink: 0;
}
.bga-nearby__travel {
	font-size: 0.7rem;
	font-weight: 400;
	color: #999;
	margin-top: 2px;
}

.bga-cards-map {
	height: 280px;
	margin-bottom: 10px;
}

.bga-map-popup {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	max-width: 240px;
}

.bga-map-popup__photo {
	width: 56px;
	height: 56px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
}

.bga-map-popup__body {
	min-width: 0;
}

.bga-map-popup__title {
	font-size: 0.72rem;
	font-weight: 600;
	color: #333333;
	line-height: 1.3;
}

.bga-map-popup__price {
	font-size: 0.7rem;
	font-weight: 600;
	color: #1097c5;
	margin-top: 2px;
}

.bga-detail__read-more {
	background: none;
	border: none;
	padding: 0;
	margin-left: 2px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #1097c5;
	cursor: pointer;
}

.bga-detail__price {
	font-size: 0.95rem;
	font-weight: 600;
	color: #1097c5;
	margin-top: 4px;
}

.bga-detail__extras {
	margin-top: 4px;
}

.bga-detail__extra {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	color: #666666;
	line-height: 1.6;
}

.bga-detail__extra-price {
	color: #444444;
	white-space: nowrap;
	margin-left: 8px;
}

.bga-detail__extras-footnote {
	font-size: 0.7rem;
	font-style: italic;
	color: #999999;
	margin-top: 2px;
}

.bga-detail__discounts {
	margin-top: 2px;
}

.bga-detail__discount {
	font-size: 0.75rem;
	color: #2e7d32;
	line-height: 1.6;
}

.bga-detail__rating {
	font-size: 0.8rem;
	color: #666666;
}


.bga-detail__divider {
	border-top: 1px solid #eeeeee;
	margin: 4px 0;
}

.bga-detail__attrs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 16px;
	margin-bottom: 8px;
}

.bga-detail__attr {
	display: flex;
	align-items: baseline;
	gap: 4px;
	font-size: 0.78rem;
	line-height: 1.5;
}

.bga-detail__attr-label {
	color: #333333;
	font-weight: 600;
	white-space: nowrap;
}

.bga-detail__attr-label::after {
	content: ':';
}

.bga-detail__attr-value {
	color: #555555;
}

.bga-detail__attr i.fas {
	color: #7a7a7a;
	font-size: 0.72rem;
	width: 16px;
	flex-shrink: 0;
}

/* --- Ternary accordion sections --- */
.bga-detail__accordion {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.bga-detail__section {
	border-bottom: 1px solid #eee;
}

.bga-detail__section:last-child {
	border-bottom: none;
}

.bga-detail__section-header {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 8px 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.82rem;
	font-weight: 600;
	color: #333333;
	text-align: left;
}

.bga-detail__section-header:hover {
	color: #0073aa;
}

.bga-detail__section-header i.fas {
	color: #7a7a7a;
	font-size: 0.78rem;
	width: 16px;
	flex-shrink: 0;
}

.bga-detail__section-arrow {
	color: #999999;
	font-size: 0.7rem;
	width: 10px;
	flex-shrink: 0;
}

.bga-detail__section-title {
	flex: 1;
}

.bga-detail__section-body {
	display: none;
	font-size: 0.78rem;
	color: #555555;
	line-height: 1.6;
	padding: 0 0 10px 32px;
	white-space: pre-line;
}

.bga-detail__section--open .bga-detail__section-body {
	display: block;
}

.bga-detail__row--muted {
	color: #777777;
	font-size: 0.75rem;
}

.bga-detail__row {
	font-size: 0.78rem;
	color: #555555;
	line-height: 1.5;
}

.bga-detail__label {
	font-size: 0.78rem;
	font-weight: 700;
	color: #333333;
}

.bga-detail__amenities {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.bga-detail__amenity {
	font-size: 0.7rem;
	background: #f1f3f6;
	color: #444444;
	padding: 3px 10px;
	border-radius: 12px;
}

.bga-detail__host {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}

.bga-detail__host-photo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.bga-detail__host-info {
	flex: 1;
	min-width: 0;
}

.bga-detail__host-name {
	font-weight: 600;
	font-size: 14px;
	color: #1f2937;
}

.bga-detail__host-meta {
	font-size: 12px;
	color: #6b7280;
	margin-top: 2px;
}

.bga-detail__host-bio {
	font-size: 13px;
	color: #4b5563;
	margin-top: 8px;
	line-height: 1.5;
	white-space: pre-line;
}

/* ---- Reviews carousel ---- */

.bga-detail__reviews {
	margin-top: 8px;
}

.bga-reviews-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bga-reviews-row__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.bga-reviews-row__arrow {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #d1d5db;
	background: #ffffff;
	color: #333333;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0 2px;
	transition: background 0.15s, border-color 0.15s;
}

.bga-reviews-row__arrow:hover:not(:disabled) {
	background: #f3f4f6;
	border-color: #9ca3af;
}

.bga-reviews-row__arrow:disabled {
	opacity: 0.25;
	cursor: default;
}

.bga-reviews-row__counter {
	text-align: center;
	font-size: 0.7rem;
	color: #9ca3af;
	margin-top: 4px;
}

.bga-detail__reviews-track {
	display: flex;
	transition: transform 0.3s ease;
}

.bga-detail__review {
	min-width: 100%;
	flex-shrink: 0;
	box-sizing: border-box;
	padding: 0 4px;
}

.bga-detail__review-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.bga-detail__review-photo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.bga-detail__review-right {
	flex: 1;
	min-width: 0;
}

.bga-detail__review-name {
	font-weight: 600;
	font-size: 13px;
	color: #1f2937;
}

.bga-detail__review-stars {
	margin-top: 1px;
}

.bga-star {
	font-size: 14px;
	color: rgba(0, 0, 0, 0.15);
}

.bga-star--filled {
	color: #ffc107;
}

.bga-detail__review-text {
	font-size: 13px;
	color: #4b5563;
	line-height: 1.5;
	white-space: pre-line;
}

.bga-detail__action {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 4px 0;
}

.bga-detail__book-btn {
	padding: 8px 28px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #ffffff;
	background: #1097c5;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.bga-detail__book-btn:hover {
	background: #0d7fa8;
}

.bga-detail__message-btn {
	padding: 8px 24px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1097c5;
	background: transparent;
	border: 1px solid #1097c5;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.bga-detail__message-btn:hover {
	background: #1097c5;
	color: #ffffff;
}

.bga-detail__nearby-btn {
	padding: 8px 24px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1097c5;
	background: transparent;
	border: 1px solid #1097c5;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.bga-detail__nearby-btn:hover {
	background: #1097c5;
	color: #ffffff;
}

/* ---- Lightbox ---- */

.bga-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.bga-lightbox__img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
	cursor: default;
	user-select: none;
}

.bga-lightbox__close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 36px;
	cursor: pointer;
	line-height: 1;
	padding: 4px 10px;
	z-index: 2;
	opacity: 0.8;
	transition: opacity 0.15s;
}

.bga-lightbox__close:hover {
	opacity: 1;
}

.bga-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #ffffff;
	font-size: 48px;
	line-height: 1;
	padding: 8px 14px;
	cursor: pointer;
	border-radius: 6px;
	z-index: 2;
	opacity: 0.7;
	transition: opacity 0.15s, background 0.15s;
}

.bga-lightbox__nav:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.25);
}

.bga-lightbox__nav--prev {
	left: 16px;
}

.bga-lightbox__nav--next {
	right: 16px;
}

.bga-lightbox__counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #ffffff;
	font-size: 14px;
	background: rgba(0, 0, 0, 0.5);
	padding: 4px 14px;
	border-radius: 12px;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
	.bga-chat-container {
		width: 90%;
	}
}

@media (max-width: 600px) {
	.bga-chat-container {
		width: 100%;
		height: calc(100dvh - 120px - var(--bga-kb-inset));  /* dynamic viewport height minus page header + bars; subtract on-screen keyboard inset */
		min-height: 300px;
		border-radius: 0;
		border: none;
	}

	.bga-bubble {
		max-width: 88%;
	}

	/* On mobile, UI elements fill full width — remove the 34px avatar-align margin. */
	.bga-messages > :not(.bga-message):not(.bga-quick-actions):not(.bga-trip-bar) {
		margin-left: 0;
	}

	.bga-detail {
		width: 100%;
		max-width: 100%;
		border-radius: 8px;
	}

	.bga-cards-wrapper {
		width: 100%;
	}

	.bga-detail__attrs {
		grid-template-columns: 1fr;
	}

	.bga-detail__video {
		height: 300px;
	}

	.bga-booking-form {
		max-width: 100%;
		padding: 14px;
		border-radius: 8px;
	}

	.bga-booking-form__stay-grid {
		grid-template-columns: 1fr 1fr;
		gap: 6px 10px;
	}

	.bga-booking-form__image {
		height: 130px;
	}
}

/* ---- Login bar ---- */

.bga-login-bar {
	text-align: center;
	padding: 8px 12px;
	background: #f0f4ff;
	border-top: 1px solid #e0e4ea;
	font-size: 13px;
	color: #4b5563;
}

.bga-login-link {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

.bga-login-link:hover {
	text-decoration: underline;
}

/* ---- Booking form ---- */

.bga-booking-form {
	background: #ffffff;
	border: 1px solid #e0e4ea;
	border-radius: 12px;
	padding: 20px;
	max-width: 500px;
	width: 100%;
	box-sizing: border-box;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bga-booking-form__header {
	margin-bottom: 12px;
}

.bga-booking-form__image {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 8px;
}

.bga-booking-form__property-title {
	font-size: 15px;
	font-weight: 600;
	color: #1f2937;
}

.bga-booking-form__title {
	font-size: 16px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 8px;
}

.bga-booking-form__notice {
	font-size: 13px;
	color: #6b7280;
	background: #fef3c7;
	border-radius: 6px;
	padding: 8px 10px;
	margin-bottom: 14px;
}

.bga-booking-form__stay-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 16px;
}

.bga-booking-form__change-link {
	display: inline-block;
	margin-top: 10px;
	font-size: 12px;
	color: #1097c5;
	text-decoration: underline;
	cursor: pointer;
}

.bga-booking-form__change-link:hover {
	color: #0b7ba0;
}

.bga-booking-form--cancelled {
	opacity: 0.55;
	pointer-events: none;
}

.bga-booking-form__stay-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bga-booking-form__stay-label {
	font-size: 12px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.bga-booking-form__stay-value {
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
}

.bga-booking-form__fields {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bga-booking-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bga-booking-form__label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.bga-booking-form__required {
	color: #ef4444;
}

.bga-booking-form__input,
.bga-booking-form__textarea,
.bga-booking-form__select {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 14px;
	font-family: inherit;
	color: #1f2937;
	background: #fff;
	transition: border-color 0.15s;
}

.bga-booking-form__input:focus,
.bga-booking-form__textarea:focus,
.bga-booking-form__select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.bga-booking-form__textarea {
	resize: vertical;
	min-height: 60px;
}

.bga-booking-form__checkbox {
	width: 16px;
	height: 16px;
	accent-color: #2563eb;
}

.bga-booking-form__error {
	font-size: 12px;
	color: #ef4444;
	min-height: 0;
}

/* Section titles & dividers */

.bga-booking-form__section {
	margin-bottom: 4px;
}

.bga-booking-form__section-title {
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 8px;
}

.bga-booking-form__divider {
	height: 1px;
	background: #e5e7eb;
	margin: 16px 0;
}

/* Extras */

.bga-booking-form__extra {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	cursor: pointer;
	font-size: 14px;
	color: #1f2937;
}

.bga-booking-form__extra--locked {
	cursor: default;
	opacity: 0.7;
}

.bga-booking-form__extra-name {
	flex: 1;
}

.bga-booking-form__extra-price {
	font-size: 13px;
	color: #6b7280;
	white-space: nowrap;
}

/* Price summary */

.bga-booking-form__summary {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px 14px;
	margin-top: 12px;
	margin-bottom: 4px;
}

.bga-booking-form__summary-line {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #4b5563;
	padding: 3px 0;
}

.bga-booking-form__summary-total {
	border-top: 1px solid #d1d5db;
	margin-top: 6px;
	padding-top: 8px;
	font-weight: 700;
	color: #1f2937;
	font-size: 14px;
}

.bga-booking-form__summary-gst {
	text-align: right;
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
}

.bga-booking-form__submit {
	display: block;
	margin: 16px auto 0;
	padding: 10px 28px;
	background: #1097c5;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.bga-booking-form__submit:hover {
	background: #0d7fa8;
}

.bga-booking-form__terms {
	margin-top: 14px;
}

.bga-booking-form__terms-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #374151;
	cursor: pointer;
}

.bga-booking-form__terms-label a {
	color: #2563eb;
	text-decoration: none;
}

.bga-booking-form__terms-label a:hover {
	text-decoration: underline;
}

.bga-booking-form--submitted {
	opacity: 0.6;
	pointer-events: none;
}

.bga-booking-form--submitted .bga-booking-form__submit {
	background: #9ca3af;
	cursor: default;
}

/* ---- Payment button ---- */

.bga-payment-box {
	padding: 8px 16px 16px;
	width: 100%;
}

.bga-stripe-checkout {
	min-height: 300px;
	width: 100%;
	max-width: 450px;
	text-align: left;
}

.bga-payment-success {
	padding: 16px 24px;
	background: #e8f5e9;
	color: #2e7d32;
	font-weight: 600;
	border-radius: 6px;
	text-align: center;
}

.bga-payment-box__button {
	display: inline-block;
	padding: 12px 32px;
	background: #1097c5;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.bga-payment-box__button:hover {
	background: #0d7fa8;
	color: #ffffff;
	text-decoration: none;
}

/* ── Booking tiles ─────────────────────────────────────────── */

.bga-booking-tiles {
	padding: 0 16px 8px;
}

.bga-booking-tiles__heading {
	font-size: 13px;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}

/* Booking carousel */
.bga-booking-tiles__carousel-wrap {
	position: relative;
}

.bga-booking-tiles__carousel {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 2px;
}

.bga-booking-tiles__carousel::-webkit-scrollbar {
	display: none;
}

.bga-booking-tiles__carousel .bga-booking-tile {
	flex: 0 0 220px;
	width: 220px;
	scroll-snap-align: start;
	box-sizing: border-box;
}

.bga-booking-tile {
	display: flex;
	flex-direction: column;
	width: 220px;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.15s;
}

.bga-booking-tile:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bga-booking-tile__photo {
	width: 100%;
	height: 130px;
	flex-shrink: 0;
	background-size: cover;
	background-position: center;
	background-color: #f0f0f0;
}

.bga-booking-tile__body {
	flex: 1;
	padding: 10px 12px;
	min-width: 0;
}

.bga-booking-tile__booking-id {
	font-size: 12px;
	font-weight: 700;
	color: #1097c5;
	margin-bottom: 4px;
}

.bga-booking-tile__title {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 2px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.3;
}

.bga-booking-tile__location {
	font-size: 11px;
	color: #888;
	margin-bottom: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bga-booking-tile__dates {
	font-size: 12px;
	color: #444;
	margin-bottom: 2px;
}

.bga-booking-tile__nights {
	font-size: 11px;
	color: #888;
	margin-bottom: 2px;
}

.bga-booking-tile__guests {
	font-size: 12px;
	color: #666;
	margin-bottom: 4px;
}

.bga-booking-tile__price {
	font-size: 13px;
	font-weight: 600;
	color: #1a7a4c;
	margin-bottom: 6px;
}

.bga-booking-tile__status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.bga-booking-tile__status--awaiting-approval {
	background: #fff3cd;
	color: #856404;
}

.bga-booking-tile__status--awaiting-payment {
	background: #cce5ff;
	color: #004085;
}

.bga-booking-tile__status--confirmed {
	background: #d4edda;
	color: #155724;
}

.bga-booking-tile__status--cancelled {
	background: #f8d7da;
	color: #721c24;
}

.bga-booking-tile__status-detail {
	font-size: 0.75rem;
	color: #888;
	font-style: italic;
	margin-top: 4px;
}

/* Cluster popup list */
.bga-cluster-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 4px 0;
}

.bga-cluster-list__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s;
}

.bga-cluster-list__item:hover {
	background: #f0f7ff;
}

.bga-cluster-list__thumb {
	width: 50px;
	height: 38px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.bga-cluster-list__info {
	min-width: 0;
}

.bga-cluster-list__title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 180px;
}

.bga-cluster-list__price {
	font-size: 12px;
	color: #666;
}

.bga-booking-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 12px 46px;
}

.bga-booking-picker__btn {
	padding: 8px 16px;
	border: 1px solid #ddd;
	border-radius: 20px;
	background: #fff;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.bga-booking-picker__btn:hover {
	background: #f0f7ff;
	border-color: #0073aa;
}

.bga-picker-btn--confirmed {
	border-color: #28a745;
	color: #155724;
}

.bga-picker-btn--awaiting {
	border-color: #ffc107;
	color: #856404;
}

.bga-picker-btn--unpaid {
	border-color: #17a2b8;
	color: #0c5460;
}

.bga-picker-btn--cancelled {
	border-color: #dc3545;
	color: #721c24;
}

.bga-booking-tile__actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: auto;
	padding: 8px 12px 10px;
}

.bga-booking-tile__pay {
	flex: 1;
	padding: 6px 0;
	border: 1px solid #28a745;
	border-radius: 4px;
	background: #28a745;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.bga-booking-tile__pay:hover {
	background: #218838;
}

.bga-booking-tile__message {
	flex: 1;
	padding: 6px 0;
	border: 1px solid #17a2b8;
	border-radius: 4px;
	background: #fff;
	color: #17a2b8;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.bga-booking-tile__message:hover {
	background: #17a2b8;
	color: #fff;
}

.bga-booking-tile__review {
	flex: 1;
	padding: 6px 0;
	border: 1px solid #f5a623;
	border-radius: 4px;
	background: #fff;
	color: #b45309;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.bga-booking-tile__review:hover {
	background: #f5a623;
	color: #fff;
}

.bga-booking-tile__cancel {
	flex: 1;
	padding: 6px 0;
	border: 1px solid #dc3545;
	border-radius: 4px;
	background: #fff;
	color: #dc3545;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.bga-booking-tile__cancel:hover {
	background: #dc3545;
	color: #fff;
}

/* Invoice button — shown on confirmed bookings whose linked WC order has
   a generated PDF invoice. Renders as an outline button matching the
   message-host style but in a neutral grey to read as "secondary action". */
.bga-booking-tile__invoice {
	flex: 1;
	padding: 6px 0;
	border: 1px solid #6b7280;
	border-radius: 6px;
	background: #ffffff;
	color: #374151;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.bga-booking-tile__invoice:hover {
	background: #6b7280;
	color: #ffffff;
}

/* Inline [INVOICE_LINK:N] link rendered inside the agent's bubble. */
.bga-inline-invoice-link {
	display: inline-block;
	padding: 4px 10px;
	margin-top: 4px;
	border: 1px solid #1097c5;
	border-radius: 14px;
	color: #1097c5;
	font-weight: 600;
	text-decoration: none;
	font-size: 13px;
}

.bga-inline-invoice-link:hover {
	background: #1097c5;
	color: #ffffff;
}

@media (max-width: 600px) {
	/* Match the search-results carousel: 92% tile width with a 10px gap so a
	   sliver of the next tile peeks in, signalling more results without a
	   label. The shared .bga-cards-counter rule (in the global mobile block)
	   shows the "N / M" pill below the carousel automatically. */
	.bga-booking-tiles__carousel {
		gap: 10px;
	}
	.bga-booking-tiles__carousel .bga-booking-tile {
		flex: 0 0 92% !important;
		width: 92% !important;
		min-width: 0;
	}
	.bga-thread-tiles__carousel {
		gap: 10px;
	}
	.bga-thread-tiles__carousel .bga-thread-tile {
		flex: 0 0 92% !important;
		width: 92% !important;
		min-width: 0;
	}
}

/* ---- Message thread tiles ---- */

.bga-thread-tiles {
	padding: 0 16px 8px;
}

.bga-thread-tiles__heading {
	font-size: 13px;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}

.bga-thread-tiles__carousel-wrap {
	position: relative;
}

.bga-thread-tiles__carousel {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 2px;
}

.bga-thread-tiles__carousel::-webkit-scrollbar {
	display: none;
}

.bga-thread-tiles__carousel .bga-thread-tile {
	flex: 0 0 220px;
	width: 220px;
	scroll-snap-align: start;
	box-sizing: border-box;
}

.bga-thread-tile {
	display: flex;
	flex-direction: column;
	width: 220px;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.15s;
}

.bga-thread-tile:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bga-thread-tile__photo {
	width: 100%;
	height: 110px;
	flex-shrink: 0;
	background-size: cover;
	background-position: center;
	background-color: #f0f0f0;
}

.bga-thread-tile__body {
	flex: 1;
	padding: 10px 12px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.bga-thread-tile__title {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 2px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.3;
}

/* Host row at bottom of thread tile */
.bga-thread-tile__host {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #eee;
}
.bga-thread-tile__host-photo {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.bga-thread-tile__host-name {
	font-size: 13px;
	color: #1097c5;
	font-weight: 500;
}

.bga-thread-tile__preview {
	font-size: 12px;
	color: #666;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.bga-thread-tile__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
}

.bga-thread-tile__time {
	font-size: 11px;
	color: #999;
}

.bga-thread-tile__unread {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: #1097c5;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}


/* ---- Conversation (thread messages) ---- */

.bga-conversation {
	margin: 0 16px 8px;
	max-width: 720px;
	max-height: 400px;
	padding: 12px;
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	overflow-y: auto;
	/* Prevent flex shrinking — the chat's message list is a flex column,
	   which by default lets items shrink below their intrinsic height. */
	flex-shrink: 0;
}

/* Conversation header — card-style with banner image */
.bga-conversation__header {
	margin: -12px -12px 12px;
	border-bottom: 1px solid #e0e0e0;
	border-radius: 10px 10px 0 0;
	overflow: hidden;
}
.bga-conversation__banner-wrap {
	position: relative;
	display: block;
	width: 100%;
	height: 130px;
	overflow: hidden;
}
.bga-conversation__banner {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bga-conversation__property-name {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px 14px 10px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	text-align: center;
}
.bga-conversation__host-photo {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 3px solid #ffffff;
	margin: -26px 0 0 12px;
	position: relative;
	z-index: 1;
}
.bga-conversation__header-info {
	padding: 4px 14px 10px;
}
.bga-conversation__host-name {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
}
/* Fallback: property name without banner */
.bga-conversation__header-info .bga-conversation__property-name {
	position: static;
	background: none;
	color: #555;
	font-size: 12px;
	font-weight: 500;
	text-shadow: none;
	text-align: left;
	padding: 0;
	margin-top: 2px;
}

.bga-conversation__row {
	margin-bottom: 10px;
}

.bga-conversation__row--sent {
	text-align: right;
}

.bga-conversation__row--received {
	text-align: left;
}

.bga-conversation__sender {
	font-size: 11px;
	font-weight: 600;
	color: #1097c5;
	margin-bottom: 3px;
}

.bga-conversation__row--sent .bga-conversation__sender {
	color: #555;
}

.bga-conversation__bubble {
	display: inline-block;
	max-width: 80%;
	padding: 8px 12px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
	word-wrap: break-word;
}

.bga-conversation__row--received .bga-conversation__bubble {
	background: #e8ecf0;
	color: #1a1a1a;
}

.bga-conversation__row--sent .bga-conversation__bubble {
	background: #1097c5;
	color: #ffffff;
}

.bga-conversation__time {
	font-size: 10px;
	color: #999;
	margin-top: 2px;
}

/* ============================================================
   Trip Progress Bar
   ============================================================ */

/* Flatten bottom corners when elements sit below the chat container */
.bga-chat-container:has(~ .bga-trip-bar[style*="block"]),
.bga-chat-container:has(~ .bga-fav-bar[style*="block"]),
.bga-chat-container:has(~ .bga-notifications[style*="block"]) {
	border-radius: 14px 14px 0 0;
}

/* When notification bar follows the favourites bar, flatten its bottom corners */
.bga-fav-bar[style*="block"]:has(+ .bga-notifications[style*="block"]) {
	border-radius: 0;
}

/* ============================================================
   Favourites Bar
   ============================================================ */

.bga-fav-bar {
	padding: 10px 14px;
	background: #f9fafb;
	border: 1px solid #e0e4ea;
	border-top: none;
	border-radius: 0 0 14px 14px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bga-fav-bar__inner {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bga-fav-bar__label {
	flex: 0 0 auto;
	font-size: 0.75rem;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bga-fav-bar__list {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	flex: 1 1 auto;
	scrollbar-width: thin;
	/* Subtle fade on the right edge to hint at scrollable overflow.
	   Browser support: modern Chrome/Firefox/Safari (mask-image). */
	-webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
	mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
}

.bga-fav-bar__more {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	height: 56px;
	padding: 0 12px;
	border: 1px dashed #b8c0cc;
	background: #fff;
	border-radius: 8px;
	color: #444;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.bga-fav-bar__more:hover {
	border-color: #ff5a5f;
	color: #ff5a5f;
	border-style: solid;
}

/* Mobile collapse summary header — hidden on desktop. */
.bga-fav-bar__summary {
	display: none;
}

.bga-fav-bar__tile {
	flex: 0 0 auto;
	padding: 0;
	border: 1px solid #d8dde5;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.bga-fav-bar__tile:hover {
	transform: translateY(-1px);
	border-color: #ff5a5f;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.bga-fav-bar__thumb {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
}

.bga-fav-bar__thumb--placeholder {
	background: #eef0f3;
}

/* When notification bar follows trip bar, flatten trip bar's bottom corners */
.bga-trip-bar[style*="block"]:has(+ .bga-notifications[style*="block"]) {
	border-radius: 0;
}

.bga-trip-bar {
	padding: 16px 16px 14px;
	background: #f9fafb;
	border: 1px solid #e0e4ea;
	border-top: none;
	border-radius: 0 0 14px 14px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bga-trip-bar__inner {
	display: flex;
	align-items: flex-start;
	min-width: max-content;
	position: relative;
}

/* Each leg (node + connector) */
.bga-trip-leg {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	flex-shrink: 0;
	min-width: 90px;
}

/* Connector line between nodes */
.bga-trip-leg:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 15px;
	left: calc(50% + 15px);
	width: calc(100% - 30px);
	height: 3px;
	background: #d1d5db;
	z-index: 0;
}

.bga-trip-leg--booked:not(:last-child)::after {
	background: #10b981;
}

/* The next leg after all booked ones gets a gradient connector on the previous booked leg */
.bga-trip-leg--booked + .bga-trip-leg--current {
	/* handled by the booked leg's ::after */
}

/* Node circle */
.bga-trip-leg__node {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	z-index: 1;
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Pending state */
.bga-trip-leg--pending .bga-trip-leg__node {
	background: #e5e7eb;
	color: #9ca3af;
	border: 2px solid #d1d5db;
}

/* Current/active state */
.bga-trip-leg--current .bga-trip-leg__node {
	background: #1097c5;
	color: #fff;
	border: 2px solid #0d7ea3;
	box-shadow: 0 0 0 4px rgba(16, 151, 197, 0.2);
	animation: bga-trip-pulse 2s ease-in-out infinite;
}

/* Booked state — checkmark (fallback when no thumbnail available) */
.bga-trip-leg--booked .bga-trip-leg__node {
	background: #10b981;
	color: #fff;
	border: 2px solid #059669;
}

/* Booked state — thumbnail as node (default when thumbnail is available).
   Slightly larger so the photo is legible, with a green ring to keep the
   "done" signal without a separate tick or below-node thumbnail. */
.bga-trip-leg--booked .bga-trip-leg__node--thumb {
	width: 40px;
	height: 40px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: transparent;
	border: 2px solid #10b981;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Keep the connector line aligned when the booked node is taller than 30px. */
.bga-trip-leg--booked:not(:last-child)::after {
	top: 20px;
}

@keyframes bga-trip-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(16, 151, 197, 0.2); }
	50%      { box-shadow: 0 0 0 8px rgba(16, 151, 197, 0.1); }
}

/* Location label */
.bga-trip-leg__label {
	margin-top: 6px;
	font-size: 11px;
	font-weight: 600;
	color: #374151;
	text-align: center;
	max-width: 100px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bga-trip-leg--current .bga-trip-leg__label {
	color: #1097c5;
}

/* Dates below label */
.bga-trip-leg__dates {
	font-size: 10px;
	color: #9ca3af;
	text-align: center;
	margin-top: 1px;
}

/* Booked property thumbnail */
.bga-trip-leg__thumb {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
	margin-top: 6px;
	border: 2px solid #10b981;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Property name under thumbnail */
.bga-trip-leg__property {
	font-size: 10px;
	color: #059669;
	text-align: center;
	max-width: 100px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-top: 3px;
	font-weight: 500;
}

/* Connector spacing — give enough room between legs */
.bga-trip-leg + .bga-trip-leg {
	margin-left: 20px;
}

/* Scrollbar styling for the trip bar */
.bga-trip-bar::-webkit-scrollbar {
	height: 4px;
}
.bga-trip-bar::-webkit-scrollbar-track {
	background: transparent;
}
.bga-trip-bar::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 2px;
}

/* Responsive — smaller on mobile */
@media (max-width: 480px) {
	.bga-trip-bar {
		padding: 10px 10px 8px;
	}
	.bga-trip-leg {
		min-width: 72px;
	}
	.bga-trip-leg + .bga-trip-leg {
		margin-left: 12px;
	}
	.bga-trip-leg__node {
		width: 26px;
		height: 26px;
		font-size: 11px;
	}
	.bga-trip-leg:not(:last-child)::after {
		top: 13px;
		left: calc(50% + 13px);
		width: calc(100% - 26px);
	}
	.bga-trip-leg--booked .bga-trip-leg__node--thumb {
		width: 34px;
		height: 34px;
	}
	.bga-trip-leg--booked:not(:last-child)::after {
		top: 17px;
	}
	.bga-trip-leg__thumb {
		width: 48px;
		height: 48px;
	}
}

/* ============================================================
   Notification Bar
   ============================================================ */

.bga-notifications {
	display: flex;
	flex-direction: column;
	background: #f9fafb;
	border: 1px solid #e0e4ea;
	border-top: none;
	border-radius: 0 0 14px 14px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile-only collapse header — hidden on desktop. */
.bga-notifications__summary {
	display: none;
}

/* Body holds the labels + buttons. The desktop inline-flex layout that used
   to live on .bga-notifications now lives here so collapsing the body on
   mobile (via .bga-notifications--collapsed) doesn't affect the summary. */
.bga-notifications__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
}

.bga-notif-group-label {
	font-size: 11px;
	font-weight: 600;
	color: #8a919e;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	align-self: center;
	margin-left: 4px;
	white-space: nowrap;
}

.bga-notif-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid #e0e4ea;
	border-radius: 20px;
	background: #ffffff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.bga-notif-btn:hover {
	background: #f0f7ff;
	border-color: #1097c5;
	color: #1097c5;
}

.bga-notif-btn__icon {
	font-size: 14px;
	line-height: 1;
}

.bga-notif-btn__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

/* Messages — blue badge */
.bga-notif-btn--messages .bga-notif-btn__badge {
	background: #1097c5;
	color: #ffffff;
}

/* Future bookings — green badge */
.bga-notif-btn--bookings .bga-notif-btn__badge {
	background: #10b981;
	color: #ffffff;
}

/* Awaiting approval — orange badge */
.bga-notif-btn--awaiting .bga-notif-btn__badge {
	background: #f97316;
	color: #ffffff;
}

/* Unpaid — amber badge */
.bga-notif-btn--unpaid .bga-notif-btn__badge {
	background: #f59e0b;
	color: #ffffff;
}

.bga-notif-btn--unpaid {
	border-color: #fcd34d;
}

.bga-notif-btn--unpaid:hover {
	background: #fffbeb;
	border-color: #f59e0b;
	color: #b45309;
}

/* Cancelled — grey/red badge */
.bga-notif-btn--cancelled .bga-notif-btn__badge {
	background: #6b7280;
	color: #ffffff;
}

/* Reviews — gold star badge */
.bga-notif-btn--reviews .bga-notif-btn__badge {
	background: #f5a623;
	color: #ffffff;
}

.bga-notif-btn--reviews {
	border-color: #fcd34d;
}

.bga-notif-btn--reviews:hover {
	background: #fffbeb;
	border-color: #f5a623;
	color: #92400e;
}

/* ============================================================
   Review Picker (eligible stays)
   ============================================================ */

.bga-review-picker {
	margin: 10px 0;
}

.bga-review-picker__heading {
	font-size: 0.85rem;
	font-weight: 600;
	color: #555;
	margin-bottom: 8px;
}

.bga-review-picker__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}

.bga-review-picker__tile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	background: #fff;
	border: 1px solid #e0e4ea;
	border-radius: 10px;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	width: 100%;
	max-width: 360px;
}

.bga-review-picker__tile:hover {
	border-color: #f5a623;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.bga-review-picker__thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
}

.bga-review-picker__thumb--placeholder {
	background: #eef0f3;
}

.bga-review-picker__meta {
	flex: 1 1 auto;
	min-width: 0;
}

.bga-review-picker__name {
	font-size: 0.95rem;
	font-weight: 600;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bga-review-picker__dates {
	font-size: 0.8rem;
	color: #777;
	margin-top: 2px;
}

.bga-review-picker__cta {
	font-size: 0.8rem;
	font-weight: 600;
	color: #f5a623;
	margin-top: 4px;
}

/* ============================================================
   Review Form (inline)
   ============================================================ */

.bga-review-form {
	margin: 10px 0;
	padding: 14px;
	background: #fff;
	border: 1px solid #e0e4ea;
	border-radius: 12px;
	max-width: 420px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bga-review-form__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.bga-review-form__thumb {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	flex: 0 0 auto;
}

.bga-review-form__title-block {
	flex: 1 1 auto;
	min-width: 0;
}

.bga-review-form__title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bga-review-form__sub {
	font-size: 0.8rem;
	color: #777;
	margin-top: 2px;
}

.bga-review-form__stars {
	display: flex;
	gap: 4px;
	margin-bottom: 10px;
}

.bga-review-form__star {
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 1.9rem;
	line-height: 1;
	padding: 2px;
	color: #d5d9df;
	transition: color 0.1s ease, transform 0.1s ease;
}

.bga-review-form__star:hover {
	transform: scale(1.1);
}

.bga-review-form__star--on {
	color: #f5a623;
}

.bga-review-form__text {
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	border: 1px solid #d8dde5;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.9rem;
	line-height: 1.4;
	resize: vertical;
	min-height: 90px;
}

.bga-review-form__text:focus {
	outline: none;
	border-color: #1097c5;
	box-shadow: 0 0 0 2px rgba(16, 151, 197, 0.15);
}

.bga-review-form__error {
	color: #b91c1c;
	font-size: 0.8rem;
	margin-top: 8px;
	min-height: 1em;
}

.bga-review-form__actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 10px;
}

.bga-review-form__cancel {
	padding: 7px 14px;
	background: #fff;
	border: 1px solid #d8dde5;
	border-radius: 8px;
	color: #555;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.bga-review-form__cancel:hover:not(:disabled) {
	background: #f5f6f8;
	border-color: #a8b0bd;
}

.bga-review-form__submit {
	padding: 7px 16px;
	background: #1097c5;
	border: 0;
	border-radius: 8px;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.bga-review-form__submit:hover:not(:disabled) {
	background: #0d7ea7;
}

.bga-review-form__submit:disabled,
.bga-review-form__cancel:disabled {
	opacity: 0.55;
	cursor: wait;
}

.bga-review-form--done {
	border-color: #86efac;
	background: #f0fdf4;
	padding: 14px;
}

.bga-review-form__done {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #15803d;
	font-size: 0.9rem;
}

.bga-review-form__done-icon {
	font-size: 1.1rem;
	font-weight: 700;
}

/* ============================================================
   Mobile: 480px and below
   ============================================================ */

@media (max-width: 600px) {

	/* ---- Notification bar ---- */
	/* Outer stays as flex-column from default. Collapse summary is shown,
	   body becomes a 2-column grid. */
	.bga-notifications__summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 9px 12px;
		gap: 8px;
		cursor: pointer;
		user-select: none;
		font-size: 12px;
		font-weight: 600;
		color: #374151;
		border-bottom: 1px solid #e5e7eb;
	}
	.bga-notifications--collapsed .bga-notifications__summary {
		border-bottom: none;
	}
	.bga-notifications__summary-text {
		display: flex;
		align-items: center;
		gap: 8px;
	}
	.bga-notifications__summary-icon {
		font-size: 14px;
		line-height: 1;
	}
	.bga-notifications__summary-badge {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 20px;
		height: 18px;
		padding: 0 6px;
		border-radius: 9px;
		background: #1097c5;
		color: #ffffff;
		font-size: 11px;
		font-weight: 700;
		line-height: 1;
	}
	.bga-notifications__chevron {
		font-size: 14px;
		line-height: 1;
		color: #6b7280;
		transition: transform 0.2s ease;
	}
	.bga-notifications--collapsed .bga-notifications__chevron {
		transform: rotate(-90deg);
	}
	.bga-notifications--collapsed .bga-notifications__body {
		display: none;
	}
	.bga-notifications__body {
		display: grid;
		grid-template-columns: 1fr 1fr;
		padding: 8px 10px;
		gap: 5px;
	}
	.bga-notif-group-label {
		grid-column: span 2;
		font-size: 10px;
		margin-left: 0;
	}
	.bga-notif-btn {
		padding: 5px 8px;
		font-size: 12px;
		justify-content: center;
		min-width: 0;
	}

	/* ---- Favourites bar — mirror notification bar collapse behaviour ---- */
	.bga-fav-bar {
		padding: 0;
	}
	.bga-fav-bar__summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 9px 12px;
		gap: 8px;
		cursor: pointer;
		user-select: none;
		font-size: 12px;
		font-weight: 600;
		color: #374151;
		border-bottom: 1px solid #e5e7eb;
	}
	.bga-fav-bar--collapsed .bga-fav-bar__summary {
		border-bottom: none;
	}
	.bga-fav-bar__summary-text {
		display: flex;
		align-items: center;
		gap: 8px;
	}
	.bga-fav-bar__summary-icon {
		font-size: 14px;
		line-height: 1;
		color: #ff5a5f;
	}
	.bga-fav-bar__summary-badge {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 20px;
		height: 18px;
		padding: 0 6px;
		border-radius: 9px;
		background: #ff5a5f;
		color: #ffffff;
		font-size: 11px;
		font-weight: 700;
		line-height: 1;
	}
	.bga-fav-bar__chevron {
		font-size: 14px;
		line-height: 1;
		color: #6b7280;
		transition: transform 0.2s ease;
	}
	.bga-fav-bar--collapsed .bga-fav-bar__chevron {
		transform: rotate(-90deg);
	}
	.bga-fav-bar--collapsed .bga-fav-bar__inner {
		display: none;
	}
	.bga-fav-bar__inner {
		padding: 8px 10px;
	}
	.bga-fav-bar__label {
		display: none; /* "Favourites" already in summary header */
	}

	/* ---- Auth form ---- */
	.bga-auth-form {
		width: 100%;
		max-width: 300px;
		padding: 14px;
	}

	/* ---- Message bubbles ---- */
	.bga-bubble {
		max-width: 92%;
	}

	/* ---- Option buttons (touch targets) ---- */
	.bga-option-btn {
		padding: 10px 16px;
		font-size: 14px;
	}

	/* ---- Input area ---- */
	.bga-input-area {
		padding: 8px 8px;
		gap: 6px;
	}
	.bga-input {
		padding: 9px 12px;
		font-size: 16px; /* prevents iOS zoom on focus */
	}
	.bga-send-btn {
		width: 42px;
		height: 42px;
	}

	/* ---- Property cards carousel ---- */
	.bga-cards {
		gap: 10px;
		padding: 4px 0 10px;
		scroll-padding-left: 0;
	}
	/* Slightly narrower than the viewport so a sliver of the next card peeks in — signals more results without a label. */
	.bga-card {
		flex: 0 0 92% !important;
		width: 92% !important;
		scroll-snap-align: start;
		min-width: 0;
	}
	.bga-cards-nav {
		display: none !important;
	}
	/* Position counter — centered below the carousel, signals "N of M". */
	.bga-cards-counter {
		display: block;
		text-align: center;
		padding: 2px 0 4px;
		font-size: 11px;
		font-weight: 600;
		color: #8a919e;
		letter-spacing: 0.03em;
	}

	/* ---- Search results map ---- */
	.bga-cards-map {
		height: 200px;
	}

	/* ---- Detail view ---- */
	.bga-detail {
		width: 100%;
		max-width: 100%;
	}
	.bga-detail__gallery {
		height: 300px;
	}
	.bga-detail__nav {
		width: 40px;
		height: 40px;
	}
	.bga-detail__info {
		padding: 12px;
	}
	.bga-detail__map {
		height: 260px;
	}

	/* ---- Reviews ---- */
	.bga-reviews-row__arrow {
		width: 36px;
		height: 36px;
	}

	/* ---- Nearby places ---- */
	.bga-nearby {
		margin: 0 8px 8px;
	}
	.bga-nearby__map {
		height: 220px;
		min-height: 220px;
	}
	.bga-nearby__name {
		font-size: 0.82rem;
	}

	/* ---- Booking form ---- */
	.bga-booking-form {
		padding: 12px;
	}
	.bga-booking-form__stay-grid {
		grid-template-columns: 1fr;
	}

	/* ---- Booking picker ---- */
	.bga-booking-picker {
		margin-left: 8px;
	}

	/* ---- Conversation (thread messages) ---- */
	.bga-conversation {
		margin: 0 8px 8px;
		padding: 10px;
	}
	.bga-conversation__header {
		margin: -10px -10px 10px;
	}
	.bga-conversation__banner-wrap {
		height: 110px;
	}

	/* ---- Trip bar ---- */
	.bga-trip-leg__label {
		font-size: 11px;
	}
	.bga-trip-leg__dates {
		font-size: 11px;
	}

	/* ---- Lightbox ---- */
	.bga-lightbox__nav {
		padding: 10px 16px;
	}
}

/* ============================================================
   Mobile: 360px and below (small phones)
   ============================================================ */

@media (max-width: 360px) {

	.bga-chat-container {
		font-size: 14px;
	}

	.bga-detail__gallery {
		height: 200px;
	}
	.bga-detail__map {
		height: 220px;
	}

	.bga-nearby__map {
		height: 180px;
		min-height: 180px;
	}

	.bga-cards-map {
		height: 170px;
	}

	.bga-booking-form__image {
		height: 110px;
	}

	.bga-notifications__body {
		padding: 6px 8px;
		gap: 3px 5px;
	}
	.bga-notifications__summary {
		padding: 7px 10px;
		font-size: 11px;
	}
	.bga-notif-btn {
		padding: 4px 8px;
		font-size: 11px;
	}
}
