/**
 * Additions on top of the template (style.css) for the Laravel / Livewire
 * build: avatar initials, status badges, form errors,
 * file uploads, and loading states. Uses the template's CSS variables.
 */

/* NAV: initials instead of a profile photo */
.nav-initials {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	color: var(--cr-white);
	background: var(--cr-primary);
}


/* STATUS BADGES (visa applications, bookings) */
.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	border-radius: var(--cr-radius-pill);
	white-space: nowrap;
}
.status-badge.is-success { color: #16653F; background: #E5F5EC; }
.status-badge.is-danger  { color: #A3241B; background: #FDECEA; }
.status-badge.is-warning { color: #7A4B00; background: #FFF2D6; }
.status-badge.is-info    { color: #1F3F99; background: #E8EEFF; }
.status-badge.is-neutral { color: #3C4659; background: #EEF1F5; }

/* FORMS */
.field-error {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #B42318;
}
.form-control.is-invalid,
.form-select.is-invalid {
	border-color: #D92D20 !important;
}
.form-hint {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--cr-muted);
}
.flash-message {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 15px;
	border-radius: var(--cr-radius-md);
	color: #16653F;
	background: #E5F5EC;
	border: 1px solid #BFE6CF;
}
.flash-message.is-error {
	color: #A3241B;
	background: #FDECEA;
	border-color: #F6C7C2;
}

/* LIVEWIRE LOADING STATES */
[wire\:loading].loading-overlay,
.results-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
.btn-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: -3px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
	to { transform: rotate(360deg); }
}

/* VISA DOCUMENT UPLOAD ROWS */
.doc-upload {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-md);
	background: var(--cr-white);
}
.doc-upload + .doc-upload {
	margin-top: 10px;
}
.doc-upload .doc-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	color: var(--cr-primary);
	background: var(--cr-primary-50);
}
.doc-upload .doc-text {
	flex: 1 1 220px;
	min-width: 0;
}
.doc-upload .doc-text strong {
	display: block;
	font-size: 15px;
}
.doc-upload .doc-text small {
	color: var(--cr-muted);
}
.doc-upload .doc-pick {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--cr-white);
	background: var(--cr-ink);
	border-radius: var(--cr-radius-md);
	cursor: pointer;
}
.doc-upload .doc-pick input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}
.doc-upload.is-done .doc-icon {
	color: #16653F;
	background: #E5F5EC;
}

/* VISA PROGRESS TRACKER (customer dashboard) */
.visa-tracker {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin: 22px 0 6px;
	padding: 0;
	list-style: none;
}
.visa-tracker li {
	font-size: 13px;
	font-weight: 700;
	color: var(--cr-muted);
}
.visa-tracker li::before {
	content: "";
	display: block;
	height: 6px;
	margin-bottom: 10px;
	border-radius: 3px;
	background: var(--cr-line);
}
.visa-tracker li.is-done { color: var(--cr-ink); }
.visa-tracker li.is-done::before { background: #1E9E5A; }
.visa-tracker li.is-current { color: var(--cr-ink); }
.visa-tracker li.is-current::before { background: var(--cr-primary); }
@media (max-width: 575px) {
	.visa-tracker {
		grid-template-columns: 1fr;
	}
}

/* DASHBOARD CARDS */
.account-card {
	padding: 24px;
	margin-bottom: 20px;
	background: var(--cr-white);
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-lg);
}
.account-card h3 {
	margin: 0 0 4px;
	font-size: 20px;
}
.account-card .meta {
	font-size: 14px;
	color: var(--cr-muted);
}
.agent-note {
	margin-top: 16px;
	padding: 14px 16px;
	font-size: 15px;
	background: var(--cr-surface);
	border-radius: var(--cr-radius-md);
}
.empty-state {
	padding: 48px 24px;
	text-align: center;
	border: 1px dashed var(--cr-line-strong);
	border-radius: var(--cr-radius-lg);
	background: var(--cr-white);
}
.empty-state i {
	font-size: 32px;
	color: var(--cr-primary);
}
.empty-state h4 {
	margin: 14px 0 6px;
}

