/*
Theme Name:        ПодмосковьеГид
Theme URI:         https://podmoskoviegid.ru
Description:       Самостоятельная тема портала podmoskoviegid.ru. Hub & Spoke архитектура: 6 CPT (place, city, route, event, article, collection), 7 таксономий, Schema.org, Core Web Vitals, mobile-first. Не требует родительской темы.
Author:            podmoskoviegid.ru
Author URI:        https://podmoskoviegid.ru
Version:           1.0.5
License:           GPL-2.0+
License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
Text Domain:       pmg-child
Tags: travel, tourism, moscow-region, podmoskovye, places, routes, events
*/

/* ===================================================================
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   =================================================================== */
:root {
  /* Brand Colors */
  --pmg-primary:        #2C5F2E;   /* Лесной зелёный — основной */
  --pmg-primary-dark:   #1A3D1C;   /* Тёмный вариант */
  --pmg-primary-light:  #E8F5E9;   /* Светлый фон */
  --pmg-secondary:      #1F4E79;   /* Синий — вода, небо */
  --pmg-secondary-light:#E3F0FB;
  --pmg-accent:         #E87722;   /* Оранжевый — акцент, CTA */
  --pmg-accent-light:   #FFF3E0;

  /* Neutrals */
  --pmg-bg:             #F8F5F0;   /* Тёплый белый фон */
  --pmg-white:          #FFFFFF;
  --pmg-text:           #1C1C1E;
  --pmg-text-muted:     #6B7280;
  --pmg-border:         #E5E7EB;

  /* Typography */
  --pmg-font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --pmg-font-heading:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --pmg-section-pad:    48px 32px;
  --pmg-card-radius:    10px;
  --pmg-radius-sm:      6px;
  --pmg-shadow:         0 2px 12px rgba(0,0,0,.08);
  --pmg-shadow-hover:   0 6px 24px rgba(0,0,0,.14);

  /* Layout */
  --pmg-content-width:  1200px;
  --pmg-sidebar-width:  320px;
}

/* ===================================================================
   NUCLEAR ANTI-SERIF — все заголовки = Inter, никаких засечек НИКОГДА
   =================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  font-style: normal !important;
}
/* WordPress block editor, theme.json, twenty-* fallbacks */
.wp-block-heading,
.wp-block-post-title,
.entry-title,
.page-title,
.post-title,
[class*="wp-block-"] h1,
[class*="wp-block-"] h2,
[class*="wp-block-"] h3,
[class*="wp-block-"] h4,
[class*="wp-block-"] h5,
[class*="wp-block-"] h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  font-style: normal !important;
}
/* Inline styles from block editor sometimes set font-family on element */
[style*="font-family"][style*="serif"],
[style*="Playfair"], [style*="Georgia"], [style*="Times"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ===================================================================
   GLOBAL RESET & BASE
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--pmg-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--pmg-text);
  background: var(--pmg-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border-radius: var(--pmg-radius-sm); }
a { color: var(--pmg-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pmg-primary-dark); }
h1, h2, h3, h4, h5 { font-family: var(--pmg-font-heading); font-weight: 700; line-height: 1.2; color: var(--pmg-text); letter-spacing: -0.02em; }

/* ===================================================================
   TYPOGRAPHY SCALE
   =================================================================== */
.pmg-h1 { font-size: clamp(28px, 4vw, 42px); }
.pmg-h2 { font-size: clamp(22px, 3vw, 30px); }
.pmg-h3 { font-size: clamp(18px, 2.5vw, 24px); }
.pmg-overline { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--pmg-accent); }

/* ===================================================================
   LAYOUT CONTAINERS
   =================================================================== */
.pmg-container { max-width: var(--pmg-content-width); margin: 0 auto; padding: 0 24px; }
.pmg-layout-sidebar { display: grid; grid-template-columns: 1fr var(--pmg-sidebar-width); gap: 32px; align-items: start; }
.pmg-layout-catalog { display: grid; grid-template-columns: 1fr 380px; min-height: calc(100vh - 130px); }

/* ===================================================================
   HEADER — base positioning (colour overridden by GREEN BRAND block below)
   =================================================================== */
.pmg-site-header {
  position: sticky;
  top: 0;
  z-index: 500;
}

.pmg-header-top {
  background: var(--pmg-primary-dark);
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.pmg-header-main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  max-width: var(--pmg-content-width);
  margin: 0 auto;
}

.pmg-logo {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--pmg-primary);
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  letter-spacing: -0.03em;
}
.pmg-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--pmg-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  margin-right: 8px;
  flex-shrink: 0;
}
.pmg-logo-text { color: var(--pmg-primary); }
.pmg-logo-text em { color: var(--pmg-accent); font-style: normal; }

.pmg-header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.pmg-header-search input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 2px solid var(--pmg-border);
  border-radius: 28px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  font-family: var(--pmg-font-body);
}
.pmg-header-search input:focus { border-color: var(--pmg-primary); }
.pmg-header-search .pmg-search-ico {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pmg-text-muted);
  width: 18px;
  height: 18px;
}

