/*
Theme Name: Navibe
Theme URI: https://navibe.kz
Author: Navibe Team
Author URI: https://navibe.kz
Description: Платформа фотоотчётов из заведений Казахстана. Тёмная/светлая дизайн-система с масонри-галереей, кастомными типами записей для заведений и отчётов, полной поддержкой Кастомайзера.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: navibe
Tags: photography, portfolio, dark, modern, custom-colors, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready
*/

/* === DESIGN TOKENS === */
:root {
  --bg: #f0eee9;
  --white: #ffffff;
  --black: #0e0e0c;
  --gray: #7a7872;
  --border: rgba(0,0,0,0.08);
  --accent: #7c4dff;
  --accent2: #a78bfa;
  --serif: 'Playfair Display', serif;
  --sans: 'Montserrat', sans-serif;
  --radius: 7px;
  --shadow: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.09);
  --max-width: 430px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  font-family: var(--sans);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { cursor: pointer; }

/* === HEADER === */
.site-header {
  background: rgba(240,238,233,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  -webkit-transform: translateZ(0); /* fix iOS sticky blur bug */
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 8px;
  /* iOS Safari sticky fix */
  -webkit-position: sticky;
  will-change: transform;
}
.header-left { display: flex; align-items: center; gap: 6px; }
.header-search-toggle {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 0.5px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.header-search-toggle svg {
  width: 13px; height: 13px;
  stroke: var(--gray); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.site-branding { text-align: center; min-width: 0; }
.site-title {
  font-family: var(--serif);
  font-size: 19px; font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--black);
  text-transform: uppercase;
  text-decoration: none;
  display: block; line-height: 1;
}
.site-tagline {
  font-family: var(--sans);
  font-size: 7px; font-weight: 500;
  letter-spacing: 1.5px; color: var(--gray);
  text-transform: uppercase; margin-top: 2px; display: block;
}
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.header-share-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 0.5px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
}
.header-share-btn svg {
  width: 13px; height: 13px;
  stroke: var(--gray); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* === SEARCH OVERLAY === */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14,14,12,0.92);
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
  align-items: center; padding-top: 80px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-overlay form {
  width: 90%; max-width: 380px;
  position: relative;
}
.search-overlay input[type="search"] {
  width: 100%; height: 50px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 25px;
  padding: 0 50px 0 20px;
  font-family: var(--sans); font-size: 14px;
  color: #fff; outline: none;
  letter-spacing: 0.3px;
}
.search-overlay input::placeholder { color: rgba(255,255,255,0.3); }
.search-overlay button[type="submit"] {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); border: none;
  display: flex; align-items: center; justify-content: center;
}
.search-overlay button[type="submit"] svg {
  width: 14px; height: 14px;
  stroke: #fff; fill: none; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.search-overlay-hint {
  margin-top: 16px;
  font-family: var(--sans); font-size: 9px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 1px; text-transform: uppercase;
}
.search-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: rgba(255,255,255,0.6);
  font-family: var(--sans); font-weight: 300;
  cursor: pointer; line-height: 1;
}

/* === TICKER === */
.navibe-ticker {
  background: var(--black);
  height: 28px; overflow: hidden;
  display: flex; align-items: center;
}
.ticker-track {
  display: flex; align-items: center;
  animation: ticker-run 30s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.t-item {
  font-family: var(--sans); font-size: 9px; font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 0 22px;
}
.t-dot { color: var(--accent); font-size: 6px; }
@keyframes ticker-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === HERO / COVER CARDS === */
.cover-hero {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; width: 100%; background: #111;
}
.cover-hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform .6s ease;
}
.cover-hero:hover img { transform: scale(1.03); }
.cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(5,5,10,0.05) 0%, transparent 30%,
    rgba(5,5,10,0.1) 55%, rgba(5,5,10,0.88) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px 22px;
}
.cover-tag {
  font-family: var(--sans); font-size: 7.5px; font-weight: 700;
  color: rgba(255,255,255,0.65); letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 6px;
}
.cover-tag::before { content: ''; width: 18px; height: 1px; background: rgba(255,255,255,0.4); }
.cover-venue {
  font-family: var(--serif); font-size: 42px; font-weight: 900;
  text-transform: uppercase; color: #fff;
  line-height: 0.92; letter-spacing: -0.5px; margin-bottom: 5px;
}
.cover-event {
  font-family: var(--sans); font-size: 9px; font-weight: 400;
  color: rgba(255,255,255,0.6); letter-spacing: 0.8px;
  text-transform: uppercase; margin-bottom: 14px;
}
.cover-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cover-badge {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255,255,255,0.3); border-radius: 20px;
  padding: 4px 10px;
  font-family: var(--sans); font-size: 7.5px; font-weight: 700;
  color: rgba(255,255,255,0.95); letter-spacing: 0.8px; text-transform: uppercase;
}
.cover-badge.accent { background: rgba(124,77,255,0.75); border-color: rgba(124,77,255,0.5); }

