/*
Theme Name: Megos
Text Domain: megos
Version: 1.0.0
*/:root {
	--bg: #FFFFFF;
	--surface: #FFFFFF;
	--accent: #D4A017;
	--ink: #000000;
	--muted: #6B6B6B;
	--radius: 20px;
	--control-radius: 14px;
	--stroke: 2px solid var(--accent);
	--body: clamp(1rem, .94rem + .2vw, 1.125rem);
	--nav: clamp(.98rem, .93rem + .16vw, 1.08rem);
	--h3: clamp(1.35rem, 1.15rem + .65vw, 1.72rem);
	--h2: clamp(1.75rem, 1.35rem + 1.25vw, 2.4rem);
	--h1: clamp(2.2rem, 1.65rem + 2.1vw, 3.65rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Open Sans', sans-serif;
	font-size: var(--body);
	font-weight: 400;
	line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, h3 {
	margin-block: 0 .65em;
	font-family: 'Century Gothic', sans-serif;
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.035em;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1em; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.header {
	position: sticky;
	z-index: 80;
	top: 0;
	background: var(--bg);
	border-bottom: var(--stroke);
	transition: transform .25s ease;
}
.header__inner {
	display: grid;
	grid-template-columns: minmax(260px, .75fr) minmax(360px, 1.65fr);
	gap: 18px 36px;
	align-items: center;
	width: 100%;
	padding: 18px clamp(24px, 4vw, 72px) 12px;
	transition: padding .25s ease;
}
.header--scrolled .header__inner { padding-block: 8px 6px; }
.header--scrolled .brand__caption,
.header--scrolled .site-nav { display: none; }
.brand {
	display: inline-flex;
	flex-direction: column;
	width: max-content;
	max-width: 100%;
}
.brand__row {
	display: flex;
	align-items: center;
	gap: 13px;
}
.brand__name {
	font-family: 'Century Gothic', sans-serif;
	font-size: clamp(1.35rem, 1.1rem + .7vw, 1.85rem);
	font-weight: 600;
	letter-spacing: -.04em;
	line-height: 1;
}
.brand__mark {
	width: auto;
	height: auto;
	max-width: 72px;
	max-height: 48px;
	object-fit: contain;
}
.brand__caption {
	display: block;
	width: 100%;
	margin-top: 5px;
	color: var(--muted);
	font-size: .73rem;
	line-height: 1.25;
	letter-spacing: .045em;
}
.header-search {
	display: grid;
	grid-template-columns: 1fr 54px;
	overflow: hidden;
	min-height: 54px;
	border: var(--stroke);
	border-radius: var(--control-radius);
}
.header-search input {
	min-width: 0;
	padding: 11px 18px;
	border: 0;
	outline: 0;
	background: transparent;
}
.header-search button {
	border: 0;
	background: var(--accent);
	color: var(--ink);
	font-size: 1.55rem;
	cursor: pointer;
}
.site-nav {
	grid-column: 1 / -1;
	display: flex;
	gap: 28px;
	align-items: center;
	overflow-x: auto;
	font-size: var(--nav);
	white-space: nowrap;
}
.site-nav a { position: relative; padding: 4px 0 8px; }
.site-nav a::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: var(--accent);
	content: "";
	transform: scaleX(0);
	transition: transform .2s ease;
}
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.container { width: 100%; }
.main-area { padding: 0 clamp(24px, 4vw, 72px) 72px; }
.main-content { width: 100%; }
.tadi-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(520px, 1.6fr) minmax(300px, .9fr);
	gap: clamp(24px, 4vw, 72px);
	align-items: center;
	min-height: 380px;
	max-height: 520px;
	margin: 28px 0 30px;
	padding: 26px 0;
	border-block: var(--stroke);
	overflow: hidden;
}
.tadi-hero__copy {
	position: relative;
	z-index: 2;
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	padding-left: clamp(0px, 1vw, 20px);
}
.tadi-hero__slogan {
	margin-bottom: 14px;
	color: var(--accent);
	font-family: 'Open Sans', sans-serif;
	font-size: var(--nav);
	letter-spacing: .16em;
}
.tadi-hero__title { overflow-wrap: anywhere; }
.tadi-hero .rima {
	width: 100%;
	margin-top: 18px;
	color: var(--muted);
}
.breadcrumbs,
.tadi-breadcrumbs {
	margin-bottom: 20px;
	color: var(--muted);
	font-size: .86rem;
}
.tadi-hero__mosaic {
	display: grid;
	grid-column: 1;
	grid-row: 1;
	grid-template-columns: 1.1fr .75fr .65fr;
	gap: 10px;
	height: 340px;
}
.tadi-hero__tile {
	overflow: hidden;
	border: var(--stroke);
	background: var(--surface);
}
.tadi-hero__tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tadi-hero__tile--portrait {
	clip-path: polygon(0 0, 91% 0, 100% 100%, 8% 100%);
	border-radius: var(--radius) 4px var(--radius) 4px;
}
.tadi-hero__tile--portrait img { object-position: 28% 24%; }
.tadi-hero__tile--glass {
	margin-top: 38px;
	clip-path: polygon(8% 0, 100% 7%, 88% 100%, 0 92%);
	border-radius: 4px var(--radius) 4px var(--radius);
}
.tadi-hero__tile--glass img { object-position: 83% 25%; }
.tadi-hero__tile--lounge {
	margin-bottom: 32px;
	clip-path: polygon(0 7%, 91% 0, 100% 90%, 10% 100%);
	border-radius: var(--radius) 4px var(--radius) 4px;
}
.tadi-hero__tile--lounge img { object-position: 96% 28%; }

.tadi-layout,
.main-area__container {
	display: grid;
	grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
	gap: clamp(22px, 2.4vw, 42px);
	align-items: start;
}
.sidebars-column { min-width: 0; }
.filters {
	position: relative;
	padding: 20px;
	border: var(--stroke);
	border-radius: var(--radius);
	background: var(--surface);
}
.filters .kirenu,
.filters .sidebar-content {
	width: 100%;
	margin: 0 0 24px;
}
.filters .kirenu h3,
.filters .sidebar-content h3 { font-size: var(--h3); }
.filters__title { margin: 22px 0 12px; font-size: var(--h3); }
.filter { border-top: 1px solid rgba(0, 0, 0, .15); }
.filter__header,
.city-picker__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 48px;
	padding: 10px 0;
	border: 0;
	background: transparent;
	font-family: 'Open Sans', sans-serif;
	font-size: var(--nav);
	cursor: pointer;
}
.city-picker__toggle {
	padding: 10px 14px;
	border: var(--stroke);
	border-radius: var(--control-radius);
}
.filter__body { padding: 4px 0 15px; }
.filter__link {
	display: block;
	padding: 7px 2px;
	color: var(--muted);
	font-size: .94rem;
}
.filter__link:hover { color: var(--accent); }
.city-picker__drawer {
	position: fixed;
	z-index: 200;
	inset: 112px clamp(24px, 4vw, 72px) auto;
	max-height: calc(100vh - 140px);
	padding: clamp(20px, 3vw, 42px);
	overflow-y: auto;
	border: var(--stroke);
	border-radius: var(--radius);
	background: var(--surface);
}
.city-picker__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
	font-family: 'Century Gothic', sans-serif;
	font-size: var(--h3);
}
.city-picker__close {
	display: grid;
	width: 46px;
	height: 46px;
	padding: 0;
	place-items: center;
	border: var(--stroke);
	border-radius: var(--control-radius);
	background: var(--surface);
	cursor: pointer;
}
.city-picker__groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 28px;
}
.city-picker__group { display: grid; align-content: start; gap: 8px; }
.city-picker__group h3 { font-size: 1.15rem; }
.city-picker__group a { color: var(--muted); }
.city-picker__group a:hover,
.city-picker__group a[aria-current="page"] { color: var(--accent); }

