/* Trenale Booking — matches framework theme (Roboto, #00b8ca primary) */

.trenale-booking {
	background: #f3f6fb;
	border-radius: 10px;
	padding: 28px 32px;
	font-family: 'Roboto', sans-serif;
	color: #1d2433;
	max-width: 960px;
	margin: 0 auto 24px;
}

.trenale-booking *, .trenale-booking *::before, .trenale-booking *::after { box-sizing: border-box; }

/* === Cottage banner — image as full background with gradient overlay === */
.trenale-cottage-banner {
	position: relative;
	background-color: #1d2433;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 12px;
	max-width: 960px;
	margin: 24px auto 14px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(15,23,42,0.12);
	min-height: 130px;
}
.trenale-cottage-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(95deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.55) 55%, rgba(15,23,42,0.25) 100%);
	z-index: 1;
}
.trenale-cottage-banner:not(.has-image)::before {
	background: linear-gradient(95deg, #0d6e78 0%, #00b8ca 100%);
}
.trenale-cottage-banner--no-image { grid-template-columns: 1fr; }

.trenale-cottage-banner-body {
	position: relative;
	z-index: 2;
	padding: 14px 18px;
	color: #fff;
	max-width: 75%;
}
.trenale-cottage-banner-name {
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 6px;
	line-height: 1.15;
	text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.trenale-cottage-banner-pills {
	display: flex; gap: 6px; flex-wrap: wrap;
	margin: 0 0 8px;
}
.trenale-cottage-banner-pill {
	background: rgba(255,255,255,0.18);
	color: #fff;
	padding: 3px 10px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	line-height: 1.5;
	border: 1px solid rgba(255,255,255,0.25);
	backdrop-filter: blur(4px);
}
.trenale-cottage-banner-desc {
	color: rgba(255,255,255,0.92);
	line-height: 1.45;
	margin: 0;
	font-size: 12.5px;
	text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

@media (max-width: 600px) {
	.trenale-cottage-banner { min-height: 140px; }
	.trenale-cottage-banner-body { padding: 12px 14px; max-width: 100%; }
	.trenale-cottage-banner-name { font-size: 18px; }
	.trenale-cottage-banner::before {
		background: linear-gradient(180deg, rgba(15,23,42,0.5) 0%, rgba(15,23,42,0.85) 100%);
	}
}

/* Step indicators */
.trenale-steps {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #d8dee9;
	padding-bottom: 18px;
	margin-bottom: 22px;
	gap: 0;
}
.trenale-step {
	display: flex; align-items: center; gap: 10px;
	color: #93a0b5; font-weight: 600;
	flex-shrink: 0;
}
.trenale-step-connector {
	flex: 1;
	height: 2px;
	background: #cfd6e2;
	margin: 0 14px;
	border-radius: 1px;
	min-width: 20px;
	transition: background 200ms ease;
}
.trenale-step.is-done + .trenale-step-connector { background: #1e8a4c; }
.trenale-step.is-active + .trenale-step-connector {
	background: linear-gradient(to right, #1e8a4c 0%, #1e8a4c 50%, #cfd6e2 50%, #cfd6e2 100%);
}
@media (max-width: 540px) {
	.trenale-step-label { display: none; }
	.trenale-step-connector { margin: 0 8px; }
}
.trenale-step.is-active { color: #1d2433; }
.trenale-step.is-done   { color: #1e8a4c; }
.trenale-step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	background: #cfd6e2; color: #1d2433; font-weight: 700;
}
.trenale-step.is-active .trenale-step-num { background: #00b8ca; color: #fff; }

/* Done state: square, no number, bold CSS-drawn tick centred */
.trenale-step.is-done .trenale-step-num {
	background: #1e8a4c;
	color: transparent;
	font-size: 0;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(30,138,76,0.35);
	position: relative;
}
.trenale-step.is-done .trenale-step-num::after {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	width: 14px; height: 8px;
	border-left: 4px solid #fff;
	border-bottom: 4px solid #fff;
	transform: translate(-50%, -70%) rotate(-45deg);
}

/* Panels */
.trenale-panel { display: none; }
.trenale-panel.is-active { display: block; }

/* Fields */
.trenale-field { display: block; margin-bottom: 18px; }
.trenale-label { font-weight: 600; display: block; margin-bottom: 8px; }
.trenale-field legend,
.trenale-section-title {
	display: block;
	width: 100%;
	color: #1d2433;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	padding: 0;
	margin: 18px 0 14px;
}
.trenale-field legend { margin-top: 4px; }
.trenale-required { color: #c0364d; }
.trenale-help { color: #4a5772; margin: 6px 0 14px; line-height: 1.5; }
.trenale-hint { display: block; color: #6a7691; font-size: 13px; margin-top: 4px; }
.trenale-inline-warning { color: #7a1c2d; }

.trenale-booking input[type="text"],
.trenale-booking input[type="email"],
.trenale-booking input[type="tel"],
.trenale-booking input[type="number"],
.trenale-booking textarea,
.trenale-booking select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cfd6e2;
	border-radius: 6px;
	font: inherit;
	color: inherit;
	background: #fff;
	box-sizing: border-box;
}
.trenale-booking textarea {
	resize: vertical;
	min-height: 160px;
}
.trenale-booking input:focus, .trenale-booking select:focus, .trenale-booking textarea:focus {
	outline: 2px solid #00b8ca33;
	border-color: #00b8ca;
}

/* === Stay type cards (step 1) === */
.trenale-stay-types {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 6px 0 8px;
}
@media (max-width: 640px) { .trenale-stay-types { grid-template-columns: 1fr; } }

.trenale-stay-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 2px solid #e0e6ef;
	border-radius: 12px;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 150ms ease, box-shadow 150ms ease, transform 80ms ease;
}
.trenale-stay-card:hover {
	border-color: #00b8ca;
	box-shadow: 0 6px 20px rgba(0,184,202,0.12);
}
.trenale-stay-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px; height: 1px;
}
.trenale-stay-card:has(input:checked) {
	border-color: #00b8ca;
	box-shadow: 0 8px 24px rgba(0,184,202,0.18);
}

/* Circle indicator, top-right of card */
.trenale-stay-card-check {
	position: absolute;
	top: 10px; right: 10px;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #cfd6e2;
	transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
	z-index: 2;
}
.trenale-stay-card:hover .trenale-stay-card-check { border-color: #00b8ca; }
.trenale-stay-card:has(input:checked) .trenale-stay-card-check {
	background: #1e8a4c;
	border-color: #1e8a4c;
	box-shadow: 0 2px 8px rgba(30,138,76,0.4);
	transform: scale(1.05);
}
.trenale-stay-card:has(input:checked) .trenale-stay-card-check::after {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	width: 14px; height: 7px;
	border-left: 3px solid #fff;
	border-bottom: 3px solid #fff;
	transform: translate(-50%, -70%) rotate(-45deg);
}

/* Card body */
.trenale-stay-card-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1;
	padding: 14px 16px 12px;
	padding-right: 56px; /* clear of the check circle */
}
.trenale-stay-card-title {
	font-size: 18px!important;
	font-weight: 800;
	color: #1d2433;
	margin: 0 0 15px;
	line-height: 1.2;
}
/* Meta pill — now a <span>, so inline-block sticks without theme overrides */
.trenale-stay-card-meta {
	display: inline-block;
	background: #e5f7f8;
	color: #007780;
	padding: 4px 12px;
	border-radius: 100px;
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0 0 0 0!important;
	line-height: 1.35;
	white-space: normal;
}
.trenale-stay-card-desc {
	color: #4a5772;
	line-height: 1.5;
	margin: 0!important;
	font-size: 14px !important;
	flex: 1;
	align-self: stretch;
}

/* Deposit footer: small label left, big amount right, soft tinted strip */
.trenale-stay-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: #f3fbfc;
	border-top: 1px solid #d8eef1;
}
.trenale-stay-card-footer-label {
	color: #6a7691;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
}
.trenale-stay-card-footer-amount {
	color: #00b8ca;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.trenale-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trenale-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
@media (max-width: 640px) {
	.trenale-grid-2, .trenale-grid-3 { grid-template-columns: 1fr; }
}

/* Nav buttons */
.trenale-nav { display: flex; justify-content: space-between; margin-top: 22px; }
.trenale-nav > :only-child { margin-left: auto; }
.trenale-btn-primary, .trenale-btn-secondary {
	font: inherit; font-weight: 600;
	padding: 10px 22px; border-radius: 6px; cursor: pointer;
	border: 1px solid transparent;
}
.trenale-btn-primary { background: #00b8ca; color: #fff; }
.trenale-btn-primary:hover:not(:disabled) { background: #009ba6; }
.trenale-btn-primary:disabled { background: #93a0b5; cursor: not-allowed; }
.trenale-btn-secondary { background: #fff; border-color: #cfd6e2; color: #1d2433; }
.trenale-btn-secondary:hover { background: #f3f6fb; }

/* Legend */
.trenale-legend { display: flex; gap: 18px; flex-wrap: wrap; background:#fff; padding:10px 14px; border-radius:6px; border:1px solid #e0e6ef; margin-bottom: 14px; }
.trenale-legend-key { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.trenale-legend-key .dot { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.dot-available { background: #62c462; }
.dot-booked    { background: #cfd6e2; }
.dot-part      { background: linear-gradient(135deg, #62c462 0 50%, #cfd6e2 50% 100%); }
.dot-closed    { background: #f4dee1; }

/* === Available weeks list === */
.trenale-weeks { margin: 8px 0 18px; }
.trenale-weeks-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
	margin: 10px 0;
}
.trenale-week-card {
	display: flex; flex-direction: column; gap: 4px;
	background: #fff;
	border: 2px solid #cfd6e2;
	border-radius: 10px;
	padding: 12px 14px;
	text-align: left;
	font: inherit;
	cursor: pointer;
	color: #1d2433;
	transition: border-color 120ms ease, background-color 120ms ease, transform 80ms ease;
}
.trenale-week-card:hover { border-color: #00b8ca; background: #eefcfd; }
.trenale-week-card.is-selected {
	border-color: #00b8ca;
	background: #00b8ca;
	color: #fff;
	box-shadow: 0 4px 14px rgba(0,184,202,0.35);
}
.trenale-week-card-label { font-weight: 700; font-size: 15px; }
.trenale-week-card-sub { font-size: 12px; opacity: 0.8; }

.trenale-weeks-more { margin-top: 6px; }
.trenale-weeks-more summary {
	cursor: pointer;
	color: #00b8ca;
	font-weight: 600;
	padding: 6px 0;
	list-style: none;
}
.trenale-weeks-more summary::-webkit-details-marker { display: none; }
.trenale-weeks-more[open] summary::before { content: '− '; }
.trenale-weeks-more:not([open]) summary::before { content: '+ '; }

.trenale-calendar-toggle { margin-top: 10px; }
.trenale-calendar-toggle > summary {
	cursor: pointer;
	color: #00b8ca;
	font-weight: 600;
	padding: 8px 0 12px;
	list-style: none;
}
.trenale-calendar-toggle > summary::-webkit-details-marker { display: none; }
.trenale-calendar-toggle[open]   > summary::before { content: '▾ '; }
.trenale-calendar-toggle:not([open]) > summary::before { content: '▸ '; }

/* === Date input with calendar icon === */
.trenale-date-field { position: relative; }
.trenale-date-wrap { position: relative; }
.trenale-booking .trenale-date-wrap input[type="text"][readonly] {
	width: 100%;
	padding: 14px 46px 14px 14px;
	border: 1px solid #cfd6e2;
	border-radius: 8px;
	font: inherit; font-size: 16px;
	background: #fff;
	cursor: pointer;
	color: #1d2433;
}
.trenale-booking .trenale-date-wrap input[type="text"][readonly]:focus {
	outline: 2px solid #00b8ca33;
	border-color: #00b8ca;
}
.trenale-date-icon {
	position: absolute; right: 8px; top: 50%;
	transform: translateY(-50%);
	background: transparent; border: none; cursor: pointer;
	color: #6a7691;
	width: 34px; height: 34px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 6px;
}
.trenale-date-icon:hover { background: #f3f6fb; color: #00b8ca; }

/* === Custom Calendar === */
.trenale-calendar-wrap {
	background: #fff; border-radius: 12px; padding: 16px 18px;
	border: 1px solid #e0e6ef; margin-bottom: 16px;
	width: 100%;
}
.trnl-cal { width: 100%; user-select: none; }

/* Popup version (inside input dropdown) */
.trnl-cal--popup {
	position: absolute; z-index: 50;
	top: calc(100% + 6px); left: 0;
	background: #fff;
	border: 1px solid #e0e6ef;
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 12px 32px rgba(15,23,42,0.18);
	min-width: 320px;
	max-width: 360px;
}

.trnl-cal-nav {
	display: flex; align-items: center; gap: 8px;
	padding-bottom: 6px;
}
.trnl-cal-spacer { flex: 1; }
.trnl-cal-arrow {
	background: transparent;
	border: 1px solid #d8dee9;
	color: #1d2433;
	width: 36px; height: 36px;
	border-radius: 50%;
	font-size: 22px; line-height: 1;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.trnl-cal-arrow:hover { background: #f3f6fb; border-color: #00b8ca; color: #00b8ca; }

.trnl-cal-months { display: grid; gap: 18px; }
.trnl-cal-months--1 { grid-template-columns: 1fr; }
.trnl-cal-months--2 { grid-template-columns: 1fr 1fr; }

.trnl-cal-month-title {
	text-align: center;
	font-weight: 700; font-size: 16px;
	color: #1d2433;
	margin: 4px 0 10px;
}
.trnl-cal-week-head,
.trnl-cal-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
}
.trnl-cal-week-head { margin-bottom: 4px; }
.trnl-cal-wk {
	text-align: center; font-size: 12px; font-weight: 700;
	color: #6a7691; text-transform: uppercase; letter-spacing: 0.04em;
	padding: 6px 0;
	min-width: 0;
}
.trnl-cal-day {
	min-height: 52px;
	display: inline-flex; align-items: center; justify-content: center;
	font: inherit; font-weight: 600; font-size: 16px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	color: #1d2433;
	padding: 0;
	min-width: 0;
	transition: transform 80ms ease, background-color 120ms ease, box-shadow 120ms ease;
	position: relative;
}
.trnl-cal--popup .trnl-cal-day { min-height: 40px; font-size: 14px; border-radius: 8px; }
.trnl-cal-day--blank { background: transparent; cursor: default; pointer-events: none; }
.trnl-cal-day:hover:not(.is-disabled):not(.is-start):not(.is-end) {
	background: #eef1f9;
	transform: scale(1.04);
}

/* Status colours (base — overridden by selection/range below) */
.trnl-cal-day.status-available { background: #d9f0d9; color: #1d4422; }
.trnl-cal-day.status-booked    { background: #eef0f4; color: #93a0b5; }
.trnl-cal-day.status-closed    { background: #fbe9eb; color: #c0364d; }
.trnl-cal-day.status-changeover_start {
	background: linear-gradient(135deg, #d9f0d9 0 50%, #eef0f4 50% 100%);
	color: #1d4422;
}
.trnl-cal-day.status-changeover_end {
	background: linear-gradient(135deg, #eef0f4 0 50%, #d9f0d9 50% 100%);
	color: #1d4422;
}
.trnl-cal-day.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
	color: #93a0b5;
}

/* Day number stays on top of any pseudo-element range bars */
.trnl-cal-day-num { position: relative; z-index: 2; }

/* === Range selection: bordered pill spanning the range === */
.trnl-cal-day.is-start,
.trnl-cal-day.is-end,
.trnl-cal-day.is-in-range {
	background: transparent !important;
	background-image: none !important;
}

/* Bar that runs through the range. Extends 3px each side to bridge the 2px gap. */
.trnl-cal-day.is-in-range::before,
.trnl-cal-day.is-start::before,
.trnl-cal-day.is-end::before {
	content: '';
	position: absolute;
	top: 0; bottom: 0;
	left: -3px; right: -3px;
	background: #d5f3f6;
	border-top: 2px solid #00b8ca;
	border-bottom: 2px solid #00b8ca;
	z-index: 0;
}
.trnl-cal-day.is-start::before {
	left: 0;
	border-left: 2px solid #00b8ca;
	border-top-left-radius: 12px;
	border-bottom-left-radius: 12px;
}
.trnl-cal-day.is-end::before {
	right: 0;
	border-right: 2px solid #00b8ca;
	border-top-right-radius: 12px;
	border-bottom-right-radius: 12px;
}

/* Solid teal pill on the start and end days, sitting above the bar but under the number */
.trnl-cal-day.is-start::after,
.trnl-cal-day.is-end::after {
	content: '';
	position: absolute;
	inset: 4px;
	background: #00b8ca;
	border-radius: 50%;
	box-shadow: 0 3px 10px rgba(0,184,202,0.45);
	z-index: 1;
}
.trnl-cal-day.is-start .trnl-cal-day-num,
.trnl-cal-day.is-end .trnl-cal-day-num {
	color: #fff;
}
.trnl-cal-day.is-in-range .trnl-cal-day-num {
	color: #1d2433;
}

/* Hover preview (while picking end date) */
.trnl-cal-day.is-hover-range::before {
	content: '';
	position: absolute;
	top: 0; bottom: 0;
	left: -3px; right: -3px;
	background: #eaf9fb;
	border-top: 2px dashed #00b8ca;
	border-bottom: 2px dashed #00b8ca;
	z-index: 0;
}

.trenale-calendar-actions { display: flex; justify-content: flex-end; margin: 4px 0 16px; }
.trenale-booking .trenale-btn-link {
	background: transparent;
	border: 1px solid #cfd6e2;
	color: #00b8ca;
	cursor: pointer;
	font: inherit; font-weight: 600;
	padding: 6px 14px;
	border-radius: 6px;
	text-decoration: none;
}
.trenale-booking .trenale-btn-link:hover { background: #fff; color: #009ba6; border-color: #00b8ca; }

/* Quote */
.trenale-quote {
	background:#fff; border:1px solid #e0e6ef; border-radius:8px;
	padding: 14px 18px; margin: 16px 0;
}
.trenale-quote-label { font-weight:700; color:#1d2433; }
.trenale-quote-amount { font-size: 28px; font-weight: 700; color: #00b8ca; }
.trenale-quote-note { color: #4a5772; font-size: 14px; }

.trenale-quote-summary {
	background:#fff; border:1px solid #e0e6ef; border-radius:6px;
	padding: 12px 16px; margin: 16px 0;
}

.trenale-errors {
	background: #fbe9eb; border:1px solid #f0c0c8; color:#7a1c2d;
	padding: 12px 14px; border-radius: 6px; margin: 10px 0;
}
.trenale-errors ul { margin: 0; padding-left: 20px; }

.trenale-terms {
	display: flex; gap: 10px; align-items: center;
	background:#e5e9f0; padding: 12px 14px; border-radius: 6px; margin: 12px 0;
}
/* .trenale-section-title styling now lives in the shared rule above */
.trenale-booking-error { color:#7a1c2d; padding: 18px; background:#fbe9eb; border-radius:6px; }

/* === Payment (Stripe Element) === */
.trenale-payment-mount {
	background: #fff;
	border: 1px solid #e0e6ef;
	border-radius: 8px;
	padding: 14px;
	margin: 12px 0 4px;
}
.trenale-payment-status {
	padding: 10px 14px;
	border-radius: 6px;
	margin: 10px 0;
	font-size: 14px;
}
.trenale-payment-status--error { background:#fbe9eb; color:#7a1c2d; border:1px solid #f0c0c8; }
.trenale-payment-status--info  { background:#eef7ff; color:#1d4ea3; border:1px solid #c6dcf5; }

.trenale-booking input.is-locked, .trenale-booking input[readonly].is-locked {
	background: #f3f6fb;
	color: #6a7691;
	cursor: not-allowed;
}

.trenale-pay-success {
	text-align: center;
	padding: 30px 20px;
}
.trenale-pay-success-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px;
	background: #1e8a4c;
	color: #fff;
	border-radius: 50%;
	font-size: 32px;
	margin: 0 auto 16px;
	box-shadow: 0 4px 14px rgba(30,138,76,0.4);
}
.trenale-pay-success h3 { font-size: 22px; margin: 0 0 8px; color: #1d2433; }
.trenale-pay-success p { color: #4a5772; margin: 6px 0; }
.trenale-pay-success-ref { font-family: monospace; font-size: 12px; color: #93a0b5; }

.trenale-test-banner {
	background: #fff5e6;
	border: 1px solid #f5cf91;
	color: #7a4d00;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 14px;
}
.trenale-test-banner code { background: #fff; padding: 1px 6px; border-radius: 3px; }

/* Mobile */
@media (max-width: 640px) {
	.trenale-booking { padding: 18px 14px; }
	.trenale-steps { gap: 14px; font-size: 14px; padding-bottom: 12px; margin-bottom: 16px; }
	.trenale-step-num { width: 28px; height: 28px; font-size: 14px; }
	.trenale-radio-card { padding: 12px 14px; }
	.trenale-booking input, .trenale-booking select { padding: 12px 12px; font-size: 16px; }
	.trenale-btn-primary, .trenale-btn-secondary { padding: 12px 18px; width: 100%; }
	.trenale-nav { flex-direction: column-reverse; gap: 10px; }
	.trenale-quote-amount { font-size: 24px; }
	.trnl-cal-day { font-size: 13px; }
	.trnl-cal-wk { font-size: 11px; }
}