/* === META CARD === */
.meta-card {
  margin: 0 10px 10px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255,255,255,0.75);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 14px 12px;
}
.meta-top {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
  margin-bottom: 12px;
}
.photographer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 1.5px solid rgba(124,77,255,0.35); background: #ccc;
}
.photographer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.photographer-role {
  font-family: var(--sans); font-size: 7px; font-weight: 700;
  color: var(--accent); letter-spacing: 1.2px;
  text-transform: uppercase; display: block; margin-bottom: 2px;
}
.photographer-name {
  font-family: var(--serif); font-size: 15px; font-weight: 900;
  color: var(--black); display: block; line-height: 1;
}
.photographer-handle {
  font-family: var(--sans); font-size: 8px; font-weight: 400;
  color: var(--gray); margin-top: 2px;
}
.meta-stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat-cell { text-align: center; padding: 0 6px; }
.stat-cell + .stat-cell { border-left: 0.5px solid rgba(0,0,0,0.08); }
.stat-val {
  font-family: var(--serif); font-size: 17px; font-weight: 900;
  color: var(--black); display: block; line-height: 1;
}
.stat-label {
  font-family: var(--sans); font-size: 7px; font-weight: 600;
  color: var(--gray); letter-spacing: 0.8px;
  text-transform: uppercase; margin-top: 3px; display: block;
}

/* === MASONRY GRID === */
.masonry {
  display: grid; grid-template-columns: 0.88fr 1fr;
  gap: 10px;
  /* stretch = обе колонки одинаковой высоты */
  align-items: stretch;
}
.masonry-col {
  display: flex; flex-direction: column; gap: 10px;
  align-self: stretch;
}
/* Баннер-заполнитель: flex:1 растягивает его до конца колонки */
.banner-fill,
.banner-mini.banner-fill {
  flex: 1 !important;
}
.pcard {
  position: relative; overflow: hidden; cursor: pointer;
  background: #ccc; aspect-ratio: 3/4; flex-shrink: 0;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .35s ease, transform .35s ease;
  text-decoration: none; display: block;
}
.pcard:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pcard img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: top center;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}
.pcard:hover img { transform: scale(1.04); }
.pcard-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 25%, rgba(5,5,10,0.1) 50%, rgba(5,5,10,0.86) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--radius);
}
.pcard-glass { padding: 10px 12px 13px; }
.pcard-tag {
  font-family: var(--sans); font-size: 7.5px; font-weight: 600;
  color: rgba(255,255,255,0.6); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 3px; display: block;
}
.pcard-venue {
  font-family: var(--serif); font-size: 17px; font-weight: 900;
  text-transform: uppercase; color: #fff; line-height: 1;
  margin-bottom: 2px; display: block;
}
.pcard-event {
  font-family: var(--sans); font-size: 8px; font-weight: 400;
  color: rgba(255,255,255,0.5); letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 7px; display: block;
}
.pcard-meta { display: flex; align-items: center; justify-content: space-between; }
.pcard-date { font-family: var(--sans); font-size: 8px; color: rgba(255,255,255,0.35); }
.pcard-count { font-family: var(--sans); font-size: 8px; color: rgba(255,255,255,0.8); font-weight: 700; text-transform: uppercase; }
.pcard-badge {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  background: var(--accent); border-radius: 20px; padding: 3px 8px;
  font-family: var(--sans); font-size: 7px; font-weight: 700;
  color: #fff; letter-spacing: 0.8px; text-transform: uppercase;
}

