/**
 * Yacht Availability Shortcode Styles
 * @package    Bm_Api
 * @subpackage Bm_Api/public/css
 */

.yacht-availability-container {
	margin: 40px 0;
}
/* Loading State */
.yacht-availability-loading {
	text-align: center;
	padding: 60px 30px;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.yacht-availability-loading .loading-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #2ecc71;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.yacht-availability-loading p {
	margin: 0;
	font-size: 16px;
	color: #666;
}

/* Error State */
.yacht-availability-error {
	text-align: center;
	padding: 40px 30px;
	background: #fee;
	border: 1px solid #fcc;
	border-radius: 8px;
	color: #c33;
}
/* Select Period Message */
.yacht-availability-select-period {
	text-align: center;
	padding: 30px;
	background: #f0f7ff;
	border: 1px solid #d0e7ff;
	border-radius: 8px;
	margin-bottom: 30px;
}

.yacht-availability-select-period h3 {
	margin: 0 0 10px 0;
	font-size: 20px;
	color: #1a1a1a;
}

.yacht-availability-select-period p {
	margin: 0;
	font-size: 14px;
	color: #666;
}

/* Selected Period Header */
.yacht-availability-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 10px 25px;
	background: #fafafa;
	border-radius: 8px;
	margin-bottom: 30px;
	border: 1px solid #e0e0e0;
}

.availability-period-info {
	display: flex;
	align-items: center;
	gap: 30px;
	flex: 1;
}

/* Daterangepicker Customization */
.daterangepicker {
	font-family: inherit;
}

.daterangepicker .calendar-table th{
	border: 0 !important;
}

.daterangepicker table td, .daterangepicker table th {
	padding: 0px;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
	background-color: #0073aa;
}

.daterangepicker .ranges li.active {
	background-color: #0073aa;
}

.period-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.period-label {
	font-size: 13px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 500;
}

.period-date {
	font-size: 20px;
	color: #1a1a1a;
	font-weight: 600;
}

.period-time {
	font-size: 14px;
	color: #666;
	font-weight: 400;
	margin-top: -4px;
}

.period-separator {
	font-size: 24px;
	color: #999;
}

.change-dates-btn {
	padding: 12px 24px;
	background: #00216c;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.change-dates-btn:hover {
	background: #001a4d;
	transform: translateY(-1px);
}

/* Periods Slider */
.yacht-availability-periods {
	position: relative;
	display: flex;
	align-items: center;
	gap: 15px;
}

.period-nav {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border: 1px solid #e0e0e0;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 24px;
	color: #666;
	padding: 0;
}

.period-nav:hover {
	background: #f5f5f5;
	border-color: #ccc;
}

.period-nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.periods-slider-container {
	flex: 1;
	overflow: hidden;
}

.periods-slider {
	display: flex;
	gap: 15px;
	transition: transform 0.3s ease;
}

