/**
 * Hostaway for Elementor — front-end styles.
 *
 * Every visual property is driven by a --hw-* custom property so it can be
 * overridden from Elementor style controls, theme CSS, or the Customizer:
 *
 *   .hw-grid, .hw-carousel, .hw-booking, .hw-calendar {
 *       --hw-accent: #2a6f4e;
 *   }
 */

:root {
	/* Defaults matched to toptiervacationrentals.com. The font variables
	   inherit the theme's --primary-font / --secondary-font when present. */
	--hw-accent: #94722b;
	--hw-accent-contrast: #ffffff;
	--hw-card-bg: #ffffff;
	--hw-card-radius: 6px;
	--hw-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	--hw-text: #1b1b1b;
	--hw-text-muted: #7d7e7c;
	--hw-border: #eaeaea;
	--hw-gap: 24px;
	--hw-columns: 3;
	--hw-available: #f4f1ea;
	--hw-blocked: #f3e8e8;
	--hw-selected: #e0ccb6;
	--hw-outline-hover: #e0ccb6;
	--hw-radius-sm: 5px;
	--hw-heading-font: var(--primary-font, inherit);
	--hw-body-font: var(--secondary-font, inherit);
}

/* ------------------------------------------------------------------ Cards */

.hw-grid {
	display: grid;
	grid-template-columns: repeat(var(--hw-columns), minmax(0, 1fr));
	gap: var(--hw-gap);
}

.hw-card,
.hw-single,
.hw-calendar,
.hw-booking {
	font-family: var(--hw-body-font);
}

.hw-card__title,
.hw-single__title {
	font-family: var(--hw-heading-font);
	font-weight: 500;
}

.hw-card {
	background: var(--hw-card-bg);
	border-radius: var(--hw-card-radius);
	box-shadow: var(--hw-card-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	color: var(--hw-text);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hw-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hw-card__media {
	position: relative;
	display: block;
}

.hw-card__media img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.hw-card__price-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: var(--hw-accent);
	color: var(--hw-accent-contrast);
	font-size: 0.85em;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
	line-height: 1.4;
}

.hw-card__body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

/* Matches the theme's gold uppercase eyebrow labels (.rent-value-label). */
.hw-card__location {
	font-size: 0.78em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--hw-accent);
}

.hw-card__title {
	margin: 0;
	font-size: 1.15em;
	line-height: 1.35;
}

.hw-card__title a {
	color: inherit;
	text-decoration: none;
}

.hw-card__title a:hover {
	color: var(--hw-accent);
}

.hw-card__details {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 0.88em;
	color: var(--hw-text-muted);
}

.hw-card__details li {
	display: flex;
	align-items: center;
	gap: 5px;
}

.hw-card__details li::before {
	content: "•";
	color: var(--hw-accent);
}

.hw-card__excerpt {
	margin: 0;
	font-size: 0.9em;
	color: var(--hw-text-muted);
	line-height: 1.55;
}

.hw-card__button {
	margin-top: auto;
	align-self: flex-start;
}

/* ---------------------------------------------------------------- Buttons */

.hw-btn {
	display: inline-block;
	background: var(--hw-accent);
	color: var(--hw-accent-contrast);
	border: 1px solid var(--hw-accent);
	border-radius: var(--hw-radius-sm);
	padding: 10px 25px;
	font-size: 0.9em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.hw-btn:hover {
	background: var(--hw-card-bg);
	color: var(--hw-accent);
	border-color: var(--hw-accent);
}

.hw-btn:active {
	transform: scale(0.98);
}

.hw-btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* --------------------------------------------------------------- Carousel */

.hw-carousel {
	position: relative;
}

.hw-carousel__viewport {
	overflow: hidden;
}

.hw-carousel__track {
	display: flex;
	transition: transform 0.45s ease;
	margin: 0 calc(var(--hw-gap) / -2);
}

.hw-carousel__slide {
	flex: 0 0 calc(100% / var(--hw-slides, 3));
	min-width: 0;
	padding: 6px calc(var(--hw-gap) / 2);
	box-sizing: border-box;
}

.hw-carousel__arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 2;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: var(--hw-card-bg);
	color: var(--hw-text);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.hw-carousel__arrow:hover {
	background: var(--hw-accent);
	color: var(--hw-accent-contrast);
}

.hw-carousel__arrow--prev {
	left: -8px;
}

.hw-carousel__arrow--next {
	right: -8px;
}

.hw-carousel__arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

.hw-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.hw-carousel__dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--hw-border);
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.hw-carousel__dots button.is-active {
	background: var(--hw-accent);
	transform: scale(1.25);
}

