/* Voyages Public Styles */

.voyages-package-dropdown {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	list-style: none;
	margin: 0;
	max-height: 200px;
	overflow-y: auto;
	padding: 0;
	position: absolute;
	width: 100%;
	z-index: 1000;
}

.voyages-package-dropdown li {
	cursor: pointer;
	padding: 8px 12px;
}

.voyages-package-dropdown li:hover {
	background: #f5f5f5;
}

.voyages-booking-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	margin: 1rem 0;
	--voyages-accent: #1b8f9a;
}

.voyages-booking-field {
	margin-bottom: 10px;
	position: relative;
}

.voyages-booking-date-field {
	width: 100%;
	max-width: 320px;
	position: relative;
}

.voyages-travel-date-field {
	width: 100%;
	max-width: 320px;
	position: relative;
	margin: 1rem 0;
}

.voyages-date-display {
	position: relative;
	display: block;
}

.voyages-date-toggle {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid #d8dcdf;
	border-radius: 6px;
	background-color: #fff !important;
	cursor: pointer;
	font-size: 14px;
	text-align: left;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.voyages-date-toggle:hover,
.voyages-date-toggle:focus {
	border-color: var( --voyages-accent, #1b8f9a );
	outline: none;
	box-shadow: 0 0 0 3px rgba(27, 143, 154, 0.12);
}

.voyages-date-toggle-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	position: relative;
	border: 2px solid var( --voyages-accent, #1b8f9a );
	border-radius: 3px;
}

.voyages-date-toggle-icon::before,
.voyages-date-toggle-icon::after {
	content: '';
	position: absolute;
	top: -4px;
	width: 2px;
	height: 5px;
	background: var( --voyages-accent, #1b8f9a );
}

.voyages-date-toggle-icon::before { left: 3px; }
.voyages-date-toggle-icon::after { right: 3px; }

.voyages-selected-date {
	flex: 1 1 auto;
	font-weight: 600;
	color: #2a2f33;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.voyages-show-more-dates {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 500;
	color: var( --voyages-accent, #1b8f9a );
	text-decoration: underline;
	white-space: nowrap;
}

.voyages-date-select-wrap {
	position: relative;
}

.voyages-date-select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d8dcdf;
	border-radius: 6px;
	background-color: #fff !important;
	font-size: 14px;
	appearance: none;
	cursor: pointer;
}

.voyages-date-select:focus {
	border-color: var( --voyages-accent, #1b8f9a );
	outline: none;
	box-shadow: 0 0 0 3px rgba(27, 143, 154, 0.12);
}

.voyages-date-select-wrap::after {
	content: '';
	position: absolute;
	right: 14px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #7a8085;
	border-bottom: 2px solid #7a8085;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.voyages-date-popover {
	position: fixed;
	z-index: 2147483000;
	width: 320px;
	max-width: 90vw;
}

.voyages-calendar-grid {
	border: 1px solid #e2e5e8;
	border-radius: 10px;
	background-color: #fff !important;
	overflow: hidden;
	box-shadow: 0 12px 28px rgba(20, 30, 35, 0.16);
	isolation: isolate;
}

.voyages-calendar-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 1px solid #eef1f2;
	background-color: #f7f9fa !important;
	position: relative;
}

.voyages-calendar-title {
	font-weight: 600;
	font-size: 13px;
	color: #2a2f33;
	text-transform: capitalize;
}

.voyages-calendar-nav {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: var( --voyages-accent, #1b8f9a );
	padding: 2px 6px;
}

.voyages-calendar-nav:disabled {
	color: #cfd4d7;
	cursor: not-allowed;
}

.voyages-calendar-close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	color: var( --voyages-accent, #1b8f9a );
	position: absolute;
	right: 14px;
}

.voyages-calendar-close:hover {
	text-decoration: underline;
}

.voyages-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	padding: 8px 8px 0;
	background-color: #fff !important;
}

.voyages-calendar-weekdays span {
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: #9aa0a4;
	text-transform: uppercase;
}

.voyages-calendar-month-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	padding: 8px;
	background-color: #fff !important;
}

.voyages-calendar-cell {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	border-radius: 6px;
}

.voyages-calendar-cell-empty {
	background: transparent;
}

.voyages-calendar-cell-blocked {
	color: #d5d8da;
	background: transparent;
}

.voyages-calendar-day {
	border: none;
	background-color: #eef8f9 !important;
	color: #16707a;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.12s ease;
}

.voyages-calendar-day:hover {
	background-color: var( --voyages-accent, #1b8f9a ) !important;
	color: #fff;
}

.voyages-calendar-day-disabled {
	color: #c7ccce;
	text-decoration: line-through;
	cursor: not-allowed;
	background-color: #f5f6f7 !important;
}

.voyages-calendar-day-disabled:hover {
	background-color: #f5f6f7 !important;
	color: #c7ccce;
}

.voyages-calendar-loading {
	padding: 20px 16px;
	text-align: center;
	color: #7a8085;
	font-size: 13px;
	margin: 0;
}

.voyages-booking-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.voyages-passenger-count {
	min-width: 120px;
	padding: 9px 12px;
	border: 1px solid #d8dcdf;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
}

.voyages-passenger-count:focus {
	border-color: var( --voyages-accent, #1b8f9a );
	outline: none;
	box-shadow: 0 0 0 3px rgba(27, 143, 154, 0.12);
}

.voyages-booking-form .voyages-booking-message {
	width: 100%;
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 4px;
}

.voyages-booking-form .voyages-booking-message.voyages-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.voyages-booking-form .voyages-booking-message.voyages-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.voyages-booking-wrapper {
	margin: 1rem 0;
	--voyages-accent: #1b8f9a;
}

.voyages-booking-wrapper .voyages-booking-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	margin-bottom: 10px;
}

.voyages-booking-wrapper .voyages-passenger-count {
	min-width: 120px;
	padding: 9px 12px;
	border: 1px solid #d8dcdf;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
}

.voyages-booking-wrapper .voyages-passenger-count:focus {
	border-color: var( --voyages-accent, #1b8f9a );
	outline: none;
	box-shadow: 0 0 0 3px rgba(27, 143, 154, 0.12);
}

.voyages-booking-wrapper .voyages-booking-message {
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 4px;
}

.voyages-booking-wrapper .voyages-booking-message.voyages-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.voyages-booking-wrapper .voyages-booking-message.voyages-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.voyages-loading {
	opacity: 0.7;
	cursor: wait;
}

.voyages-checkout-passengers {
	margin: 2rem 0;
	padding: 1.5rem;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background: #fafafa;
}

.voyages-checkout-passengers h3 {
	margin-top: 0;
	margin-bottom: 1rem;
}

.voyages-checkout-passengers .voyages-passenger-group {
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}

.voyages-checkout-passengers .voyages-passenger-group legend {
	font-weight: 600;
	padding: 0 0.5rem;
}

.voyages-checkout-passengers .voyages-field {
	margin-bottom: 1rem;
}

.voyages-checkout-passengers .voyages-field label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.25rem;
}

.voyages-checkout-passengers .voyages-field input,
.voyages-checkout-passengers .voyages-field select,
.voyages-checkout-passengers .voyages-field textarea {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.voyages-checkout-passengers .voyages-field-inline {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.voyages-checkout-passengers .voyages-field-inline > div {
	flex: 1;
	min-width: 200px;
}

.voyages-checkout-passengers .voyages-autofill-wrap {
	margin-bottom: 1rem;
}

.voyages-checkout-passengers .voyages-autofill-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	cursor: pointer;
}

.voyages-checkout-passengers .voyages-autofill-label input[type="checkbox"] {
	margin: 0;
}

.voyages-checkout-passengers .voyages-birth-date-input {
	background-color: #fff;
}

.voyages-calendar-day-selected {
	background-color: var( --voyages-accent, #1b8f9a ) !important;
	color: #fff !important;
}

.voyages-birth-date-wrap {
	position: relative;
	display: inline-block;
	width: 100%;
}

.voyages-birth-date-wrap .voyages-birth-date-input {
	padding-right: 2.5rem;
}

.voyages-birth-date-icon {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	user-select: none;
}

.voyages-calendar-month-select,
.voyages-calendar-year-select {
	border: 1px solid #d8dcdf;
	border-radius: 4px;
	padding: 2px 4px;
	font-size: 13px;
	font-weight: 600;
	color: #2a2f33;
	background: #fff;
	cursor: pointer;
}

.voyages-calendar-year-select {
	margin-left: 2px;
}

/* === Rewards Dashboard === */

.voyages-rewards-dashboard {
	max-width: 800px;
	margin: 0 auto;
}

.voyages-rewards-dashboard h2 {
	margin-bottom: 1.5rem;
}

.voyages-rewards-balance,
.voyages-rewards-withdrawal-limit,
.voyages-rewards-refer,
.voyages-rewards-coupon,
.voyages-rewards-history,
.voyages-rewards-credits {
	margin-bottom: 2rem;
	padding: 1.5rem;
	border: 1px solid #e2e5e8;
	border-radius: 8px;
	background: #faffbfc;
}

.voyages-rewards-balance h3,
.voyages-rewards-withdrawal-limit h3,
.voyages-rewards-refer h3,
.voyages-rewards-coupon h3,
.voyages-rewards-history h3,
.voyages-rewards-credits h3 {
	margin-top: 0;
}

.voyages-rewards-progress-bar {
	width: 100%;
	height: 12px;
	background: #e2e5e8;
	border-radius: 6px;
	overflow: hidden;
	margin: 0.75rem 0;
}

.voyages-rewards-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #1b8f9a, #075875);
	border-radius: 6px;
	transition: width 0.3s ease;
}

/* Credit status badges */
.voyages-credit-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.voyages-credit-status-pending {
	background: #fff3cd;
	color: #856404;
}

.voyages-credit-status-available {
	background: #d4edda;
	color: #155724;
}

.voyages-credit-status-utilise {
	background: #d1ecf1;
	color: #0c5460;
}

.voyages-credit-status-annule {
	background: #f8d7da;
	color: #721c24;
	text-decoration: line-through;
}

/* === Points Dashboard === */

.voyages-points-dashboard {
	max-width: 800px;
	margin: 0 auto;
}

.voyages-points-dashboard h2 {
	margin-bottom: 1.5rem;
}

.voyages-points-balance,
.voyages-points-lots,
.voyages-points-redemptions,
.voyages-points-info {
	margin-bottom: 2rem;
	padding: 1.5rem;
	border: 1px solid #e2e5e8;
	border-radius: 8px;
	background: #faffbfc;
}

.voyages-points-balance h3,
.voyages-points-lots h3,
.voyages-points-redemptions h3,
.voyages-points-info h3 {
	margin-top: 0;
}

.voyages-points-info ul {
	list-style: disc;
	padding-left: 1.5rem;
}

.voyages-points-info li {
	margin-bottom: 0.5rem;
}

.voyages-points-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.voyages-points-status-active {
	background: #d4edda;
	color: #155724;
}

.voyages-points-status-expired {
	background: #f8d7da;
	color: #721c24;
}

.voyages-points-status-exhausted {
	background: #d1ecf1;
	color: #0c5460;
}

/* Points checkout checkbox */
.voyages-points-checkout {
	margin: 1.5rem 0;
	padding: 1rem 1.5rem;
	border: 1px solid #e2e5e8;
	border-radius: 8px;
	background: #faffbfc;
}

.voyages-points-checkout h3 {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.voyages-points-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	cursor: pointer;
}

.voyages-points-checkbox input[type="checkbox"] {
	margin: 0;
}