/* === BANNER MINI === */
.banner-mini {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255,255,255,0.7);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; display: flex;
  align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer;
  transition: box-shadow .3s, transform .3s, background .2s;
  min-height: 64px;
}
.banner-mini:hover {
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-hover); transform: translateY(-3px);
}
.bm-over {
  font-family: var(--sans); font-size: 7px; font-weight: 700;
  color: var(--accent); letter-spacing: 1.5px;
  text-transform: uppercase; display: block; margin-bottom: 3px;
}
.bm-title {
  font-family: var(--serif); font-size: 14px; font-weight: 900;
  text-transform: uppercase; color: var(--black); line-height: 1;
}
.bm-sub {
  font-family: var(--sans); font-size: 7.5px; font-weight: 400;
  color: var(--gray); margin-top: 3px; line-height: 1.4;
}
.bm-btn {
  font-family: var(--sans); font-size: 8px; font-weight: 700;
  color: var(--white); background: var(--accent); border: none;
  border-radius: 20px; box-shadow: 0 2px 10px rgba(124,77,255,0.3);
  padding: 7px 12px; letter-spacing: 0.5px; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0; align-self: center;
  transition: background .2s;
}
.bm-btn:hover { background: #5c2dde; }

/* === DIVIDER === */
.navibe-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 10px 14px;
}
.div-l { flex: 1; height: 0.5px; background: rgba(0,0,0,0.1); }
.div-t {
  font-family: var(--sans); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray); white-space: nowrap;
}

/* === VENUE STRIP === */
.venue-strip {
  margin: 0 10px 14px;
  background: var(--black); border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.venue-strip-over {
  font-family: var(--sans); font-size: 7px; font-weight: 700;
  color: var(--accent2); letter-spacing: 1.2px;
  text-transform: uppercase; display: block; margin-bottom: 3px;
}
.venue-strip-name {
  font-family: var(--serif); font-size: 16px; font-weight: 900;
  color: #fff; text-transform: uppercase;
  display: flex; align-items: baseline; gap: 8px;
}
.venue-strip-name span {
  font-family: var(--sans); font-size: 8px; font-weight: 400;
  color: rgba(255,255,255,0.4); text-transform: none; letter-spacing: 0;
}
.venue-strip-addr {
  font-family: var(--sans); font-size: 8px; font-weight: 400;
  color: rgba(255,255,255,0.4); margin-top: 2px;
}
.venue-map-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.venue-map-btn svg {
  width: 14px; height: 14px;
  stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* === GALLERY SECTION === */
.gallery-section { padding: 0 10px 60px; }

/* === FOOTER === */
.site-footer {
  border-top: 0.5px solid rgba(0,0,0,0.1);
  padding: 20px 10px 0;
}
.footer-logo {
  font-family: var(--serif); font-size: 21px; font-weight: 900;
  letter-spacing: 0.5px; text-transform: uppercase;
  display: block; line-height: 1;
  text-decoration: none; color: var(--black);
}
.footer-city {
  font-family: var(--sans); font-size: 9px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase; color: var(--gray);
  margin: 4px 0 15px; display: block;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 28px; }
.footer-nav a {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  color: var(--gray); text-decoration: none;
  letter-spacing: 0.3px; text-transform: uppercase; transition: color .15s;
}
.footer-nav a:hover { color: var(--black); }

/* === LIGHTBOX === */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5,5,10,0.95); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 95vw; max-height: 90svh;
  object-fit: contain; border-radius: 4px;
}
.lb-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 0.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: rgba(255,255,255,0.7);
  font-family: var(--sans); font-weight: 300; line-height: 1;
}
.lb-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: 9px; font-weight: 500;
  color: rgba(255,255,255,0.4); letter-spacing: 1px;
}
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lb-arrow svg {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
#lb-prev { left: 12px; } #lb-next { right: 12px; }

/* === SEARCH RESULTS === */
.search-results-page { padding: 16px 10px 60px; }
.search-header { margin-bottom: 20px; }
.search-header h1 {
  font-family: var(--serif); font-size: 28px; font-weight: 900;
  color: var(--black); margin-bottom: 6px;
}
.search-count {
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  color: var(--gray); letter-spacing: 1px; text-transform: uppercase;
}
.search-form-inline {
  display: flex; gap: 8px; margin-bottom: 24px;
}
.search-form-inline input[type="search"] {
  flex: 1; height: 40px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255,255,255,0.75);
  border-radius: 20px;
  padding: 0 16px;
  font-family: var(--sans); font-size: 12px;
  color: var(--black); outline: none;
}
.search-form-inline button {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); border: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.search-form-inline button svg {
  width: 14px; height: 14px;
  stroke: #fff; fill: none; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.no-results-msg {
  text-align: center; padding: 40px 20px;
  font-family: var(--sans); color: var(--gray);
}
.no-results-msg h2 {
  font-family: var(--serif); font-size: 22px;
  font-weight: 900; color: var(--black); margin-bottom: 8px;
}
.no-results-msg p { font-size: 10px; line-height: 1.6; }