.pmg-header-nav {
  background: var(--pmg-white);
  border-top: 1px solid var(--pmg-border);
  padding: 0 24px;
}
.pmg-header-nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  max-width: var(--pmg-content-width);
  margin: 0 auto;
}
.pmg-header-nav a {
  display: block;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pmg-text);
  border-bottom: 2px solid transparent;
  transition: .2s;
}
.pmg-header-nav a:hover,
.pmg-header-nav .current-menu-item a { color: var(--pmg-primary); border-bottom-color: var(--pmg-primary); }
.pmg-nav-mega { position: relative; }
.pmg-nav-mega:hover .pmg-mega-menu { display: grid; }
.pmg-mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--pmg-border);
  border-radius: 0 0 var(--pmg-card-radius) var(--pmg-card-radius);
  box-shadow: var(--pmg-shadow-hover);
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  min-width: 600px;
  padding: 16px;
  z-index: 600;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.pmg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 28px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .2s;
  font-family: var(--pmg-font-body);
  white-space: nowrap;
  text-decoration: none;
}
.pmg-btn-primary { background: var(--pmg-primary); color: #fff; border-color: var(--pmg-primary); }
.pmg-btn-primary:hover { background: var(--pmg-primary-dark); border-color: var(--pmg-primary-dark); color: #fff; }
.pmg-btn-accent { background: var(--pmg-accent); color: #fff; border-color: var(--pmg-accent); }
.pmg-btn-accent:hover { filter: brightness(.9); color: #fff; }
.pmg-btn-outline { background: transparent; color: var(--pmg-primary); border-color: var(--pmg-primary); }
.pmg-btn-outline:hover { background: var(--pmg-primary); color: #fff; }
.pmg-btn-sm { padding: 7px 16px; font-size: 13px; }
.pmg-btn-lg { padding: 14px 32px; font-size: 16px; }
.pmg-btn-full { width: 100%; }

/* ===================================================================
   CARDS
   =================================================================== */
.pmg-card {
  background: var(--pmg-white);
  border-radius: var(--pmg-card-radius);
  box-shadow: var(--pmg-shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.pmg-card:hover { transform: translateY(-4px); box-shadow: var(--pmg-shadow-hover); }

.pmg-card-img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 0; }
.pmg-card-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--pmg-primary-light), #a5d6a7); display: flex; align-items: center; justify-content: center; font-size: 3rem; }

.pmg-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.pmg-card-category { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--pmg-primary); margin-bottom: 6px; }
.pmg-card-title { font-family: var(--pmg-font-heading); font-weight: 700; font-size: 16px; line-height: 1.3; margin-bottom: 6px; color: var(--pmg-text); }
.pmg-card-desc { font-size: 13px; color: var(--pmg-text-muted); line-height: 1.55; flex: 1; }
.pmg-card-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--pmg-text-muted); }
.pmg-card-location { font-size: 12px; color: var(--pmg-text-muted); margin-bottom: 4px; }

/* Card variants */
.pmg-card-horizontal { display: grid; grid-template-columns: 160px 1fr; }
.pmg-card-horizontal .pmg-card-img { width: 160px; height: 100%; min-height: 120px; border-radius: 0; }
.pmg-card-mini { grid-template-columns: 80px 1fr; }
.pmg-card-mini .pmg-card-img { width: 80px; height: 80px; border-radius: var(--pmg-radius-sm) 0 0 var(--pmg-radius-sm); object-fit: cover; }

/* ===================================================================
   GRIDS
   =================================================================== */
.pmg-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pmg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pmg-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pmg-grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ===================================================================
   RATINGS & STARS
   =================================================================== */
.pmg-stars { color: #F5A623; letter-spacing: 1px; }
.pmg-rating-block { display: flex; align-items: center; gap: 8px; }
.pmg-rating-num { font-size: 18px; font-weight: 700; }
.pmg-rating-count { font-size: 12px; color: var(--pmg-text-muted); }

/* ===================================================================
   TAGS & PILLS
   =================================================================== */
.pmg-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pmg-tag { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; background: var(--pmg-primary-light); color: var(--pmg-primary); }
.pmg-tag-secondary { background: var(--pmg-secondary-light); color: var(--pmg-secondary); }
.pmg-tag-accent { background: var(--pmg-accent-light); color: var(--pmg-accent); }
.pmg-tag-gray { background: #F3F4F6; color: var(--pmg-text-muted); }

.pmg-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.pmg-badge-green { background: #D4EDDA; color: #155724; }
.pmg-badge-orange { background: #FFF3CD; color: #856404; }
.pmg-badge-blue { background: #CCE5FF; color: #004085; }
.pmg-badge-red { background: #F8D7DA; color: #721C24; }

/* ===================================================================
   FILTER BAR
   =================================================================== */
.pmg-filter-bar {
  background: var(--pmg-white);
  border-bottom: 1px solid var(--pmg-border);
  padding: 12px 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  position: sticky;
  top: 105px;
  z-index: 90;
  overflow-x: auto;
  scrollbar-width: none;
}
.pmg-filter-bar::-webkit-scrollbar { display: none; }

.pmg-filter-chip {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--pmg-border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  background: var(--pmg-white);
  transition: .2s;
  -webkit-user-select: none;
  user-select: none;
}
.pmg-filter-chip:hover { border-color: var(--pmg-primary); color: var(--pmg-primary); }
.pmg-filter-chip.active { border-color: var(--pmg-primary); background: var(--pmg-primary-light); color: var(--pmg-primary); }

/* ===================================================================
   HERO SECTIONS
   =================================================================== */
.pmg-hero {
  background: linear-gradient(135deg, var(--pmg-primary-dark) 0%, #1a3a5c 100%);
  padding: 72px 24px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pmg-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--pmg-bg));
}
.pmg-hero h1 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pmg-hero p { font-size: 17px; opacity: .9; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

.pmg-hero-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto 16px;
}
.pmg-hero-search input {
  width: 100%;
  padding: 18px 24px 18px 56px;
  border-radius: 36px;
  border: none;
  font-size: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  font-family: var(--pmg-font-body);
  outline: none;
}
.pmg-hero-search .pmg-btn-accent { position: absolute; right: 6px; top: 6px; }
.pmg-hero-search .pmg-search-ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--pmg-text-muted); width: 20px; }

.pmg-hero-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pmg-hero-tags a {
  padding: 7px 18px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 22px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: .2s;
}
.pmg-hero-tags a:hover { background: rgba(255,255,255,.3); color: #fff; }

/* City/Category hero variant */
.pmg-hero-city {
  background: linear-gradient(135deg, var(--pmg-primary-dark), #1a3a5c);
  padding: 56px 24px;
  color: #fff;
}
.pmg-hero-city-inner { max-width: var(--pmg-content-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.pmg-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 24px; }
.pmg-hero-stat { text-align: center; }
.pmg-hero-stat-val { font-size: 20px; font-weight: 700; }
.pmg-hero-stat-label { font-size: 11px; opacity: .65; }

/* ===================================================================
   SECTION LAYOUT
   =================================================================== */
.pmg-section { padding: var(--pmg-section-pad); }
.pmg-section-alt { background: var(--pmg-primary-light); }
.pmg-section-dark { background: var(--pmg-primary-dark); color: #fff; }
.pmg-section-inner { max-width: var(--pmg-content-width); margin: 0 auto; }

.pmg-section-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.pmg-section-header h2 { font-size: clamp(20px, 2.5vw, 28px); }
.pmg-section-header a { font-size: 13px; color: var(--pmg-primary); margin-left: auto; }

/* ===================================================================
   BREADCRUMBS
   =================================================================== */
.pmg-breadcrumbs {
  padding: 10px 24px;
  font-size: 13px;
  color: var(--pmg-text-muted);
  max-width: var(--pmg-content-width);
  margin: 0 auto;
}
.pmg-breadcrumbs a { color: var(--pmg-text-muted); }
.pmg-breadcrumbs a:hover { color: var(--pmg-primary); }
.pmg-breadcrumbs .sep { margin: 0 6px; opacity: .5; }

/* ===================================================================
   SIDEBAR COMPONENTS
   =================================================================== */
.pmg-sidebar-box {
  background: var(--pmg-white);
  border-radius: var(--pmg-card-radius);
  box-shadow: var(--pmg-shadow);
  padding: 20px;
}
.pmg-sidebar-box h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--pmg-text); }
.pmg-sidebar-box--highlight { border: 2px solid var(--pmg-primary); }

.pmg-info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pmg-info-table tr { border-bottom: 1px solid var(--pmg-border); }
.pmg-info-table td { padding: 8px 4px; }
.pmg-info-table td:first-child { color: var(--pmg-text-muted); width: 40%; }
.pmg-info-table td:last-child { font-weight: 600; }

/* ===================================================================
   EVENTS
   =================================================================== */
.pmg-event-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pmg-border);
  align-items: flex-start;
}
.pmg-event-date {
  min-width: 52px;
  width: 52px;
  text-align: center;
  background: var(--pmg-primary);
  color: #fff;
  border-radius: 8px;
  padding: 8px 4px;
  flex-shrink: 0;
}
.pmg-event-date .day { font-size: 22px; font-weight: 700; line-height: 1; }
.pmg-event-date .mon { font-size: 11px; text-transform: uppercase; opacity: .8; }

/* ===================================================================
   ROUTE STOPS
   =================================================================== */
.pmg-stop-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pmg-border);
}
.pmg-stop-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pmg-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pmg-stop-body h4 { font-size: 15px; margin-bottom: 4px; }
.pmg-stop-body p { font-size: 13px; color: var(--pmg-text-muted); }

/* ===================================================================
   ARTICLE CONTENT
   =================================================================== */
.pmg-article-body { max-width: 760px; }
.pmg-article-body h2 { font-size: 24px; margin: 36px 0 14px; }
.pmg-article-body h3 { font-size: 20px; margin: 28px 0 12px; }
.pmg-article-body p { font-size: 16px; line-height: 1.8; margin-bottom: 18px; color: #333; }
.pmg-article-body img { width: 100%; border-radius: var(--pmg-card-radius); margin: 20px 0; }
.pmg-article-body blockquote {
  border-left: 4px solid var(--pmg-primary);
  padding: 14px 20px;
  background: var(--pmg-primary-light);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
}
.pmg-article-body ul, .pmg-article-body ol { padding-left: 24px; margin-bottom: 18px; }
.pmg-article-body li { margin-bottom: 8px; font-size: 15px; line-height: 1.65; }

/* Inline place/route/event cards within articles */
.pmg-inline-card {
  background: var(--pmg-primary-light);
  border: 1px solid #a5d6a7;
  border-radius: var(--pmg-card-radius);
  padding: 14px 16px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: center;
}
.pmg-inline-card .icon { font-size: 2.2rem; flex-shrink: 0; }
.pmg-inline-card .info { flex: 1; }
.pmg-inline-card .title { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.pmg-inline-card .meta { font-size: 12px; color: var(--pmg-text-muted); }

/* Table of Contents */
.pmg-toc {
  background: var(--pmg-white);
  border-radius: var(--pmg-card-radius);
  box-shadow: var(--pmg-shadow);
  padding: 20px;
  position: sticky;
  top: 120px;
}
.pmg-toc h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--pmg-text-muted); margin-bottom: 12px; }
.pmg-toc a {
  display: block;
  font-size: 13px;
  color: var(--pmg-text-muted);
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  transition: .2s;
  margin-bottom: 2px;
}
.pmg-toc a:hover, .pmg-toc a.pmg-toc-active { color: var(--pmg-primary); border-left-color: var(--pmg-primary); }

/* Progress bar */
.pmg-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--pmg-primary);
  z-index: 1000;
  transition: width .1s linear;
}

/* ===================================================================
   COLLECTION / RATING
   =================================================================== */
.pmg-collection-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--pmg-border);
  align-items: flex-start;
}
.pmg-collection-num { font-size: 56px; font-weight: 700; color: var(--pmg-border); line-height: 1; min-width: 64px; }
.pmg-collection-img { width: 220px; height: 140px; object-fit: cover; border-radius: var(--pmg-card-radius); flex-shrink: 0; background: var(--pmg-primary-light); display: flex; align-items: center; justify-content: center; }