/* VISA CARD flag chip */
.visa-flag {
	width: 28px;
	height: 20px;
	object-fit: cover;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Nav: plain (non-dropdown) top items share the dropdown link look */
.navbar-nav > li > a.active {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}

/* Visa tab in the homepage search */
.search-section .visa-search-note {
	margin: 6px 15px 0;
	font-size: 13px;
	color: var(--cr-muted);
}

/* Photo gallery with fewer than 5 photos */
.stay-gallery.has-1 { grid-template-columns: 1fr; }
.stay-gallery.has-2 { grid-template-columns: 2fr 1fr; }
.stay-gallery.has-2 .stay-gallery-item:not(.is-main) { grid-row: span 2; }
.stay-gallery.has-3 { grid-template-columns: 2fr 1fr; }
.stay-gallery.has-4 { grid-template-columns: 2fr 1fr 1fr; }
.stay-gallery.has-4 .stay-gallery-item:last-child { grid-column: span 2; }

/* Checkout buttons rendered as <button> (template used links) */
button.checkout-back {
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}
button.stay-cta {
	border: 0;
	cursor: pointer;
}
button.stay-cta:disabled {
	opacity: 0.7;
	cursor: progress;
}
.pay-methods-stack {
	grid-template-columns: 1fr !important;
}

/* Visa booking card add-ons */
.booking-card-addons {
	display: grid;
	gap: 10px;
	margin: 14px 0 4px;
	padding: 14px;
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-md);
}
.booking-card-addons .addons-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cr-muted);
}
.booking-card-addons .addon-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 14px;
	cursor: pointer;
}
.booking-card-addons .addon-row input {
	margin-right: 6px;
}
.rich-text p:last-child {
	margin-bottom: 0;
}
.filter ul li label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

/* Airline initial badge (no logo files needed) */
.airline-badge {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	font-size: 17px;
	font-weight: 800;
	color: var(--cr-white);
	background: var(--cr-primary);
}


/* Dashboard */
.profile-initials {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	font-size: 26px;
	font-weight: 800;
	color: var(--cr-white);
	background: var(--cr-primary);
}
.booking-type-icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	font-size: 26px;
	color: var(--cr-primary);
	background: var(--cr-primary-50);
}
.user-profile-tabs .nav-tabs a {
	cursor: pointer;
}

/* Quote request type picker */
.quote-types {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 22px;
}
@media (max-width: 767px) {
	.quote-types {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Blog load more as a button */
button.blog-load-more {
	border: 0;
	cursor: pointer;
}

/* PAYMENT OPTIONS */
.pay-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
@media (max-width: 575px) {
	.pay-options { grid-template-columns: 1fr; }
}
.pay-option {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-md);
	background: var(--cr-white);
	cursor: pointer;
	transition: border-color var(--cr-ease), box-shadow var(--cr-ease);
}
.pay-option:hover { border-color: var(--cr-line-strong); }
.pay-option.is-selected {
	border-color: var(--cr-primary);
	box-shadow: 0 0 0 1px var(--cr-primary);
	background: var(--cr-primary-50);
}
.pay-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.pay-option-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	font-size: 18px;
	color: var(--cr-primary);
	background: var(--cr-white);
	border: 1px solid var(--cr-line);
}
.pay-option-text strong { display: block; font-size: 15px; }
.pay-option-text small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--cr-muted); }
.pay-option input:focus-visible + .pay-option-icon { outline: 2px solid var(--cr-primary); outline-offset: 2px; }

.pay-instructions {
	margin-top: 4px;
	padding: 16px;
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-md);
	background: var(--cr-surface);
}
.pay-instructions-head { font-weight: 700; margin-bottom: 10px; }
.pay-instructions-head i { color: var(--cr-primary); margin-right: 6px; }
.pay-instructions dl { margin: 0; display: grid; gap: 8px; }
.pay-instructions dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 14px; }
.pay-instructions dt { font-weight: 500; color: var(--cr-muted); }
.pay-instructions dd { margin: 0; font-weight: 600; word-break: break-all; text-align: right; }
.checkout-summary .pay-instructions { margin-top: 14px; }

/* ==========================================================
   AUTH PAGES (sign in, register, password reset)
   ========================================================== */