/* === VENUE SINGLE PAGE === */
.venue-hero {
  position: relative; overflow: hidden;
  height: 240px; background: #111;
}
.venue-hero-img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center 25%;
  filter: brightness(0.55);
  transition: transform .6s ease;
}
.venue-hero:hover .venue-hero-img { transform: scale(1.03); }
.venue-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(5,5,10,0.2) 0%, rgba(5,5,10,0.15) 40%, rgba(5,5,10,0.75) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
}
.venue-type-tag {
  font-family: var(--sans); font-size: 7.5px; font-weight: 700;
  color: rgba(255,255,255,0.6); letter-spacing: 1.5px; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 5px;
}
.venue-type-tag::before { content: ''; width: 16px; height: 1px; background: rgba(255,255,255,0.35); }
.venue-hero-name {
  font-family: var(--serif); font-size: 44px; font-weight: 900;
  text-transform: uppercase; color: #fff; line-height: 0.92;
  letter-spacing: -0.5px; margin-bottom: 10px;
}
.venue-hero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v-badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid rgba(255,255,255,0.25); border-radius: 20px;
  padding: 4px 10px;
  font-family: var(--sans); font-size: 7px; font-weight: 700;
  color: rgba(255,255,255,0.9); letter-spacing: 0.8px; text-transform: uppercase;
}
.v-badge.green { background: rgba(34,197,94,0.55); border-color: rgba(34,197,94,0.4); }