/* ===================================================================
   MAP
   =================================================================== */
.pmg-map-container { width: 100%; border-radius: var(--pmg-card-radius); overflow: hidden; position: relative; }
.pmg-map-full { height: calc(100vh - 65px); border-radius: 0; }

/* ===================================================================
   SEARCH
   =================================================================== */
.pmg-search-result-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--pmg-border); }
.pmg-search-thumb { width: 80px; height: 66px; border-radius: 8px; object-fit: cover; background: var(--pmg-primary-light); flex-shrink: 0; }
.pmg-search-type { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; background: var(--pmg-primary-light); color: var(--pmg-primary); margin-bottom: 5px; }
.pmg-search-result-item mark { background: var(--pmg-accent-light); color: var(--pmg-accent); border-radius: 2px; padding: 0 2px; }

/* ===================================================================
   USER PROFILE
   =================================================================== */
.pmg-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--pmg-white);
  border-radius: var(--pmg-card-radius);
  box-shadow: var(--pmg-shadow);
}
.pmg-avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--pmg-primary), var(--pmg-accent)); }
.pmg-xp-bar { height: 6px; background: var(--pmg-border); border-radius: 3px; overflow: hidden; }
.pmg-xp-fill { height: 100%; background: linear-gradient(90deg, var(--pmg-primary), var(--pmg-accent)); border-radius: 3px; }

.pmg-profile-tabs { display: flex; border-bottom: 2px solid var(--pmg-border); margin-bottom: 24px; }
.pmg-profile-tab { padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; color: var(--pmg-text-muted); transition: .2s; }
.pmg-profile-tab.active, .pmg-profile-tab:hover { color: var(--pmg-primary); border-bottom-color: var(--pmg-primary); }