/* ----------------------------------------------------------------- Single */

.hw-single {
	color: var(--hw-text);
}

.hw-single__gallery {
	display: grid;
	gap: 10px;
	margin-bottom: 24px;
}

.hw-single__gallery--multi {
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: 150px;
}

.hw-single__gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--hw-radius-sm);
}

.hw-single__gallery--multi .hw-single__hero {
	grid-row: span 2;
	height: 100%;
}

.hw-single__gallery:not(.hw-single__gallery--multi) img {
	max-height: 440px;
}

.hw-single__header {
	margin-bottom: 10px;
}

.hw-single__title {
	margin: 0 0 4px;
}

.hw-single__description {
	line-height: 1.7;
}

/* --------------------------------------------------------------- Calendar */

.hw-calendar {
	color: var(--hw-text);
}

.hw-calendar__months {
	display: grid;
	grid-template-columns: repeat(var(--hw-cal-months, 1), minmax(0, 1fr));
	gap: 28px;
}

.hw-cal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-weight: 600;
}

.hw-cal__nav {
	border: 1px solid var(--hw-border);
	background: var(--hw-card-bg);
	border-radius: 6px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	color: var(--hw-text);
}

.hw-cal__nav:hover {
	background: var(--hw-accent);
	color: var(--hw-accent-contrast);
}

.hw-cal__nav[disabled] {
	opacity: 0.3;
	cursor: default;
}

.hw-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.hw-cal__dow {
	text-align: center;
	font-size: 0.72em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--hw-text-muted);
	padding: 4px 0;
}

.hw-cal__day {
	min-height: 38px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 0.85em;
	border-radius: 6px;
	background: transparent;
	position: relative;
}

.hw-cal__day--empty {
	visibility: hidden;
}

.hw-cal__day--available {
	background: var(--hw-available);
}

.hw-cal__day--blocked {
	background: var(--hw-blocked);
	color: var(--hw-text-muted);
	text-decoration: line-through;
}

.hw-cal__day--past {
	opacity: 0.35;
}

.hw-cal__day--selectable {
	cursor: pointer;
}

.hw-cal__day--selectable:hover {
	outline: 2px solid var(--hw-accent);
}

.hw-cal__day--selected {
	background: var(--hw-accent);
	color: var(--hw-accent-contrast);
}

.hw-cal__day--in-range {
	background: var(--hw-selected);
}

.hw-cal__price {
	font-size: 0.68em;
	color: var(--hw-text-muted);
	line-height: 1;
}

.hw-cal__day--selected .hw-cal__price {
	color: var(--hw-accent-contrast);
}

.hw-calendar__legend {
	display: flex;
	gap: 18px;
	margin-top: 14px;
	font-size: 0.82em;
	color: var(--hw-text-muted);
}

.hw-calendar__legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hw-calendar__legend i {
	width: 13px;
	height: 13px;
	border-radius: 4px;
	display: inline-block;
}

.hw-calendar__loading {
	padding: 30px;
	text-align: center;
	color: var(--hw-text-muted);
}

/* ---------------------------------------------------------------- Booking */

.hw-booking {
	color: var(--hw-text);
}

.hw-booking .hw-calendar {
	margin-bottom: 22px;
}

.hw-booking__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hw-booking__row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.hw-field {
	flex: 1;
	min-width: 130px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.hw-field__label {
	font-size: 0.82em;
	font-weight: 600;
	color: var(--hw-text-muted);
}

.hw-field input,
.hw-field select {
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius-sm);
	padding: 9px 12px;
	font-size: 0.95em;
	background: var(--hw-card-bg);
	color: var(--hw-text);
	width: 100%;
	box-sizing: border-box;
}