.auth-page {
	padding: 48px 16px 80px;
	background: var(--cr-surface);
}
.auth-wrap {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	max-width: 1040px;
	margin: 0 auto;
	overflow: hidden;
	background: var(--cr-white);
	border: 1px solid var(--cr-line);
	border-radius: 24px;
	box-shadow: var(--cr-shadow-lg);
}
.auth-aside {
	position: relative;
	background-size: cover;
	background-position: center;
	color: #fff;
}
.auth-aside::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(var(--cr-ink-rgb), 0.55), rgba(var(--cr-ink-rgb), 0.88));
}
.auth-aside-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 40px;
}
.auth-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	text-decoration: none;
}
.auth-brand:hover { color: #fff; }
.auth-aside h2 {
	margin: auto 0 20px;
	font-size: 30px;
	line-height: 1.2;
	color: #fff;
}
.auth-benefits {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 14px;
	font-size: 15px;
}
.auth-benefits li { display: flex; gap: 12px; align-items: flex-start; }
.auth-benefits i {
	flex: none;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.16);
}
.auth-main { padding: 44px 48px; }
.auth-switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	margin-bottom: 28px;
	background: var(--cr-surface);
	border: 1px solid var(--cr-line);
	border-radius: 999px;
}
.auth-switch a {
	padding: 10px 12px;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--cr-muted);
	text-decoration: none;
	border-radius: 999px;
	transition: background var(--cr-ease), color var(--cr-ease);
}
.auth-switch a:hover { color: var(--cr-ink); }
.auth-switch a.active {
	color: var(--cr-ink);
	background: var(--cr-white);
	box-shadow: 0 1px 3px rgba(var(--cr-ink-rgb), 0.14);
}
.auth-title { margin: 0; font-size: 28px; line-height: 1.2; }
.auth-subtitle { margin: 8px 0 24px; color: var(--cr-muted); }
.auth-form { display: grid; gap: 16px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}
.auth-field label small { font-weight: 400; color: var(--cr-muted); }
.auth-field .form-control,
.auth-field .form-select {
	height: 48px;
	border-radius: 12px;
	font-size: 15px;
}
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.auth-label-row a { font-size: 13px; font-weight: 600; }
.auth-password { position: relative; }
.auth-password .form-control { padding-right: 48px; }
.auth-password button {
	position: absolute;
	top: 0;
	right: 0;
	width: 48px;
	height: 48px;
	border: 0;
	background: none;
	color: var(--cr-muted);
	cursor: pointer;
}
.auth-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	cursor: pointer;
}
.auth-check input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.auth-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	margin-top: 4px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--cr-primary);
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: background var(--cr-ease);
}
.auth-submit:hover { background: var(--cr-primary-600); }
.auth-submit:disabled { opacity: 0.7; cursor: progress; }
.auth-footer { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--cr-muted); }
.auth-footer a { font-weight: 700; }

@media (max-width: 991px) {
	.auth-wrap { grid-template-columns: 1fr; max-width: 560px; }
	.auth-aside { display: none; }
}
@media (max-width: 575px) {
	.auth-page { padding: 16px 12px 48px; }
	.auth-wrap { border-radius: 18px; }
	.auth-main { padding: 24px 18px 28px; }
	.auth-grid { grid-template-columns: 1fr; }
	.auth-title { font-size: 24px; }
}

[x-cloak] { display: none !important; }

/* ==========================================================
   CUSTOMER ACCOUNT
   ========================================================== */
