.zema-search-widget {
	direction: rtl;
	max-width: 900px;
	margin: 0 auto;
	font-family: inherit;
}

.zema-search-form {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: flex-end;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
	margin-bottom: 24px;
}

.zema-field {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 130px;
}

.zema-field-narrow {
	max-width: 130px;
}

.zema-field label {
	font-size: 13px;
	color: #555;
	margin-bottom: 6px;
}

.zema-field input,
.zema-field select {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
}

.zema-btn {
	background: #f5a623;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 12px 28px;
	font-size: 15px;
	cursor: pointer;
	font-family: inherit;
}

.zema-btn:hover {
	background: #e0950f;
}

.zema-btn:disabled {
	opacity: .6;
	cursor: default;
}

.zema-search-status {
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 18px;
	font-size: 14px;
}

.zema-status-error { background: #fdecea; color: #8b1a10; border: 1px solid #f5c6c2; }
.zema-status-info  { background: #eef4fd; color: #1c4d8c; border: 1px solid #c9dcf7; }
.zema-status-success { background: #eaf7ee; color: #1f6f3a; border: 1px solid #bfe6cb; }

.zema-results-section {
	margin-bottom: 28px;
}

.zema-section-title {
	font-size: 16px;
	font-weight: 700;
	color: #222;
	margin-bottom: 12px;
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.zema-section-subtitle {
	font-size: 12px;
	font-weight: 400;
	color: #888;
}

.zema-card {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 14px;
}

.zema-card-direct {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

.zema-route {
	font-size: 17px;
	font-weight: 600;
	color: #222;
}

.zema-meta {
	font-size: 13px;
	color: #777;
	margin-top: 6px;
	line-height: 1.9;
}

.zema-price {
	font-size: 20px;
	font-weight: 700;
	color: #f5a623;
	white-space: nowrap;
}

.zema-card-selftransfer {
	border-color: #f5a623;
	background: #fffdf8;
}

.zema-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.zema-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.zema-badge-selftransfer {
	background: #fff0d6;
	color: #a35c00;
}

.zema-hub {
	font-size: 13px;
	color: #888;
}

.zema-pairing-legs {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 10px;
}

.zema-leg-row {
	font-size: 13px;
	color: #444;
}

.zema-charter-badge {
	display: inline-block;
	background: #fdecea;
	color: #8b1a10;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	margin-right: 6px;
}

.zema-connection-info {
	font-size: 12px;
	color: #777;
	margin-bottom: 8px;
}

.zema-pairing-warnings {
	border-top: 1px dashed #e6e6e6;
	padding-top: 8px;
}

.zema-warning {
	font-size: 12px;
	color: #7a5200;
	margin: 4px 0;
}

/* ── Search limit banner ────────────────────────────────── */
.zema-limit-banner {
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 6px;
	padding: 8px 14px;
	margin: 10px 0;
	font-size: .9rem;
	text-align: right;
}
.zema-limit-exhausted {
	background: #fce4ec;
	border-color: #f48fb1;
}

/* ── Reserve button on cards ────────────────────────────── */
.zema-card-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	margin-top: 8px;
}
.zema-btn-book {
	background: #1976d2;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 20px;
	cursor: pointer;
	font-size: .95rem;
	font-weight: 600;
}
.zema-btn-book:hover { background: #1565c0; }

/* ── Modal ──────────────────────────────────────────────── */
.zema-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.zema-modal[hidden] { display: none; }
.zema-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.55);
}
.zema-modal-box {
	position: relative;
	background: #fff;
	border-radius: 10px;
	padding: 28px 24px;
	width: min(520px, 95vw);
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.zema-modal-close {
	position: absolute;
	top: 12px;
	left: 12px;
	background: none;
	border: none;
	font-size: 1.4rem;
	cursor: pointer;
	color: #555;
	line-height: 1;
}
.zema-modal-title {
	font-size: 1.2rem;
	margin: 0 0 16px;
	color: #1a237e;
}

/* ── Booking summary ────────────────────────────────────── */
.zema-booking-summary {
	background: #e8f5e9;
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 18px;
	font-size: .9rem;
	text-align: right;
}

/* ── Booking form ───────────────────────────────────────── */
.zema-booking-form .zema-fieldset {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 16px;
}
.zema-booking-form legend {
	font-weight: 600;
	font-size: .9rem;
	color: #1565c0;
	padding: 0 6px;
}
.zema-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
@media (max-width: 480px) {
	.zema-form-row { grid-template-columns: 1fr; }
}
.zema-booking-form .zema-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.zema-booking-form label {
	font-size: .85rem;
	color: #333;
	font-weight: 500;
}
.zema-booking-form input {
	border: 1px solid #bdbdbd;
	border-radius: 5px;
	padding: 8px 10px;
	font-size: .95rem;
	text-align: right;
	direction: rtl;
}
.zema-booking-form input:focus {
	outline: none;
	border-color: #1976d2;
	box-shadow: 0 0 0 2px rgba(25,118,210,.2);
}
.required { color: #e53935; }
.zema-booking-error {
	background: #fce4ec;
	border: 1px solid #f48fb1;
	border-radius: 5px;
	padding: 10px;
	margin: 10px 0;
	font-size: .9rem;
	color: #b71c1c;
	text-align: right;
}
.zema-btn-primary {
	background: #1976d2;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 28px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	width: 100%;
	margin-top: 8px;
}
.zema-btn-primary:hover { background: #1565c0; }
.zema-btn-primary:disabled { background: #90caf9; cursor: not-allowed; }

/* ── Confirmation box ───────────────────────────────────── */
.zema-confirmation-box { text-align: center; }
.zema-confirm-icon { font-size: 2.5rem; margin-bottom: 8px; }
.zema-reference-code {
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: .1em;
	color: #1a237e;
	background: #e8eaf6;
	border-radius: 6px;
	padding: 8px 16px;
	display: inline-block;
	margin: 8px 0;
}
.zema-confirm-note { font-size: .9rem; color: #555; }

/* ── Limit modal actions ────────────────────────────────── */
.zema-limit-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 16px;
}
.zema-btn {
	border-radius: 6px;
	padding: 9px 22px;
	cursor: pointer;
	font-size: .95rem;
	text-decoration: none;
	display: inline-block;
	border: 1px solid #1976d2;
	color: #1976d2;
	background: #fff;
}
.zema-btn:hover { background: #e3f2fd; }
