/* Holiday Rental Enquiry — guest calendar */
.hre {
	--hre-accent: #1c85c7;
	--hre-accent-soft: rgba(28, 133, 199, .13);
	--hre-ink: #1e2422;
	--hre-muted: #6b7370;
	--hre-line: #e3e6e4;
	--hre-na: #b9bfbc;
	--hre-radius: 12px;
	color: var(--hre-ink);
	max-width: 760px;
	margin: 0 auto 2em;
	font-size: 16px;
	line-height: 1.45;
	box-sizing: border-box;
}
.hre *, .hre *::before, .hre *::after { box-sizing: border-box; }
.hre button { font: inherit; }

/* Property tabs */
.hre-tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.hre-tabs-label { font-weight: 600; font-size: 15px; color: var(--hre-title, var(--hre-ink)); }
.hre-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.hre-tab {
	appearance: none; border: 1px solid var(--hre-line); background: #fff; color: var(--hre-ink);
	border-radius: 999px; padding: 9px 18px; cursor: pointer; font-weight: 600; font-size: 15px;
	line-height: 1.2; transition: background .15s, border-color .15s, color .15s;
}
.hre-tab:hover { border-color: var(--hre-accent); }
.hre-tab.is-active { background: var(--hre-accent); border-color: var(--hre-accent); color: #fff; }
.hre-tab:focus-visible, .hre-day:focus-visible, .hre-nav:focus-visible, .hre-submit:focus-visible, .hre-link:focus-visible {
	outline: 2px solid var(--hre-accent); outline-offset: 2px;
}

.hre-card { background: #fff; border: 1px solid var(--hre-line); border-radius: var(--hre-radius); padding: 22px; }

/* Calendar header */
.hre-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.hre-step { margin: 0; text-align: center; font-size: 15px; color: var(--hre-muted); }
.hre-step strong { color: var(--hre-ink); font-weight: 600; }
.hre-nav {
	appearance: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hre-line);
	background: #fff; color: var(--hre-ink); cursor: pointer; font-size: 22px; line-height: 1; padding: 0 0 3px;
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.hre-nav:hover:not(:disabled) { border-color: var(--hre-accent); color: var(--hre-accent); }
.hre-nav:disabled { opacity: .3; cursor: default; }

/* Months */
.hre-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; min-height: 300px; }
.hre-loading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; color: var(--hre-muted); }
.hre-month-title { text-align: center; font-weight: 600; margin: 4px 0 10px; }
.hre-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; }
.hre-dow { text-align: center; font-size: 12px; color: var(--hre-muted); padding-bottom: 6px; }

.hre-day {
	appearance: none; border: 0; background: transparent; color: var(--hre-ink);
	aspect-ratio: 1 / 1; width: 100%; padding: 0; margin: 0; cursor: pointer; border-radius: 8px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	position: relative; line-height: 1.1; min-height: 38px;
}
.hre-n { font-size: 15px; font-weight: 500; }
.hre-day.is-ok .hre-n, .hre-day.is-checkout .hre-n { font-weight: 700; }
.hre-day.is-ok { box-shadow: inset 0 0 0 1px var(--hre-line); }
.hre-day.is-checkout .hre-p { color: var(--hre-accent); font-weight: 600; }
.hre-p { font-size: 9.5px; white-space: nowrap; color: var(--hre-muted); letter-spacing: -.01em; }
.hre-day.is-ok:hover, .hre-day.is-checkout:hover { background: var(--hre-accent-soft); }
.hre-day.is-today .hre-n { text-decoration: underline; text-underline-offset: 3px; }

.hre-day.is-na, .hre-day.is-closed { cursor: default; color: var(--hre-na); }
.hre-day.is-closed { color: #9aa19e; }
.hre-day.is-na .hre-n { text-decoration: line-through; text-decoration-thickness: 1px; }
.hre .hre-day.is-past { color: #cdd2cf; }
.hre .hre-day.is-past .hre-n { text-decoration: none; }
.hre-day:disabled { opacity: 1; }

/* While picking check-out, days outside the valid range fade a little */
.hre.is-choosing-out .hre-day.is-ok { opacity: .55; box-shadow: none; }
.hre.is-choosing-out .hre-day.is-checkout { box-shadow: inset 0 0 0 1.5px var(--hre-accent); }
.hre.is-choosing-out .hre-day.is-ok:hover { opacity: 1; }

/* Selected range */
.hre-day.is-in { background: var(--hre-accent-soft); border-radius: 0; }
.hre .hre-day.is-from, .hre .hre-day.is-to, .hre .hre-day.is-from:hover, .hre .hre-day.is-to:hover { background: var(--hre-accent); color: #fff; opacity: 1 !important; }
.hre-day.is-from .hre-p, .hre-day.is-to .hre-p { color: rgba(255,255,255,.85); }
.hre-day.is-from { border-radius: 8px 0 0 8px; }
.hre-day.is-to { border-radius: 0 8px 8px 0; }
.hre .hre-day.is-preview.is-to { background: var(--hre-accent); opacity: .8 !important; }
.hre .hre-day.is-in:hover { background: var(--hre-accent-soft); }
.hre.is-choosing-out .hre-day.is-from:not(.is-preview) { border-radius: 8px; }

/* Legend */
.hre-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: var(--hre-muted); }
.hre-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hre-key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.hre-key-avail { border: 1px solid var(--hre-line); background: #fff; box-shadow: inset 0 0 0 1px var(--hre-ink); }
.hre-key-sel { background: var(--hre-accent); }
.hre-key-na { background: repeating-linear-gradient(135deg, #e7e9e8 0 2px, #fff 2px 4px); border: 1px solid #d5d9d7; }

/* Summary / quote */
.hre-summary { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--hre-line); }
.hre-hint { margin: 0; color: var(--hre-muted); text-align: center; }
.hre-hint strong { color: var(--hre-ink); }
.hre-quote { display: grid; gap: 14px; }
.hre-quote-dates { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hre-quote-dates > div:not(.hre-arrow) { display: flex; flex-direction: column; }
.hre-arrow { color: var(--hre-muted); font-size: 20px; }
.hre-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--hre-muted); }
.hre-quote-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap;
	background: var(--hre-accent-soft); border-radius: 10px; padding: 14px 16px; }
.hre-quote-total .hre-lbl { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--hre-ink); }
.hre-total { font-size: 28px; font-weight: 700; color: var(--hre-accent); line-height: 1; }
.hre-breakdown summary { cursor: pointer; font-size: 14px; color: var(--hre-muted); }
.hre-breakdown ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; max-height: 220px; overflow: auto; }
.hre-breakdown li { display: flex; justify-content: space-between; padding: 5px 2px; border-bottom: 1px dashed var(--hre-line); margin: 0; }
.hre-link { appearance: none; background: none; border: 0; padding: 0; color: var(--hre-accent); text-decoration: underline; cursor: pointer; font-size: 14px; justify-self: start; }