.tadi-results { min-width: 0; }
.main-content__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 1.6vw, 24px);
}
.card {
	position: relative;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border: var(--stroke);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--surface);
}
.card__cover-link { position: absolute; z-index: 2; inset: 0; }
.card__media,
.card__media img {
	width: 100%;
	height: 100%;
}
.card__media img { object-fit: cover; object-position: center 27%; }
.card__scrim {
	position: absolute;
	z-index: 1;
	inset: 30% 0 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, .86));
	pointer-events: none;
}
.card__content {
	position: absolute;
	z-index: 3;
	right: 0;
	bottom: 0;
	left: 0;
	padding: clamp(15px, 1.5vw, 24px);
	pointer-events: none;
}
.card__content a { pointer-events: auto; }
.card__title {
	margin-bottom: 7px;
	color: var(--surface);
	font-size: var(--h3);
}
.card__geo { display: flex; flex-wrap: wrap; gap: 5px 13px; font-size: .87rem; }
.card__geo a { text-decoration: underline; text-underline-offset: 3px; }
.card__params {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 16px 0 12px;
}
.card__params div { display: flex; gap: 5px; }
.card__params dt { color: rgba(255, 255, 255, .7); }
.card__params dd { margin: 0; }
.card__bottom { display: grid; gap: 7px; }
.card__price { color: var(--accent); font-weight: 700; }
.card__phone { width: max-content; max-width: 100%; overflow-wrap: anywhere; }
.card__phone span { color: rgba(255, 255, 255, .7); }
.paginator {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 34px 0;
}
.paginator .page-numbers {
	display: grid;
	min-width: 44px;
	height: 44px;
	padding-inline: 10px;
	place-items: center;
	border: var(--stroke);
	border-radius: var(--control-radius);
}
.paginator .current { background: var(--accent); }
.kirenu,
.tadi-bottom-content {
	width: 100%;
	margin: 52px 0 0;
}
.kirenu p + p,
.tadi-bottom-content p + p { margin-top: 1.2em; }

