/* NovIT Premio – theme-neutral styles. Accent color comes from the settings (--np-accent). */
.np {
	--np-accent: #ffb018;
	--np-text: #1f2937;
	--np-muted: #64748b;
	--np-border: #e2e8f0;
	--np-surface: #ffffff;
	--np-soft: #f8fafc;
	--np-soft: color-mix(in srgb, var(--np-accent) 8%, #ffffff);
	/* links and small accent texts: a darker accent stays readable on light backgrounds */
	--np-link: color-mix(in srgb, var(--np-accent) 62%, #000000);
	--np-radius: 14px;
	--np-shadow: 0 6px 24px rgba(15, 23, 42, .08);
	color: var(--np-text);
	box-sizing: border-box;
}
.np *, .np *::before, .np *::after { box-sizing: inherit; }
/* the theme styles every <button> (uppercase, letter spacing, colored
 * background on hover): plugin buttons define their own look */
.np button {
	margin: 0; border-radius: 0; box-shadow: none;
	text-transform: none; letter-spacing: normal; line-height: 1.3; font-size: 16px; font-weight: 600;
}
.np[hidden], .np [hidden] { display: none !important; }
body.np-noscroll { overflow: hidden; }

/* ---------- buttons ---------- */
.np .np-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 26px; border: 0; border-radius: 999px;
	background: var(--np-accent); color: #fff;
	font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
	text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
	text-decoration: none; transition: filter .15s, transform .15s;
}
.np .np-btn:hover, .np .np-btn:focus { background: var(--np-accent); color: #fff; border: 0; filter: brightness(.94); }
.np .np-btn:active { transform: translateY(1px); }
.np .np-btn:focus-visible, .np .np-pill:focus-visible, .np .np-tabbtn:focus-visible, .np .np-card:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--np-accent) 55%, transparent); outline-offset: 2px;
}
.np .np-btn--small { padding: 10px 18px; font-size: 12px; }

.np-notice {
	padding: 14px 18px; border: 1px solid var(--np-border, #e2e8f0); border-radius: 10px;
	background: #fffbeb; color: #78350f;
}
.np .np-empty { color: var(--np-muted); text-align: center; padding: 24px 0; }

/* ---------- list ---------- */
.np .np-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }
.np .np-pill,
.np .np-pill:focus {
	padding: 8px 16px; border: 1px solid var(--np-border); border-radius: 999px;
	background: var(--np-surface); color: var(--np-text);
	font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s;
}
.np .np-pill:hover { border-color: var(--np-accent); background: var(--np-surface); color: var(--np-text); }
.np .np-pill.is-active { background: var(--np-accent); border-color: var(--np-accent); color: #fff; font-weight: 600; }

/* sidebar with month and country filters */
.np.np-list--filters { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.np .np-sidebar { position: sticky; top: 24px; }
.np .np-filters {
	padding: 20px; border: 1px solid var(--np-border); border-radius: var(--np-radius);
	background: var(--np-surface); box-shadow: var(--np-shadow);
}
.np .np-filters > summary { display: none; list-style: none; cursor: pointer; font-weight: 700; }
.np .np-filters > summary::-webkit-details-marker { display: none; }
.np .np-filter-group + .np-filter-group { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--np-border); }
.np .np-filter-title {
	margin: 0 0 12px; padding: 0; color: var(--np-text);
	font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase;
}
.np .np-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.np .np-chip,
.np .np-chip:focus {
	display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 6px 4px; overflow: hidden;
	border: 1px solid var(--np-border); border-radius: 8px;
	background: var(--np-surface); color: var(--np-text);
	font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.25;
	text-align: center; text-transform: uppercase; letter-spacing: .02em;
	cursor: pointer; transition: all .15s;
}
.np .np-chip span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np .np-chip small { font-size: 11px; font-weight: 500; opacity: .75; }
.np .np-chip:hover { border-color: var(--np-accent); background: var(--np-surface); color: var(--np-link); }
.np .np-chip.is-active { background: var(--np-accent); border-color: var(--np-accent); color: #fff; }
.np .np-filter-list { list-style: none; margin: 0; padding: 0; }
.np .np-filter-list li { margin: 0; padding: 0; list-style: none; }
.np .np-country,
.np .np-country:focus {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px;
	padding: 7px 10px; border: 0; border-radius: 8px;
	background: transparent; color: var(--np-text);
	font-family: inherit; font-size: 15px; font-weight: 500; text-align: left;
	cursor: pointer; transition: background .15s, color .15s;
}
.np .np-country:hover { background: var(--np-soft); color: var(--np-link); }
.np .np-country.is-active { background: var(--np-accent); color: #fff; font-weight: 600; }
.np .np-count { flex: 0 0 auto; color: var(--np-muted); font-size: 13px; font-weight: 500; }
.np .np-country.is-active .np-count { color: rgba(255, 255, 255, .85); }
.np .np-chip.is-empty:not(.is-active), .np .np-country.is-empty:not(.is-active) { opacity: .45; }
.np .np-chip:focus-visible, .np .np-country:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--np-accent) 55%, transparent); outline-offset: 2px;
}
.np .np-main { min-width: 0; }
.np-list--filters .np-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