.account-page {
	padding: 36px 0 80px;
	background: var(--cr-surface);
}
.account-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}
.account-avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	background: var(--cr-primary);
}
.account-head-text { min-width: 0; flex: 1; }
.account-head h1 { margin: 0; font-size: 26px; }
.account-head p { margin: 2px 0 0; color: var(--cr-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-signout button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cr-ink);
	background: var(--cr-white);
	border: 1px solid var(--cr-line);
	border-radius: 999px;
	cursor: pointer;
}
.account-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.account-nav {
	position: sticky;
	top: 100px;
	display: grid;
	gap: 4px;
	padding: 10px;
	background: var(--cr-white);
	border: 1px solid var(--cr-line);
	border-radius: 18px;
}
.account-nav button {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	color: var(--cr-ink-2);
	background: none;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	white-space: nowrap;
}
.account-nav button i { width: 18px; text-align: center; color: var(--cr-muted); }
.account-nav button em {
	margin-left: auto;
	min-width: 24px;
	padding: 1px 8px;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	text-align: center;
	background: var(--cr-surface);
	border-radius: 999px;
}
.account-nav button:hover { background: var(--cr-surface); }
.account-nav button.active { color: var(--cr-primary); background: var(--cr-primary-50); }
.account-nav button.active i { color: var(--cr-primary); }
.account-content { min-width: 0; }
.account-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.account-section-head h2 { margin: 0; font-size: 22px; }
.account-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}
.account-stat {
	padding: 18px;
	text-align: left;
	background: var(--cr-white);
	border: 1px solid var(--cr-line);
	border-radius: 16px;
	cursor: pointer;
}
.account-stat strong { display: block; font-size: 28px; line-height: 1; }
.account-stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--cr-muted); }
.account-alert {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
	padding: 14px 16px;
	color: #7A4B00;
	text-decoration: none;
	background: #FFF6E0;
	border: 1px solid #F5D990;
	border-radius: 14px;
}
.account-alert:hover { color: #7A4B00; }
.account-alert span { flex: 1; font-size: 14px; }
.account-alert strong { display: block; font-size: 15px; }
.account-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}
.account-card h3 { margin: 0 0 14px; font-size: 18px; }
.account-card-top h3 { margin: 4px 0; }
.account-card-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.account-card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--cr-line);
	font-weight: 600;
}
.account-muted { color: var(--cr-muted); font-size: 13px; }
.account-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	color: var(--cr-ink);
	text-decoration: none;
	border-top: 1px solid var(--cr-line);
}
.account-row:first-of-type { border-top: 0; padding-top: 0; }
.account-row:hover { color: var(--cr-primary); }
.account-row-text { flex: 1; min-width: 0; }
.account-row-text strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-row-text small { color: var(--cr-muted); }
.account-row-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	color: var(--cr-primary);
	background: var(--cr-primary-50);
}
.account-row-icon.is-lg { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
.account-message { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--cr-line); }
.account-message:first-of-type { border-top: 0; padding-top: 0; }
.account-message p { margin: 4px 0; font-size: 14px; }
.account-message small { color: var(--cr-muted); }
.account-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-weight: 700; }
.account-empty p { color: var(--cr-muted); }
.account-offers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.account-offer {
	display: block;
	padding: 16px;
	color: var(--cr-ink);
	text-decoration: none;
	background: var(--cr-white);
	border: 1px solid var(--cr-line);
	border-radius: 16px;
}
.account-offer em {
	display: inline-block;
	margin-bottom: 8px;
	padding: 2px 10px;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	color: var(--cr-primary);
	background: var(--cr-primary-50);
	border-radius: 999px;
}
.account-offer strong { display: block; }
.account-offer span { font-size: 13px; color: var(--cr-muted); }
.account-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.account-pills button {
	padding: 7px 14px;
	font-size: 14px;
	font-weight: 600;
	background: var(--cr-white);
	border: 1px solid var(--cr-line);
	border-radius: 999px;
	cursor: pointer;
}
.account-pills button.active { color: #fff; background: var(--cr-ink); border-color: var(--cr-ink); }
.auth-submit.is-secondary { background: var(--cr-ink); }
.auth-submit.is-secondary:hover { background: var(--cr-ink-2); }

@media (max-width: 991px) {
	.account-layout { grid-template-columns: 1fr; gap: 16px; }
	.account-nav {
		position: static;
		display: flex;
		gap: 6px;
		padding: 6px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.account-nav::-webkit-scrollbar { display: none; }
	.account-nav button { width: auto; flex: none; padding: 10px 14px; }
	.account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
	.account-page { padding: 20px 0 56px; }
	.account-head { gap: 12px; }
	.account-head h1 { font-size: 21px; }
	.account-avatar { width: 46px; height: 46px; font-size: 18px; }
	.account-signout span { display: none; }
	.account-signout button { padding: 10px 12px; }
	.account-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.account-stat { padding: 12px; }
	.account-stat strong { font-size: 22px; }
	.account-stat span { font-size: 12px; }
	.account-offers { grid-template-columns: 1fr; }
	.account-card { padding: 18px; border-radius: 16px; }
	.account-card-foot .stay-cta { width: 100%; justify-content: center; }
}

/* Price summaries: show that a total is being recalculated */
.checkout-summary-body { transition: opacity 0.15s ease; }
.checkout-summary-body.is-updating { opacity: 0.55; }
.booking-card-hint {
	margin: 14px 0 0;
	padding: 12px 14px;
	font-size: 14px;
	color: var(--cr-muted);
	background: var(--cr-surface);
	border-radius: var(--cr-radius-md);
}

/* ==========================================================
   LIVE PLACE SEARCH
   ========================================================== */
.place-search { position: relative; }
.place-search.search-bar-field { overflow: visible; }
.place-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 1050;
	width: max(100%, 380px);
	max-width: calc(100vw - 32px);
	max-height: 360px;
	overflow-y: auto;
	padding: 6px;
	background: var(--cr-white);
	border: 1px solid var(--cr-line);
	border-radius: 16px;
	box-shadow: var(--cr-shadow-lg);
	cursor: default;
}
.place-option {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 12px;
	text-align: left;
	color: var(--cr-ink);
	background: none;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}
.place-option.is-active,
.place-option:hover { background: var(--cr-surface); }
.place-option-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	color: var(--cr-primary);
	background: var(--cr-primary-50);
}
.place-option-text { flex: 1; min-width: 0; }
.place-option-text strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-option-text small { display: block; font-size: 13px; color: var(--cr-muted); }
.place-option-meta {
	flex: none;
	font-size: 12px;
	font-weight: 700;
	color: #16653F;
	background: #E5F5EC;
	padding: 4px 8px;
	border-radius: 999px;
	white-space: nowrap;
}
.place-empty,
.place-loading {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 14px;
	font-size: 14px;
	color: var(--cr-muted);
}
.place-empty i { margin-top: 2px; font-size: 18px; color: var(--cr-primary); }
.place-empty a { font-weight: 700; white-space: nowrap; }
@media (max-width: 575px) {
	.place-dropdown { width: 100%; }
	.place-option-meta { display: none; }
}

