/* Availability override styles */

/* Reset / Base */
#byc-availability *,
#byc-availability *::before,
#byc-availability *::after { box-sizing: border-box; margin: 0; padding: 0; }



#byc-modal-boat-list .byc-boat-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#byc-modal-boat-list .byc-boat-option.selected {
    border-color: #c9a84c;
}

#byc-modal-boat-list .byc-boat-radio {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid #8f7430;
    background: #fff;
    display: grid;
    place-content: center;
    margin: 0;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#byc-modal-boat-list .byc-boat-radio::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9a84c;
    transform: scale(0);
    transition: transform .15s ease;
}

#byc-modal-boat-list .byc-boat-radio:checked {
    border-color: #c9a84c;
}

#byc-modal-boat-list .byc-boat-radio:checked::before {
    transform: scale(1);
}

#byc-modal-boat-list .byc-boat-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
}

#byc-modal-boat-list .byc-boat-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
    line-height: 1.15;
}

#byc-modal-boat-list .byc-boat-subname {
    font-size: 13px;
    font-weight: 600;
    display: block;
    line-height: 1.15;
    opacity: .9;
}

#byc-availability {
	color: #ffffff;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	min-height: 100vh;
	padding: 40px 20px 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#byc-availability > * {
	width: 100%;
	max-width: 520px;
}

/* Header */
.byc-av-header {
	text-align: center;
	margin-bottom: 36px;
}
.byc-av-header .byc-av-tag {
	display: inline-block;
	border: 1px solid #c9a84c;
	color: #c9a84c;
	font-size: 10px;
	letter-spacing: 3px;
	text-transform: uppercase;
	padding: 5px 10px !important;
	border-radius: 2px;
	margin-bottom: 15px !important;
}
.byc-av-header h1 {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #ffffff;
	line-height: 1.3;
}
.byc-av-header p {
	margin-top: 10px;
	font-size: 13px;
	color: #888;
	letter-spacing: 1px;
}

/* Calendar Wrapper */
.byc-calendar-wrap {
	max-width: 520px;
	margin: 0 auto;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 4px;
	padding: 40px 24px 44px;
	margin-top: 15px !important;
}

/* Calendar Nav */
.byc-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px !important;
	margin-top: 10px !important;
}
.byc-cal-nav button {
	background: none;
	border: 1px solid #333;
	color: #888;
	width: 34px;
	height: 34px;
	cursor: pointer;
	font-size: 16px;
	border-radius: 2px;
	transition: all .2s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.byc-cal-nav button:hover {
	border-color: #c9a84c;
	color: #c9a84c;
}
.byc-cal-month {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #fff;
}

.byc-calendar-wrap{padding: 0px 5px !important;}

/* Weekday row */
.byc-cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin-bottom: 8px !important;
}
.byc-cal-weekdays span {
	text-align: center;
	font-size: 9px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #555;
	padding: 4px 0;
}

/* Day grid */
.byc-cal-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.byc-day {
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 500;
	border-radius: 2px;
	cursor: default;
	transition: all .2s;
	border: 1px solid transparent;
	position: relative;
}
.byc-day.empty { background: transparent; }

/* Available */
.byc-day.available {
	background: #111;
	border-color: #2a2a2a;
	color: #ddd;
	cursor: pointer;
}
.byc-day.available:hover {
	border-color: #c9a84c;
	color: #c9a84c;
	background: #1e1a10;
}

