:root {
	--brera-hero-orange: #eb4526;
	--brera-hero-ink: #212121;
	--brera-hero-muted: #595959;
	--brera-hero-border: #e7e7e7;
	--brera-hero-surface: #f4f4f4;
}

.brera-hero {
	padding: 35px 0 64px;
	background: #fff;
	color: var(--brera-hero-ink);
}

.brera-hero__inner.wrapper {
	width: min(100%, 1360px);
	max-width: 1360px;
	padding-right: 15px;
	padding-left: 15px;
}

.brera-hero__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 18px;
}

.brera-hero__title,
.brera-hero__summary-title,
.brera-hero__booking h2 {
	margin: 0;
	color: var(--brera-hero-ink);
	letter-spacing: normal;
}

.brera-hero__title {
	font-size: clamp(36px, 3.7vw, 44px);
	font-weight: 300;
	line-height: 1.06;
}

.brera-hero__location,
.brera-hero__mobile-meta,
.brera-hero__mobile-rating {
	margin: 5px 0 0;
	color: var(--brera-hero-muted);
	font-size: 14px;
	line-height: 1.4;
}

.brera-hero__mobile-meta,
.brera-hero__mobile-rating {
	display: none;
}

.brera-hero__actions {
	display: flex;
	align-items: center;
	gap: 22px;
	padding-bottom: 0;
	transform: translateY(4px);
}

.brera-hero__action {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 0;
	border: 0;
	background: transparent;
	color: var(--brera-hero-ink);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.brera-hero__action img {
	display: block;
	width: auto;
	height: 11px;
	flex: 0 0 auto;
}

.brera-hero__action b {
	font-weight: 700;
}

.brera-hero__action:hover,
.brera-hero__action:focus-visible,
.brera-hero__action[aria-pressed="true"] {
	color: var(--brera-hero-orange);
}

.brera-hero__gallery {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, .9fr));
	grid-template-rows: repeat(2, 210px);
	gap: 8px;
	overflow: hidden;
	border-radius: 10px;
}

.brera-hero__gallery-item {
	position: relative;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: var(--brera-hero-surface);
}

.brera-hero__gallery-item--1 {
	grid-row: 1 / 3;
}

.brera-hero__gallery-item > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.brera-hero__gallery-item:hover > img {
	transform: scale(1.02);
}

.brera-hero__gallery-open {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 6px 16px;
	border: 0;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(0, 0, 0, .12);
	color: var(--brera-hero-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.brera-hero__gallery-open img {
	display: block;
	width: 11px;
	height: 11px;
	flex: 0 0 auto;
}

.brera-hero__gallery-item--4 .brera-hero__gallery-open {
	display: none;
}

.brera-hero__lower {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
	align-items: start;
	gap: clamp(48px, 6vw, 92px);
	padding-top: 40px;
}

.brera-hero__summary {
	min-width: 0;
}

.brera-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 28px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--brera-hero-surface);
	color: var(--brera-hero-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.brera-hero__badge i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--brera-hero-orange);
}

.brera-hero__summary-title {
	margin-top: 9px;
	font-size: 44px;
	font-weight: 300;
	line-height: 1.12;
}

.brera-hero__summary-meta {
	margin: 10px 0 0;
	color: var(--brera-hero-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.brera-hero__rating {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 5px 0 0;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--brera-hero-border);
	color: var(--brera-hero-muted);
	font-size: 14px;
}

.brera-hero__rating strong {
	color: #16843b;
}

.brera-hero__rating a,
.brera-hero__mobile-rating a {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 3px;
}

.brera-hero__rating a:hover,
.brera-hero__mobile-rating a:hover {
	text-decoration: underline;
}

.brera-hero__rating a:focus-visible,
.brera-hero__mobile-rating a:focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--brera-hero-orange);
	outline-offset: 3px;
}