.np .np-grid {
	display: grid; gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.np .np-card {
	display: flex; flex-direction: column; overflow: hidden;
	border-radius: var(--np-radius); background: var(--np-surface);
	box-shadow: var(--np-shadow); color: inherit; text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}
.np .np-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 23, 42, .16); }
.np .np-card-img {
	display: block; aspect-ratio: 380 / 200;
	background: var(--np-soft) center top / cover no-repeat;
}
.np .np-card-head { display: block; padding: 16px 18px 6px; }
.np .np-card-title { display: block; font-size: 20px; font-weight: 800; line-height: 1.25; }
.np .np-card-sub { display: block; margin-top: 4px; color: var(--np-muted); }
.np .np-card-pricebox { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 6px 18px 0; }
.np .np-card-pricebox small { color: var(--np-muted); font-size: 13px; }
.np .np-card-pricebox strong { font-size: 22px; color: var(--np-accent); }
.np .np-card-pricebox em { flex-basis: 100%; font-style: normal; font-size: 14px; color: var(--np-muted); }
.np .np-card-more { margin-top: auto; padding: 14px 18px 18px; font-weight: 700; color: var(--np-link); }

/* ---------- detail ---------- */
.np .np-back-nav { margin-bottom: 16px; }
.np .np-back { color: var(--np-link); font-weight: 600; text-decoration: none; }
.np .np-back:hover { text-decoration: underline; }

.np .np-titlebar {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 16px 32px; margin-bottom: 20px;
}
.np .np-titlebar-main { flex: 1 1 360px; min-width: 0; }
.np .np-eyebrow { color: var(--np-muted); font-size: 14px; margin-bottom: 4px; }
.np .np-title { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.np .np-tagline { margin-top: 6px; font-size: 18px; color: var(--np-muted); }
.np .np-titlebar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.np .np-price-info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.np .np-nights { color: var(--np-muted); font-size: 14px; }
.np .np-price-badge strong { font-size: 22px; color: var(--np-accent); }

.np .np-hero { margin-bottom: 28px; border-radius: var(--np-radius); overflow: hidden; }
.np .np-hero img { display: block; width: 100%; max-height: 480px; object-fit: cover; }

/* tabs wrap to a second line on narrow screens instead of scrolling */
.np .np-tabnav {
	display: flex; flex-wrap: wrap; gap: 0 8px; overflow: visible;
	border-bottom: 1px solid var(--np-border); margin-bottom: 28px;
}
.np .np-tabnav .np-tabbtn,
.np .np-tabnav .np-tabbtn:hover,
.np .np-tabnav .np-tabbtn:focus {
	flex: 0 0 auto; margin: 0 0 -1px; padding: 16px 22px;
	border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent;
	color: var(--np-muted); font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.3;
	text-transform: none; letter-spacing: normal; white-space: nowrap; cursor: pointer;
	transition: color .15s, border-color .15s;
}
.np .np-tabnav .np-tabbtn:hover { color: var(--np-text); border-bottom-color: color-mix(in srgb, var(--np-accent) 40%, transparent); }
.np .np-tabnav .np-tabbtn.is-active { color: var(--np-text); border-bottom-color: var(--np-accent); }

.np .np-acc { margin-bottom: 28px; }
.np .np-acc-name { margin: 0 0 6px; font-size: 20px; }
.np .np-acc-desc { margin: 0 0 14px; color: var(--np-muted); }
.np .np-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.np .np-date {
	display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 20px;
	padding: 14px 18px; border: 1px solid var(--np-border); border-radius: 12px; background: var(--np-surface);
}
.np .np-date:hover { border-color: var(--np-accent); }
.np .np-date-label { font-weight: 600; }
.np .np-date-price { text-align: right; }
.np .np-date-price strong { display: block; font-size: 18px; }
.np .np-date-price small { color: var(--np-muted); }

.np .np-gallery {
	display: grid; gap: 8px; margin-top: 8px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}
.np .np-gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; }
.np .np-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.np .np-gallery-item:hover img { transform: scale(1.05); }

/* imported tab content */
.np .np-content { line-height: 1.65; overflow-wrap: anywhere; }
.np .np-content img { max-width: 100%; height: auto; border-radius: 10px; }
/* headings of the imported texts: large ones in the theme heading font,
 * small ones like the bold subheadings ("Vajalikud dokumendid:") */
