/*
Theme Name: Luxury Travel Blog
Theme URI: https://luxurytravelblog.ru/
Description: Тема для LuxuryTravelBlog.Ru по макету Figma (десктоп + мобильная версия).
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: luxtravel
*/

:root {
	--c-text: #313131;
	--c-muted: #888;
	--c-accent: #a67c52;
	--c-line: #eee;
	--c-cream: #f4efea;
	--c-dark: #111;
	--f-serif: 'Lora', Georgia, serif;
	--f-sans: 'Raleway', Arial, sans-serif;
	--container: 1170px;
	--gutter: 15px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: var(--c-text);
	font: 400 14px/1.8 var(--f-sans);
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-serif); font-weight: 700; line-height: 1.3; margin: 0 0 .6em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* ---------- Иконки (в макете большинство SVG отражены по вертикали) ---------- */
.ico { display: inline-block; flex: none; vertical-align: middle; }
.ico--flip { transform: scaleY(-1); }

/* ---------- Лента фото (бесконечный плавный слайдер) ---------- */
.photo-strip { position: relative; height: 180px; overflow: hidden; }
.photo-strip__track {
	display: flex; width: max-content; height: 100%;
	animation: lt-strip 60s linear infinite;
}
.photo-strip:hover .photo-strip__track { animation-play-state: paused; }
.photo-strip__track img { flex: none; width: 180px; height: 180px; object-fit: cover; display: block; }
@keyframes lt-strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .photo-strip__track { animation: none; } }

/* ---------- Логотип ---------- */
.site-branding { border-bottom: .8px solid var(--c-line); padding: 34px 0 0; text-align: center; }
.site-branding a { display: inline-block; }
.site-branding img { display: block; width: 406px; height: 175px; object-fit: cover; }

/* ---------- Плитки-разделы ---------- */
.promo-tiles {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
	margin: 32px auto 60px;
}
.tile { position: relative; display: block; height: 190px; overflow: hidden; background: #f5f5f5; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.tile:hover img { transform: scale(1.05); }
.tile::after {
	content: ''; position: absolute; inset: 10px;
	border: .8px solid rgba(255, 255, 255, .4);
	pointer-events: none;
}
.tile__label {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 120px; min-height: 40px; padding: 6px 8px;
	display: flex; align-items: center; justify-content: center;
	background: #fff; text-align: center;
	font: 700 10px/1.3 var(--f-serif); text-transform: uppercase; color: var(--c-text);
}

/* ---------- Сетка контента ---------- */
.site-main { display: grid; grid-template-columns: minmax(0, 780px) 330px; justify-content: space-between; gap: 60px; padding-bottom: 60px; }
.site-main--full { grid-template-columns: minmax(0, 1fr); }

/* ---------- Карточка записи ---------- */
.post-card { margin-bottom: 60px; }
.post-card__cat, .entry-cat { text-align: center; font: 400 13px/1.2 var(--f-sans); color: var(--c-accent); margin-bottom: 10px; }
.post-card__cat a, .entry-cat a { color: var(--c-accent); }
.post-card__title, .entry-title {
	margin: 0 auto 10px; max-width: 725px; text-align: center;
	font: 700 24px/1.27 var(--f-serif); text-transform: uppercase; color: var(--c-text);
}
.post-card__author, .entry-author { text-align: center; font-size: 14px; line-height: 1.2; color: var(--c-muted); margin-bottom: 26px; }
.post-card__media { display: block; margin-bottom: 20px; }
.post-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.post-card__excerpt { font-size: 14px; line-height: 25.2px; margin-bottom: 10px; }
.post-card__excerpt p { margin: 0 0 25.2px; }
.post-card__excerpt p:last-child { margin-bottom: 0; }

.read-more {
	display: flex; align-items: center; justify-content: center; gap: 16px;
	margin: 6px 0 34px;
	font: 700 12px/28px var(--f-serif); text-transform: uppercase; color: var(--c-accent);
}
.read-more::before, .read-more::after { content: ''; width: 60px; border-top: .8px solid var(--c-accent); }

.post-meta {
	display: flex; align-items: center; gap: 20px;
	height: 47.6px; border-top: .8px solid var(--c-line); border-bottom: .8px solid var(--c-line);
	font-size: 14px; line-height: 1; color: var(--c-muted);
}
.post-meta__item { display: inline-flex; align-items: center; gap: 6px; color: var(--c-muted); }
.post-meta__sep { width: .8px; height: 10px; background: var(--c-muted); opacity: .7; }
.post-meta__like { margin-left: auto; }

/* Записи ниже конца сайдбара — на всю ширину, по две в ряд (раскладывает main.js) */
.wide-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; padding-bottom: 60px; }
.wide-posts .post-card__title { font-size: 20px; }
.wide-posts .pager { grid-column: 1 / -1; }