.hw-field input:focus,
.hw-field select:focus {
	outline: 2px solid var(--hw-accent);
	border-color: transparent;
}

.hw-booking__quote {
	background: var(--hw-available);
	border-radius: var(--hw-radius-sm);
	padding: 14px 16px;
	font-size: 0.92em;
}

.hw-booking__quote table {
	width: 100%;
	border-collapse: collapse;
}

.hw-booking__quote td {
	padding: 3px 0;
	border: none;
}

.hw-booking__quote td:last-child {
	text-align: right;
}

.hw-booking__quote tr.hw-quote-total td {
	font-weight: 700;
	border-top: 1px solid var(--hw-border);
	padding-top: 8px;
}

.hw-booking__message {
	padding: 12px 16px;
	border-radius: var(--hw-radius-sm);
	font-size: 0.92em;
}

.hw-booking__message.is-success {
	background: var(--hw-available);
	color: #166534;
}

.hw-booking__message.is-error {
	background: var(--hw-blocked);
	color: #991b1b;
}

.hw-booking__submit {
	align-self: flex-start;
}

/* ------------------------------------------------------ Minimal card skin */

.hw-card--minimal {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

.hw-card--minimal:hover {
	transform: none;
	box-shadow: none;
}

.hw-card--minimal .hw-card__media img {
	height: 300px;
	border-radius: 2px;
}

.hw-card--minimal .hw-card__body {
	padding: 22px 0 0;
	gap: 10px;
}

.hw-card--minimal .hw-card__title {
	font-size: 1.7em;
	font-weight: 400;
	line-height: 1.2;
}

.hw-card--minimal .hw-card__details {
	font-size: 0.98em;
	gap: 0;
}

.hw-card--minimal .hw-card__details li {
	gap: 0;
}

.hw-card--minimal .hw-card__details li::before {
	content: "";
}

.hw-card--minimal .hw-card__details li + li {
	border-left: 1px solid var(--hw-ternary, #d8d8d7);
	margin-left: 14px;
	padding-left: 14px;
}

.hw-card--minimal .hw-card__price-line {
	font-size: 0.9em;
	color: var(--hw-text-muted);
}

.hw-card--minimal .hw-card__button {
	margin-top: 8px;
}

/* Outlined button used by the minimal skin ("Book Now ↗").
   Matches the toptiervacationrentals.com theme's .cs_btn.cs_style_2: dark
   outline that fills with the champagne accent and white text on hover. */
.hw-btn--outline {
	background: transparent;
	color: var(--hw-text);
	border: 1px solid var(--hw-text);
	border-radius: var(--hw-radius-sm);
	font-weight: 500;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.4s ease;
}

.hw-btn--outline:hover {
	background: var(--hw-outline-hover);
	color: #fff;
	border-color: var(--hw-outline-hover);
}

/* Animated fly-out corner arrow (mirrors the theme's .cs_btn.cs_style_2). */
.hw-btn__icon {
	display: inline-flex;
	position: relative;
	overflow: hidden;
	flex: none;
	width: 13px;
	height: 11px;
	margin-left: 2px;
}

.hw-btn__icon svg {
	transform: rotate(45deg);
}

.hw-btn__icon i {
	display: inline-flex;
	transform: rotate(-45deg);
	transition: transform 0.4s ease;
	color: inherit;
}

.hw-btn__icon i:last-child {
	position: absolute;
	left: -13px;
	bottom: -14px;
	opacity: 0;
	visibility: hidden;
	transform: translate(0, 0) rotate(-45deg);
	transition: transform 0.4s ease, opacity 0.4s ease;
}

.hw-btn--outline:hover .hw-btn__icon i:first-child {
	transform: translate(13px, -13px) rotate(-45deg);
}

.hw-btn--outline:hover .hw-btn__icon i:last-child {
	opacity: 1;
	visibility: visible;
	transform: translate(13px, -13px) rotate(-45deg);
}

/* Ghost button (Show more / Send Inquiry / Clear dates). */
.hw-btn--ghost {
	background: transparent;
	color: var(--hw-text);
	border: 1px solid var(--hw-border);
	border-radius: 999px;
	font-weight: 500;
}

.hw-btn--ghost:hover {
	background: transparent;
	color: var(--hw-accent);
	border-color: var(--hw-accent);
}

/* Pill button (booking card "Book now"). */
.hw-btn--pill {
	border-radius: 999px;
}

/* ------------------------------------------------------- Card image slider */

.hw-card-slider {
	position: relative;
	overflow: hidden;
}

.hw-card-slider__track {
	position: relative;
}

.hw-card-slider__track img {
	display: none;
}

.hw-card-slider__track img.is-active {
	display: block;
}

.hw-card-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

.hw-card-slider__arrow:hover {
	opacity: 1;
}

.hw-card-slider__arrow--prev {
	left: 6px;
}

.hw-card-slider__arrow--next {
	right: 6px;
}

/* ------------------------------------------- Minimal carousel navigation */

.hw-carousel--minimal {
	padding: 0 70px;
}

.hw-carousel--minimal .hw-carousel__arrow {
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	width: auto;
	height: auto;
	color: var(--hw-text-muted);
	top: 35%;
}

.hw-carousel--minimal .hw-carousel__arrow:hover {
	background: transparent;
	color: var(--hw-text);
}

.hw-carousel--minimal .hw-carousel__arrow--prev {
	left: 0;
}

.hw-carousel--minimal .hw-carousel__arrow--next {
	right: 0;
}

/* --------------------------------------------------------------- Search bar */

.hw-search {
	display: flex;
	align-items: stretch;
	gap: 14px;
	flex-wrap: wrap;
	background: var(--hw-selected);
	padding: 28px 32px;
	font-family: var(--hw-body-font);
}

.hw-search__field {
	flex: 1;
	min-width: 170px;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 4px;
	padding: 12px 16px;
	color: #fff;
	font-size: 1em;
	cursor: pointer;
}

.hw-search__label {
	white-space: nowrap;
	opacity: 0.95;
}

.hw-search__field select,
.hw-search__field input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	color: inherit;
	font: inherit;
	text-align: right;
	cursor: pointer;
	min-width: 0;
}

.hw-search__field select option {
	color: var(--hw-text);
}

.hw-search__field input[type="date"]::-webkit-calendar-picker-indicator {
	filter: invert(1);
	opacity: 0.9;
}

.hw-search__submit {
	background: var(--hw-text);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 12px 30px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.hw-search__submit:hover {
	background: var(--hw-accent);
}

/* ------------------------------------------------------ Single: layout */

.hw-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 40px;
	align-items: start;
}

.hw-single__sidebar {
	position: sticky;
	top: 24px;
}

.hw-single__section {
	margin-top: 34px;
	padding-top: 30px;
	border-top: 1px solid var(--hw-border);
}

.hw-single__section-title {
	font-family: var(--hw-heading-font);
	font-size: 1.35em;
	font-weight: 500;
	margin: 0 0 18px;
}

.hw-single__subtitle {
	font-size: 1em;
	font-weight: 600;
	margin: 18px 0 10px;
}

.hw-single__meta {
	color: var(--hw-text-muted);
	margin-top: 6px;
}

.hw-single__rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	font-weight: 600;
}