.np .np-content h1, .np .np-content h2, .np .np-content h3 {
	margin: 1.3em 0 .45em; font-weight: 600; line-height: 1.2; letter-spacing: normal; text-transform: none;
}
.np .np-content h1 { font-size: 28px; }
.np .np-content h2 { font-size: 25px; }
.np .np-content h3 { font-size: 22px; }
.np .np-content h4, .np .np-content h5, .np .np-content h6 {
	margin: 1.2em 0 .35em; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.35;
	letter-spacing: normal; text-transform: none;
}
.np .np-content > :first-child { margin-top: 0; }
.np .np-content p { margin: 0 0 .8em; }
.np .np-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.np .np-content td, .np .np-content th { padding: 8px 10px; border: 1px solid var(--np-border); vertical-align: top; }
.np .np-content a { color: var(--np-link); text-decoration: underline; text-underline-offset: 2px; }
/* photo runs turned into galleries by the script (same look as on the dates tab) */
.np .np-content .np-gallery { margin: 16px 0 20px; }
.np .np-content .np-gallery-item img { display: block; width: 100%; height: 100%; max-width: none; border-radius: 0; }

.np .np-cta-foot {
	margin-top: 40px; padding: 28px 24px; text-align: center;
	border-radius: var(--np-radius); background: var(--np-soft);
}
.np .np-cta-foot h3 { margin: 0 0 6px; }
.np .np-cta-foot p { margin: 0 0 16px; color: var(--np-muted); }

/* ---------- modal ---------- */
.np-modal {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; align-items: flex-start; justify-content: center;
	padding: 5vh 16px; overflow-y: auto; background: rgba(15, 23, 42, .6);
}
.np-modal .np-modal-box {
	position: relative; width: 100%; max-width: 560px; padding: 28px;
	border-radius: var(--np-radius); background: var(--np-surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.np-modal .np-modal-close,
.np-modal .np-modal-close:focus {
	position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 50%; background: none; font-size: 28px; font-weight: 400; line-height: 1; cursor: pointer; color: var(--np-muted);
}
.np-modal .np-modal-close:hover { background: var(--np-soft); color: var(--np-text); border: 0; }
.np-modal .np-modal-title { margin: 0 32px 4px 0; font-size: 22px; }
.np-modal .np-modal-sub { margin: 0 0 16px; color: var(--np-muted); }
.np-modal .np-summary {
	margin-bottom: 20px; padding: 14px 16px; border-radius: 12px;
	background: var(--np-soft); border-left: 4px solid var(--np-accent);
}
.np-modal .np-summary-title { font-weight: 800; font-size: 17px; }
.np-modal .np-summary-sub { color: var(--np-muted); margin-bottom: 8px; }
.np-modal .np-summary-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; font-size: 14px; }
.np-modal .np-k { color: var(--np-muted); }
.np-modal .np-v { font-weight: 600; }
.np-modal .np-date-select {
	width: 100%; padding: 6px 8px; border: 1px solid var(--np-border); border-radius: 8px;
	background: var(--np-surface); font: inherit; font-weight: 400;
}

/* ---------- lightbox ---------- */
.np-lightbox {
	position: fixed; inset: 0; z-index: 100001;
	display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9);
}
.np-lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 6px; }
.np-lightbox button,
.np-lightbox button:focus {
	position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; padding: 0;
	width: 48px; height: 48px; border-radius: 50%; font-size: 32px; font-weight: 400; line-height: 1; cursor: pointer;
}
.np-lightbox button:hover { background: rgba(255, 255, 255, .25); color: #fff; border: 0; }
.np-lightbox .np-lb-close { top: 16px; right: 16px; }
.np-lightbox .np-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.np-lightbox .np-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- small screens ---------- */
/* filters above the grid, collapsible */
@media (max-width: 767px) {
	.np.np-list--filters { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.np .np-sidebar { position: static; }
	.np .np-filters { padding: 14px 16px; }
	.np .np-filters > summary { display: flex; justify-content: space-between; align-items: center; }
	.np .np-filters > summary::after { content: "▾"; color: var(--np-link); }
	.np .np-filters[open] > summary { margin-bottom: 14px; }
	.np .np-filters[open] > summary::after { content: "▴"; }
	.np .np-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.np .np-filter {
		flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
		margin-inline: -4px; padding: 2px 4px 8px; scrollbar-width: thin;
	}
	.np .np-pill { flex: 0 0 auto; white-space: nowrap; }
	.np .np-price-info { align-items: flex-start; }
	.np .np-titlebar-actions { width: 100%; justify-content: space-between; }
	.np .np-date { grid-template-columns: 1fr auto; }
	.np .np-date .np-btn { grid-column: 1 / -1; }
	.np-modal .np-modal-box { padding: 22px 18px; }
}