/* ---------- Пагинация ---------- */
.pager {
	display: flex; justify-content: center; align-items: center; gap: 14px;
	font: 700 12px/1 var(--f-serif); text-transform: uppercase; color: #999;
}
.pager a, .pager span { display: inline-flex; align-items: center; gap: 8px; color: #999; }
.pager a:hover { color: var(--c-accent); }
.pager .is-disabled { opacity: .5; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; }
.widget { margin-bottom: 50px; }
.widget-title {
	display: flex; align-items: center; gap: 16px;
	margin: 0 0 30px; font: 700 14px/18.2px var(--f-serif); text-transform: uppercase; text-align: center;
}
.widget-title::before, .widget-title::after { content: ''; flex: 1; border-top: .8px solid rgba(166, 124, 82, .5); }


.field {
	width: 100%; height: 38.8px; padding: 0 19px; margin-bottom: 20px;
	border: 1px solid var(--c-line); background: #fff; border-radius: 0;
	font: 400 13px var(--f-sans); color: var(--c-text);
}
.field::placeholder { color: #757575; }
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 38px; width: 100%; border: 0; cursor: pointer; border-radius: 0;
	background: #f5f5f5; color: var(--c-text);
	font: 700 14px/1 var(--f-serif); text-transform: uppercase; transition: .2s;
}
.btn:hover { background: var(--c-accent); color: #fff; }
.btn--dark { background: var(--c-dark); color: #fff; height: 48px; }

.widget ul { list-style: none; margin: 0; padding: 0; }

.lt-cats li { border-bottom: .8px solid var(--c-line); padding: 6px 0; line-height: 19.6px; }
.lt-cats > li:last-child { border-bottom: 0; }
.lt-cats li a { display: inline-flex; align-items: center; gap: 10px; }
.lt-cats li a::before {
	content: ''; width: 4.5px; height: 12.8px; flex: none;
	background: url(assets/icons/chevron.svg) no-repeat center / contain; transform: scaleY(-1);
}
.lt-cats .children { margin: 6px 0 -6px 20px; border-top: .8px solid var(--c-line); }
.lt-cats .children li:last-child { border-bottom: 0; }
.lt-cats .count { float: right; color: var(--c-muted); }
.cats-toggle { display: none; }

.recent-list li { display: flex; gap: 20px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: .8px solid var(--c-line); }
.recent-list li:last-child { border-bottom: 0; margin-bottom: 0; }
.recent-list__thumb { flex: none; width: 120px; height: 80px; background: #f5f5f5; overflow: hidden; }
.recent-list__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-list__title { font: 700 14px/1.35 var(--f-serif); margin: 0 0 6px; }
.recent-list__date { color: var(--c-muted); font-size: 14px; line-height: 1.1; }

.ad-box { position: relative; display: block; height: 227px; overflow: hidden; }
.ad-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-box::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .4); }
.ad-box__label {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 120px; height: 39.6px; background: #fff;
	display: flex; align-items: center; justify-content: center;
	font: 700 12px/1 var(--f-serif); text-transform: uppercase; color: #010101;
}

.tag-cloud ul { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
	display: block; padding: 6px 11px;
	border: 1px solid #e5e5e5; background: #fff;
	font: 400 11px/1.4 var(--f-sans) !important; letter-spacing: .5px; text-transform: uppercase; color: #555;
	transition: background .2s, border-color .2s, color .2s;
}
.tag-cloud a:hover, .tag-cloud a:focus-visible { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }

/* 3D-шар тегов (включается скриптом; без JS или при «уменьшить движение» остаётся список выше) */
.tag-sphere {
	position: relative; width: 100%; aspect-ratio: 1; max-width: 360px; margin: 0 auto;
	cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.tag-sphere.is-dragging { cursor: grabbing; }
.tag-sphere a {
	position: absolute; left: 0; top: 0;
	padding: 3px 7px; border: 0; background: none;
	font-family: var(--f-serif) !important; font-weight: 700 !important; letter-spacing: .3px;
	line-height: 1.2 !important; text-transform: none; color: var(--c-text);
	white-space: nowrap; will-change: transform, opacity;
	transition: color .15s, background .15s;
}
.tag-sphere a:hover, .tag-sphere a:focus-visible { background: var(--c-dark); color: #fff; outline: 0; }

.side-search { position: relative; }
.side-search input {
	width: 100%; height: 44px; padding: 0 48px 0 18px;
	border: 1px solid var(--c-line); border-radius: 0; background: #fff;
	font: 400 13px var(--f-sans); color: var(--c-text); -webkit-appearance: none; appearance: none;
	transition: border-color .2s;
}
.side-search input::placeholder { color: #757575; }
.side-search input:focus { outline: 0; border-color: var(--c-accent); }
.side-search button {
	position: absolute; right: 0; top: 0; width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	border: 0; background: none; cursor: pointer; opacity: .7;
}
.side-search button:hover { opacity: 1; }


/* ---------- Полная запись / страница ---------- */
.entry-header { margin-bottom: 26px; }
.entry-thumb { margin-bottom: 30px; }
.entry-thumb img { width: 100%; display: block; }
.entry-content { font-size: 15px; line-height: 1.85; overflow-wrap: break-word; }
.entry-content::after { content: ''; display: table; clear: both; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2 { font-size: 22px; margin-top: 1.4em; }
.entry-content h3 { font-size: 19px; margin-top: 1.4em; }
.entry-content a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content img { display: inline-block; height: auto !important; }
.entry-content .aligncenter, .entry-content img.aligncenter { display: block; margin: 1em auto; }
.entry-content .alignleft { float: left; margin: .4em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .4em 0 1em 1.5em; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text, .entry-content figcaption { font-size: 13px; color: var(--c-muted); text-align: center; }
.entry-content blockquote { margin: 1.5em 0; padding: 10px 0 10px 24px; border-left: 2px solid var(--c-accent); font: italic 17px/1.7 var(--f-serif); }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { border: 1px solid var(--c-line); padding: 6px 10px; }
.entry-footer { margin: 30px 0; font-size: 13px; color: var(--c-muted); }
.entry-footer a { color: var(--c-accent); }
.page-links { margin: 20px 0; font-weight: 700; }
.archive-header { text-align: center; margin-bottom: 40px; }
.archive-header h1 { font-size: 26px; text-transform: uppercase; }
.archive-header .archive-description { color: var(--c-muted); }

.post-nav { display: flex; justify-content: space-between; gap: 30px; margin: 40px 0; font: 700 13px/1.4 var(--f-serif); }
.post-nav a { color: var(--c-text); }
.post-nav span { display: block; font: 400 12px var(--f-sans); text-transform: uppercase; color: var(--c-muted); margin-bottom: 4px; }
.post-nav__next { text-align: right; margin-left: auto; }

/* ---------- Связанные записи ---------- */
.related { margin: 50px 0 10px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.related__media { display: block; aspect-ratio: 3 / 2; background: #f5f5f5; overflow: hidden; margin-bottom: 14px; }
.related__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.related__item:hover .related__media img { transform: scale(1.05); }
.related__title { font: 700 15px/1.35 var(--f-serif); margin: 0 0 6px; text-align: center; }
.related__date { font-size: 13px; color: var(--c-muted); text-align: center; }

/* ---------- Полоса подписки ---------- */
.newsletter { background: var(--c-cream); padding: 50px 0 60px; text-align: center; }
.newsletter__title { font: 700 32px/41.6px var(--f-serif); margin: 0 0 22px; color: var(--c-text); }
.newsletter__form { display: flex; gap: 30px; max-width: 520px; margin: 0 auto; }
.newsletter__form .field { height: 48px; margin: 0; border-color: #d7d7da; font-size: 14px; background: transparent; }
.newsletter__form .btn { width: 120px; flex: none; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--c-dark); color: var(--c-muted); padding: 32px 0 40px; }
.socials {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 110px;
	max-width: 950px; margin: 0 auto; padding-bottom: 28px; border-bottom: .8px solid #212121;
}
.socials a {
	display: inline-flex; align-items: center; gap: 12px;
	font: 700 18.3px/26px var(--f-serif); text-transform: uppercase; color: #666;
}
.socials a:hover { color: #fff; }
.socials img { opacity: .55; }
.socials a:hover img { opacity: 1; }

.footer-cols { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 30px; align-items: start; padding-top: 26px; }
.footer-title { font: 700 12.8px/18.4px var(--f-serif); color: var(--c-muted); text-transform: uppercase; margin: 0 0 8px; }
.footer-copy { text-align: center; font: 400 13px/18.2px var(--f-sans); color: #666; margin: 0 0 22px; }
.go-top {
	display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 auto; width: max-content;
	font: 700 12px/12px var(--f-serif); text-transform: uppercase; color: #666; text-decoration: underline;
}
.go-top:hover { color: #fff; }
.footer-partners { text-align: right; }
.footer-partners p { margin: 0; font: 600 11px/1.55 var(--f-serif); color: var(--c-muted); }
.footer-partners a { color: var(--c-muted); }

/* ---------- Адаптив ---------- */
@media (max-width: 1199px) {
	.site-main { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}

@media (max-width: 991px) {
	.site-main { grid-template-columns: minmax(0, 1fr); }
	.sidebar { max-width: 520px; margin: 0 auto; width: 100%; }
	.promo-tiles { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.footer-cols { grid-template-columns: 1fr; text-align: center; }
	.footer-partners { text-align: center; }
	.socials { gap: 16px 50px; }
	.footer-cols > [aria-hidden] { display: none; }
}

@media (max-width: 767px) {
	.photo-strip { height: 120px; }
	.photo-strip__track img { width: 120px; height: 120px; }
	.photo-strip__track { animation-duration: 45s; }

	.site-branding { padding-top: 16px; }
	.site-branding img { width: 280px; height: auto; aspect-ratio: 406 / 175; }

	.promo-tiles { grid-template-columns: 1fr; margin: 30px auto 40px; }
	.tile { height: auto; aspect-ratio: 360 / 230; }

	/* Рубрики на телефоне: свёрнуты, пункты крупнее под палец */
	.lt-cats li { padding: 10px 0; }
	.lt-cats.is-collapsible:not(.is-open) { max-height: 330px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
	.lt-cats.is-collapsible ~ .cats-toggle {
		display: block; width: 100%; height: 44px; margin-top: 10px;
		border: 1px solid var(--c-line); background: #fff; cursor: pointer;
		font: 700 12px/1 var(--f-serif); text-transform: uppercase; color: var(--c-text);
	}

	.related__grid { grid-template-columns: 1fr; gap: 26px; }

	.post-card__title, .entry-title { font-size: 18px; }
	.post-card__media img { aspect-ratio: 4 / 3; }
	.post-meta { gap: 12px; font-size: 13px; }

	.newsletter__title { font-size: 24px; line-height: 1.3; }
	.newsletter__form { flex-direction: column; gap: 14px; padding: 0 var(--gutter); }
	.newsletter__form .btn { width: 100%; }

	.socials { gap: 14px 28px; }
	.socials a { font-size: 14px; gap: 8px; }
}