.hw-single__star {
	color: var(--hw-accent);
}

/* ------------------------------------------------------ Single: gallery */

.hw-single__gallery {
	display: grid;
	gap: 12px;
	margin-bottom: 28px;
}

.hw-single__gallery--multi {
	grid-template-columns: 1fr 0.5fr 0.5fr;
	grid-auto-rows: 170px;
}

.hw-single__photo {
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: var(--hw-radius-sm);
}

.hw-single__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.hw-single__photo:hover img {
	transform: scale(1.03);
}

.hw-single__gallery--multi .hw-single__hero {
	grid-row: span 2;
}

.hw-single__more-badge {
	position: absolute;
	bottom: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff;
	color: var(--hw-text);
	font-size: 0.82em;
	font-weight: 600;
	padding: 7px 13px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ------------------------------------------------------ Single: lightbox */

/* Stage 1: full gallery grid (Airbnb-style), sits below the lightbox. */
.hw-gallery-view {
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: var(--hw-card-bg);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.hw-gallery-view__bar {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 24px;
	background: var(--hw-card-bg);
	border-bottom: 1px solid var(--hw-border);
}

.hw-gallery-view__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--hw-body-font);
	font-size: 0.95em;
	font-weight: 600;
	color: var(--hw-text);
	padding: 6px 4px;
}

