:root {
      --burgundy: #6B1E2A;
      --deep-red: #8B2332;
      --gold: #C9A227;
      --cream: #F8F4EC;
      --soft-green: #2F4F3E;
      --text: #2C2C2C;
      --muted: #5A5A5A;
      --card-bg: #FFFFFF;
      --shadow: 0 12px 40px rgba(107, 30, 42, 0.12);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Source Sans 3', system-ui, sans-serif;
      background: var(--cream);
      color: var(--text);
      line-height: 1.65;
      font-size: 17px;
    }

    /* Header / Hero */
    header {
      background: linear-gradient(135deg, var(--burgundy) 0%, #4A1420 100%);
      color: white;
      padding: 4.5rem 1.5rem 5rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    header::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
      opacity: 0.6;
    }

    .hero-content {
      position: relative;
      max-width: 800px;
      margin: 0 auto;
    }

    header h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.4rem, 6vw, 3.6rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 0.75rem;
    }


    header .brand-sub {
      display: block;
      font-family: 'Source Sans 3', system-ui, sans-serif;
      font-size: clamp(1rem, 2.8vw, 1.35rem);
      font-weight: 400;
      letter-spacing: 0.04em;
      opacity: 0.92;
      margin-top: 0.35rem;
    }

    header .subtitle {
      font-size: 1.2rem;
      font-weight: 300;
      opacity: 0.92;
      max-width: 540px;
      margin: 0 auto 1.75rem;
    }

    .gold-line {
      width: 80px;
      height: 3px;
      background: var(--gold);
      margin: 0 auto 1.5rem;
      border-radius: 2px;
    }

    /* Navigation */
    /* Main */
    main {
      max-width: 1100px;
      margin: 0 auto;
      padding: 3rem 1.25rem 5rem;
    }

    .intro {
      text-align: center;
      max-width: 680px;
      margin: 0 auto 2.5rem;
    }

    .intro h2 {
      font-family: 'Playfair Display', serif;
      font-size: 1.9rem;
      color: var(--burgundy);
      margin-bottom: 1rem;
    }

    .intro p {
      color: var(--muted);
      font-size: 1.05rem;
    }

    /* Map Section */
    .map-section {
      margin-bottom: 3.5rem;
      background: white;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .map-header {
      padding: 1.25rem 1.5rem 0.75rem;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .map-header h2 {
      font-family: 'Playfair Display', serif;
      font-size: 1.45rem;
      color: var(--burgundy);
    }

    .map-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }

    .map-btn {
      background: var(--cream);
      border: 1px solid #E8D9C8;
      color: var(--burgundy);
      font-family: inherit;
      font-size: 0.8rem;
      font-weight: 600;
      padding: 0.35rem 0.75rem;
      border-radius: 999px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .map-btn:hover,
    .map-btn.active {
      background: var(--burgundy);
      color: white;
      border-color: var(--burgundy);
    }

    #trail-map {
      height: 420px;
      width: 100%;
      background: #e8e4dc;
    }

    .map-legend {
      padding: 0.85rem 1.5rem 1.1rem;
      font-size: 0.85rem;
      color: var(--muted);
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      align-items: center;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .legend-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      border: 2px solid white;
      box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    }

    /* Leaflet overrides */
    .leaflet-container {
      font-family: 'Source Sans 3', system-ui, sans-serif;
      background: #e8e4dc;
    }

    .leaflet-div-icon {
      background: transparent !important;
      border: none !important;
    }

    .leaflet-popup-content-wrapper {
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
      font-family: 'Source Sans 3', system-ui, sans-serif;
    }

    .leaflet-popup-content {
      margin: 12px 14px;
      line-height: 1.4;
    }

    .popup-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.05rem;
      color: var(--burgundy);
      margin-bottom: 0.25rem;
    }

    .popup-loc {
      font-size: 0.85rem;
      color: var(--muted);
      margin-bottom: 0.5rem;
    }

    .popup-link {
      display: inline-block;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--deep-red);
      text-decoration: none;
    }

    .popup-link:hover {
      text-decoration: underline;
    }

    /* Trail cards */



    .trail {
      background: var(--card-bg);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: var(--shadow);
      display: grid;
      grid-template-columns: 1fr;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .trail:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 50px rgba(107, 30, 42, 0.16);
    }

    @media (min-width: 780px) {
      .trail {
        grid-template-columns: 280px 1fr;
      }
    }

    .trail-visual {
      background: linear-gradient(160deg, var(--soft-green), var(--burgundy));
      min-height: 220px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 1.5rem;
      color: white;
      position: relative;
    }

    .trail-visual::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
    }

    .trail-visual>* {
      position: relative;
      z-index: 1;
    }



    .trail-visual h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.55rem;
      line-height: 1.25;
      margin-bottom: 0.25rem;
    }

    .trail-visual .trail-body {
      padding: 1.75rem 1.75rem 1.9rem;
    }

    .trail-body p {
      color: var(--muted);
      margin-bottom: 1.25rem;
    }

    .meta {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem 1.5rem;
      margin-bottom: 1.1rem;
      font-size: 0.9rem;
    }

    .meta-item {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      color: var(--text);
    }

    .meta-item strong {
      color: var(--burgundy);
      font-weight: 600;
    }

    .grapes {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      margin-bottom: 1.15rem;
    }

    .grape {
      background: #F5EDE4;
      color: var(--burgundy);
      font-size: 0.8rem;
      font-weight: 600;
      padding: 0.3rem 0.7rem;
      border-radius: 999px;
      border: 1px solid #E8D9C8;
    }

    .trail-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-bottom: 1.15rem;
    }

    .view-map-btn {
      background: var(--burgundy);
      color: white;
      border: none;
      font-family: inherit;
      font-size: 0.85rem;
      font-weight: 600;
      padding: 0.45rem 1rem;
      border-radius: 999px;
      cursor: pointer;
      transition: background 0.2s, transform 0.15s;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

    .view-map-btn:hover {
      background: var(--deep-red);
      transform: translateY(-1px);
    }

    .view-map-btn svg {
      width: 14px;
      height: 14px;
    }

    .tips {
      background: #F9F6F0;
      border-left: 4px solid var(--gold);
      padding: 0.9rem 1.1rem;
      border-radius: 0 8px 8px 0;
      font-size: 0.92rem;
      color: var(--muted);
    }

    .tips strong {
      color: var(--soft-green);
    }

    /* Elevation profile */
    .elevation {
      margin: 1.15rem 0 1.25rem;
      background: #F9F6F0;
      border-radius: 10px;
      padding: 0.9rem 1rem 0.75rem;
      border: 1px solid #EDE6DB;
    }

    .elevation-header {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: baseline;
      gap: 0.4rem 1rem;
      margin-bottom: 0.55rem;
    }

    .elevation-title {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--burgundy);
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .elevation-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem 1.1rem;
      font-size: 0.8rem;
      color: var(--muted);
    }

    .elevation-stats strong {
      color: var(--text);
      font-weight: 600;
    }

    .elevation svg {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 6px;
    }

    /* Footer */
    footer {
      background: var(--burgundy);
      color: rgba(255, 255, 255, 0.85);
      text-align: center;
      padding: 2.5rem 1.5rem;
      font-size: 0.95rem;
    }

    footer p {
      margin-top: 0.5rem;
      opacity: 0.8;
      font-size: 0.85rem;
    }

    /* Responsive */
    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
    }

    @media (max-width: 700px) {

      /* nav-toggle visibility controlled in media queries */
      nav a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
      }
    }

    @media (max-width: 600px) {
      header {
        padding: 3.2rem 1.25rem 3.8rem;
      }

      .trail-body {
        padding: 1.4rem;
      }

      #trail-map {
        height: 320px;
      }

      .map-header {
        flex-direction: column;
        align-items: flex-start;
      }
    }

    /* Hide third-party / injected flag banners on map */
    .leaflet-control-container a[href*="ukraine"],
    .leaflet-control-container [class*="ukraine"],
    .leaflet-control-container [class*="Ukraine"],
    .maplibregl-ctrl a[href*="ukraine"],
    .leaflet-bottom.leaflet-left .leaflet-control:has(img[alt*="Ukraine"]),
    .stand-with-ukraine,
    .ukraine-flag,
    #ukraine-flag {
      display: none !important;
    }


    .country-map-wrap {
      position: relative;
    }

    .country-map-toolbar {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 1000;
      display: flex;
      gap: 0.35rem;
      flex-wrap: wrap;
    }

    .country-map-toolbar button {
      background: #fff;
      border: 1px solid #d5dce8;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--burgundy);
      cursor: pointer;
      padding: 0.4rem 0.65rem;
      font-family: inherit;
    }

    .country-map-toolbar button:hover {
      background: var(--cream);
    }

    /* ——— WinoVelo tooltip class system ——— */
    .leaflet-tooltip.wv-tooltip {
      background: linear-gradient(145deg, #6B1E2A 0%, #4A1420 100%);
      color: #ffffff;
      border: none;
      border-radius: 10px;
      padding: 0.5rem 0.8rem;
      font-size: 0.8rem;
      font-weight: 600;
      font-family: "Segoe UI", system-ui, sans-serif;
      box-shadow: 0 8px 24px rgba(74, 20, 32, 0.45);
      letter-spacing: 0.015em;
      line-height: 1.35;
      opacity: 1 !important;
      max-width: 260px;
      white-space: normal;
    }

    .leaflet-tooltip.wv-tooltip::before {
      border: none;
      border-top: 7px solid #4A1420;
      margin-left: -7px;
    }

    .leaflet-tooltip-top.wv-tooltip::before {
      border-top-color: #4A1420;
      border-bottom: none;
    }

    .leaflet-tooltip-bottom.wv-tooltip::before {
      border-bottom: 7px solid #4A1420;
      border-top: none;
    }

    .leaflet-tooltip-left.wv-tooltip::before {
      border-left: 7px solid #4A1420;
      border-top: 7px solid transparent;
      border-bottom: 7px solid transparent;
      border-right: none;
    }

    .leaflet-tooltip-right.wv-tooltip::before {
      border-right: 7px solid #4A1420;
      border-top: 7px solid transparent;
      border-bottom: 7px solid transparent;
      border-left: none;
    }

    /* Variants */
    .leaflet-tooltip.wv-tooltip--trail {
      border-left: 3px solid #C9A227;
      padding-left: 0.7rem;
    }

    .leaflet-tooltip.wv-tooltip--marker {
      text-align: center;
    }

    .leaflet-tooltip.wv-tooltip--endpoint {
      background: linear-gradient(145deg, #2F4F3E 0%, #1e3328 100%);
      font-size: 0.75rem;
    }

    .leaflet-tooltip.wv-tooltip--endpoint.wv-tooltip--end {
      background: linear-gradient(145deg, #8B2332 0%, #5c1822 100%);
    }

    .leaflet-tooltip.wv-tooltip--endpoint::before {
      border-top-color: #1e3328;
    }

    .leaflet-tooltip.wv-tooltip--end::before {
      border-top-color: #5c1822 !important;
    }

    /* Content slots */
    .wv-tooltip__title {
      display: block;
      font-weight: 700;
      font-size: 0.82rem;
      color: #fff;
    }

    .wv-tooltip__meta {
      display: block;
      font-size: 0.7rem;
      font-weight: 500;
      color: #e8d9a0;
      margin-top: 0.2rem;
      opacity: 0.95;
    }

    .wv-tooltip__badge {
      display: inline-block;
      background: rgba(201, 162, 39, 0.25);
      color: #ffe566;
      font-size: 0.65rem;
      font-weight: 800;
      padding: 0.1rem 0.4rem;
      border-radius: 999px;
      margin-right: 0.35rem;
      vertical-align: middle;
    }

    /* Legacy aliases (keep older class names working) */
    .leaflet-tooltip.trail-tip,
    .leaflet-tooltip.wv-tip {
      background: linear-gradient(145deg, #6B1E2A 0%, #4A1420 100%);
      color: #fff;
      border: none;
      border-radius: 10px;
      padding: 0.5rem 0.8rem;
      font-size: 0.8rem;
      font-weight: 600;
      box-shadow: 0 8px 24px rgba(74, 20, 32, 0.45);
      opacity: 1 !important;
    }

    .leaflet-tooltip.trail-tip::before,
    .leaflet-tooltip.wv-tip::before {
      border-top-color: #4A1420 !important;
    }

    .leaflet-tooltip.wv-tip .tip-sub,
    .leaflet-tooltip.trail-tip .tip-sub,
    .leaflet-tooltip.wv-tooltip .tip-sub {
      display: block;
      font-size: 0.7rem;
      font-weight: 500;
      color: #e8d9a0;
      margin-top: 0.2rem;
    }


    .leaflet-control-attribution {
      display: none !important;
    }

    .leaflet-attribution-flag {
      display: none !important;
    }



    .map-credits {
      font-size: 0.78rem;
      opacity: 0.85;
      margin-top: 0.5rem;
    }

    .map-credits a {
      color: inherit;
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .map-credits a:hover {
      opacity: 1;
    }


    /* Unified topbar (matches map.php) */
    .topbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 2000;
      height: 64px;
      background: linear-gradient(135deg, var(--burgundy) 0%, #4A1420 100%);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1.25rem;
      box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
      overflow: visible;
      text-align: left;
    }
    header.topbar {
      overflow: visible !important;
      height: 64px !important;
      padding: 0 1.25rem !important;
      text-align: left;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      color: #fff;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, #ffe566, var(--gold, #C9A227));
      display: grid;
      place-items: center;
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
      font-size: 1.35rem;
    }

    .brand-text strong {
      display: block;
      font-size: 1.15rem;
      letter-spacing: 0.02em;
      color: #fff;
    }

    .brand-text span {
      font-size: 0.7rem;
      opacity: 0.85;
      color: #c9d4f0;
    }

    .top-nav {
      display: flex;
      gap: 0.25rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .top-nav a {
      color: #dbe4ff;
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 600;
      padding: 0.45rem 0.85rem;
      border-radius: 6px;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .top-nav a:hover,
    .top-nav a.active {
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
    }

    .top-right {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .tagline {
      color: #e8d9a0;
      font-size: 0.95rem;
      font-weight: 600;
      display: none;
    }

    .nav-toggle {
      display: none;
      width: 42px;
      height: 42px;
      border: none;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.12);
      cursor: pointer;
      padding: 0;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      z-index: 2010;
    }

    .nav-toggle span {
      display: block;
      width: 20px;
      height: 2px;
      background: #fff;
      border-radius: 1px;
      transition: transform 0.25s, opacity 0.2s;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    .nav-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      top: 64px;
      background: rgba(0, 0, 0, 0.4);
      z-index: 1990;
    }

    .nav-backdrop.open {
      display: block;
    }

    body {
      padding-top: 64px;
    }

    @media (min-width: 1100px) {
      .tagline {
        display: block;
      }
    }

    @media (max-width: 900px) {

      /* nav-toggle visibility controlled in media queries */
      .top-nav {
        display: none;
        position: fixed;
        top: 64px;
        right: 0;
        left: auto;
        width: min(280px, 85vw);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #4A1420;
        padding: 0.75rem 0;
        box-shadow: -8px 0 28px rgba(0, 0, 0, 0.3);
        z-index: 2005;
      }

      .top-nav.open {
        display: flex;
      }

      .top-nav a {
        padding: 0.85rem 1.25rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.9rem;
      }

      .top-right {
        display: none;
      }

      .brand-text span {
        display: none;
      }
    }


    .intro-subtitle {
      font-size: 1.15rem;
      color: var(--burgundy);
      font-weight: 500;
      margin: 0.35rem 0 0.85rem;
      line-height: 1.45;
      max-width: 42rem;
    }


    /* Force top-nav colors (override legacy nav rules) */
    nav.top-nav,
    .topbar .top-nav {
      background: transparent !important;
      box-shadow: none !important;
      position: static !important;
      top: auto !important;
    }

    nav.top-nav a,
    .topbar .top-nav a {
      color: #dbe4ff !important;
      background: transparent !important;
    }

    nav.top-nav a:hover,
    nav.top-nav a.active,
    .topbar .top-nav a:hover,
    .topbar .top-nav a.active {
      background: rgba(255, 255, 255, 0.12) !important;
      color: #fff !important;
    }

    @media (max-width: 900px) {

      nav.top-nav.open,
      .topbar .top-nav.open {
        background: #4A1420 !important;
        position: fixed !important;
        top: 64px !important;
        box-shadow: -8px 0 28px rgba(0, 0, 0, 0.3) !important;
      }
    }

    .festivals {
      margin-top: 1.1rem;
      padding: 1rem 1.1rem;
      background: linear-gradient(135deg, #f8f4ec 0%, #f0e6d8 100%);
      border-radius: 12px;
      border-left: 4px solid var(--gold, #C9A227);
    }

    .festivals h4,
    .museums h4 {
      font-family: 'Playfair Display', Georgia, serif;
      font-size: 1.05rem;
      color: var(--burgundy);
      margin: 0 0 0.35rem;
    }

    .fest-season {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: #5a4a3a;
      background: rgba(201, 162, 39, 0.2);
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      margin-bottom: 0.5rem;
    }

    .festivals p,
    .museums p {
      font-size: 0.92rem;
      color: var(--text);
      line-height: 1.55;
      margin: 0;
    }

    .museums {
      margin-top: 1rem;
      padding: 1rem 1.1rem;
      background: linear-gradient(135deg, #eef2f0 0%, #e4ebe6 100%);
      border-radius: 12px;
      border-left: 4px solid var(--soft-green, #2F4F3E);
    }

    .museum-places {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: #2F4F3E;
      background: rgba(47, 79, 62, 0.12);
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      margin-bottom: 0.5rem;
    }








    /* Single-column trails — name on top, no left panel */
    .trail {
      display: block !important;
      grid-template-columns: none !important;
    }

    .trail-visual {
      display: none !important;
    }


    .trail-body {
      padding: 1.25rem 1.75rem 1.9rem;
    }


    .wv-pin-wrap {
      background: transparent !important;
      border: none !important;
    }

    .wv-pin-wrap.is-active .wv-pin {
      box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.9), 0 4px 14px rgba(0, 0, 0, 0.45) !important;
    }

    .leaflet-popup.wv-popup .leaflet-popup-content-wrapper {
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
      border: 1px solid #EDE6DB;
    }

    .leaflet-popup.wv-popup .popup-title {
      font-family: 'Playfair Display', serif;
      font-weight: 700;
      color: var(--burgundy, #6B1E2A);
      font-size: 1rem;
      margin-bottom: 0.2rem;
    }

    .leaflet-popup.wv-popup .popup-loc {
      font-size: 0.8rem;
      color: #6b5a4e;
      margin-bottom: 0.55rem;
    }

    .leaflet-popup.wv-popup .popup-link {
      color: var(--burgundy, #6B1E2A);
      font-weight: 600;
      font-size: 0.85rem;
      text-decoration: none;
    }

    .leaflet-popup.wv-popup .popup-link:hover {
      text-decoration: underline;
    }


    /* Trail section header — match country pages */
    .trail-header {
      grid-column: 1 / -1;
      padding: 1.15rem 1.5rem 1rem;
      background: linear-gradient(135deg, var(--burgundy) 0%, #4A1420 100%);
      color: #fff;
      border-bottom: 3px solid var(--gold, #C9A227);
    }

    .trail-header h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.45rem;
      font-weight: 700;
      margin: 0 0 0.25rem;
      color: #fff;
      letter-spacing: -0.01em;
    }

    .trail-header .location {
      font-size: 0.9rem;
      opacity: 0.95;
      font-weight: 400;
      color: #e8d9a0;
    }

    .region-tag {
      display: inline-block;
      background: var(--gold, #C9A227);
      color: #1a1a1a;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 0.28rem 0.7rem;
      border-radius: 4px;
      margin-bottom: 0.4rem;
    }

    .trail-header .region-tag {
      background: var(--gold, #C9A227);
      color: #1a1a1a;
      border: none;
    }

    .location {
      font-size: 0.9rem;
    }


    /* nav fix desktop */
    @media (min-width: 901px) {

      .top-nav,
      nav.top-nav,
      .topbar .top-nav {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        width: auto !important;
        max-height: none !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        padding: 0 !important;
      }

      .top-nav a,
      nav.top-nav a {
        pointer-events: auto !important;
        color: #dbe4ff !important;
      }
    }

    .countries-section {
      clear: both;
    }

    .country-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #fff;
      border-radius: 12px;
      padding: 1.35rem 1.1rem;
      text-decoration: none;
      box-shadow: var(--shadow, 0 4px 18px rgba(0, 0, 0, 0.08));
      transition: transform 0.2s, box-shadow 0.2s;
      text-align: center;
      border: 1px solid #EDE6DB;
      min-height: 88px;
    }

    .country-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(107, 30, 42, 0.15);
      border-color: var(--gold, #C9A227);
    }

    .country-card-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem;
      color: var(--burgundy, #6B1E2A);
      margin-bottom: 0.3rem;
      font-weight: 700;
    }

    .country-card-sub {
      font-size: 0.8rem;
      color: var(--muted, #6b5a4e);
      line-height: 1.3;
    }



    @media (max-width: 900px) {
      .wv-pin {
        width: 30px !important;
        height: 30px !important;
      }

      .leaflet-marker-icon.wv-pin-wrap {
        z-index: 600;
      }

      .leaflet-popup.wv-popup .leaflet-popup-content {
        margin: 10px 12px;
        font-size: 0.9rem;
      }
    }









    /* Match germany-wine-trails.php route spacing */
    .trails {
      display: grid;
      gap: 2.25rem;
    }


    /* Header nav — same as germany-wine-trails.php */
    .topbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 2000;
      height: 64px;
      background: linear-gradient(135deg, var(--burgundy) 0%, #4A1420 100%);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1.25rem;
      box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
      overflow: visible;
      text-align: left;
    }
    header.topbar {
      overflow: visible !important;
      height: 64px !important;
      padding: 0 1.25rem !important;
      text-align: left;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      color: #fff;
      pointer-events: auto;
      position: relative;
      z-index: 2010;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, #ffe566, var(--gold, #C9A227));
      display: grid;
      place-items: center;
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
      font-size: 1.35rem;
    }

    .brand-text strong {
      display: block;
      font-size: 1.15rem;
      letter-spacing: 0.02em;
      color: #fff;
    }

    .brand-text span {
      font-size: 0.7rem;
      opacity: 0.85;
      color: #c9d4f0;
    }

    .top-nav {
      display: flex;
      gap: 0.25rem;
      align-items: center;
      flex-wrap: wrap;
      pointer-events: auto;
      position: relative;
      z-index: 2010;
      background: transparent;
    }

    .top-nav a {
      color: #dbe4ff;
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 600;
      padding: 0.45rem 0.85rem;
      border-radius: 6px;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      pointer-events: auto;
    }

    .top-nav a:hover,
    .top-nav a.active {
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
    }

    .top-right {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .tagline {
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.78rem;
    }

    .nav-toggle {
      display: none;
      width: 42px;
      height: 42px;
      border: none;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.12);
      cursor: pointer;
      padding: 0;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      z-index: 2010;
    }

    .nav-toggle span {
      display: block;
      width: 20px;
      height: 2px;
      background: #fff;
      border-radius: 1px;
      transition: transform 0.25s, opacity 0.2s;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    .nav-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      top: 64px;
      background: rgba(0, 0, 0, 0.4);
      z-index: 1990;
    }

    .nav-backdrop.open {
      display: block;
    }

    @media (max-width: 900px) {
      .nav-toggle {
        display: flex;
      }

      .top-right {
        display: none;
      }

      .brand-text span {
        display: none;
      }

      .top-nav {
        display: none;
        position: fixed;
        top: 64px;
        right: 0;
        left: auto;
        width: min(280px, 85vw);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #4A1420;
        padding: 0.75rem 0;
        box-shadow: -8px 0 28px rgba(0, 0, 0, 0.3);
        z-index: 2005;
      }

      .top-nav.open {
        display: flex;
      }

      .top-nav a {
        padding: 0.85rem 1.25rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.9rem;
        text-transform: none;
        letter-spacing: 0;
      }
    }