.brera-hero__host {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.brera-hero__host > img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.brera-hero__host div,
.brera-hero__benefit > div {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.brera-hero__host strong,
.brera-hero__benefit strong {
	color: var(--brera-hero-ink);
	font-size: 15px;
	line-height: 1.35;
}

.brera-hero__host span,
.brera-hero__benefit span {
	color: var(--brera-hero-muted);
	font-size: 13px;
	line-height: 1.4;
}

.brera-hero__benefits {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 34px;
	margin-top: 22px;
}

.brera-hero__benefit {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
}

.brera-hero__benefit-icon {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 50%;
	background: var(--brera-hero-surface);
}

.brera-hero__benefit-icon img {
	width: 14px;
	height: 14px;
	object-fit: contain;
}

.brera-hero__booking {
	position: relative;
	z-index: 2;
	padding: 28px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(33, 33, 33, .14);
}

.brera-hero__booking h2 {
	font-size: 23px;
	font-weight: 700;
	line-height: 1.25;
}

.brera-hero__booking > p {
	margin: 5px 0;
	color: var(--brera-hero-muted);
	font-size: 13px;
}

.brera-hero__booking-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.brera-hero__booking label,
.brera-hero__date-field,
.brera-hero__guests {
	position: relative;
	display: flex;
	height: 64px;
	min-height: 64px;
	margin: 0;
	flex-direction: column;
	justify-content: flex-start;
	padding: 10px 12px 8px;
	border: 1px solid #c7c7c7;
	border-radius: 4px;
	background: #fff;
}

.brera-hero__booking label > span,
.brera-hero__date-field > span,
.brera-hero__guests > span {
	position: relative;
	z-index: 1;
	color: var(--brera-hero-muted);
	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.brera-hero__booking label > small,
.brera-hero__date-field > small,
.brera-hero__guests > small {
	position: relative;
	z-index: 1;
	margin-top: 8px;
	color: var(--brera-hero-ink);
	font-size: 13px;
	line-height: 1.2;
}

.brera-hero__date-trigger,
.brera-hero__guest-trigger,
.brera-hero__booking select {
	position: absolute;
	inset: 0;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 28px 11px 7px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: transparent;
	font: inherit;
	font-size: 13px;
	line-height: 18px;
	cursor: pointer;
	appearance: none;
}

.brera-hero__booking select {
	color: var(--brera-hero-ink);
}

.brera-hero__date-trigger,
.brera-hero__guest-trigger {
	z-index: 2;
	padding: 0;
	border: 0;
	background: transparent;
	color: transparent;
}

.brera-hero__booking label:focus-within,
.brera-hero__date-field:focus-within,
.brera-hero__guests:focus-within {
	border-color: var(--brera-hero-orange);
	box-shadow: 0 0 0 1px var(--brera-hero-orange);
}

.brera-hero__date-field.has-error {
	border-color: #c92323;
	box-shadow: 0 0 0 1px #c92323;
}

.brera-hero__guests {
	grid-column: 1 / -1;
}

.brera-hero__guest-menu[hidden] {
	display: none;
}

.brera-hero__guest-menu {
	position: absolute;
	z-index: 40;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	display: grid;
	gap: 3px;
	padding: 7px;
	border: 1px solid #dedede;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 16px 36px rgba(33, 33, 33, .18);
}

.brera-hero__guest-menu button {
	position: relative;
	width: 100%;
	min-height: 42px;
	padding: 9px 38px 9px 13px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--brera-hero-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.brera-hero__guest-menu button:hover,
.brera-hero__guest-menu button:focus-visible {
	background: #f4f4f4;
	outline: none;
}

.brera-hero__guest-menu button.is-selected {
	background: #fff0ec;
	color: #bd321d;
}

.brera-hero__guest-menu button.is-selected::after {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 9px;
	height: 5px;
	border-bottom: 2px solid var(--brera-hero-orange);
	border-left: 2px solid var(--brera-hero-orange);
	content: "";
	transform: translateY(-65%) rotate(-45deg);
}

.brera-hero__booking-submit {
	display: inline-flex;
	width: 100%;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	gap: 13px;
	margin-top: 10px;
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--brera-hero-orange);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.brera-hero__booking-submit img {
	width: 20px;
	height: auto;
}

.brera-hero__booking-submit:hover,
.brera-hero__booking-submit:focus-visible {
	background: #d93a20;
}

.brera-hero__booking-note {
	display: block;
	margin-top: 10px;
	color: var(--brera-hero-muted);
	font-size: 12px;
	text-align: center;
}

.brera-hero__booking form {
	position: relative;
}

.brera-calendar[hidden],
.brera-calendar-backdrop[hidden] {
	display: none;
}

.brera-calendar {
	position: fixed;
	z-index: 2147483646;
	top: 50%;
	left: 50%;
	width: min(740px, calc(100vw - 48px));
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	padding: 24px;
	border: 1px solid #dedede;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(33, 33, 33, .2);
	transform: translate(-50%, -50%);
}

.brera-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e8e8e8;
}

.brera-calendar__header > div:first-child {
	display: grid;
	gap: 3px;
}

.brera-calendar__header span {
	color: var(--brera-hero-muted);
	font-size: 11px;
	line-height: 1.2;
}

.brera-calendar__header strong {
	color: var(--brera-hero-ink);
	font-size: 18px;
	line-height: 1.25;
}

.brera-calendar__navigation {
	display: flex;
	align-items: center;
	gap: 6px;
}

.brera-calendar__navigation button {
	position: relative;
	display: grid;
	width: 38px;
	height: 38px;
	padding: 0;
	place-items: center;
	border: 1px solid #dedede;
	border-radius: 50%;
	background: #fff;
	color: var(--brera-hero-ink);
	font: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.brera-calendar__navigation button:not(.brera-calendar__close) i {
	width: 9px;
	height: 9px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(-135deg);
}

.brera-calendar__navigation [data-brera-calendar-next] i {
	transform: rotate(45deg) !important;
}

.brera-calendar__navigation button:hover,
.brera-calendar__navigation button:focus-visible {
	border-color: var(--brera-hero-orange);
	color: var(--brera-hero-orange);
}

.brera-calendar__navigation button:disabled {
	opacity: .3;
	cursor: default;
}

.brera-calendar__close {
	margin-left: 4px;
	border-color: transparent !important;
}

.brera-calendar__months {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 34px;
	padding: 20px 0 18px;
}

.brera-calendar__month h3 {
	margin: 0 0 16px;
	color: var(--brera-hero-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.brera-calendar__weekdays,
.brera-calendar__days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.brera-calendar__weekdays {
	margin-bottom: 7px;
}

.brera-calendar__weekdays span {
	color: #8a8a8a;
	font-size: 10px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
}

.brera-calendar__days > button,
.brera-calendar__blank {
	min-width: 0;
	height: 40px;
}

.brera-calendar__days > button {
	position: relative;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--brera-hero-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.brera-calendar__days > button:hover,
.brera-calendar__days > button:focus-visible {
	z-index: 1;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px var(--brera-hero-orange);
	outline: none;
}

.brera-calendar__days > button.is-today:not(.is-start):not(.is-end) {
	color: var(--brera-hero-orange);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.brera-calendar__days > button.is-in-range {
	background: #fff0ec;
	color: #bd321d;
}

.brera-calendar__days > button.is-start,
.brera-calendar__days > button.is-end {
	border-radius: 50%;
	background: var(--brera-hero-orange);
	color: #fff;
}

.brera-calendar__days > button:disabled {
	color: #c8c8c8;
	cursor: default;
	text-decoration: none;
}

.brera-calendar__days > button:disabled:hover {
	box-shadow: none;
}

.brera-calendar__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-top: 16px;
	border-top: 1px solid #e8e8e8;
}

.brera-calendar__footer button {
	padding: 0;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: transparent;
	color: var(--brera-hero-orange);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.brera-calendar__footer span {
	color: var(--brera-hero-muted);
	font-size: 12px;
	text-align: right;
}

.brera-calendar-backdrop {
	position: fixed;
	z-index: 2147483645;
	inset: 0;
	display: block;
	background: rgba(20, 20, 20, .28);
}

body.brera-calendar-open {
	overflow: hidden;
}

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

.brera-hero-modal {
	position: fixed;
	z-index: 2147483646;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
}

.brera-hero-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .76);
}

.brera-hero-modal__panel {
	position: relative;
	z-index: 1;
	width: min(1120px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 46px 18px 18px;
	border-radius: 14px;
	background: #fff;
}

.brera-hero-modal__close {
	position: absolute;
	top: 8px;
	right: 14px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--brera-hero-ink);
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.brera-hero-modal__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.brera-hero-modal__grid img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	border-radius: 8px;
	object-fit: cover;
}

body.brera-hero-modal-open {
	overflow: hidden;
}

@media (max-width: 1023px) {
	.brera-hero__gallery {
		grid-template-rows: repeat(2, 160px);
	}

	.brera-hero__lower {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 32px;
	}

	.brera-hero__benefits {
		grid-template-columns: 1fr;
	}
	
	.brera-hero__booking {
		padding: 24px;
	}
}

@media (max-width: 767px) {
	.brera-hero {
		padding: 38px 0 18px;
	}

	.brera-hero__header {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		gap: 14px;
		margin-bottom: 0;
	}

	.brera-hero__heading {
		grid-column: 1 / -1;
	}

	.brera-hero__title {
		max-width: 100%;
		margin-bottom: 20px;
		font-size: 34px;
	}

	.brera-hero__location,
	.brera-hero__mobile-meta,
	.brera-hero__mobile-rating {
		margin: 5px 0 10px;
		font-size: 11px;
		line-height: 1.4;
	}

	.brera-hero__location {
		display: none;
	}

	.brera-hero__mobile-meta,
	.brera-hero__mobile-rating {
		display: block;
	}

	.brera-hero__mobile-rating {
		margin-top: 10px;
		color: #16843b;
		font-size: 11px;
		font-weight: 700;
	}

	.brera-hero__actions {
		grid-column: 2;
		grid-row: 2;
		justify-self: end;
		margin-top: -48px;
		gap: 14px;
		transform: none;
	}

	.brera-hero__action {
		font-size: 13px;
	}

	.brera-hero__gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: 310px 112px;
		gap: 8px;
		border-radius: 12px;
	}

	.brera-hero__gallery-item--1 {
		grid-column: 1 / -1;
		grid-row: 1;
		border-radius: 12px;
	}

	.brera-hero__gallery-item--2,
	.brera-hero__gallery-item--3,
	.brera-hero__gallery-item--4 {
		grid-row: 2;
		border-radius: 10px;
	}

	.brera-hero__gallery-item--5 {
		display: none;
	}

	.brera-hero__gallery-item--4 .brera-hero__gallery-open {
		display: inline-flex;
	}

	.brera-hero__gallery-open {
		right: 7px;
		bottom: 7px;
		min-height: 30px;
		padding: 0 10px;
		font-size: 8px;
	}

	.brera-hero__lower {
		display: flex;
		flex-direction: column;
		gap: 16px;
		padding-top: 30px;
	}

	.brera-hero__summary,
	.brera-hero__booking {
		width: 100%;
	}

	.brera-hero__summary-title {
		font-size: 38px;
	}

	.brera-hero__badge,
	.brera-hero__summary-meta {
		display: none;
	}

	.brera-hero__rating {
		display: none;
	}

	.brera-hero__benefits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 34px;
		margin-top: 22px;
		padding: 14px 12px;
		border-radius: 14px;
		box-shadow: 0 18px 40px rgba(33, 33, 33, .14);
	}

	.brera-hero__benefit {
		grid-template-columns: 34px minmax(0, 1fr);
		gap: 8px;
	}

	.brera-hero__benefit-icon {
		width: 32px;
		height: 32px;
	}

	.brera-hero__benefit strong {
		font-size: 10px;
	}

	.brera-hero__benefit span {
		font-size: 9px;
	}

	.brera-hero__booking {
		padding: 18px 16px;
		border-radius: 14px;
	}

	.brera-hero__booking h2 {
		font-size: 17px;
		font-weight: 700;
		line-height: 1.25;
	}

	.brera-hero__booking > p {
		margin: 15px 0;
		font-size: 9px;
		line-height: 1;
	}

	.brera-hero__booking label,
	.brera-hero__date-field,
	.brera-hero__guests {
		height: 48px;
		min-height: 48px;
		padding: 7px 10px 5px;
	}

	.brera-hero__booking label > small,
	.brera-hero__date-field > small,
	.brera-hero__guests > small {
		margin-top: 4px;
	}

	.brera-hero__date-trigger,
	.brera-hero__guest-trigger,
	.brera-hero__booking select {
		height: 48px;
		padding: 22px 9px 5px;
	}

	.brera-calendar-backdrop {
		position: fixed;
		z-index: 2147483645;
		inset: 0;
		display: block;
		background: rgba(20, 20, 20, .46);
	}

	.brera-calendar {
		position: fixed;
		z-index: 2147483646;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: min(720px, calc(100dvh - 32px));
		overflow-y: auto;
		padding: 20px 16px 18px;
		border: 0;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -18px 48px rgba(20, 20, 20, .2);
		transform: none;
	}

	.brera-calendar__header {
		position: sticky;
		top: -20px;
		z-index: 3;
		padding: 20px 0 15px;
		background: #fff;
	}

	.brera-calendar__header strong {
		font-size: 16px;
	}

	.brera-calendar__navigation {
		gap: 3px;
	}

	.brera-calendar__navigation button {
		width: 34px;
		height: 34px;
	}

	.brera-calendar__months {
		grid-template-columns: 1fr;
		padding-top: 18px;
	}

	.brera-calendar__month:nth-child(2) {
		display: none;
	}

	.brera-calendar__days > button,
	.brera-calendar__blank {
		height: 44px;
	}

	.brera-calendar__footer {
		position: sticky;
		bottom: -18px;
		padding: 15px 0 18px;
		background: #fff;
	}

	body.brera-calendar-open {
		overflow: hidden;
	}

	body.brera-calendar-open .floating-book-now,
	body.brera-guests-open .floating-book-now {
		opacity: 0;
		pointer-events: none;
		visibility: hidden;
	}

	.brera-hero__booking-note {
		font-size: 9px;
	}

	.brera-hero-modal {
		padding: 10px;
	}

	.brera-hero-modal__panel {
		max-height: calc(100vh - 20px);
	}

	.brera-hero-modal__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	.brera-hero__gallery {
		grid-template-rows: 285px 96px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.brera-hero__gallery-item > img {
		transition: none;
	}
}