/* Form */
.hre-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hre-line); }
.hre-form-title { margin: 0 0 12px; font-size: 18px; }
.hre-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hre-field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; margin: 0; }
.hre-field input, .hre-field select {
	width: 100%; font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfd4d2; border-radius: 8px;
	background: #fff; color: var(--hre-ink); min-height: 44px; margin: 0;
}
.hre-field select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7370' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; }
.hre-field select:focus { outline: none; border-color: var(--hre-accent); box-shadow: 0 0 0 3px var(--hre-accent-soft); }
.hre-field select.is-invalid { border-color: #c0392b; }
.hre-field.is-disabled { color: #9aa19e; }
.hre-field.is-disabled select { background-color: #f1f3f2; color: #8a918e; cursor: not-allowed; border-color: #e1e5e3; }
.hre-fields-party { margin-top: 12px; }
.hre-field input:focus { outline: none; border-color: var(--hre-accent); box-shadow: 0 0 0 3px var(--hre-accent-soft); }
.hre-field input.is-invalid { border-color: #c0392b; }
.hre-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hre-submit {
	appearance: none; margin-top: 16px; width: 100%; border: 0; border-radius: 10px; cursor: pointer;
	background: var(--hre-accent); color: #fff; font-size: 17px; font-weight: 600; padding: 14px 20px; min-height: 50px;
	transition: filter .15s, opacity .15s;
}
.hre-submit:hover:not(:disabled) { filter: brightness(1.08); }
.hre-submit:disabled { opacity: .45; cursor: not-allowed; }
.hre-submit.is-busy { opacity: .7; cursor: progress; }
.hre-note { margin: 10px 0 0; font-size: 13px; color: var(--hre-muted); text-align: center; }
.hre-msg:empty { display: none; }
.hre-msg { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.hre-msg.is-error { background: #fdecea; color: #8f2318; }

/* Thank you */
.hre-thanks { text-align: center; padding: 26px 8px 6px; margin-top: 22px; border-top: 1px solid var(--hre-line); }
.hre-thanks[hidden], .hre-form[hidden] { display: none; }
.hre-thanks h3 { margin: 8px 0 6px; }
.hre-thanks p { margin: 0 0 10px; }
.hre-thanks-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--hre-accent); color: #fff; font-size: 24px;
	display: inline-flex; align-items: center; justify-content: center; }
.hre-thanks-sum { color: var(--hre-muted); font-size: 15px; }

@media (max-width: 640px) {
	.hre-card { padding: 16px 12px; }
	.hre-months { grid-template-columns: 1fr; gap: 20px; }
	.hre-fields { grid-template-columns: 1fr; }

	.hre-total { font-size: 24px; }
}

.hre-rules { text-align: center; margin: 8px 0 0; font-size: 13px; color: var(--hre-muted); }

/* Stay options after choosing arrival */
.hre-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 12px 0 10px; }
.hre-opt {
	appearance: none; text-align: left; cursor: pointer; background: #fff; color: var(--hre-ink);
	border: 1px solid var(--hre-line); border-radius: 10px; padding: 10px 12px;
	display: grid; grid-template-columns: 1fr; grid-template-areas: "type" "dates"; gap: 2px; align-items: center;
	transition: border-color .15s, background .15s;
}
.hre-opt:hover, .hre-opt:focus-visible { border-color: var(--hre-accent); background: var(--hre-accent-soft); outline: none; }
.hre-opt-type { grid-area: type; font-weight: 600; font-size: 15px; }
.hre-opt-dates { grid-area: dates; font-size: 13px; color: var(--hre-muted); }

.hre-hint-small { font-size: 14px; margin-bottom: 6px; }

.hre-party-note { margin: 8px 0 0; font-size: 13px; color: var(--hre-muted); }
