/*
 * Wilder Retreats: HomeRunner styling
 * Matches the HomeRunner search, cabin grid, cabin pages and calendars to the
 * Salient theme. Colours are the theme's own accent set (Salient > Accent Colors).
 * Every rule is scoped to HomeRunner markup; nothing here touches other pages.
 */

:root {
	--wr-accent: #4a5845;
	--wr-accent-dark: #3a4636;
	--wr-sage: #8d9c94;
	--wr-ink: #222222;
	--wr-muted: #6f6f68;
	--wr-paper: #e8e7e1;
	--wr-line: #d6d4cb;
	--wr-off: #b4b3ab;
}

/* ---------- Buttons (search, check availability, book) ---------- */

.uk-scope .hk-button,
.hk-scope-modal .hk-button {
	border-radius: 0;
	font-family: hk_groteskmedium, hk_grotesklight, sans-serif;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.uk-scope .hk-button-primary,
.hk-scope-modal .hk-button-primary,
.hr-explorer .hfse-form-submit-field-container .hfse-form-submit-btn:not(:disabled),
.uk-scope .hfse-form-additional-filters-btn {
	background-color: var(--wr-accent);
	border: 1px solid var(--wr-accent);
	color: #fff;
	font-size: 12px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.uk-scope .hk-button-primary:hover,
.uk-scope .hk-button-primary:focus,
.hk-scope-modal .hk-button-primary:hover,
.hk-scope-modal .hk-button-primary:focus,
.hr-explorer .hfse-form-submit-field-container .hfse-form-submit-btn:not(:disabled):hover,
.hr-explorer .hfse-form-submit-field-container .hfse-form-submit-btn:not(:disabled):focus,
.uk-scope .hfse-form-additional-filters-btn:hover,
.uk-scope .hfse-form-additional-filters-btn:focus {
	background-color: var(--wr-accent-dark);
	border-color: var(--wr-accent-dark);
	color: #fff;
}

.uk-scope .hk-button:focus-visible,
.hk-scope-modal .hk-button:focus-visible {
	outline: 2px solid var(--wr-sage);
	outline-offset: 2px;
}

/* ---------- Search form ---------- */

.hr-explorer .hfse-form .hk-input {
	background-color: #fff;
	border: 1px solid var(--wr-line);
	border-radius: 0;
	color: var(--wr-ink);
	font-size: 15px;
}

.hr-explorer .hfse-form .hk-input::placeholder {
	color: var(--wr-muted);
	opacity: 1;
}

.hr-explorer .hfse-form .hk-input:focus {
	border-color: var(--wr-accent);
}

.hr-explorer .hfse-form-submit-btn {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	line-height: 1;
	padding-bottom: 0;
	padding-top: 0;
}

.hr-explorer .hfse-form-additional-filters-btn {
	border-radius: 0;
}

.hr-explorer .hfse-form-reset-btn {
	background-color: transparent;
	border: 1px solid var(--wr-ink);
	border-radius: 0;
	color: var(--wr-ink);
	font-size: 11px;
}

.hr-explorer .hfse-form-reset-btn:hover,
.hr-explorer .hfse-form-reset-btn:focus {
	background-color: var(--wr-ink);
	color: #fff;
}

.hr-explorer .hfse-form-map-toggle-btn {
	background-color: transparent;
	border-radius: 0;
}

.hr-explorer .hfse-form-order-select {
	border-color: var(--wr-line);
	color: var(--wr-ink);
}

/* Six identical cabins on one site: the result count and the sort
   dropdown add nothing, so both are hidden (Josh, 2026-11-16). */
.hr-explorer .hfse-form-properties-count-container,
.hr-explorer .hfse-form-order-field-container {
	display: none !important;
}

/* ---------- Cabin cards ---------- */

.hr-explorer .hfse-property-card {
	border: 1px solid var(--wr-line);
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hr-explorer .hfse-property-card:hover {
	border-color: var(--wr-sage);
	box-shadow: 0 6px 22px rgba(34, 34, 34, 0.08);
}

.hr-explorer .hfse-property-title {
	font-size: 17px;
	line-height: 1.35;
}

.hr-explorer .hfse-map-badge {
	font-family: hk_groteskmedium, hk_grotesklight, sans-serif;
}

/* ---------- Date picker window: clear the fixed site header ---------- */

.hfse-form-modal.hk-modal {
	z-index: 10010;
}

/* ---------- Search date picker colours ---------- */

.homelocal-range-calendar {
	--homelocal-range-calendar-color_available: var(--wr-ink);
	--homelocal-range-calendar-color_unavailable: var(--wr-off);
	--homelocal-range-calendar-bg_color_selected: #e3e8df;
	--homelocal-range-calendar-border_color_selected: var(--wr-accent);
	--homelocal-range-calendar-color_checkinout: #fff;
	--homelocal-range-calendar-bg_color_checkinout: var(--wr-accent);
}

/* Days the search calendar add-on has closed (no arrival or no departure). */
.homelocal-range-calendar .week .day.day-of-month.wrhr-off,
.homelocal-range-calendar .week .day.day-of-month.wrhr-off .date {
	color: var(--wr-off);
	cursor: not-allowed;
}

.homelocal-range-calendar .week .day.day-of-month.wrhr-off .date {
	background-image: linear-gradient(
		to top right,
		transparent calc(50% - 0.5px),
		var(--wr-line) calc(50% - 0.5px),
		var(--wr-line) calc(50% + 0.5px),
		transparent calc(50% + 0.5px)
	);
	border-color: transparent;
}

.calendar-picker > .homelocal-range-calendar .week .day-of-month.wrhr-off:hover .date {
	border-color: transparent;
}

/* A closed day never paints as the hovered departure. */
.homelocal-range-calendar .week .day.day-of-month.wrhr-off.hover.checkout:not(.checkin),
.homelocal-range-calendar .week .day.day-of-month.wrhr-off.hover.checkout:not(.checkin) .date {
	background-color: transparent;
	color: var(--wr-off);
	font-weight: inherit;
}

.homelocal-tip .tip-content {
	background-color: var(--wr-ink);
	border-radius: 0;
	font-family: hk_grotesklight, sans-serif;
	font-size: 13px;
	letter-spacing: 0.2px;
	max-width: 300px;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.homelocal-tip .tip-content {
		max-width: 220px;
		white-space: normal;
	}
}

/* ---------- Cabin page availability calendar ---------- */

body .homelocal-availability-calendar {
	--homelocal-availability-calendar-color_selectable: var(--wr-ink);
	--homelocal-availability-calendar-bg_selectable: #d3ddcf;
	--homelocal-availability-calendar-price_color_selectable: #55604f;
	--homelocal-availability-calendar-color_selected: #fff;
	--homelocal-availability-calendar-bg_selected: var(--wr-accent);
	--homelocal-availability-calendar-price_color_selected: #e3e8df;
	--homelocal-availability-calendar-color_booked: #8a6a5c;
	--homelocal-availability-calendar-bg_booked: #ecdcd4;
	--homelocal-availability-calendar-color_blocked: #9a9992;
	--homelocal-availability-calendar-bg_blocked: #efeeea;
	--homelocal-availability-calendar-color_passthrough: #9a9992;
	--homelocal-availability-calendar-bg_passthrough: #efeeea;
	--homelocal-availability-calendar-price_color_passthrough: #9a9992;
	--homelocal-availability-calendar-color_disabled: #9a9992;
	--homelocal-availability-calendar-bg_disabled: #efeeea;
	--homelocal-availability-calendar-color_unavailable: #9a9992;
	--homelocal-availability-calendar-bg_unavailable: #efeeea;
}

/* ---------- Cabin page: theme list bullets leaking into HomeRunner rows ---------- */

.hr-page-body ul[class*="hk-"],
.hr-page-body ul[class*="hk-"] > li {
	list-style: none;
}

.hr-page-body ul[class*="hk-"] {
	margin-left: 0;
}