.pmg-achievement { background: var(--pmg-accent-light); border-radius: 12px; padding: 20px; text-align: center; border: 2px solid var(--pmg-accent); }
.pmg-achievement .ico { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.pmg-achievement.gold { background: #fffde7; border-color: #f5a623; }

/* ===================================================================
   CATEGORY HUB TABS
   =================================================================== */
.pmg-hub-tabs { background: var(--pmg-white); border-bottom: 1px solid var(--pmg-border); padding: 0 24px; position: sticky; top: 105px; z-index: 89; }
.pmg-hub-tabs ul { display: flex; list-style: none; max-width: var(--pmg-content-width); margin: 0 auto; }
.pmg-hub-tabs a { display: block; padding: 14px 20px; font-size: 14px; font-weight: 600; color: var(--pmg-text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .2s; }
.pmg-hub-tabs a:hover, .pmg-hub-tabs li.active a { color: var(--pmg-primary); border-bottom-color: var(--pmg-primary); }

/* Subcategory pills */
.pmg-subcat-pills { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 0; }
.pmg-subcat-pill {
  padding: 8px 18px;
  border-radius: 24px;
  background: var(--pmg-white);
  border: 2px solid var(--pmg-border);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: .2s;
}
.pmg-subcat-pill:hover { border-color: var(--pmg-primary); color: var(--pmg-primary); }
.pmg-subcat-pill.active { background: var(--pmg-primary); color: #fff; border-color: var(--pmg-primary); }

/* ===================================================================
   EDITORIAL SCORE
   =================================================================== */
.pmg-editorial-score {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--pmg-primary-light);
  border-radius: var(--pmg-card-radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.pmg-score-num { font-size: 42px; font-weight: 700; color: var(--pmg-primary); line-height: 1; }
.pmg-score-label { font-weight: 700; margin-bottom: 4px; }
.pmg-score-desc { font-size: 13px; color: var(--pmg-text-muted); }

/* ===================================================================
   GALLERY
   =================================================================== */
.pmg-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-bottom: 20px; }
.pmg-gallery-main { border-radius: var(--pmg-card-radius); overflow: hidden; aspect-ratio: 3/2; }
.pmg-gallery-thumbs { display: flex; flex-direction: column; gap: 8px; }
.pmg-gallery-thumb { border-radius: var(--pmg-radius-sm); overflow: hidden; flex: 1; }
.pmg-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===================================================================
   MOBILE BOTTOM NAV
   =================================================================== */
.pmg-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pmg-white);
  border-top: 1px solid var(--pmg-border);
  z-index: 800;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.pmg-mobile-nav ul { display: flex; list-style: none; }
.pmg-mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; font-size: 10px; color: var(--pmg-text-muted); font-weight: 500; flex: 1; transition: .2s; }
.pmg-mobile-nav a:hover, .pmg-mobile-nav .active a { color: var(--pmg-primary); }
.pmg-mobile-nav .nav-ico { font-size: 20px; }

/* ===================================================================
   FOOTER
   =================================================================== */
.pmg-footer { background: #1a1a2e; color: #c8d6e5; padding: 56px 24px 24px; }
.pmg-footer-inner { max-width: var(--pmg-content-width); margin: 0 auto; }
.pmg-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.pmg-footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; font-family: var(--pmg-font-body); }
.pmg-footer a { display: block; font-size: 13px; color: #94a3b8; margin-bottom: 8px; transition: .2s; }
.pmg-footer a:hover { color: #fff; }
.pmg-footer-bottom { border-top: 1px solid #2d2d4e; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: #64748b; }
.pmg-footer-logo { font-family: var(--pmg-font-heading); font-size: 20px; color: var(--pmg-accent); margin-bottom: 12px; display: block; }
.pmg-footer-desc { font-size: 13px; line-height: 1.6; max-width: 280px; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .pmg-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pmg-layout-sidebar { grid-template-columns: 1fr; }
  .pmg-footer-grid { grid-template-columns: 1fr 1fr; }
  .pmg-hero-city-inner { grid-template-columns: 1fr; }
  .pmg-layout-catalog { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --pmg-section-pad: 28px 16px; }
  .pmg-grid-3 { grid-template-columns: 1fr 1fr; }
  .pmg-grid-4 { grid-template-columns: 1fr 1fr; }
  .pmg-header-top { display: none; }
  .pmg-header-nav { display: none; }
  .pmg-mobile-nav { display: block; }
  body { padding-bottom: 60px; }
  .pmg-hero { padding: 48px 16px; }
  .pmg-hero h1 { font-size: 28px; }
  .pmg-filter-bar { top: 60px; }
  .pmg-gallery { grid-template-columns: 1fr; }
  .pmg-gallery-thumbs { flex-direction: row; }
  .pmg-layout-catalog { grid-template-columns: 1fr; }
  .pmg-footer-grid { grid-template-columns: 1fr; }
  .pmg-collection-img { display: none; }
}

@media (max-width: 480px) {
  .pmg-grid-2, .pmg-grid-3, .pmg-grid-4 { grid-template-columns: 1fr; }
  .pmg-hero-search .pmg-btn-accent { display: none; }
  .pmg-hub-tabs { overflow-x: auto; }
}

/* ===================================================================
   UTILITIES
   =================================================================== */
.pmg-mt-0 { margin-top: 0; }
.pmg-mt-8 { margin-top: 8px; }
.pmg-mt-16 { margin-top: 16px; }
.pmg-mt-24 { margin-top: 24px; }
.pmg-mt-32 { margin-top: 32px; }
.pmg-mb-16 { margin-bottom: 16px; }
.pmg-mb-24 { margin-bottom: 24px; }
.pmg-text-center { text-align: center; }
.pmg-text-muted { color: var(--pmg-text-muted); }
.pmg-hidden { display: none !important; }

/* ===================================================================
   SCHEMA / MICRODATA (visual indicators in dev)
   =================================================================== */
[itemtype] { /* No visual style, but preserve microdata attributes */ }

/* ===================================================================
   SVG ICON SYSTEM
   =================================================================== */

/* Base icon */
.pmg-ico {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: opacity .15s;
}

/* Sizes */
.pmg-ico--xs  { width: 14px; height: 14px; }
.pmg-ico--sm  { width: 16px; height: 16px; }
.pmg-ico--md  { width: 20px; height: 20px; }
.pmg-ico--lg  { width: 24px; height: 24px; }
.pmg-ico--xl  { width: 32px; height: 32px; }
.pmg-ico--2xl { width: 40px; height: 40px; }
.pmg-ico--3xl { width: 48px; height: 48px; }

/* Color variants */
.pmg-ico--primary  { color: var(--pmg-primary); }
.pmg-ico--secondary{ color: var(--pmg-secondary); }
.pmg-ico--accent   { color: var(--pmg-accent); }
.pmg-ico--muted    { color: var(--pmg-text-muted); }
.pmg-ico--white    { color: #fff; }
.pmg-ico--inherit  { color: inherit; }

/* Icon + text inline pattern */
.pmg-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--pmg-text-muted);
}
.pmg-icon-label strong { color: var(--pmg-text); }

/* Icon Button */
.pmg-ico-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--pmg-text-muted);
  transition: background .2s, color .2s;
}
.pmg-ico-btn:hover { background: var(--pmg-primary-light); color: var(--pmg-primary); }

/* Category icon block (used in grid) */
.pmg-cat-icon-block {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pmg-primary-light);
  color: var(--pmg-primary);
  flex-shrink: 0;
  transition: background .2s;
}
.pmg-cat-icon-block:hover,
.pmg-card:hover .pmg-cat-icon-block {
  background: var(--pmg-primary);
  color: #fff;
}

/* Stat icon row */
.pmg-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--pmg-border);
  color: var(--pmg-text-muted);
}
.pmg-stat-row:last-child { border-bottom: none; }
.pmg-stat-row strong { color: var(--pmg-text); font-weight: 600; }
.pmg-stat-row .pmg-ico { color: var(--pmg-primary); }