/* Unavailable / closed */
.byc-day.unavailable {
	background: #111;
	border-color: #1e1e1e;
	color: #333;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* Past */
.byc-day.past {
	background: transparent;
	color: #2a2a2a;
	border-color: transparent;
	cursor: not-allowed;
}

/* Today */
.byc-day.today {
	border-color: #c9a84c44;
	color: #c9a84c;
}

/* Selected (pending confirmation) */
.byc-day.selected {
	background: #c9a84c;
	border-color: #c9a84c;
	color: #000;
	font-weight: 700;
}

/* Booked (confirmed, persisted) */
.byc-day.booked {
	background: #2a1f0a;
	border-color: #c9a84c;
	color: #c9a84c;
	font-weight: 700;
	cursor: default;
}
.byc-day.booked::after { display: none; }
.byc-day.booked::before {
	content: '';
	position: absolute;
	bottom: 5px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	background: #c9a84c;
	border-radius: 50%;
}

/* Dot indicator on available days */
.byc-day.available::after {
	content: '';
	display: block;
	width: 4px;
	height: 4px;
	background: #c9a84c44;
	border-radius: 50%;
	margin-top: 3px;
}
.byc-day.unavailable::after,
.byc-day.past::after { display: none; }

/* Booking quota bar */
.byc-quota {
	max-width: 520px;
	margin: 16px auto 0;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 4px;
	padding: 10px !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.byc-quota-text {
	font-size: 12px;
	color: #888;
	letter-spacing: .5px;
	line-height: 1.7;
}
.byc-quota-text strong {
	color: #fff;
	font-weight: 700;
}
.byc-quota-text span {
	color: #c9a84c;
	font-weight: 700;
}
.byc-quota-slots {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}
.byc-slot {
	width: 28px;
	height: 28px;
	border-radius: 2px;
	border: 1px solid #333;
	background: #111;
	transition: background .4s ease, border-color .4s ease;
}
.byc-slot.used {
	background: #2a2416;
	border-color: #c9a84c44;
}
.byc-slot.available-slot {
	background: #c9a84c22;
	border-color: #c9a84c;
}
.byc-slot.filling {
	animation: byc-slot-fill .5s ease forwards;
}
@keyframes byc-slot-fill {
	0%   { background: #c9a84c22; border-color: #c9a84c; transform: scale(1); }
	50%  { background: #c9a84c;   border-color: #c9a84c; transform: scale(1.2); }
	100% { background: #2a2416;   border-color: #c9a84c44; transform: scale(1); }
}

/* Legend */
.byc-legend {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-top: 20px;
	flex-wrap: wrap;
	padding: 8px 0px !important;

}

.byc-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #666;
}
.byc-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 2px;
	flex-shrink: 0;
}
.byc-legend-dot.avail  { background: #1e1a10; border: 1px solid #c9a84c; }
.byc-legend-dot.unavail{ background: #111; border: 1px solid #1e1e1e; }
.byc-legend-dot.past   { background: transparent; border: 1px solid #222; }

/* Modal overlay */
.byc-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.82);
	z-index: 9000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.byc-modal-overlay.open { display: flex; }

.byc-modal {
	background: #1a1a1a;
	border: 1px solid #2e2e2e;
	border-top: 3px solid #c9a84c;
	padding: 40px 32px 36px;
	max-width: 400px;
	width: 100%;
	border-radius: 4px;
	text-align: center;
	animation: byc-fadeUp .25s ease;
}
@keyframes byc-fadeUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

.byc-modal .byc-modal-yacht {
	font-size: 10px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #c9a84c;
	margin-bottom: 8px;
}
.byc-modal h2 {
	font-size: 18px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 700;
	color: #fff;
	margin-bottom: 10px;
}
.byc-modal .byc-modal-date {
	font-size: 26px;
	font-weight: 300;
	color: #c9a84c;
	letter-spacing: 1px;
	margin-bottom: 6px;
}
.byc-modal .byc-modal-time {
	font-size: 12px;
	color: #666;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 28px;
}
.byc-modal .byc-modal-question {
	font-size: 14px;
	color: #bbb;
	letter-spacing: 1px;
	line-height: 1.7;
	margin-bottom: 32px;
}
.byc-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.byc-btn-confirm {
	background: #c9a84c;
	color: #000;
	border: none;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	padding: 16px;
	cursor: pointer;
	border-radius: 2px;
	transition: background .2s;
	width: 100%;
}
.byc-btn-confirm:hover { background: #d4b560; }
.byc-btn-cancel {
	background: transparent;
	color: #666;
	border: 1px solid #333;
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	padding: 14px;
	cursor: pointer;
	border-radius: 2px;
	transition: all .2s;
	width: 100%;
}
.byc-btn-cancel:hover { border-color: #666; color: #aaa; }

/* Confirmation panel */
.byc-confirm-panel {
	background: #1a1a1a;
	border: 1px solid #2e2e2e;
	border-top: 3px solid #c9a84c;
	padding: 48px 32px;
	max-width: 400px;
	width: 100%;
	border-radius: 4px;
	text-align: center;
	animation: byc-fadeUp .3s ease;
	display: none;
}
.byc-confirm-panel.open { display: block; }

.byc-confirm-icon {
	width: 56px;
	height: 56px;
	border: 2px solid #c9a84c;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
}
.byc-confirm-icon svg { width: 26px; height: 26px; }
.byc-confirm-panel h2 {
	font-size: 16px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #fff;
	font-weight: 700;
	margin-bottom: 16px;
}
.byc-confirm-panel p {
	font-size: 13px;
	color: #888;
	line-height: 1.8;
	letter-spacing: .5px;
	margin-bottom: 12px;
}
.byc-confirm-panel .byc-confirm-detail {
	font-size: 11px;
	color: #c9a84c;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 32px;
}
.byc-btn-close {
	background: transparent;
	border: 1px solid #333;
	color: #888;
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 13px 32px;
	cursor: pointer;
	border-radius: 2px;
	transition: all .2s;
}
.byc-btn-close:hover { border-color: #c9a84c; color: #c9a84c; }

/* Responsive */
@media (max-width: 480px) {
	.byc-calendar-wrap { padding: 20px 14px 24px; }
	.byc-day { font-size: 12px; }
	.byc-modal { padding: 32px 20px 28px; }
}