/* Native selects / dates inside the results search bar */
.search-bar-field select.search-select,
.search-bar-field input[type="date"] {
	width: 100%;
	padding: 0;
	font-size: 15px;
	color: var(--cr-ink);
	background-color: transparent;
	border: 0;
	outline: 0;
	cursor: pointer;
}
.search-bar-field select.search-select { appearance: auto; }

/* Image logo: keep it inside the 72px header bar */
.navbar-brand img {
	display: block;
	height: 44px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
}
@media (max-width: 991px) {
	.navbar-brand img { height: 34px; max-width: 150px; }
}

/* ==========================================================
   MOBILE FIXES: keep every card inside the screen
   A plain "1fr" grid column grows to fit its widest content
   (long emails, wallet addresses, status badges) and the page
   then cuts it off. minmax(0, 1fr) lets the column shrink.
   ========================================================== */
.checkout-main,
.checkout-summary,
.account-main,
.account-card { min-width: 0; }
.listing-facts strong,
.checkout-facts strong,
.account-message p,
.checkout-note { overflow-wrap: anywhere; }
.checkout-facts li { gap: 12px; }
.checkout-facts strong { text-align: right; }

@media (max-width: 991px) {
	.checkout-grid { grid-template-columns: minmax(0, 1fr); }
	.account-grid { grid-template-columns: minmax(0, 1fr); }
	.account-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575px) {
	/* thank-you header: smaller tick so its halo isn't cut off */
	.confirm-title { gap: 14px; align-items: flex-start; }
	.confirm-icon { width: 48px; height: 48px; margin: 6px 0 0 6px; font-size: 20px; box-shadow: 0 0 0 6px rgba(21, 128, 61, 0.12); }

	/* detail facts: one per row, label left / value right */
	.listing-facts { grid-template-columns: minmax(0, 1fr); }
	.listing-facts li { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
	.listing-facts li strong { text-align: right; }

	/* payment details: label above value so long IBANs / wallets fit */
	.pay-instructions dl div { flex-direction: column; gap: 2px; }
	.pay-instructions dd { text-align: left; }

	/* back / continue and similar button rows: full-width, main action first */
	.checkout-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
	.checkout-actions > a,
	.checkout-actions > button { width: 100%; justify-content: center; margin: 0; }

	/* account rows: status badge drops under the title instead of pushing it off screen */
	.account-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; }
	.account-row .status-badge { grid-column: 2 / -1; justify-self: start; }
}

/* Detail pages: leave room under the footer for the fixed price / Reserve bar on phones */
@media (max-width: 991px) {
	body:has(.booking-bar) #footer { padding-bottom: 84px; }
}

/* Photo gallery on phones with only 1 or 2 photos (no empty grey band under the photo) */
@media (max-width: 767px) {
	.stay-gallery.has-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 260px; }
	.stay-gallery.has-1 .stay-gallery-item.is-main { grid-column: auto; }
	.stay-gallery.has-2 { grid-template-rows: 2fr 1fr; }
	.stay-gallery.has-2 .stay-gallery-item:not(.is-main) { grid-row: auto; grid-column: span 2; }
}