/* Icon in nav mobile bottom bar */
.pmg-mobile-nav .nav-ico svg { display: block; }

/* Rating stars as SVG */
.pmg-stars-row {
  display: flex;
  gap: 2px;
}
.pmg-stars-row .pmg-ico { color: #F5A623; }

/* Feature badges (accessibility, parking, etc.) */
.pmg-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--pmg-primary-light);
  color: var(--pmg-primary);
}
.pmg-feature-badge.blue   { background: var(--pmg-secondary-light); color: var(--pmg-secondary); }
.pmg-feature-badge.orange { background: var(--pmg-accent-light);    color: var(--pmg-accent); }
.pmg-feature-badge.gray   { background: #F3F4F6; color: var(--pmg-text-muted); }

/* Section header icon */
.pmg-section-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--pmg-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===================================================================
   PLACE OVERLAY CARDS (v9) — used in archive-place.php + home
   =================================================================== */
.pmg-place-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--pmg-card-radius);
  box-shadow: var(--pmg-shadow);
  text-decoration: none;
  background: var(--pmg-white);
  transition: transform .22s, box-shadow .22s;
}
.pmg-place-card:hover { transform: translateY(-4px); box-shadow: var(--pmg-shadow-hover); }
.pmg-place-card:hover .pmg-place-card-img { transform: scale(1.05); }

.pmg-place-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform .35s ease;
}

/* Dark gradient overlay — key for readability */
.pmg-place-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 52px 16px 16px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.84) 0%,
    rgba(0,0,0,.52) 45%,
    rgba(0,0,0,.12) 75%,
    transparent 100%
  );
}

.pmg-place-card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.7);
  margin-bottom: 5px;
}

.pmg-place-card-overlay-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.pmg-place-card-overlay-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  margin-top: 6px;
}

/* Placeholder block when no image */
.pmg-place-card-placeholder {
  height: 220px;
  background: linear-gradient(135deg, var(--pmg-primary-light) 0%, #c8e6c9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--pmg-primary);
  font-size: 13px;
  font-weight: 600;
}

/* ── FEATURED (first) card ── */
.pmg-place-card-featured .pmg-place-card-img {
  height: 400px;
}
.pmg-place-card-featured .pmg-place-card-overlay {
  padding: 100px 24px 28px;
}
.pmg-place-card-featured .pmg-place-card-overlay-title {
  font-size: clamp(20px, 2.8vw, 30px);
}
.pmg-place-card-placeholder-featured {
  height: 400px;
}

@media (max-width: 600px) {
  .pmg-place-card-featured .pmg-place-card-img,
  .pmg-place-card-placeholder-featured { height: 260px; }
  .pmg-place-card-featured .pmg-place-card-overlay { padding: 60px 16px 20px; }
  .pmg-place-card-featured .pmg-place-card-overlay-title { font-size: 20px; }
}

/* ===================================================================
   HEADER — GREEN BRAND STYLE (v10 — hardcoded hex, no variables)
   =================================================================== */
header.pmg-site-header,
.pmg-site-header {
  background: #2C5F2E !important;
  border-bottom: none !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.22) !important;
}
.pmg-site-header .pmg-header-top,
header .pmg-header-top,
.pmg-header-top {
  background: #1A3D1C !important;
  color: rgba(255,255,255,.82) !important;
}
.pmg-site-header .pmg-header-top .pmg-icon-label,
.pmg-site-header .pmg-header-top span { color: rgba(255,255,255,.82); }
/* Main header row inherits green from parent — explicitly set too */
.pmg-site-header .pmg-header-main,
header .pmg-header-main {
  background: #2C5F2E !important;
}
.pmg-site-header .pmg-logo-mark,
header .pmg-logo-mark {
  background: #fff !important;
  color: #2C5F2E !important;
}
.pmg-site-header .pmg-logo-text,
header .pmg-logo-text { color: #fff !important; }
.pmg-site-header .pmg-logo-text em,
header .pmg-logo-text em { color: #E87722 !important; font-style: normal !important; }
.pmg-site-header .pmg-header-search input,
header .pmg-header-search input {
  background: rgba(255,255,255,.95) !important;
  border-color: transparent !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.12) !important;
}
.pmg-site-header .pmg-header-search input:focus { border-color: #E87722 !important; }
.pmg-site-header .pmg-header-nav,
header .pmg-header-nav,
.pmg-header-nav {
  background: #1A3D1C !important;
  border-top: none !important;
}
.pmg-site-header .pmg-header-nav a,
header .pmg-header-nav a,
.pmg-header-nav a { color: rgba(255,255,255,.82) !important; border-bottom-color: transparent !important; }
.pmg-site-header .pmg-header-nav a:hover,
header .pmg-header-nav a:hover,
.pmg-header-nav a:hover,
.pmg-header-nav .current-menu-item a {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border-bottom-color: #E87722 !important;
}
.pmg-site-header .pmg-btn-outline,
header .pmg-site-header .pmg-btn-outline {
  border-color: rgba(255,255,255,.5) !important;
  color: #fff !important;
  background: transparent !important;
}
.pmg-site-header .pmg-btn-outline:hover { background: rgba(255,255,255,.12) !important; }
/* Accent button stays orange */
.pmg-site-header .pmg-btn-accent { background: #E87722 !important; color: #fff !important; border-color: #E87722 !important; }

/* ===================================================================
   CARD IMAGE FIX — object-fit on img, not div
   =================================================================== */
.pmg-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 0; }

/* ===================================================================
   ARCHIVE HEADER (used by article/place/event archives)
   =================================================================== */
.pmg-archive-header { background: #fff; border-bottom: 1px solid var(--pmg-border); padding: 20px 0; }
.pmg-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; font-size: 15px; }
.pmg-pagination a, .pmg-pagination span { padding: 8px 14px; border: 1.5px solid var(--pmg-border); border-radius: 8px; color: var(--pmg-text); text-decoration: none; transition: .2s; }
.pmg-pagination a:hover { border-color: var(--pmg-primary); color: var(--pmg-primary); }
.pmg-pagination .current { background: var(--pmg-primary); color: #fff; border-color: var(--pmg-primary); }

/* ===================================================================
   ARTICLE PAGE — LAYOUT & TYPOGRAPHY
   =================================================================== */
.pmg-article-wrap { padding-top: 0; padding-bottom: 48px; }
.pmg-article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; padding-top: 24px; }
.pmg-article-main  { min-width: 0; }
.pmg-article-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }

.pmg-article-h1 { font-size: clamp(22px, 2.8vw, 34px); font-weight: 800; line-height: 1.22; letter-spacing: -0.025em; margin-bottom: 16px; color: var(--pmg-text); }

.pmg-article-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--pmg-text-muted); flex-wrap: wrap; margin-bottom: 20px; }
.pmg-article-meta-author { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--pmg-text); }
.pmg-meta-sep { color: var(--pmg-border); }
.pmg-article-hero { margin-bottom: 28px; border-radius: 10px; overflow: hidden; max-height: 400px; }
.pmg-article-hero img { width: 100%; object-fit: cover; display: block; }