.single-content {
	min-width: 0;
	width: 100%;
	padding-top: 34px;
}
.profile-identity {
	padding: clamp(22px, 3vw, 42px);
	border: var(--stroke);
	border-radius: var(--radius);
}
.profile-identity h1 { margin: 0; }
.profile-badges { display: flex; gap: 8px; margin-top: 16px; }
.profile-badge {
	padding: 5px 10px;
	border: var(--stroke);
	border-radius: var(--control-radius);
	font-size: .78rem;
}
.profile-contact { margin: 20px 0; }
.profile-contact a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 10px 20px;
	border: var(--stroke);
	border-radius: var(--control-radius);
	background: var(--accent);
}
.profile-contact svg { width: 22px; height: 22px; fill: currentColor; }
.profile-section,
.profile-related { margin-top: clamp(28px, 4vw, 56px); }
.profile-section > h2,
.profile-related__heading { margin-bottom: 22px; }
.profile-description,
.profile-description > div { width: 100%; max-width: none; }
.profile-gallery__strip {
	display: flex;
	gap: 18px;
	width: 100%;
	padding-bottom: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}
.profile-gallery__strip a {
	flex: 0 0 clamp(250px, 34vw, 430px);
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border: var(--stroke);
	border-radius: var(--radius);
	scroll-snap-align: start;
}
.profile-gallery__strip img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}
.profile-details {
	padding: clamp(22px, 3vw, 40px);
	border: var(--stroke);
	border-radius: var(--radius);
}
.profile-details dl {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
}
.profile-details dl div { border-top: 1px solid rgba(0, 0, 0, .18); padding-top: 12px; }
.profile-details dt { color: var(--muted); font-size: .88rem; }
.profile-details dd { margin: 4px 0 0; font-size: 1.15rem; }
.profile-services {
	padding: clamp(22px, 3vw, 40px);
	border: var(--stroke);
	border-radius: var(--radius);
}
.profile-services__list { display: flex; flex-wrap: wrap; gap: 9px 18px; }
.profile-services__list span { color: var(--muted); }
.profile-services__list .is-selected { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.profile-rates__list {
	overflow: hidden;
	border: var(--stroke);
	border-radius: var(--radius);
}
.profile-rate {
	display: grid;
	grid-template-columns: minmax(130px, .8fr) 1fr 1fr;
	gap: 20px;
	padding: 18px 22px;
}
.profile-rate + .profile-rate { border-top: 1px solid rgba(0, 0, 0, .16); }
.profile-related__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 22px;
}
.profile-related__item .card { width: 100%; }