/* "Nothing matched" suggestions under the empty state on listing pages */
.alt-results { margin-top: 28px; }
.alt-results-title { margin: 0 0 14px; font-size: 18px; letter-spacing: -0.01em; }
.pay-instructions-note { margin: 10px 0 0; font-size: 14px; color: var(--cr-ink); }

/* Payment picker: the template draws a box around every <span> inside .pay-option;
   here the whole option is the box, so reset its inner icon and text. */
.pay-option .pay-option-icon,
.pay-option .pay-option-text {
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
}
.pay-option .pay-option-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	color: var(--cr-primary);
	background: var(--cr-primary-50);
}
.pay-option .pay-option-text { display: block; flex: 1; min-width: 0; color: var(--cr-ink); }
.pay-option.is-selected .pay-option-icon { color: #fff; background: var(--cr-primary); }

/* ==========================================================
   LIVE FLIGHT TRACKER (partials/flight-tracker.blade.php)
   ========================================================== */
.ft-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.ft-head h3 { margin: 0; }
.ft-head .status-badge i { font-size: 12px; }
.ft-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.ft-end strong { display: block; font-size: 26px; line-height: 1; letter-spacing: -0.02em; color: var(--cr-ink); }
.ft-end span { display: block; margin-top: 4px; font-size: 13px; color: var(--cr-muted); }
.ft-end.is-right { text-align: right; }
.ft-line { position: relative; height: 4px; margin: 0 10px; background: repeating-linear-gradient(90deg, var(--cr-line) 0 8px, transparent 8px 14px); border-radius: 4px; }
.ft-line::before, .ft-line::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: 2px solid var(--cr-primary); border-radius: 50%; background: #fff; }
.ft-line::before { left: -10px; }
.ft-line::after { right: -10px; }
.ft-line-fill { height: 100%; background: var(--cr-primary); border-radius: 4px; transition: width 0.8s ease; }
.ft-plane { position: absolute; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; color: #fff; background: var(--cr-primary); border-radius: 50%; box-shadow: 0 0 0 5px rgba(20, 99, 255, 0.15); transition: left 0.8s ease; }
.ft-plane i { font-size: 14px; }
.ft-plane.is-flying { animation: ft-pulse 2s ease-in-out infinite; }
@keyframes ft-pulse { 50% { box-shadow: 0 0 0 10px rgba(20, 99, 255, 0.08); } }
@media (prefers-reduced-motion: reduce) { .ft-plane.is-flying { animation: none; } }
.ft-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 26px 0 0; padding: 0; list-style: none; }
.ft-steps li { padding-top: 10px; font-size: 12px; font-weight: 600; text-align: center; color: var(--cr-muted); border-top: 4px solid var(--cr-line); }
.ft-steps li.is-done { color: var(--cr-ink); border-color: #1E9E5A; }
.ft-steps li.is-current { color: var(--cr-primary); border-color: var(--cr-primary); }
.ft-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 22px 0 0; overflow: hidden; background: var(--cr-line); border: 1px solid var(--cr-line); border-radius: var(--cr-radius-md); }
.ft-facts div { padding: 12px 14px; background: #fff; min-width: 0; }
.ft-facts div.is-wide { grid-column: 1 / -1; }
.ft-facts dt { font-size: 12px; font-weight: 500; color: var(--cr-muted); }
.ft-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--cr-ink); overflow-wrap: anywhere; }
.ft-updated { margin: 14px 0 0; font-size: 13px; color: var(--cr-muted); }
.ft-updated i { margin-right: 4px; }
.ft-empty { margin: 18px 0 0; }
.ft-history { margin-top: 16px; border-top: 1px solid var(--cr-line); padding-top: 12px; }
.ft-history summary { cursor: pointer; font-weight: 700; color: var(--cr-primary); }
.ft-history ol { margin: 12px 0 0; padding: 0; list-style: none; }
.ft-history li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 8px 0; font-size: 14px; border-top: 1px dashed var(--cr-line); }
.ft-history li:first-child { border-top: 0; }
.ft-history time { font-weight: 700; color: var(--cr-muted); }
.ft-history small { display: block; color: var(--cr-muted); }
.ft-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.track-wrap { max-width: 760px; margin: 0 auto; }
.track-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 575px) {
	.ft-end strong { font-size: 20px; }
	.ft-route { gap: 10px; }
	.ft-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ft-steps li { font-size: 10.5px; }
	.track-form .form-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Booking page with a live tracker: on phones show the tracker before the summary card */
@media (max-width: 991px) { .checkout-grid.is-tracking .checkout-summary { order: 0; } }