.period-item {
	flex-shrink: 0;
	width: 200px;
	padding: 12px 15px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.period-item.available {
	border-color: #4caf50;
}

.period-item.occupied {
	border-color: #ea0c0c;
	opacity: 0.7;
	cursor: not-allowed;
}

.period-item.available:hover {
	border-color: #00216c;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.period-item.occupied:hover {
	transform: none;
	box-shadow: none;
}

.period-item.active {
	background: #00216c;
	border-color: #00216c;
	color: #fff;
}

.period-availability-badge {
	display: flex;
	justify-content: center;
}

.period-availability-badge span {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 3px 8px;
	border-radius: 3px;
	text-align: center;
}

.badge-available {
	background: #e8f5e9;
	color: #2e7d32;
}

.badge-occupied {
	background: #ea0c0c;
	color: #fff;
}

.badge-pending {
	background: #fff3cd;
	color: #856404;
}

.period-item.active .badge-available {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.period-item.active .badge-occupied {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.period-item.active .badge-pending {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.period-item-dates {
	display: flex;
	flex-direction: row;
	gap: 6px;
	align-items: center;
}

.period-item-start,
.period-item-end {
	font-size: 13px;
	font-weight: 500;
}

.period-item-separator {
	font-size: 14px;
	color: #999;
}

.period-item.active .period-item-separator {
	color: #ccc;
}

.period-item-price {
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: #2e7d32;
	margin-top: 4px;
}

.period-price-original {
	display: block;
	text-decoration: line-through;
	font-size: 12px;
	font-weight: 400;
	opacity: 0.65;
	line-height: 1.2;
}

.period-price-offer {
	display: block;
}

.period-item.active .period-item-price {
	color: #fff;
}

.period-item.active .period-price-original {
	color: #fff;
}

/* Selected Period Details */
.yacht-availability-details {
	/* background: #fff; */
	/* border: 1px solid #e0e0e0; */
	/* border-radius: 8px; */
	/* padding: 30px; */
	margin-top: 50px;
}

.availability-details-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.detail-card {
	padding: 20px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.detail-label {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 500;
	margin-bottom: 8px;
}

.detail-value {
	font-size: 24px;
	color: #1a1a1a;
	font-weight: 700;
}

.payment-plan {
	margin-top: 8px;
}

.payment-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #e0e0e0;
}

.payment-item:last-child {
	border-bottom: none;
}

.payment-date {
	font-size: 13px;
	color: #666;
}

.payment-amount {
	font-size: 14px;
	color: #1a1a1a;
	font-weight: 600;
}

.yacht-availability-unavailable {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	padding: 20px 30px;
	margin-bottom: 30px;
}

.yacht-availability-unavailable p {
	margin: 0;
	color: #856404;
	font-size: 14px;
}

/* Pending Reservation Message */
.yacht-availability-pending-reservation {
	background: #fff3cd;
	border: 2px solid #ffc107;
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	margin-bottom: 30px;
	margin-top: 30px;
}

.pending-reservation-icon {
	font-size: 48px;
	margin-bottom: 20px;
}

.yacht-availability-pending-reservation h3 {
	margin: 0 0 15px 0;
	font-size: 24px;
	color: #856404;
	font-weight: 600;
}

.yacht-availability-pending-reservation p {
	margin: 0 0 25px 0;
	color: #856404;
	font-size: 16px;
	line-height: 1.6;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.contact-btn {
	display: inline-block;
	padding: 14px 32px;
	background: #00216c;
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
}

.contact-btn:hover {
	background: #001a4d;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	text-decoration: none;
	color: #fff !important;
}

/* Products and Extras Styles */
.yacht-products {
	margin: 40px 0 0 0;
}

.yacht-products-section {
	margin-bottom: 40px;
}

.yacht-products-section h3 {
	margin: 0 0 20px 0;
	font-size: 1.15rem;
	font-weight: 600;
	color: #1a1a1a;
	letter-spacing: -0.02em;
}

.yacht-extras-list,
.yacht-taxes-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.yacht-extra-item,
.yacht-tax-item {
	padding: 7px 0;
	border-bottom: 1px solid #f0f0f0;
	transition: all 0.2s ease;
}

.yacht-extra-item:hover {
	background: #fafafa;
	margin: 0 -10px;
	padding-left: 10px;
	padding-right: 10px;
}

.yacht-extra-item:last-child,
.yacht-tax-item:last-child {
	border-bottom: none;
}

.extra-label {
	display: flex;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	margin-bottom: 0 !important;
}

.extra-checkbox {
	width: 18px;
	height: 18px;
	cursor: pointer;
	flex-shrink: 0;
	accent-color: #1a1a1a;
}

.extra-details,
.tax-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.extra-name,
.tax-name {
	font-size: 15px;
	color: #333;
	line-height: 1;
}

.extra-price,
.tax-price {
	font-weight: 500;
	color: #1a1a1a;
	font-size: 15px;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	margin-left: auto;
}

.extra-unit,
.tax-unit {
	font-weight: 400;
	font-size: 12px;
	color: #999;
	line-height: 1;
}

.yacht-tax-item {
	display: flex;
	align-items: center;
	gap: 20px;
}

.availability-actions {
	display: flex;
	justify-content: center;
	margin-top: 30px;
	padding-top: 20px;
	/* border-top: 1px solid #e0e0e0; */
}

.reserve-btn {
	display: inline-block;
	padding: 14px 32px;
	background: #00216c;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
}

.reserve-btn:hover {
	background: #001a4d;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#yacht_start_base,
#yacht_end_base {
	text-align: center;
    font-family: "Nunito Sans", Sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5em;
}

.bm-offer-countdown {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    background: #fff3cd;
    color: #7d4400;
    border: 1px solid #f0a500;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 4px;
}

/* Countdown inside single-yacht availability price card */
.detail-card .bm-offer-countdown {
    margin-bottom: 8px;
    font-size: 13px;
}

/* Responsive Styles */
@media (max-width: 768px) {
	.yacht-availability-header {
		flex-direction: column;
		align-items: stretch;
		padding: 20px;
	}
	
	.availability-period-info {
		gap: 20px;
	}
	
	.period-date {
		font-size: 18px;
	}
	
	.change-dates-btn {
		width: 100%;
	}
	
	.yacht-availability-details {
		padding: 20px;
	}
	
	.availability-details-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.detail-card {
		padding: 15px;
	}
	
	.detail-value {
		font-size: 20px;
	}
	
	.reserve-btn {
		width: 100%;
		text-align: center;
		padding: 12px 24px;
	}
	
	.period-item {
		width: 200px;
		padding: 10px;
	}
	
	.period-item-start,
	.period-item-end {
		font-size: 12px;
	}
	
	.period-item-separator {
		font-size: 12px;
	}
	
	.period-item-price {
		font-size: 13px;
	}
	
	.yacht-products-section {
		margin-bottom: 30px;
	}
	
	.yacht-products-section h3 {
		font-size: 1.1rem;
		margin-bottom: 15px;
	}
	
	.extra-label {
		gap: 12px;
	}
	
	.yacht-extra-item,
	.yacht-tax-item {
		padding: 10px 0;
	}
	
	.extra-name,
	.tax-name {
		font-size: 14px;
	}
	
	.extra-price,
	.tax-price {
		font-size: 14px;
	}
	
	.extra-unit,
	.tax-unit {
		font-size: 11px;
	}
	
	.availability-actions {
		justify-content: center;
	}
	
	.reserve-btn {
		width: 100%;
		text-align: center;
	}
}