.footer { margin-top: 52px; border-top: var(--stroke); }
.footer__primary {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	padding: 36px clamp(24px, 4vw, 72px);
}
.footer__legal {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 16px clamp(24px, 4vw, 72px);
	border-top: var(--stroke);
	font-size: .88rem;
}
.footer__legal a { color: var(--accent); }
.siduves {
	position: fixed;
	z-index: 70;
	right: 22px;
	bottom: 22px;
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: var(--stroke);
	border-radius: var(--control-radius);
	background: var(--surface);
	cursor: pointer;
}
.siduves.is-visible { display: grid; place-items: center; }

.html-sitemap { padding: 40px clamp(24px, 4vw, 72px); }
.html-sitemap__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.html-sitemap__section { padding: 24px; border: var(--stroke); border-radius: var(--radius); }
.html-sitemap__heading { color: var(--ink); font-size: var(--h3); }
.html-sitemap__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.html-sitemap__link:hover { color: var(--accent); }
.fapi__card { margin: 50px 0; padding: 40px; border: var(--stroke); border-radius: var(--radius); }
.fapi__button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 18px; border: var(--stroke); border-radius: var(--control-radius); }

.mfp-bg { background: var(--surface); opacity: .98; }
.mfp-container { padding: 56px; }
.mfp-image-holder .mfp-content { border: var(--stroke); border-radius: var(--radius); overflow: hidden; }
.mfp-figure::after { display: none; }
.mfp-close, .mfp-arrow { color: var(--ink) !important; }
.mfp-counter { color: var(--muted); font-family: 'Open Sans', sans-serif; }
.tadi-gallery-thumbs {
	position: fixed;
	z-index: 1050;
	right: 0;
	bottom: 12px;
	left: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	pointer-events: none;
}
.tadi-gallery-thumbs__item {
	width: 46px;
	height: 58px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	background: var(--surface);
	pointer-events: auto;
}
.tadi-gallery-thumbs__item.is-active { border-color: var(--accent); }
.tadi-gallery-thumbs__item img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1199px) {
	.main-content__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tadi-hero { grid-template-columns: 1.2fr .8fr; }
	.tadi-hero__mosaic { grid-template-columns: 1fr .7fr; }
	.tadi-hero__tile--lounge { display: none; }
}

@media (max-width: 900px) {
	.header__inner { grid-template-columns: 1fr; }
	.header-search { grid-row: 2; }
	.site-nav { grid-row: 3; }
	.tadi-hero {
		grid-template-columns: 1fr;
		max-height: 600px;
		padding-top: 24px;
	}
	.tadi-hero__copy { grid-column: 1; grid-row: 1; }
	.tadi-hero__mosaic { grid-column: 1; grid-row: 2; }
	.tadi-hero__mosaic { height: 220px; }
	.tadi-layout,
	.main-area__container { grid-template-columns: 1fr; }
	.filters { position: relative; top: auto; }
	.single.php .sidebars-column { order: 2; }
	.profile-details dl { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
	.header__inner { padding-inline: 16px; }
	.main-area { padding-inline: 16px; padding-bottom: 48px; }
	.brand__mark { max-width: 56px; max-height: 40px; }
	.tadi-hero {
		min-height: 0;
		margin-top: 18px;
		gap: 16px;
	}
	.tadi-hero__copy { padding-inline: 0; }
	.tadi-hero__mosaic { height: 190px; grid-template-columns: 1.25fr .75fr; }
	.tadi-hero__tile--glass { margin-top: 20px; }
	.main-content__cards { grid-template-columns: 1fr; gap: 18px; }
	.card { max-width: 460px; width: 100%; margin-inline: auto; }
	.card__content { padding: 20px; }
	.city-picker__drawer { inset: 88px 16px 16px; max-height: none; }
	.profile-details dl { grid-template-columns: 1fr 1fr; }
	.profile-rate { grid-template-columns: 1fr; gap: 4px; }
	.profile-related__list { grid-template-columns: 1fr; }
	.footer__legal { flex-direction: column; padding-inline: 16px; }
	.html-sitemap__grid { grid-template-columns: 1fr; }
	.mfp-container { padding: 48px 10px 82px; }
}