/* === QUICK INFO GRID === */
.quick-info {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin: 10px 10px 10px;
}
.qi-card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255,255,255,0.75);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 11px 12px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.qi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.qi-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(124,77,255,0.1); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.qi-icon svg {
  width: 14px; height: 14px; stroke: var(--accent);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.qi-label {
  font-family: var(--sans); font-size: 7px; font-weight: 700;
  color: var(--gray); letter-spacing: 0.8px;
  text-transform: uppercase; display: block; margin-bottom: 2px;
}
.qi-val {
  font-family: var(--sans); font-size: 9.5px; font-weight: 600;
  color: var(--black); display: block; line-height: 1.3;
}

/* === SOCIAL ROW === */
.social-row { display: flex; gap: 8px; margin: 0 10px 14px; }
.soc-btn {
  flex: 1; height: 34px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--sans); font-size: 8px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  text-decoration: none;
  border: 0.5px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px); color: var(--black);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background .2s, transform .2s; cursor: pointer;
}
.soc-btn:hover { background: rgba(255,255,255,0.88); transform: translateY(-1px); }
.soc-btn svg {
  width: 14px; height: 14px; stroke: currentColor;
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.soc-btn.primary { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 3px 12px rgba(124,77,255,0.35); }
.soc-btn.primary:hover { background: #5c2dde; }
.soc-btn.primary svg { stroke: #fff; }

/* === MAP BLOCK === */
.map-block { margin: 0 10px 10px; }
.map-label {
  font-family: var(--sans); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gray);
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.map-label::before, .map-label::after { content: ''; flex: 1; height: 0.5px; background: rgba(0,0,0,0.1); }
.map-frame {
  width: 100%; height: 220px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #ddd; position: relative;
}
.map-frame iframe { width: 100%; height: 100%; border: none; display: block; }

/* === HERO SECTION (dark) === */
.hero-section {
  margin: 0 0 0; padding: 32px 16px 28px;
  background: var(--black);
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,77,255,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--sans); font-size: 7.5px; font-weight: 700;
  color: var(--accent2); letter-spacing: 2px; text-transform: uppercase;
  display: block; margin-bottom: 8px;
}
.hero-title {
  font-family: var(--serif); font-size: 38px; font-weight: 900;
  color: #fff; line-height: 0.95; text-transform: uppercase; margin-bottom: 12px;
}
.hero-desc {
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 280px;
}

/* === PAGE CONTENT === */
.page-content { padding: 0 10px 60px; }
.page-content p {
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  color: var(--gray); line-height: 1.7; margin-bottom: 14px;
}
.page-content h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 900;
  color: var(--black); margin: 20px 0 10px;
}
.page-content h3 {
  font-family: var(--serif); font-size: 16px; font-weight: 700;
  color: var(--black); margin: 16px 0 8px;
}

/* === PAGINATION === */
.navibe-pagination {
  display: flex; justify-content: center; gap: 6px;
  padding: 20px 10px 40px;
}
.navibe-pagination a, .navibe-pagination span {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  text-decoration: none;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  border: 0.5px solid rgba(255,255,255,0.75);
  box-shadow: var(--shadow); color: var(--black);
  transition: transform .2s, background .2s;
}
.navibe-pagination a:hover { transform: translateY(-2px); background: rgba(255,255,255,0.88); }
.navibe-pagination .current {
  background: var(--accent); color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(124,77,255,0.35);
}

/* === WP ADMIN BAR FIX === */
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* === WIDGETS === */
.widget-area { padding: 0 10px 20px; }
.widget { margin-bottom: 20px; }
.widget-title {
  font-family: var(--sans); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gray);
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
   МОБИЛЬНАЯ ОПТИМИЗАЦИЯ
   Тема изначально мобильная (max-width 430px),
   но добавляем дополнительные правила
═══════════════════════════════════════════ */

/* Центрируем на десктопе с рамкой, на мобиле — на весь экран */
@media (min-width: 431px) {
  body {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 20px 60px rgba(0,0,0,0.08);
    min-height: 100svh;
  }
}

/* Мобильные сбросы */
@media (max-width: 430px) {
  body { max-width: 100vw !important; }

  /* Галерея — меньший gap на узких экранах */
  .masonry { gap: 8px; }
  .masonry-col { gap: 8px; }

  /* Карточки — не слишком высокие */
  .pcard { border-radius: 6px; }

  /* Venue strip */
  .venue-strip { margin: 0 8px 12px; }
  .meta-card   { margin: 0 8px 8px; }
  .gallery-section { padding: 0 8px 50px; }
  .page-content { padding: 0 8px 50px; }

  /* Quick info — одна колонка на очень узких */
  .quick-info { margin: 8px 8px 8px; }

  /* Social row */
  .social-row { margin: 0 8px 12px; }
  .soc-btn { font-size: 7px; gap: 4px; height: 32px; }

  /* Map */
  .map-block { margin: 0 8px 10px; }

  /* Cover venue font адаптируется */
  .cover-venue { font-size: 36px; }

  /* Hero venue name */
  .venue-hero-name { font-size: 38px; }

  /* Ticker */
  .navibe-ticker { height: 26px; }
  .t-item { font-size: 8px; padding: 0 16px; }

  /* Site header — чуть компактнее */
  .site-header { height: 50px; padding: 0 10px; gap: 6px; }
  .site-title { font-size: 16px !important; }
  .site-tagline { font-size: 6px !important; }
  .site-title { font-size: 17px; }
  .site-tagline { font-size: 6.5px; }

  /* Pagination */
  .navibe-pagination { padding: 12px 8px 32px; gap: 5px; }
  .navibe-pagination a, .navibe-pagination span { width: 30px; height: 30px; font-size: 9px; }

  /* Search overlay */
  .search-overlay input[type="search"] { font-size: 16px; } /* prevent iOS zoom */

  /* Footer */
  .site-footer { padding: 16px 8px 0; }
}

/* Плавная прокрутка для iOS */
html {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Убираем синюю подсветку tap на мобиле */
* { -webkit-tap-highlight-color: transparent; }

/* Безопасная зона под нотч/хоум-индикатор */
.site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
body { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Sticky header — всегда top:0 для корректного sticky на мобиле */
.site-header {
  top: 0;
  padding-left:  max(14px, env(safe-area-inset-left, 14px));
  padding-right: max(14px, env(safe-area-inset-right, 14px));
}
/* Admin bar offset */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Touch-friendly кнопки */
.soc-btn, .bm-btn, .err-btn, .cta-btn { touch-action: manipulation; }
.pcard { -webkit-user-select: none; user-select: none; }

/* Lightbox — безопасная зона */
.lb-close { top: max(18px, calc(18px + env(safe-area-inset-top, 0px))); right: max(18px, env(safe-area-inset-right, 18px)); }
.lb-counter { bottom: max(18px, calc(18px + env(safe-area-inset-bottom, 0px))); }

/* Поиск — учёт нотча */
.search-overlay { padding-top: max(80px, calc(60px + env(safe-area-inset-top, 0px))); }
.search-close { top: max(18px, calc(12px + env(safe-area-inset-top, 0px))); }

/* Изображения без лишних отступов */
img { display: block; }

/* Предотвращаем горизонтальный скролл */
.site-header, .navibe-ticker, .cover-hero, .venue-hero,
.masonry, .gallery-section, .page-content { overflow-x: hidden; }

/* ═══════════════════════════════════════════
   НАВИГАЦИЯ В ХЕДЕРЕ
═══════════════════════════════════════════ */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__link {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 14px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.site-nav__link:hover,
.site-nav__link.active {
  color: var(--black);
  background: rgba(0,0,0,0.06);
}

/* search-toggle справа — тот же стиль что был share */
.header-search-toggle {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 0.5px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.header-search-toggle:hover { background: rgba(255,255,255,0.85); }
.header-search-toggle svg {
  width: 13px; height: 13px;
  stroke: var(--gray); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Баннер-картинка */
.banner-img-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.banner-img-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Разделитель «Ещё отчёты» на главной */
.navibe-divider { display: flex; align-items: center; gap: 10px; margin: 4px 10px 14px; }
.div-l { flex: 1; height: 0.5px; background: rgba(0,0,0,0.1); }
.div-t {
  font-family: var(--sans);
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray); white-space: nowrap;
}

/* Footer nav — использует nav links из кастомайзера */
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 28px; }
.footer-nav a {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  color: var(--gray); text-decoration: none;
  letter-spacing: 0.3px; text-transform: uppercase;
  transition: color .15s;
}
.footer-nav a:hover { color: var(--black); }

/* ═══════════════════════════════════════════
   РАВНАЯ СЕТКА (для «Ещё отчёты»)
   Все карточки одинаковой высоты — aspect-ratio 3/4
═══════════════════════════════════════════ */
.equal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.equal-grid .pcard {
  aspect-ratio: 3/4;
  flex-shrink: unset;
}
@media (max-width: 430px) {
  .equal-grid { gap: 8px; }
}

/* ═══════════════════════════════════════════
   БАННЕР-ЗАПОЛНИТЕЛЬ (второй баннер, правая колонка)
   Растягивается до высоты левой колонки
═══════════════════════════════════════════ */
.masonry-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Баннер с flex:1 заполняет оставшееся пространство */
.banner-mini.banner-fill,
.banner-mini[style*="flex:1"] {
  flex: 1 !important;
  min-height: 180px;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}
@media (max-width: 430px) {
  .masonry-col { gap: 8px; }
}

/* ═══════════════════════════════════════════
   ГАЛЕРЕЯ ОТЧЁТА — реальные пропорции фото
   Для одиночной записи, где фото из плагина Navibe Gallery
═══════════════════════════════════════════ */
.gallery-section .pcard {
  aspect-ratio: unset !important; /* убираем 3/4, даём фото реальную высоту */
  flex-shrink: 0;
}
.gallery-section .pcard img {
  width: 100%;
  height: auto;      /* высота по содержимому */
  display: block;
  object-fit: unset; /* не кропать */
  position: relative;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}
/* Оверлей подстраивается под высоту */
.gallery-section .pcard .pcard-overlay {
  position: absolute;
  inset: 0;
}
/* Горизонтальное фото — занимает обе колонки */
.gallery-section .pcard.landscape {
  grid-column: span 2;
}
/* Горизонтальное фото в колонке masonry — тоже без обрезки */
.gallery-section .masonry-col .pcard.landscape {
  width: 100%;
}

/* ═══════════════════════════════════════════
   Скрываем стандартную кнопку архива плагина
   (используем свою фиолетовую в мета-карточке)
═══════════════════════════════════════════ */
.navibe-gallery-header {
  display: none !important;
}

/* ── Header social icon buttons ── */
.hdr-icon-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 0.5px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .15s;
  flex-shrink: 0;
}
.hdr-icon-btn:hover { background: rgba(255,255,255,0.9); }
.hdr-icon-btn svg {
  width: 13px; height: 13px;
  stroke: var(--gray); fill: none;
  stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Modula галерея внутри темы Navibe ── */
.modula-wrap { min-height: 100px; }
.modula-wrap .modula-items { padding: 0 !important; }
.modula-wrap .modula-item { border-radius: var(--radius) !important; overflow: hidden !important; }
.modula-wrap .modula-item img { display: block !important; }
/* Убираем лишние отступы Modula */
.modula-wrap #mg-1, .modula-wrap .modula { margin: 0 !important; }