/* Article body text */
.pmg-article-body { font-size: 16px; line-height: 1.78; color: var(--pmg-text); }
.pmg-article-body h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; letter-spacing: -0.02em; }
.pmg-article-body h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.pmg-article-body p  { margin-bottom: 18px; }
.pmg-article-body img { border-radius: 8px; margin: 20px 0; max-width: 100%; }
.pmg-article-body ul, .pmg-article-body ol { padding-left: 24px; margin-bottom: 18px; }
.pmg-article-body li { margin-bottom: 8px; line-height: 1.65; }
.pmg-article-body blockquote {
  border-left: 4px solid var(--pmg-primary);
  background: var(--pmg-primary-light);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 10px 10px 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--pmg-text);
}
.pmg-article-body blockquote p { margin: 0; }

/* Cross-taxonomy nav */
.pmg-article-taxonomy-nav { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--pmg-border); border-bottom: 1px solid var(--pmg-border); margin: 24px 0; }
.pmg-taxnav-block { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pmg-taxnav-label { font-size: 13px; color: var(--pmg-text-muted); white-space: nowrap; display: flex; align-items: center; gap: 4px; }

/* Share bar */
.pmg-share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--pmg-border); font-size: 14px; font-weight: 600; margin-bottom: 24px; }

/* Author box */
.pmg-author-box { display: flex; gap: 16px; background: var(--pmg-primary-light); border: 1px solid #c8e6c9; border-radius: 12px; padding: 20px; margin: 24px 0 36px; }
.pmg-author-info  { flex: 1; }
.pmg-author-name  { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.pmg-author-role  { font-size: 11px; color: var(--pmg-primary); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.pmg-author-bio   { font-size: 13px; color: var(--pmg-text-muted); line-height: 1.6; margin: 0; }

/* Avatars */
.pmg-avatar-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--pmg-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.pmg-avatar-md { width: 40px; height: 40px; border-radius: 50%; background: var(--pmg-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.pmg-avatar-lg { width: 56px; height: 56px; border-radius: 50%; background: var(--pmg-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; flex-shrink: 0; }

/* Related section */
.pmg-related-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--pmg-border); }
.pmg-related-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

/* Sidebar cards */
.pmg-sidebar-card { background: var(--pmg-white); border: 1px solid var(--pmg-border); border-radius: 10px; padding: 16px; }
.pmg-sidebar-card-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--pmg-text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.pmg-sidebar-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--pmg-border); text-decoration: none; color: var(--pmg-text); transition: color .15s; }
.pmg-sidebar-item:last-of-type { border-bottom: none; }
.pmg-sidebar-item:hover .pmg-sidebar-item-title { color: var(--pmg-primary); }
.pmg-sidebar-thumb { width: 56px; height: 56px; flex-shrink: 0; overflow: hidden; border-radius: 6px; }
.pmg-sidebar-thumb img { width: 56px; height: 56px; object-fit: cover; display: block; }
.pmg-sidebar-thumb-empty { background: var(--pmg-primary-light); display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 6px; }
.pmg-sidebar-item-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--pmg-text); margin-bottom: 2px; }
.pmg-sidebar-item-meta  { font-size: 11px; color: var(--pmg-text-muted); }
.pmg-sidebar-more { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--pmg-primary); font-weight: 600; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--pmg-border); text-decoration: none; }

/* TOC */
.pmg-toc-links { display: flex; flex-direction: column; }
.pmg-toc-link { font-size: 13px; color: var(--pmg-text-muted); padding: 4px 0 4px 10px; border-left: 2px solid var(--pmg-border); text-decoration: none; transition: .15s; display: block; }
.pmg-toc-link:hover, .pmg-toc-link.pmg-toc-active { color: var(--pmg-primary); border-left-color: var(--pmg-primary); }
.pmg-toc-sub { padding-left: 20px; font-size: 12px; }

/* Breadcrumb */
.pmg-breadcrumb-current { color: var(--pmg-text-muted); }

/* Utilities */
.pmg-mb-12 { margin-bottom: 12px !important; }
.pmg-mb-16 { margin-bottom: 16px !important; }

/* ===================================================================
   RESPONSIVE — ARTICLE
   =================================================================== */
@media (max-width: 720px) {
  .pmg-article-layout { grid-template-columns: 1fr; }
  .pmg-article-sidebar { position: static; }
}

/* ===================================================================
   SINGLE PLACE — HERO IMAGE
   =================================================================== */
