/* NFHotel Apartments – front-end. Uses Blocksy palette variables when available. */
.nfh {
	--nfh-accent: var(--nfh-accent-custom, var(--theme-palette-color-1, #1396e2));
	--nfh-accent-2: var(--theme-palette-color-2, #0d6fa8);
	--nfh-dark: var(--nfh-dark-custom, var(--theme-palette-color-4, #1f2340));
	--nfh-orange: #f0ad4e;
	--nfh-text: var(--theme-text-color, #2b2b2b);
	--nfh-muted: #6b7280;
	--nfh-muted: color-mix(in srgb, var(--nfh-text) 60%, transparent);
	--nfh-border: var(--theme-border-color, #e1e5ea);
	--nfh-bg: var(--theme-palette-color-8, #fff);
	--nfh-soft: var(--theme-palette-color-6, #f4f7fa);
	--nfh-busy: #c9d3dd;
	--nfh-radius: 10px;
	box-sizing: border-box;
}
.nfh *, .nfh *::before, .nfh *::after { box-sizing: border-box; }
.nfh-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.nfh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .75em 1.4em; border: 0; border-radius: var(--theme-button-border-radius, 6px);
	background: var(--nfh-accent); color: #fff; font-weight: 600; line-height: 1.2;
	cursor: pointer; text-decoration: none; transition: filter .15s, transform .15s;
}
.nfh-btn:hover, .nfh-btn:focus-visible { filter: brightness(1.08); color: #fff; }
.nfh-btn:disabled { opacity: .6; cursor: wait; }
.nfh-btn--small { padding: .5em 1em; font-size: .9em; }
.nfh-btn--ghost { background: transparent; color: var(--nfh-accent); box-shadow: inset 0 0 0 2px var(--nfh-accent); }
.nfh-btn--ghost:hover { background: var(--nfh-accent); color: #fff; }

.nfh-notice { padding: 1em 1.2em; border-radius: var(--nfh-radius); background: var(--nfh-soft); margin: 0 0 1.2em; }
.nfh-notice--error { background: #fdecea; color: #8a1f17; }

/* ---------- buttons (v1.2) ---------- */
.nfh-btn[hidden] { display: none !important; }
.nfh .nfh-btn--dark, .nfh button.nfh-btn--dark { background: var(--nfh-dark); color: #fff; }
.nfh-btn--dark:hover, .nfh-btn--dark:focus-visible { color: #fff; filter: brightness(1.25); }
.nfh .nfh-btn--outline, .nfh-btn--outline { background: var(--nfh-bg); color: var(--nfh-dark); box-shadow: inset 0 0 0 1px var(--nfh-dark); }
.nfh-btn--outline:hover, .nfh-btn--outline:focus-visible { background: var(--nfh-soft); color: var(--nfh-dark); filter: none; }
.nfh-btn--xs { padding: .45em .9em; font-size: .85em; }
.nfh-notice--dates { background: #fbe9e9; color: #8a1f17; border: 1px solid #f0c7c7; font-weight: 600; font-size: .92em; padding: .8em 1em; }

/* ---------- search form ---------- */
.nfh-search { margin: 0; }
.nfh-search .nfh-f { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.nfh-search .nfh-f__label { font-size: .82rem; font-weight: 700; color: var(--nfh-accent); letter-spacing: .01em; text-transform: none; margin: 0; padding: 0; }
.nfh-search .nfh-input {
	width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 14px; box-sizing: border-box;
	border: 1px solid var(--nfh-accent); border-radius: 2px; background: var(--nfh-bg); color: var(--nfh-text);
	font: inherit; font-size: .95rem; box-shadow: none;
}
.nfh-search select.nfh-input { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; }
.nfh-search .nfh-input:focus, .nfh-search .nfh-input:focus-within { outline: 2px solid #c9d6e8; outline: 2px solid color-mix(in srgb, var(--nfh-accent) 40%, transparent); outline-offset: 0; }

.nfh-dates { display: flex; align-items: center; gap: 10px; height: 66px !important; padding: 4px 12px !important; cursor: pointer; text-align: left; background: #f3f8fd; }
.nfh-dates__ico { flex-shrink: 0; color: var(--nfh-dark); display: inline-flex; }
.nfh-dates__ico .nfh-icon { width: 24px; height: 24px; }
.nfh-dates__in { flex: 1; display: flex; align-items: stretch; min-width: 0; gap: 8px; }
.nfh-dates__in .nfh-dates__part { flex: 1; min-width: 0; }
.nfh-dates__part { display: flex; flex-direction: column; justify-content: center; line-height: 1; white-space: nowrap; overflow: hidden; }
.nfh-dates__line { display: block; }
.nfh-dates__cap { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--nfh-muted); margin-bottom: 4px; }
.nfh-dates__part.is-empty .nfh-dates__cap { font-size: .85rem; letter-spacing: .02em; text-transform: none; font-weight: 600; color: var(--nfh-muted); margin: 0; }
.nfh-dates__day { font-size: clamp(.95rem, 4.2cqw, 1.2rem); font-weight: 800; line-height: 1.1; color: var(--nfh-dark); display: inline; }
.nfh-dates__my { display: inline; margin-left: 5px; line-height: 1.1; }
.nfh-dates__my small { font-size: clamp(.8rem, 3.4cqw, .95rem); font-weight: 700; color: var(--nfh-dark); text-transform: uppercase; letter-spacing: 0; }
.nfh-dates__my small + small { margin-left: 4px; font-weight: 500; color: var(--nfh-muted); }
.nfh-dates__sep { width: 1px; align-self: stretch; margin: 6px 2px; background: var(--nfh-border); flex: 0 0 1px; }
.nfh-f--dates { container-type: inline-size; }

.nfh-step { display: flex; align-items: center; justify-content: space-between; padding: 0 10px !important; }
.nfh-step input { flex: 1; min-width: 0; width: 40px; height: 100%; border: 0 !important; background: transparent; text-align: center; font-weight: 700; font-size: 1.25rem; color: var(--nfh-dark); padding: 0; box-shadow: none !important; -moz-appearance: textfield; }
.nfh-step input::-webkit-outer-spin-button, .nfh-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nfh-step__btn { width: 26px; height: 26px; flex: 0 0 26px; padding: 0; border-radius: 50%; border: 1.5px solid var(--nfh-accent); background: transparent; color: var(--nfh-dark); font-size: 16px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nfh-step__btn:hover { background: #e9ecf3; background: color-mix(in srgb, var(--nfh-accent) 15%, transparent); }
.nfh-step--sm { height: 40px !important; min-height: 40px !important; width: 130px !important; }
.nfh-step--sm input { font-size: 1rem; }

.nfh-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; margin: 4px 0 0; }
.nfh-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nfh-switch i { position: relative; width: 48px; height: 26px; border-radius: 26px; background: #e9e9ec; box-shadow: inset 0 0 0 1px #d8d8de; transition: background .2s; flex-shrink: 0; }
.nfh-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.nfh-switch input:checked + i { background: var(--nfh-dark); }
.nfh-switch input:checked + i::after { transform: translateX(22px); }
.nfh-switch input:focus-visible + i { outline: 2px solid var(--nfh-accent); outline-offset: 2px; }
.nfh-kids { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; font-size: .9rem; }
.nfh-kids[hidden] { display: none; }
.nfh-kids__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nfh-kids__ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.nfh-kids__age { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--nfh-muted); }
.nfh-kids__age .nfh-input { height: 40px; min-height: 40px; }

.nfh-f--amen { gap: 4px !important; }
.nfh-f--amen legend { margin-bottom: 6px !important; }
.nfh-checkbox { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; margin: 0 0 4px; color: var(--nfh-text); }
.nfh-checkbox input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--nfh-accent); border-radius: 3px; background: var(--nfh-bg); cursor: pointer; flex-shrink: 0; display: inline-grid; place-content: center; }
.nfh-checkbox input:checked { background: var(--nfh-dark); border-color: var(--nfh-dark); }
.nfh-checkbox input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

.nfh-search__actions { display: flex; gap: 10px; }
.nfh-search__actions .nfh-btn { flex: 1; min-height: 50px; border-radius: 2px; }
.nfh-search__mtoggle { display: none; }
.nfh-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--nfh-dark); color: #fff; font-size: .75rem; }

/* vertical = sidebar */
.nfh-search--vertical { display: flex; flex-direction: column; gap: 18px; }
.nfh-search--vertical .nfh-search__fields { display: flex; flex-direction: column; gap: 16px; }
.nfh-search--vertical .nfh-search__actions { position: sticky; bottom: 0; padding: 12px 0; background: var(--nfh-bg); border-top: 1px solid var(--nfh-border); z-index: 2; }

/* horizontal = bar (home page) */
.nfh-search--horizontal { padding: 18px; border-radius: var(--nfh-radius); background: var(--nfh-bg); box-shadow: 0 6px 24px rgba(0,0,0,.08); display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.nfh-search--horizontal .nfh-search__fields { display: flex; gap: 12px; flex: 1 1 auto; flex-wrap: wrap; align-items: flex-end; }
.nfh-search--horizontal .nfh-f { flex: 1 1 150px; }
.nfh-search--horizontal .nfh-f--dates { flex: 2 1 260px; }
.nfh-search--horizontal .nfh-f--kids { flex: 0 1 auto; justify-content: flex-end; min-height: 56px; }
.nfh-search--horizontal .nfh-f--kids .nfh-kids { position: absolute; top: 100%; left: 0; z-index: 20; width: 260px; padding: 12px; background: var(--nfh-bg); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.nfh-search--horizontal .nfh-search__actions { flex: 0 0 auto; }
.nfh-search--horizontal .nfh-search__actions .nfh-btn { min-height: 56px; padding: 0 2em; }

@media (max-width: 781px) {
	.nfh-search--vertical .nfh-search__mtoggle { display: inline-flex; align-items: center; gap: 8px; order: 3; align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--nfh-dark); font: inherit; font-weight: 600; cursor: pointer; }
	.nfh-search--vertical .nfh-search__mtoggle .nfh-icon { width: 18px; }
	.nfh-search--vertical .nfh-f--more { display: none; }
	.nfh-search--vertical.is-open .nfh-f--more { display: flex; }
	.nfh-search--vertical .nfh-search__fields { order: 1; }
	.nfh-search--vertical .nfh-search__actions { order: 2; position: static; border: 0; padding: 0; }
	.nfh-search--horizontal .nfh-f, .nfh-search--horizontal .nfh-search__actions { flex: 1 1 100%; }
}

/* ---------- date pop-up & calendar ---------- */
.nfh-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 1000; width: 680px; max-width: calc(100vw - 24px); padding: 16px 18px; background: var(--nfh-bg); border-radius: 6px; box-shadow: 0 18px 50px rgba(15,20,40,.22); }
.nfh-pop[hidden] { display: none; }
@media (max-width: 759px) {
	.nfh-pop { left: 0 !important; right: 0; width: auto; max-width: none; padding: 14px 12px; }
}
.nfh-rc { position: relative; }
.nfh-pop.nfh-rc { position: absolute; } /* the pop-up calendar floats over the page */
.nfh-rc__head { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; pointer-events: none; }
.nfh-rc__nav { pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--nfh-border); background: var(--nfh-bg); color: var(--nfh-dark); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.nfh-rc__nav:disabled { opacity: .3; cursor: default; }
.nfh-rc__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.nfh-rc__months.is-loading { opacity: .45; pointer-events: none; }
.nfh-rc__months.is-loading::after { content: ""; position: absolute; top: 45%; left: 50%; width: 30px; height: 30px; margin: -15px; border: 3px solid var(--nfh-border); border-top-color: var(--nfh-dark); border-radius: 50%; animation: nfh-spin .8s linear infinite; }
@keyframes nfh-spin { to { transform: rotate(360deg); } }
.nfh-rc__title { text-align: center; font-weight: 700; line-height: 34px; margin-bottom: 6px; text-transform: capitalize; color: var(--nfh-dark); }
.nfh-rc__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.nfh-rc__wd { text-align: center; font-size: .7rem; color: var(--nfh-muted); text-transform: uppercase; padding: 4px 0; }
.nfh-rc__day {
	position: relative; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
	color: var(--nfh-text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.nfh-rc__day span { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; }
.nfh-rc__day small { position: absolute; z-index: 2; top: 1px; right: 3px; font-size: .56rem; line-height: 1; color: #9aa0ad; font-weight: 600; }
.nfh-rc__day:hover:not(:disabled) span { box-shadow: inset 0 0 0 2px var(--nfh-dark); }
.nfh-rc__day.is-past, .nfh-rc__day.is-disabled { cursor: default; color: #b9bcc6; font-weight: 400; }
.nfh-rc__day.is-busy span { text-decoration: line-through; color: #b9bcc6; }
.nfh-rc__day.is-noarr span, .nfh-rc__day.is-nodep span { color: #b9bcc6; background: repeating-linear-gradient(135deg, transparent 0 4px, #eceef3 4px 7px); }
.nfh-rc__day.is-short span { color: #c7cad3; }
.nfh-rc__day.is-cd:not(.is-disabled) span { box-shadow: inset 0 -3px 0 -1px #f0c0a0; }
.nfh-rc__day.is-today span { box-shadow: inset 0 0 0 1px var(--nfh-accent); }
.nfh-rc__day.is-in { background: #e9ecf3; background: color-mix(in srgb, var(--nfh-dark) 9%, transparent); color: var(--nfh-dark); }
.nfh-rc__day.is-from, .nfh-rc__day.is-to { color: #fff; }
.nfh-rc__day.is-from span, .nfh-rc__day.is-to span { background: var(--nfh-dark); color: #fff; }
.nfh-rc__day.is-from { background: #e9ecf3; background: linear-gradient(90deg, transparent 50%, color-mix(in srgb, var(--nfh-dark) 9%, transparent) 50%); }
.nfh-rc__day.is-to { background: #e9ecf3; background: linear-gradient(90deg, color-mix(in srgb, var(--nfh-dark) 9%, transparent) 50%, transparent 50%); }
.nfh-rc__day.is-from.is-to { background: transparent; }
.nfh-rc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--nfh-border); }
.nfh-rc__status { margin: 0; font-size: .88rem; font-weight: 600; color: var(--nfh-dark); }
.nfh-rc__status.is-warn { color: #c0392b; }
.nfh-rc__btns { display: flex; gap: 8px; }
.nfh-rc__reset { background: none; border: 0; padding: 0; color: var(--nfh-accent); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.nfh-rc__legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--nfh-muted); margin-top: 8px; }
.nfh-rc__legend span { display: inline-flex; align-items: center; gap: 6px; }
.nfh-rc__lm { font-size: .62rem; color: #9aa0ad; font-weight: 600; vertical-align: super; }
.nfh-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.nfh-dot--free { box-shadow: inset 0 0 0 1px var(--nfh-dark); }
.nfh-dot--busy { background: #e3e5ea; }
.nfh-dot--closed { background: repeating-linear-gradient(135deg, #fff 0 3px, #c9ccd5 3px 5px); box-shadow: inset 0 0 0 1px #c9ccd5; }
.nfh-dot--sel { background: var(--nfh-dark); }
.nfh-booking .nfh-cal { margin-bottom: 8px; }
.nfh-booking .nfh-cal__legend { display: none; }

/* ---------- results ---------- */
.nfh-results__summary { font-weight: 600; margin: 0 0 1em; }
.nfh-results__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 0 14px; }
.nfh-results__count { margin: 0; flex: 1; font-weight: 700; color: var(--nfh-dark); }
.nfh-results__count strong { margin-left: 4px; }
.nfh-results__when { font-weight: 400; color: var(--nfh-muted); }
.nfh-view { display: flex; gap: 10px; }
.nfh-view__btn { min-width: 84px; padding: 9px 18px; border: 1px solid var(--nfh-border); border-radius: 2px; background: var(--nfh-bg); color: var(--nfh-dark); font: inherit; font-weight: 700; cursor: pointer; }
.nfh-view__btn.is-active { background: var(--nfh-dark); border-color: var(--nfh-dark); color: #fff; box-shadow: 0 4px 12px rgba(20,25,50,.25); }
.nfh-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.nfh-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; background: #eef0f3; color: var(--nfh-dark); font-size: .8rem; font-weight: 700; text-decoration: none; border: 1px solid #e0e3e8; }
.nfh-chip span { font-size: 1rem; line-height: 1; }
.nfh-chip:hover { background: #e2e5ea; color: var(--nfh-dark); }
.nfh-results__list { display: grid; gap: 28px; }
.nfh-results__list[hidden], .nfh-map[hidden] { display: none; }
.nfh-results--grid .nfh-results__list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.nfh-results--compact .nfh-results__list { display: block; }

/* card */
.nfh-card { display: grid; grid-template-columns: minmax(200px, 26%) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.nfh-results--grid .nfh-card { grid-template-columns: 1fr; gap: 14px; }
.nfh-card__media { position: relative; padding: 16px 0 16px 16px; display: flex; flex-direction: column; }
.nfh-slider { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--nfh-soft); }
.nfh-slider__img { display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; border-radius: 0; }
.nfh-slider__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nfh-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: #111; box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nfh-slider__nav .nfh-icon { width: 18px; height: 18px; stroke-width: 2.5; }
.nfh-slider__nav--prev { left: 12px; }
.nfh-slider__nav--next { right: 12px; }
.nfh-slider__dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px 7px; border-radius: 10px; background: rgba(0,0,0,.35); }
.nfh-slider__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.nfh-slider__dots i.is-on { background: #fff; }
.nfh-card__badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.nfh-card__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding-top: 2px; }
.nfh-results .nfh-card__title { margin: 0; font-size: 1.6rem; line-height: 1.3; font-weight: 700; color: var(--nfh-dark); }
.nfh-results .nfh-card__title a { color: inherit; text-decoration: none; }
.nfh-results .nfh-card__title a:hover { text-decoration: underline; }
.nfh-card__lead { font-size: 1rem; font-weight: 500; margin-left: 6px; }
.nfh-card__addr { margin: 0; display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--nfh-muted); }
.nfh-card__addr .nfh-icon { width: 18px; height: 18px; color: var(--nfh-dark); }
.nfh-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.nfh-tile { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 18px; background: var(--nfh-bg); box-shadow: 0 2px 14px rgba(20,25,50,.08); border-radius: 2px; }
.nfh-tile .nfh-icon { width: 20px; height: 20px; color: var(--nfh-accent); }
.nfh-tile span { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.nfh-tile small { font-size: .8rem; color: var(--nfh-muted); }
.nfh-tile strong { font-size: .9rem; color: var(--nfh-dark); }
.nfh-card__price { line-height: 1.3; }
.nfh-card__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; justify-content: flex-end; }
.nfh-card__actions .nfh-btn { min-height: 48px; border-radius: 2px; padding: .7em 1.4em; }
.nfh-card__actions .nfh-icon { width: 18px; height: 18px; color: var(--nfh-accent); }
@media (max-width: 1100px) {
	.nfh-card { grid-template-columns: minmax(180px, 30%) minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 760px) {
	.nfh-card { grid-template-columns: 1fr; gap: 0; }
	.nfh-card__media { padding: 0; }
	.nfh-card__actions { justify-content: stretch; }
}
@media (max-width: 600px) {
	.nfh-results .nfh-card__title { font-size: 1.3rem; }
	.nfh-card__lead { display: block; margin: 4px 0 0; }
	.nfh-tile { padding: 10px 12px; gap: 10px; }
	.nfh-card__actions .nfh-btn { flex: 1 1 100%; }
	.nfh-view__btn { min-width: 0; padding: 8px 14px; }
}

/* map */
.nfh-map { height: 70vh; min-height: 420px; border-radius: 4px; overflow: hidden; z-index: 0; }
.nfh-pin { background: none; border: 0; }
.nfh-pin span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--nfh-dark); border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35); color: #fff; font-weight: 700; font-size: 13px; }
.nfh-pin b { transform: rotate(45deg); }
.nfh-mpop { min-width: 220px; }
.nfh-mpop__name { display: block; font-size: 1rem; }
.nfh-mpop__addr { display: block; color: #666; font-size: .8rem; margin-bottom: 6px; }
.nfh-mpop ul { list-style: none; margin: 0; padding: 0; }
.nfh-mpop li { margin: 0; border-top: 1px solid #eee; }
.nfh-mpop a { display: flex; gap: 10px; align-items: center; padding: 6px 0; text-decoration: none; color: #222; }
.nfh-mpop img { width: 64px; height: 46px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.nfh-mpop span { display: flex; flex-direction: column; line-height: 1.3; }
.nfh-mpop small { color: #777; }
.nfh-mpop em { font-style: normal; font-weight: 700; }

/* ---------- details ---------- */
.nfh-gallery {
	display: grid; gap: 8px; margin-bottom: 1.4em;
	grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 190px 190px;
}
.nfh-gallery__item { position: relative; padding: 0; margin: 0; border: 0; overflow: hidden; border-radius: 8px; cursor: zoom-in; background: var(--nfh-soft); }
.nfh-gallery__item:first-child { grid-row: span 2; }
.nfh-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nfh-gallery__item:hover img { transform: scale(1.04); }
.nfh-gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; font-size: 1.2em; }
@media (max-width: 720px) {
	.nfh-gallery { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 230px 100px; gap: 6px; }
	.nfh-gallery__item:first-child { grid-column: span 3; grid-row: auto; }
	.nfh-gallery__item:nth-child(4) { display: none; }
	.nfh-gallery__more { font-size: 1em; }
}
.nfh-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.2em; }
.nfh-fact { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 30px; background: var(--nfh-soft); font-size: .95em; }
.nfh-fact .nfh-icon { color: var(--nfh-accent); }
.nfh-fact--price { background: var(--nfh-accent); color: #fff; }
.nfh-highlights { margin: 0 0 1.2em; padding-left: 1.2em; }
.nfh-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; list-style: none; padding: 0; margin: 0 0 1.5em; }
.nfh-amenities li { display: flex; align-items: center; gap: 8px; margin: 0; }
.nfh-amenities .nfh-icon { color: var(--nfh-accent); stroke-width: 2.2; flex: none; }

/* ---------- booking ---------- */
.nfh-booking { margin: 2em 0; padding: 22px; border: 1px solid var(--nfh-border); border-radius: var(--nfh-radius); background: var(--nfh-bg); scroll-margin-top: 100px; }
.nfh-booking__title { margin-top: 0; }
.nfh-booking__hint { color: var(--nfh-muted); margin: 0 0 .6em; }
.nfh-cal__legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85em; color: var(--nfh-muted); margin: 10px 0; }
.nfh-cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.nfh-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.nfh-dot--free { background: #e8f4fc; }
.nfh-dot--busy { background: var(--nfh-busy); }
.nfh-dot--sel { background: var(--nfh-accent); }
.nfh-booking__msg { min-height: 1.5em; margin: .4em 0 1em; font-weight: 600; }
.nfh-booking__msg.is-error, .nfh-inquiry__result.is-error { color: #b3261e; }
.nfh-booking__msg.is-ok, .nfh-inquiry__result.is-ok { color: #1e7b34; }
.nfh-inquiry__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.nfh-inquiry p { margin: 0 0 12px; }
.nfh-inquiry label { display: block; font-weight: 600; font-size: .9em; margin-bottom: 4px; }
.nfh-inquiry input:not([type="checkbox"]), .nfh-inquiry select, .nfh-inquiry textarea { width: 100%; }
.nfh-consent label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.nfh-consent input { margin-top: 4px; }
.nfh-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.nfh-inquiry__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.nfh-inquiry__result { margin-top: 12px; font-weight: 600; }

/* ---------- lightbox ---------- */
html.nfh-lb-open { overflow: hidden; }
.nfh-lb { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(10,14,20,.94); }
.nfh-lb.is-open { display: flex; }
.nfh-lb__fig { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.nfh-lb__fig img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.nfh-lb__fig figcaption { color: #ccc; margin-top: 8px; font-size: .9em; }
.nfh-lb button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; padding: 0; }
.nfh-lb button:hover { background: rgba(255,255,255,.25); }
.nfh-lb__close { top: 16px; right: 16px; }
.nfh-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.nfh-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- v1.1: booking engine data ---------- */
.nfh-card__media { position: relative; }
.nfh-card__badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.nfh-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,.92); color: var(--nfh-text); font-size: .78em; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.12); margin: 0 4px 4px 0; }
.nfh-tags .nfh-badge { background: var(--nfh-soft); box-shadow: none; }
.nfh-card__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; font-size: .9em; color: var(--nfh-muted); }
.nfh-card__facts li { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.nfh-card__facts .nfh-icon { width: 18px; height: 18px; color: var(--nfh-accent); }
.nfh-card__short { margin: 0; font-size: .93em; color: var(--nfh-muted); }
.nfh-card__amen .nfh-icon { width: 20px; height: 20px; }
.nfh-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--nfh-border); }
.nfh-card__price { line-height: 1.3; }
.nfh-price__label { display: block; font-size: .78em; color: var(--nfh-muted); text-transform: uppercase; letter-spacing: .03em; }
.nfh-price__value, .nfh-card__price strong { font-size: 1.25em; color: var(--nfh-text); }
.nfh-price__old { color: var(--nfh-muted); margin-right: 4px; }
.nfh-price__hint { font-size: .9em; color: var(--nfh-muted); }
.nfh-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.nfh-btn--book { background: var(--nfh-orange); color: #fff; }
.nfh-btn--book:hover { color: #fff; }
.nfh-btn .nfh-icon { width: 18px; height: 18px; }
.nfh-amenities__title { margin: 1.4em 0 .6em; font-size: 1.15em; }
.nfh-check { display: inline-flex; width: 22px; justify-content: center; color: var(--nfh-accent); font-weight: 700; }
.nfh-engine-actions { align-items: center; margin: 4px 0 16px; }
.nfh-engine-note { font-size: .88em; color: var(--nfh-muted); }
.nfh-inquiry__or { margin: 8px 0 12px; font-weight: 600; }
.nfh-gallery__item img { aspect-ratio: auto; }
.nfh-pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 24px 0 0; }
.nfh-page { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--nfh-border); text-decoration: none; color: var(--nfh-text); background: var(--nfh-bg); }
.nfh-page.is-current { background: var(--nfh-accent); border-color: var(--nfh-accent); color: #fff; font-weight: 700; }
a.nfh-page:hover { border-color: var(--nfh-accent); color: var(--nfh-accent); }

/* ---------- compact rows (layout "compact", like apartamenty.nawyspie.eu) ---------- */
.nfh-results--compact .nfh-results__list { display: block; }
.nfh-row {
	display: grid; grid-template-columns: 235px minmax(0, 1fr) auto; gap: 20px;
	padding: 20px 0; border-top: 1px solid var(--nfh-border); align-items: start;
}
.nfh-row:last-child { border-bottom: 1px solid var(--nfh-border); }
.nfh-row__img { display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--nfh-soft); }
.nfh-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nfh-row__img:hover img { transform: scale(1.04); }
.nfh-results .nfh-row__title { margin: 0; font-size: 1rem; line-height: 1.4; font-weight: 400; color: var(--nfh-text); }
.nfh-row__title a { color: var(--nfh-accent-2); text-decoration: none; }
.nfh-row__title a:hover { text-decoration: underline; }
.nfh-row__addr { margin: 2px 0 10px; font-size: .95em; color: var(--nfh-text); }
.nfh-row__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 6px; margin-bottom: 12px; }
.nfh-row__price, .nfh-row__book {
	display: inline-flex; align-items: center; gap: .35em; padding: 6px 10px; border-radius: 3px;
	font-size: .95em; line-height: 1.2; color: #fff; white-space: nowrap;
}
.nfh-row__price { background: var(--nfh-accent); }
.nfh-row__price strong { font-weight: 700; }
.nfh-row__book { background: var(--nfh-orange); border: 1px solid color-mix(in srgb, var(--nfh-orange) 80%, #000); cursor: pointer; font: inherit; font-size: .95em; text-decoration: none; }
.nfh-row__book:hover, .nfh-row__book:focus-visible { filter: brightness(1.07); color: #fff; }
.nfh-row__book .nfh-icon { width: 16px; height: 16px; }
.nfh-row__total { font-size: .85em; color: var(--nfh-muted); }
.nfh-row__list { margin: 0; padding-left: 1.2em; font-size: .95em; line-height: 1.55; color: var(--nfh-text); }
.nfh-row__list li { margin: 0; }
.nfh-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; height: 100%; }
.nfh-row__icons { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nfh-row__icons li {
	display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0;
	border: 1px solid var(--nfh-border); border-radius: 3px; color: #222; background: #fff;
}
.nfh-row__icons .nfh-icon { width: 22px; height: 22px; }
.nfh-row__details {
	display: inline-flex; align-items: center; justify-content: center; min-width: 60px; padding: 12px 14px; margin-top: auto;
	background: var(--nfh-accent); color: #fff; border-radius: 3px; font-weight: 600; text-decoration: none;
}
.nfh-row__details:hover, .nfh-row__details:focus-visible { color: #fff; filter: brightness(1.08); }
@media (max-width: 900px) {
	.nfh-row { grid-template-columns: 180px minmax(0, 1fr); }
	.nfh-row__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; height: auto; }
	.nfh-row__details { margin-top: 0; }
}
@media (max-width: 600px) {
	.nfh-row { grid-template-columns: 1fr; gap: 12px; }
}
.nfh-search--horizontal .nfh-input { height: 56px; min-height: 56px; }
.nfh-search--horizontal .nfh-kids .nfh-input { height: 40px; min-height: 40px; }

/* ---------- map of locations ---------- */
.nfh-locmap__frame { --nfh-map-h: 600px; }
.nfh-locmap__body { display: grid; grid-template-columns: 1fr; height: var(--nfh-map-h); border-radius: 4px; overflow: hidden; box-shadow: 0 4px 24px rgba(20,25,50,.1); background: var(--nfh-bg); }
.nfh-locmap__body.has-list { grid-template-columns: 320px minmax(0, 1fr); }
.nfh-locmap__map { height: 100%; min-height: 300px; z-index: 0; }
.nfh-locmap__list { overflow-y: auto; border-right: 1px solid var(--nfh-border); position: relative; }
.nfh-locmap__sum { position: sticky; top: 0; z-index: 1; margin: 0; padding: 14px 16px; background: var(--nfh-bg); border-bottom: 1px solid var(--nfh-border); font-weight: 700; color: var(--nfh-dark); font-size: .9rem; }
.nfh-locmap__list ul { list-style: none; margin: 0; padding: 0; }
.nfh-locmap__list li { margin: 0; }
.nfh-locmap__item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--nfh-border); border-left: 3px solid transparent; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--nfh-text); border-radius: 0; }
.nfh-locmap__item:hover { background: var(--nfh-soft); }
.nfh-locmap__item.is-active { background: var(--nfh-soft); border-left-color: var(--nfh-dark); }
.nfh-locmap__item img { width: 64px; height: 48px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.nfh-locmap__item span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.nfh-locmap__item b { color: var(--nfh-dark); font-size: .95rem; }
.nfh-locmap__item small { color: var(--nfh-muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfh-locmap__item em { font-style: normal; font-size: .78rem; color: var(--nfh-accent); font-weight: 700; }
.nfh-locmap__open { min-height: 50px; border-radius: 2px; }
.nfh-locmap__open .nfh-icon { width: 20px; height: 20px; }
/* button mode: full-screen dialog */
.nfh-locmap--button .nfh-locmap__frame { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; padding: 24px; background: rgba(10,14,25,.6); }
.nfh-locmap--button .nfh-locmap__frame[hidden] { display: none; }
.nfh-locmap__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--nfh-bg); border-radius: 6px 6px 0 0; color: var(--nfh-dark); }
.nfh-locmap__close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--nfh-soft); color: var(--nfh-dark); font-size: 24px; line-height: 1; cursor: pointer; padding: 0; }
.nfh-locmap--button .nfh-locmap__body { flex: 1; height: auto; border-radius: 0 0 6px 6px; }
/* popup */
.nfh-lpop { margin: -14px -20px -14px; width: 280px; }
.leaflet-popup-content:has(.nfh-lpop) { margin: 14px 20px; }
.nfh-lpop__img { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 12px 12px 0 0; }
.nfh-lpop__in { padding: 12px 14px 14px; }
.nfh-lpop__name { display: block; font-size: 1.05rem; color: var(--nfh-dark); }
.nfh-lpop__addr { display: block; color: #6b7280; font-size: .8rem; margin: 2px 0 8px; }
.nfh-lpop__list { list-style: none; margin: 0 0 10px; padding: 0; max-height: 170px; overflow-y: auto; border-top: 1px solid #eee; }
.nfh-lpop__list li { margin: 0; border-bottom: 1px solid #eee; }
.nfh-lpop__list a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; color: #222 !important; text-decoration: none; font-size: .85rem; }
.nfh-lpop__list a:hover b { text-decoration: underline; }
.nfh-lpop__list small { color: #777; white-space: nowrap; }
.nfh-lpop__btn { display: flex; width: 100%; color: #fff !important; padding: .7em 1em; border-radius: 2px; font-size: .9rem; }
/* own points */
.nfh-poi span { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--nfh-accent); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.35); }
.leaflet-tooltip.nfh-poi-label { background: rgba(255,255,255,.92); border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.2); font-weight: 700; color: var(--nfh-dark); padding: 2px 7px; }
.leaflet-tooltip.nfh-poi-label::before { display: none; }
/* map of attractions: numbered own points, list next to the map, pop-up */
.nfh-poi--num span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--nfh-dark); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; border-width: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.4); cursor: pointer; }
.nfh-poi--num:hover span, .nfh-poi--num.is-active span { background: #fff; color: var(--nfh-dark); border-color: var(--nfh-dark); }
.leaflet-marker-icon.nfh-poi--num.is-active { z-index: 100000 !important; }
.nfh-locmap__item--poi { align-items: flex-start; }
.nfh-locmap__num { flex: 0 0 28px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--nfh-dark); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; line-height: 1; box-shadow: inset 0 0 0 2px var(--nfh-dark); }
.nfh-locmap__item.is-active .nfh-locmap__num { background: #fff; color: var(--nfh-dark); }
.nfh-locmap__item--poi small { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; margin-top: 2px; }
.nfh-ppop__img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin: 4px 0 10px; }
.nfh-ppop__name { display: block; font-size: 1.02rem; line-height: 1.3; color: var(--nfh-dark); }
.leaflet-popup-content p.nfh-ppop__desc { margin: 6px 0 0; color: #444; font-size: .88rem; line-height: 1.45; }
.nfh-ppop__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: .88rem; font-weight: 700; }
.nfh-ppop__links a { color: var(--nfh-dark) !important; text-decoration: underline; text-underline-offset: 2px; }
.nfh-ppop__links a:hover { text-decoration: none; }
@media (max-width: 781px) {
	.nfh-locmap__body.has-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(300px, 1fr) auto; height: auto; } /* minmax(0, …): a long list must not widen the map beyond the screen */
	.nfh-locmap__map { height: 60vh; order: 1; }
	.nfh-locmap__list { order: 2; border-right: 0; max-height: none; overflow: visible; min-width: 0; }
	.nfh-locmap__list ul { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
	.nfh-locmap__list li { flex: 0 0 78%; scroll-snap-align: start; }
	.nfh-locmap__item { height: 100%; border-right: 1px solid var(--nfh-border); }
	.nfh-locmap__sum { position: static; }
	.nfh-locmap--button .nfh-locmap__frame { padding: 0; }
	.nfh-locmap--button .nfh-locmap__body { height: auto; }
	.nfh-locmap--button .nfh-locmap__map { height: auto; flex: 1; min-height: 50vh; }
	.nfh-locmap--button .nfh-locmap__body.has-list { display: flex; flex-direction: column; overflow: auto; }
}
.nfh-price__suffix { display: block; font-size: .78em; color: var(--nfh-muted); }

.nfh-rc__warn { margin: 8px 0 0; padding: 8px 10px; border-radius: 4px; background: #fff7e6; color: #7a4b00; font-size: .8rem; }
/* horizontal bar: all fields the same height */
.nfh-search--horizontal .nfh-input, .nfh-search--horizontal .nfh-step { height: 66px; min-height: 66px; }
.nfh-search--horizontal .nfh-f--dates { flex: 2 1 320px; }
.nfh-search--horizontal .nfh-search__actions .nfh-btn { min-height: 66px; }
.nfh-search--horizontal .nfh-kids .nfh-input { height: 40px; min-height: 40px; }

/* shorter stays in gaps between bookings (on request) */
.nfh-rc__day.is-gap span { box-shadow: inset 0 0 0 1px #f0ad4e; }
.nfh-rc__day.is-gap small { color: #d98c1f; }
.nfh-card__price--request .nfh-price__label { color: #d98c1f; }
.nfh-row__price--request { background: #d98c1f; }
.nfh-engine-actions[hidden] { display: none !important; }
.nfh-btn--book:disabled { opacity: .45; cursor: not-allowed; filter: none; }

/* floating call button */
.nfh-call {
	position: fixed; right: 16px; bottom: 16px; z-index: 9990;
	display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 14px;
	border-radius: 27px; background: var(--nfh-dark); color: #fff !important; text-decoration: none;
	font-weight: 700; font-size: .95rem; box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
.nfh-call .nfh-icon { width: 24px; height: 24px; flex-shrink: 0; }
.nfh-call:hover { filter: brightness(1.15); color: #fff; }
.nfh-call--mobile { display: none; }
@media (max-width: 1023px) {
	.nfh-call--mobile { display: inline-flex; }
	.nfh-call { bottom: 14px; right: 14px; }
}
@media (max-width: 480px) {
	.nfh-call span { display: none; }
	.nfh-call { width: 54px; padding: 0; justify-content: center; }
}

/* apartment page: collapsed amenities */
.nfh-amenities.is-collapsed .nfh-amenities__more { display: none; }
.nfh-amenities__toggle { margin: -8px 0 1.5em; padding: 0; border: 0; background: none; color: var(--nfh-accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* mobile: date pop-up as a bottom sheet (outside any container) */
.nfh-pop--sheet { position: fixed !important; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none; max-height: 88vh; overflow: auto; z-index: 100001; border-radius: 16px 16px 0 0; padding: 14px 14px 22px; box-shadow: 0 -10px 40px rgba(15,20,40,.3); }
.nfh-pop-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(10,14,25,.45); }
.nfh-pop-backdrop[hidden] { display: none; }
html.nfh-sheet-open { overflow: hidden; }
/* apartment page: description collapsed on phones */
.nfh-content__toggle { display: none; margin: -6px 0 1.6em; padding: 0; border: 0; background: none; color: var(--nfh-accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.nfh-content__toggle[hidden] { display: none !important; }
/* description collapsed on phones only: a short preview + "Read the full description"; full text on desktop */
@media (max-width: 781px) {
	.nfh-content.is-collapsed { position: relative; max-height: 190px; overflow: hidden; }
	.nfh-content.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), var(--nfh-bg, #fff)); pointer-events: none; }
	.nfh-content__toggle { display: inline-block; }
}
@media (min-width: 782px) { .nfh-amenities__toggle--mobile { display: none; } }

/* contact form */
.nfh-contact { max-width: 720px; }
.nfh-contact__title { margin-top: 0; }
.nfh-contact p { margin: 0 0 14px; }
.nfh-contact label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.nfh-contact input:not([type="checkbox"]), .nfh-contact select, .nfh-contact textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--nfh-border); border-radius: 6px; font: inherit; box-sizing: border-box; }
.nfh-contact textarea { min-height: 120px; }
.nfh-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.nfh-contact .nfh-btn { min-height: 48px; padding: 0 2em; }
@media (max-width: 600px) { .nfh-contact__grid { grid-template-columns: 1fr; } }

/* guest reviews */
.nfh-reviews { margin: 2em 0 1em; }
.nfh-reviews__title { margin: 0 0 18px; }
.nfh-reviews__grid { display: grid; grid-template-columns: repeat(var(--nfh-rv-cols, 2), minmax(0, 1fr)); gap: 18px; }
.nfh-review { background: #fff; border: 1px solid var(--nfh-border); border-radius: 12px; padding: 20px 22px; box-shadow: 0 4px 16px rgba(0,0,0,.04); container-type: inline-size; }
.nfh-review__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.nfh-review__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--nfh-dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem; flex: none; }
.nfh-review__who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 180px; }
.nfh-review__name { font-size: 1rem; line-height: 1.3; overflow-wrap: normal; word-break: keep-all; }
.nfh-review__meta { font-size: .85rem; color: var(--nfh-muted, #6b7280); }
.nfh-review__meta a { color: inherit; }
.nfh-review__verified { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: .8rem; font-weight: 600; color: #15803d; background: #ecfdf3; border: 1px solid #bbf7d0; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.nfh-review__verified .nfh-icon { width: 14px; height: 14px; }
.nfh-review__stars { color: #f59e0b; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 8px; }
.nfh-review__stars span { color: #e5e7eb; }
.nfh-review__text { font-size: .97rem; line-height: 1.65; }
.nfh-review__text p { margin: 0 0 .6em; }
.nfh-review__text p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .nfh-reviews__grid { grid-template-columns: 1fr; } .nfh-review { padding: 16px; } }
/* narrow card (two columns in the content column, phones): badge under the name, name never broken mid-word */
@container (max-width: 440px) { .nfh-review__head { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; } .nfh-review__verified { grid-column: 2; justify-self: start; margin: 6px 0 0; } }
@supports not (container-type: inline-size) { @media (max-width: 700px) { .nfh-review__head { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; } .nfh-review__verified { grid-column: 2; justify-self: start; margin: 6px 0 0; } } }

/* ===== calendar modal ("Choose your dates") ===== */
html.nfh-modal-open { overflow: hidden; }
.nfh-cmodal { position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10,14,25,.5); }
.nfh-cmodal[hidden] { display: none; }
.nfh-cmodal__box { width: 100%; max-width: 860px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(10,14,25,.35); display: flex; flex-direction: column; }
.nfh-cmodal__head { position: relative; text-align: center; padding: 18px 56px 6px; }
.nfh-cmodal__title { margin: 0; font-size: 1.35rem; font-weight: 600; color: var(--nfh-muted); }
.nfh-cmodal__close { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--nfh-dark); font-size: 28px; line-height: 1; cursor: pointer; }
.nfh-cmodal__close:hover { background: #f1f3f6; }
.nfh-cmodal__cal { padding: 8px 24px 4px; }
.nfh-cmodal__cal .nfh-rc__head { top: 4px; }
.nfh-cmodal__cal .nfh-rc__nav { width: 40px; height: 40px; background: var(--nfh-dark); color: #fff; border: 0; }
.nfh-cmodal__cal .nfh-rc__nav:disabled { opacity: .25; }
.nfh-cmodal__cal .nfh-rc__title { text-align: left; padding-left: 56px; font-size: 1.15rem; line-height: 40px; }
.nfh-cmodal__cal .nfh-rc__month:last-child .nfh-rc__title { padding-left: 24px; }
.nfh-cmodal__cal .nfh-rc__months { gap: 40px; }
.nfh-cmodal__cal .nfh-rc__grid { gap: 3px; }
.nfh-cmodal__cal .nfh-rc__wd { font-size: .78rem; padding: 10px 0 6px; }
.nfh-cmodal__cal .nfh-rc__wd.is-we { color: #c0392b; }
.nfh-cmodal__cal .nfh-rc__day { height: 46px; font-size: 1rem; border-radius: 4px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.nfh-cmodal__cal .nfh-rc__day span { width: 100%; height: 100%; border-radius: 4px; }
.nfh-cmodal__cal .nfh-rc__day.is-we:not(.is-disabled):not(.is-from):not(.is-to) { color: #c0392b; }
.nfh-cmodal__cal .nfh-rc__day.is-past span { color: #c5c8d1; }
.nfh-cmodal__cal .nfh-rc__day.is-busy span { background: #d9dce3; color: #8a8f9b; text-decoration: none; }
.nfh-cmodal__cal .nfh-rc__day.is-noarr span { background: linear-gradient(135deg, #d9dce3 50%, #fff 50%); color: #6b7080; }
.nfh-cmodal__cal .nfh-rc__day.is-nodep span { background: linear-gradient(135deg, #fff 50%, #d9dce3 50%); color: #6b7080; }
.nfh-cmodal__cal .nfh-rc__day.is-cd:not(.is-disabled) span { box-shadow: none; background: linear-gradient(135deg, #fff 50%, #ecedf1 50%); }
.nfh-cmodal__cal .nfh-rc__day.is-short span, .nfh-cmodal__cal .nfh-rc__day.is-unreach span { background: #fff; color: #c5c8d1; }
.nfh-cmodal__cal .nfh-rc__day.is-gap span { box-shadow: inset 0 0 0 2px #f0ad4e; }
.nfh-cmodal__cal .nfh-rc__day.is-in { background: #e9ecf3; background: color-mix(in srgb, var(--nfh-dark) 10%, transparent); }
.nfh-cmodal__cal .nfh-rc__day.is-from span, .nfh-cmodal__cal .nfh-rc__day.is-to span { background: var(--nfh-dark); color: #fff; border-radius: 50%; }
.nfh-cmodal__cal .nfh-rc__day.is-from { background: linear-gradient(90deg, transparent 50%, color-mix(in srgb, var(--nfh-dark) 10%, transparent) 50%); border-radius: 0; }
.nfh-cmodal__cal .nfh-rc__day.is-to { background: linear-gradient(90deg, color-mix(in srgb, var(--nfh-dark) 10%, transparent) 50%, transparent 50%); border-radius: 0; }
.nfh-cmodal__cal .nfh-rc__day.is-from.is-to { background: transparent; }
.nfh-cmodal__cal .nfh-rc__day:hover:not(:disabled) span { box-shadow: inset 0 0 0 2px var(--nfh-dark); }
.nfh-cmodal__cal .nfh-rc__day.is-today span { box-shadow: inset 0 0 0 1px var(--nfh-accent); }
.nfh-cmodal__legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 14px 24px; font-size: .85rem; color: var(--nfh-text); border-bottom: 1px solid var(--nfh-border); }
.nfh-cmodal__legend span { display: inline-flex; align-items: center; gap: 7px; }
.nfh-cmodal__clear { margin-left: auto; }
.nfh-cmodal__clear[hidden] { display: none; }
.nfh-sw { width: 18px; height: 18px; border-radius: 3px; border: 1px solid #c9ccd5; background: #fff; display: inline-block; }
.nfh-sw--busy { background: #d9dce3; border-color: #d9dce3; }
.nfh-sw--noarr { background: linear-gradient(135deg, #d9dce3 50%, #fff 50%); }
.nfh-sw--nodep { background: linear-gradient(135deg, #fff 50%, #d9dce3 50%); }
.nfh-cmodal__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 24px 18px; }
.nfh-cmodal__sel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 1rem; }
.nfh-cmodal__range { color: var(--nfh-muted); font-size: 1.05rem; }
.nfh-cmodal__nights { color: var(--nfh-dark); }
.nfh-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: #f1f3f6; color: var(--nfh-muted); }
.nfh-pill:empty { display: none; }
.nfh-pill.is-warn { background: #fdecea; color: #c0392b; border: 1px solid #f5c2bd; }
.nfh-pill.is-ok { background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0; }
.nfh-cmodal__confirm { min-height: 46px; padding: 0 22px; }
.nfh-cmodal__confirm:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) {
	.nfh-cmodal { padding: 0; align-items: stretch; }
	.nfh-cmodal__box { max-width: none; max-height: none; height: 100%; border-radius: 0; }
	.nfh-cmodal__head { padding: 14px 52px 4px; }
	.nfh-cmodal__title { font-size: 1.15rem; }
	.nfh-cmodal__cal { padding: 6px 12px 0; flex: 1; }
	.nfh-cmodal__cal .nfh-rc__months { grid-template-columns: 1fr; gap: 18px; }
	.nfh-cmodal__cal .nfh-rc__title { text-align: center; padding-left: 0 !important; }
	.nfh-cmodal__cal .nfh-rc__head { position: sticky; top: 0; z-index: 2; }
	.nfh-cmodal__cal .nfh-rc__day { height: 48px; }
	.nfh-cmodal__legend { padding: 10px 12px; gap: 8px 12px; font-size: .78rem; }
	.nfh-cmodal__bar { position: sticky; bottom: 0; z-index: 3; background: #fff; box-shadow: 0 -8px 24px rgba(10,14,25,.08); padding: 12px; }
	.nfh-cmodal__legend { position: relative; z-index: 1; background: #fff; }
	.nfh-cmodal__bar .nfh-cmodal__confirm { width: 100%; }
	.nfh-cmodal__sel { width: 100%; }
}

/* booking panel: "Choose your dates" field */
.nfh-dates--panel { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px; margin: 0 0 8px; border: 1px solid var(--nfh-border); border-radius: 8px; background: #fff; cursor: pointer; text-align: left; font: inherit; }
.nfh-dates--panel:hover { border-color: var(--nfh-dark); }
.nfh-dates--panel .nfh-dates__in { flex: 1; }
.nfh-dates__cta { font-size: .8rem; font-weight: 700; color: var(--nfh-accent); white-space: nowrap; text-decoration: underline; }
.nfh-inquiry__grid--persons { grid-template-columns: 1fr !important; }

/* results grouped by building */
.nfh-group + .nfh-group { margin-top: 28px; }
.nfh-group__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 12px; padding: 0 0 8px; border-bottom: 2px solid var(--nfh-dark); font-size: 1.25rem; }
.nfh-group__title .nfh-icon { width: 20px; height: 20px; align-self: center; color: var(--nfh-dark); }
.nfh-group__title small { font-size: .85rem; font-weight: 500; color: var(--nfh-muted); }
.nfh-group .nfh-card + .nfh-card { margin-top: 16px; }

/* search calendar (no per-apartment availability): no legend row, bigger arrows everywhere */
.nfh-cmodal--simple .nfh-cmodal__legend { justify-content: flex-end; }
.nfh-cmodal__cal .nfh-rc__nav { width: 48px; height: 48px; font-size: 26px; box-shadow: 0 4px 12px rgba(10,14,25,.18); }
.nfh-cmodal__cal .nfh-rc__nav::before { content: ""; position: absolute; inset: -8px; } /* larger tap target */
.nfh-cmodal__cal .nfh-rc__nav { position: relative; }
.nfh-cmodal__cal .nfh-rc__title { line-height: 48px; }
.nfh-cmodal__cal .nfh-rc__title { padding-left: 64px; }
@media (max-width: 760px) {
	.nfh-cmodal__cal .nfh-rc__nav { width: 52px; height: 52px; }
	.nfh-cmodal__cal .nfh-rc__head { padding: 0 4px; }
}
.nfh-cmodal__legend span[hidden] { display: none; }

/* modal arrows: inside the box, away from the edges */
.nfh-cmodal__cal { position: relative; }
.nfh-cmodal__cal .nfh-rc__head { left: 20px !important; right: 20px !important; top: 2px !important; }
.nfh-cmodal__cal .nfh-rc__title { padding-left: 70px; }
.nfh-cmodal__cal .nfh-rc__month:last-child .nfh-rc__title { padding-left: 0; padding-right: 70px; text-align: right; }
@media (max-width: 760px) {
	.nfh-cmodal__cal .nfh-rc__head { left: 8px !important; right: 8px !important; }
	.nfh-cmodal__cal .nfh-rc__month:last-child .nfh-rc__title { padding-right: 0; text-align: center; }
}

/* apartment facts on phones: two tidy columns regardless of the theme CSS; address full width */
@media (max-width: 760px) {
	.nfh-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.nfh-fact { display: flex; min-width: 0; border-radius: 12px; }
	.nfh-fact:last-child, .nfh-fact--addr, .nfh-fact:has(a) { grid-column: 1 / -1; }
}