.hw-gallery-view__back:hover {
	color: var(--hw-accent);
}

.hw-gallery-view__count {
	font-family: var(--hw-body-font);
	font-size: 0.88em;
	color: var(--hw-text-muted);
}

.hw-gallery-view__grid {
	max-width: 880px;
	margin: 0 auto;
	padding: 24px;
	columns: 2;
	column-gap: 12px;
}

.hw-gallery-view__item {
	display: block;
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	break-inside: avoid;
	border-radius: var(--hw-radius-sm);
	overflow: hidden;
}

.hw-gallery-view__item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.hw-gallery-view__item:hover img {
	transform: scale(1.03);
}

@media (max-width: 640px) {
	.hw-gallery-view__grid {
		columns: 1;
	}
}

.hw-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(10, 10, 10, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hw-lightbox img {
	/* Definite box + contain: the photo always scales up to fill the
	   viewport, immune to theme img rules (max-* alone never enlarges). */
	width: 88vw;
	height: 86vh;
	max-width: none;
	max-height: none;
	object-fit: contain;
	border-radius: 4px;
}

.hw-lightbox__close,
.hw-lightbox__prev,
.hw-lightbox__next {
	position: absolute;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 30px;
	cursor: pointer;
	padding: 14px;
	opacity: 0.85;
}

.hw-lightbox__close:hover,
.hw-lightbox__prev:hover,
.hw-lightbox__next:hover {
	opacity: 1;
}

.hw-lightbox__close {
	top: 14px;
	right: 20px;
	font-size: 38px;
}

.hw-lightbox__prev {
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.hw-lightbox__next {
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.hw-lightbox__meta {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	max-width: 80vw;
	text-align: center;
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
	padding: 9px 20px;
	border-radius: 12px;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.hw-lightbox__meta:empty {
	display: none;
}

.hw-lightbox__caption {
	font-size: 0.95em;
	font-family: var(--hw-body-font);
}

.hw-lightbox__caption:empty {
	display: none;
}

.hw-lightbox__count {
	font-size: 0.85em;
	opacity: 0.75;
}

/* --------------------------------------------------- Single: collapsible */

.hw-collapsible__inner {
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.hw-collapsible:not(.is-open) .hw-collapsible__inner {
	max-height: var(--hw-collapsed, 170px);
	-webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
	mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.hw-collapsible__toggle {
	margin-top: 12px;
}

.hw-collapsible.is-static .hw-collapsible__toggle {
	display: none;
}

.hw-collapsible.is-static .hw-collapsible__inner {
	max-height: none;
	mask-image: none;
	-webkit-mask-image: none;
}

/* ----------------------------------------------------- Single: amenities */

.hw-amenities {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px 24px;
}

.hw-amenities li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hw-amenities__icon {
	color: var(--hw-text);
	display: inline-flex;
	flex-shrink: 0;
}

.hw-amenities__toggle {
	margin-top: 20px;
}

/* Amenities grouped by category (single listing). */
.hw-amenities__group + .hw-amenities__group {
	margin-top: 26px;
}

.hw-amenities__cat {
	font-family: var(--hw-body-font);
	font-size: 0.82em;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hw-accent);
	margin: 0 0 14px;
}

/* -------------------------------------------------- Single: map + rules */

.hw-single__map {
	border-radius: var(--hw-radius-sm);
	overflow: hidden;
}

.hw-single__map iframe {
	width: 100%;
	height: 320px;
	border: 0;
	display: block;
}

.hw-rules {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px 24px;
	margin: 0;
}

.hw-rules div {
	display: flex;
	gap: 8px;
}

.hw-rules dt {
	font-weight: 400;
}

.hw-rules dd {
	margin: 0;
}

.hw-rules__line {
	margin: 4px 0;
}

.hw-single__cal-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
	color: var(--hw-text-muted);
	font-size: 0.92em;
}

/* ------------------------------------------------------------ Booking card */

.hw-bookcard {
	background: var(--hw-card-bg);
	border-radius: 14px;
	box-shadow: var(--hw-card-shadow);
	padding: 26px;
	font-family: var(--hw-body-font);
	color: var(--hw-text);
}

.hw-bookcard__hint {
	margin: 0 0 18px;
	font-size: 0.85em;
	color: var(--hw-text-muted);
	text-align: center;
}

.hw-bookcard__fields {
	display: flex;
	gap: 10px;
}

.hw-bookcard__dates,
.hw-bookcard__guests {
	display: flex;
	align-items: center;
	gap: 9px;
	border: 1px solid var(--hw-border);
	border-radius: 999px;
	padding: 11px 16px;
	background: var(--hw-card-bg);
	font: inherit;
	font-size: 0.92em;
	color: var(--hw-text-muted);
	cursor: pointer;
}

.hw-bookcard__dates {
	flex: 1.6;
	text-align: left;
}

.hw-bookcard__dates.has-dates {
	color: var(--hw-text);
	border-color: var(--hw-accent);
}

.hw-bookcard__guests {
	flex: 1;
}

.hw-bookcard__guests select {
	border: none;
	background: transparent;
	font: inherit;
	color: var(--hw-text);
	outline: none;
	width: 100%;
	cursor: pointer;
}

.hw-bookcard__icon {
	color: var(--hw-accent);
	display: inline-flex;
	flex-shrink: 0;
}

.hw-bookcard__quote {
	background: var(--hw-available);
	border-radius: 10px;
	padding: 13px 15px;
	margin-top: 14px;
	font-size: 0.9em;
}

.hw-bookcard__quote table {
	width: 100%;
	border-collapse: collapse;
}

.hw-bookcard__quote td {
	padding: 3px 0;
	border: none;
}

.hw-bookcard__quote td:last-child {
	text-align: right;
}

.hw-bookcard__quote tr.hw-quote-total td {
	font-weight: 700;
	border-top: 1px solid var(--hw-border);
	padding-top: 8px;
}

.hw-bookcard__actions {
	display: flex;
	gap: 12px;
	margin-top: 18px;
}

.hw-bookcard__actions .hw-btn {
	flex: 1;
	text-align: center;
}

/* ---------------------------------------------------------------- Modal */

.hw-modal {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.hw-modal[hidden] {
	display: none;
}

.hw-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 15, 0.55);
}

.hw-modal__panel {
	position: relative;
	background: var(--hw-card-bg);
	color: var(--hw-text);
	border-radius: 14px;
	padding: 30px;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow: auto;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.hw-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--hw-text-muted);
}

.hw-modal__title {
	font-family: var(--hw-heading-font);
	font-weight: 500;
	margin: 0 0 6px;
	padding-right: 26px;
}

.hw-modal__summary {
	color: var(--hw-text-muted);
	font-size: 0.92em;
	margin-bottom: 18px;
}

.hw-modal__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hw-modal__submit {
	align-self: stretch;
	text-align: center;
}

.hw-modal__payment {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hw-modal__pay-summary table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92em;
}

.hw-modal__pay-summary td {
	padding: 4px 0;
	border: none;
}

.hw-modal__pay-summary td:last-child {
	text-align: right;
}

.hw-modal__pay-summary tr.hw-quote-total td {
	font-weight: 700;
	border-top: 1px solid var(--hw-border);
	padding-top: 8px;
}

.hw-payment-element {
	min-height: 40px;
}

/* ----------------------------------------------------- Card extras */

.hw-card__rating {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	background: var(--hw-accent);
	color: var(--hw-accent-contrast);
	font-size: 0.82em;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
	line-height: 1.4;
}

.hw-card__chips {
	list-style: none;
	margin: 2px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hw-card__chips li {
	background: var(--hw-available);
	color: var(--hw-text);
	font-size: 0.8em;
	padding: 6px 14px;
	border-radius: 999px;
}

/* -------------------------------------------------- Results layout + map */

.hw-results__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.hw-results__count {
	font-family: var(--hw-heading-font);
	font-weight: 500;
	font-size: 1.55em;
	margin: 0;
	color: var(--hw-text);
}

.hw-results__map-toggle {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--hw-accent);
	color: var(--hw-accent-contrast);
	border: 1px solid var(--hw-accent);
	border-radius: 999px;
	padding: 11px 22px;
	font-family: var(--hw-body-font);
	font-size: 0.92em;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.hw-results__map-toggle:hover {
	background: var(--hw-card-bg);
	color: var(--hw-accent);
}

.hw-results__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 44%);
	gap: 30px;
	align-items: start;
}

.hw-results__body--no-map,
.hw-results--map-hidden .hw-results__body {
	grid-template-columns: 1fr;
}

.hw-results--map-hidden .hw-results__map {
	display: none;
}

.hw-results__map {
	position: sticky;
	top: 24px;
}

.hw-map {
	height: 78vh;
	min-height: 460px;
	border-radius: 12px;
	z-index: 1;
	background: var(--hw-available);
}

.hw-map-marker-wrap {
	background: none;
	border: none;
}

.hw-map-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: #fff;
	border-radius: 50%;
	color: var(--hw-text);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hw-map-marker:hover {
	transform: scale(1.12);
	background: var(--hw-accent);
	color: #fff;
}

.hw-map .leaflet-popup-content-wrapper {
	border-radius: 12px;
	font-family: var(--hw-body-font);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.hw-map .leaflet-popup-content {
	margin: 0;
	width: 230px !important;
}

.hw-map-popup {
	overflow: hidden;
	border-radius: 12px;
}

.hw-map-popup img {
	display: block;
	width: 100%;
	height: 130px;
	object-fit: cover;
}

.hw-map-popup__body {
	padding: 13px 15px 15px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hw-map-popup__name {
	font-family: var(--hw-heading-font);
	font-size: 1.1em;
	color: var(--hw-text);
}

.hw-map-popup__price {
	color: var(--hw-text-muted);
	font-size: 0.85em;
}

.hw-map-popup__link {
	margin-top: 8px;
	color: var(--hw-accent);
	font-weight: 600;
	font-size: 0.88em;
	text-decoration: none;
}

.hw-map-popup__link:hover {
	text-decoration: underline;
}

/* ----------------------------------------------------------------- Notice */

.hw-notice {
	padding: 14px 18px;
	border: 1px dashed var(--hw-border);
	border-radius: var(--hw-radius-sm);
	background: #fffbeb;
	color: #92400e;
	font-size: 0.9em;
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
	.hw-grid {
		grid-template-columns: repeat(min(var(--hw-columns), 2), minmax(0, 1fr));
	}

	.hw-carousel__slide {
		flex-basis: calc(100% / min(var(--hw-slides, 3), 2));
	}
}

@media (max-width: 1024px) {
	.hw-single__layout {
		grid-template-columns: 1fr;
	}

	/* Map stacks below the list on smaller screens. */
	.hw-results__body {
		grid-template-columns: 1fr;
	}

	.hw-results__map {
		position: static;
		order: 2;
	}

	.hw-map {
		height: 420px;
		min-height: 0;
	}

	.hw-single__sidebar {
		position: static;
		order: -1;
	}

	.hw-carousel--minimal {
		padding: 0 46px;
	}
}

@media (max-width: 640px) {
	.hw-grid {
		grid-template-columns: 1fr;
	}

	.hw-search {
		flex-direction: column;
		align-items: stretch;
	}

	.hw-single__gallery--multi {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 130px;
	}

	.hw-single__gallery--multi .hw-single__hero {
		grid-column: span 2;
	}

	.hw-bookcard__fields {
		flex-direction: column;
	}

	.hw-single__cal-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.hw-carousel__slide {
		flex-basis: 100%;
	}

	.hw-calendar__months {
		grid-template-columns: 1fr;
	}
}