.pmg-place-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}
.pmg-place-hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.pmg-place-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 100px 0 28px;
  background: linear-gradient(to top, rgba(0,0,0,.84) 0%, rgba(0,0,0,.38) 50%, transparent 100%);
}
.pmg-place-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.pmg-place-hero-title {
  font-size: clamp(24px, 3.5vw, 40px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
  margin: 0 0 12px !important;
  line-height: 1.2;
}
.pmg-place-hero-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.pmg-place-hero-stars { color: #F5A623; font-size: 18px; }
.pmg-place-hero-map-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,.5);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  text-decoration: none;
  transition: background .2s;
}
.pmg-place-hero-map-btn:hover { background: rgba(0,0,0,.72); color: #fff !important; }
.pmg-place-hero-noimg {
  background: #E8F5E9;
  border-bottom: 1px solid #c8e6c9;
  padding: 32px 0;
}
/* Gallery thumbnail strip */
.pmg-place-thumbs {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pmg-place-thumbs::-webkit-scrollbar { display: none; }
.pmg-place-thumb {
  width: 100px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}
.pmg-place-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.pmg-place-thumb:hover img { transform: scale(1.06); }
.pmg-place-thumb-more {
  background: rgba(0,0,0,.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  width: 100px;
  height: 70px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .pmg-place-hero-img { height: 260px; }
  .pmg-place-hero-title { font-size: 22px !important; }
  .pmg-place-hero-overlay { padding: 60px 0 20px; }
}

/* ===================================================================
   REVIEWS / ОТЗЫВЫ
   =================================================================== */
.pmg-reviews-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.pmg-review-card {
  background: var(--pmg-white);
  border: 1px solid var(--pmg-border);
  border-radius: 10px;
  padding: 16px;
}
.pmg-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pmg-review-text { font-size: 14px; line-height: 1.65; color: var(--pmg-text); margin: 0; }
.pmg-review-form {
  background: var(--pmg-white);
  border: 2px solid #E8F5E9;
  border-radius: 12px;
  padding: 24px;
  margin-top: 28px;
}
.pmg-review-form h3 { font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.pmg-star-selector { display: flex; gap: 4px; }
.pmg-star-btn {
  font-size: 32px;
  color: #D1D5DB;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color .1s, transform .12s;
}
.pmg-star-btn.active { color: #F5A623; }
.pmg-star-btn:hover { transform: scale(1.18); }

/* ===================================================================
   CONTENT TABLES — красивые таблицы в статьях и материалах
   =================================================================== */

/* Обёртка для горизонтального скролла на мобильных */
.pmg-article-body table,
.pmg-article-body .wp-block-table {
  width: 100%;
  margin: 28px 0;
}

.pmg-article-body .wp-block-table {
  overflow-x: auto;
  display: block;
}

/* Основной стиль таблицы */
.pmg-article-body table {
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  display: table; /* переопределяем display:block выше */
}

/* Шапка таблицы — зелёная, бренд */
.pmg-article-body table thead tr,
.pmg-article-body table tr:first-child {
  background: var(--pmg-primary);
  color: #fff;
}

.pmg-article-body table thead th,
.pmg-article-body table tr:first-child th,
.pmg-article-body table tr:first-child td {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  border: none;
  white-space: nowrap;
}

/* Ячейки данных */
.pmg-article-body table td,
.pmg-article-body table th {
  padding: 11px 16px;
  border: 1px solid var(--pmg-border);
  vertical-align: top;
  color: var(--pmg-text);
}

/* Зебра-строки */
.pmg-article-body table tbody tr:nth-child(even),
.pmg-article-body table tr:nth-child(even):not(:first-child) {
  background: #f9fafb;
}

.pmg-article-body table tbody tr:nth-child(odd),
.pmg-article-body table tr:nth-child(odd):not(:first-child) {
  background: #fff;
}

/* Hover на строках */
.pmg-article-body table tbody tr:hover,
.pmg-article-body table tr:not(:first-child):hover {
  background: var(--pmg-primary-light) !important;
  transition: background .15s;
}

/* Скруглённые углы у первой/последней ячейки */
.pmg-article-body table thead tr th:first-child,
.pmg-article-body table tr:first-child th:first-child,
.pmg-article-body table tr:first-child td:first-child {
  border-radius: 10px 0 0 0;
}
.pmg-article-body table thead tr th:last-child,
.pmg-article-body table tr:first-child th:last-child,
.pmg-article-body table tr:first-child td:last-child {
  border-radius: 0 10px 0 0;
}
.pmg-article-body table tbody tr:last-child td:first-child,
.pmg-article-body table tr:last-child td:first-child {
  border-radius: 0 0 0 10px;
}
.pmg-article-body table tbody tr:last-child td:last-child,
.pmg-article-body table tr:last-child td:last-child {
  border-radius: 0 0 10px 0;
}

/* Жирный первый столбец (опционально, частая практика) */
.pmg-article-body table td:first-child {
  font-weight: 500;
}

/* Caption / подпись */
.pmg-article-body table caption {
  font-size: 12px;
  color: var(--pmg-text-muted);
  padding: 8px 0 4px;
  text-align: left;
  caption-side: bottom;
  font-style: italic;
}

/* Мобильный — горизонтальный скролл */
@media (max-width: 680px) {
  .pmg-article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
    border-radius: 8px;
  }
  .pmg-article-body table td,
  .pmg-article-body table th { padding: 9px 12px; }
}

/* ===================================================================
   SINGLE PLACE v11 — ПОЛНАЯ СТРАНИЦА МЕСТА
   =================================================================== */

/* ── Герой (переопределяем старые классы новой схемой именования) ── */
.pmg-place-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1A3D1C;
  margin-bottom: 0;
}
.pmg-place-hero__img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.pmg-place-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.42) 45%, transparent 100%);
}
.pmg-place-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 110px 40px 32px;
}
.pmg-place-hero__content--onimg { /* когда поверх картинки */ }
.pmg-place-hero--noimg .pmg-place-hero__content {
  position: static;
  padding: 32px 40px;
}
.pmg-place-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.pmg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.pmg-badge:hover { opacity: .85; }
.pmg-badge--cat  { background: var(--pmg-accent); color: #fff; }
.pmg-badge--city { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.pmg-place-hero--noimg .pmg-badge--city { background: var(--pmg-primary-light); color: var(--pmg-primary); border-color: var(--pmg-primary); }
.pmg-place-hero--noimg .pmg-badge--cat  { background: var(--pmg-accent); }

.pmg-place-hero__title {
  font-size: clamp(22px, 3.5vw, 42px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
  margin: 0 0 12px !important;
  line-height: 1.2;
}
.pmg-place-hero--noimg .pmg-place-hero__title {
  color: var(--pmg-primary) !important;
  text-shadow: none;
}
.pmg-place-hero__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.pmg-rating-cnt { font-weight: 400; opacity: .8; font-size: 13px; }
.pmg-place-hero__map-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(0,0,0,.48);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28);
  text-decoration: none !important;
  transition: background .2s;
}
.pmg-place-hero__map-btn:hover { background: rgba(0,0,0,.7); }
@media (max-width: 640px) {
  .pmg-place-hero__img       { height: 260px; }
  .pmg-place-hero__content   { padding: 70px 20px 24px; }
  .pmg-place-hero--noimg .pmg-place-hero__content { padding: 24px 20px; }
  .pmg-place-hero__map-btn   { top: 10px; right: 10px; padding: 7px 12px; font-size: 12px; }
}

/* ── Миниатюры галереи ── */
.pmg-place-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pmg-place-thumbs::-webkit-scrollbar { display: none; }
.pmg-place-thumb {
  position: relative;
  width: 100px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.pmg-place-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.pmg-place-thumb:hover img { transform: scale(1.07); }
.pmg-thumb-more {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.52);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ── Layout: две колонки ── */
.pmg-place-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  padding-top: 20px;
  padding-bottom: 48px;
}
@media (max-width: 860px) {
  .pmg-place-layout { grid-template-columns: 1fr; gap: 0; }
}

/* ── Главная колонка ── */
.pmg-place-main { min-width: 0; }
.pmg-place-desc { margin-bottom: 32px; }

.pmg-place-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--pmg-border); }
.pmg-place-section__h {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--pmg-text) !important;
  margin: 0 0 18px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pmg-reviews-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pmg-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.pmg-reviews-avg {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--pmg-text-muted);
  margin-left: auto;
}

/* Карта */
.pmg-place-map-iframe {
  border-radius: 10px;
  display: block;
  border: none;
}
.pmg-place-directions { font-size: 15px; line-height: 1.7; color: var(--pmg-text); }

/* ── Инфокарточка ── */
.pmg-info-card { margin-bottom: 20px; }
.pmg-info-card--mobile { display: none; }
.pmg-info-card--desktop { display: block; }
@media (max-width: 860px) {
  .pmg-info-card--mobile  { display: block; margin-bottom: 24px; }
  .pmg-info-card--desktop { display: none; }
}
.pmg-info-card__inner {
  background: var(--pmg-white);
  border: 1px solid var(--pmg-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.pmg-info-card__title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--pmg-text) !important;
  margin: 0 0 16px !important;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pmg-info-card__hint {
  font-size: 13px;
  color: var(--pmg-accent);
  background: var(--pmg-accent-light);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0 0 14px;
}
.pmg-info-card__empty { font-size: 13px; color: var(--pmg-text-muted); margin: 0 0 14px; font-style: italic; }
.pmg-info-card__map-btn {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  font-size: 14px;
}

.pmg-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pmg-info-item { display: flex; align-items: flex-start; gap: 10px; }
.pmg-info-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--pmg-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pmg-primary);
  margin-top: 1px;
}
.pmg-info-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pmg-info-label { font-size: 11px; font-weight: 600; color: var(--pmg-text-muted); text-transform: uppercase; letter-spacing: .4px; }
.pmg-info-value { font-size: 14px; color: var(--pmg-text); line-height: 1.5; word-break: break-word; }
a.pmg-info-value { color: var(--pmg-primary); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; }
a.pmg-info-value:hover { text-decoration-color: var(--pmg-primary); }

/* ── Сайдбар блоки ── */
.pmg-place-sidebar { min-width: 0; }
.pmg-sidebar-block { background: var(--pmg-white); border: 1px solid var(--pmg-border); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.pmg-sidebar-block__h {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--pmg-text) !important;
  margin: 0 0 14px !important;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pmg-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.pmg-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--pmg-primary-light);
  color: var(--pmg-primary);
  text-decoration: none;
  transition: background .2s;
}
.pmg-tag:hover { background: var(--pmg-primary); color: #fff; }
.pmg-tag--muted { background: #f0f0f0; color: var(--pmg-text-muted); cursor: default; }

/* Рядом */
.pmg-nearby-list { display: flex; flex-direction: column; gap: 10px; }
.pmg-nearby-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 8px;
  padding: 4px 6px;
  transition: background .15s;
}
.pmg-nearby-item:hover { background: var(--pmg-primary-light); }
.pmg-nearby-img {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.pmg-nearby-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmg-nearby-noimg {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  background: var(--pmg-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pmg-primary);
  flex-shrink: 0;
}
.pmg-nearby-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pmg-nearby-title { font-size: 13px; font-weight: 600; color: var(--pmg-text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pmg-nearby-city  { font-size: 11px; color: var(--pmg-text-muted); }
.pmg-sidebar-more-link { display: block; margin-top: 10px; font-size: 13px; color: var(--pmg-primary); text-decoration: none; font-weight: 600; }
.pmg-sidebar-more-link:hover { text-decoration: underline; }

/* Статьи в сайдбаре */
.pmg-sidebar-arts { display: flex; flex-direction: column; gap: 10px; }
.pmg-sidebar-art-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pmg-text);
  text-decoration: none;
  border-radius: 6px;
  padding: 4px 6px;
  transition: background .15s;
}
.pmg-sidebar-art-item:hover { background: var(--pmg-primary-light); color: var(--pmg-primary); }
.pmg-sidebar-art-item img { width: 48px; height: 36px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }

/* Кнопка карты в сайдбаре */
.pmg-sidebar-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  font-size: 14px;
}

/* ── Отзывы (v11 обновление) ── */
.pmg-review-card { background: var(--pmg-white); border: 1px solid var(--pmg-border); border-radius: 10px; padding: 18px; }
.pmg-review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pmg-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pmg-primary);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pmg-review-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pmg-review-meta strong { font-size: 14px; color: var(--pmg-text); }
.pmg-review-meta time { font-size: 12px; color: var(--pmg-text-muted); }
.pmg-review-stars { display: flex; gap: 2px; margin-left: auto; }
.pmg-review-text { font-size: 14px; line-height: 1.65; color: var(--pmg-text); margin: 0; }
.pmg-reviews-empty { color: var(--pmg-text-muted); font-style: italic; margin: 0 0 24px; }

/* Форма отзыва */
.pmg-review-form-wrap { background: var(--pmg-white); border: 2px solid #E8F5E9; border-radius: 12px; padding: 24px; margin-top: 28px; }
.pmg-review-form-title { font-size: 16px !important; font-weight: 700 !important; margin: 0 0 16px !important; }
.pmg-star-selector { display: flex; align-items: center; gap: 4px; margin-bottom: 18px; }
.pmg-star-btn { background: none; border: none; cursor: pointer; padding: 0 2px; line-height: 1; transition: transform .12s; color: #D1D5DB; }
.pmg-star-btn.active { color: #F5A623; }
.pmg-star-btn:hover { transform: scale(1.18); }
.pmg-star-label { font-size: 13px; color: var(--pmg-text-muted); margin-left: 6px; min-width: 70px; }
.pmg-review-fields { display: flex; flex-direction: column; gap: 12px; }
.pmg-review-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .pmg-review-row { grid-template-columns: 1fr; } }
.pmg-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--pmg-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--pmg-text);
  background: #fff;
  transition: border-color .2s;
  box-sizing: border-box;
}
.pmg-input:focus { outline: none; border-color: var(--pmg-primary); }
.pmg-input--textarea { resize: vertical; min-height: 100px; }

/* Хинт для администратора */
.pmg-admin-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: #7a5a00;
  margin-bottom: 24px;
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
  .pmg-site-header, .pmg-mobile-nav, .pmg-filter-bar { position: static; }
  .pmg-footer { display: none; }
  .pmg-card:hover { transform: none; }
}
