/* ============================================
   TRAVEL GUIDE — Standalone Modern UI
   Independent from theme header/footer.
   ============================================ */

/* ---- Visually Hidden (screen readers only) ---- */
.tg-shell .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
}

/* ---- Reset for standalone shell ---- */
.tg-shell {
    background: var(--color-bg-alt, #fafafa);
    color: var(--color-fg, #2b2b2b);
    font-family: var(--font-sans, Urbanist, sans-serif);
    -webkit-font-smoothing: antialiased;
}


.tg-shell .tg-main {
    min-height: calc(100vh - 130px);
}

.tg-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--space-5, 20px);
}


/* ---- Top Bar (minimal nav) ---- */
.tg-topbar {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky, 100);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    height: 72px;
    box-shadow: 0 0 0 transparent;
    transition: box-shadow var(--duration-base, 0.3s) ease,
                transform var(--duration-base, 0.3s) ease;
}

.tg-topbar--hidden {
    transform: translateY(-100%);
}

.tg-topbar--scrolled {
    box-shadow: var(--shadow-sm, 0 2px 20px rgba(0, 0, 0, 0.06));
}

.tg-topbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.tg-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tg-topbar-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-circle, 50%);
    background: #f0f0f0;
    color: #555;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.tg-topbar-back:hover {
    background: #e0e0e0;
    color: #2b2b2b;
}

.tg-topbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.tg-topbar-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.tg-topbar-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #2b2b2b;
}

/* ---- Desktop Nav (topbar) ---- */
.tg-topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 24px;
}

.tg-topbar-nav .nav-link {
    padding: 3px 14px 6px 14px;
    font-size: 17px;
    color: #555;
    text-decoration: none;
    border-radius: var(--radius-pill, 50px);
    transition: color 0.2s, background 0.2s;
}

.tg-topbar-nav .nav-link:hover {
    color: #2b2b2b;
    background: #f5f5f5;
}

.tg-topbar-nav .nav-link.activated {
    color: var(--brand-pri, #2b2b2b);
    background: rgba(var(--brand-pri-rgb, 43, 43, 43), 0.08);
}

.tg-topbar-nav .nav-link.btn-white-bordered {
    color: var(--brand-pri, #2b2b2b);
    border: 1.5px solid var(--brand-pri, #2b2b2b);
    background: transparent;
    border-radius: var(--radius-pill, 50px);
    padding: 2px 20px 6px 20px;
}

.tg-topbar-nav .nav-link.btn-white-bordered:hover {
    background: var(--brand-pri, #2b2b2b);
    color: #fff;
}

/* Reduce nav sizes for languages with longer words (e.g. Russian) */
html[lang="ru-RU"] .tg-topbar-nav .nav-link {
    font-size: 14px;
}

@media (max-width: 991px) {
    .tg-topbar-nav {
        display: none;
    }
}

.tg-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---- Hamburger Button ---- */
.tg-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.tg-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2b2b2b;
    border-radius: var(--radius-2xs, 2px);
    transition: all 0.3s ease;
}

.tg-hamburger--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.tg-hamburger--active span:nth-child(2) {
    opacity: 0;
}

.tg-hamburger--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
    .tg-hamburger {
        display: flex;
    }
}

/* Override rem-based side menu values to px (root is 20px here, main site is 16px) */
.tg-shell .side-menu .inner-wrapper {
    padding: 56px 80px; /* main: 3.5rem 5rem @ 16px */
}

.tg-shell .side-menu .side-nav .navbar-nav .nav-item {
    margin: 10px 0;
}

.tg-shell .side-menu .side-nav .navbar-nav .nav-link {
    font-size: 24px; /* main: 1.5rem @ 16px */
}

.tg-shell .side-menu p {
    font-size: 16px;
    margin-top: 16px; /* main: 1rem @ 16px */
}

/* ---- Language Switcher ---- */
.tg-lang-switcher {
    position: relative;
}

.tg-lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    border-radius: var(--radius-pill, 50px);
    background: transparent;
    color: #555;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.tg-lang-current:hover {
    background: transparent;
}

.tg-lang-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.tg-lang-dropdown--open + .tg-lang-current .tg-lang-arrow,
.tg-lang-current[aria-expanded="true"] .tg-lang-arrow {
    transform: rotate(180deg);
}

.tg-lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    padding: 6px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm, 10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s;
}

.tg-lang-dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tg-lang-dropdown li a {
    display: block;
    padding: 10px 18px;
    font-size: 16px;
    color: #555;
    text-decoration: none;
    transition: background 0.15s;
}

.tg-lang-dropdown li a:hover {
    background: #f5f5f5;
}

.tg-lang-dropdown li a.tg-lang-active {
    color: #2b2b2b;
    font-weight: 700;
}


/* ---- Hero (Archive) ---- */
.tg-hero {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 48px 20px 40px;
    text-align: center;
}

.tg-hero-inner {
    max-width: 768px;
    margin: 0 auto;
}

.tg-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #2b2b2b;
    margin: 0 0 8px;
}

.tg-hero-subtitle {
    color: #777;
    margin: 0;
    font-weight: 400;
}

/* Hero with cover image + parallax */
.tg-hero--cover {
    position: relative;
    border-bottom: none;
    padding: 120px 20px 120px;
    overflow: hidden;
}

.tg-hero-bg {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: transform 0.05s linear;
}

/* Fallback when JS hasn't loaded — use inline bg on .tg-hero--cover */
.tg-hero--cover[style*="background-image"] {
    background-size: cover;
    background-position: center;
}

.tg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}

.tg-hero--cover .tg-hero-inner {
    position: relative;
    z-index: 2;
}

.tg-hero--cover .tg-hero-title {
    color: #fff;
}

.tg-hero--cover .tg-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Hero text enter animation */
.tg-hero--cover .tg-hero-title,
.tg-hero--cover .tg-hero-subtitle {
    opacity: 0;
    transform: translateY(24px);
    animation: tg-hero-text-enter 0.7s ease forwards;
}

.tg-hero--cover .tg-hero-subtitle {
    animation-delay: 0.15s;
}

/* ---- Hero Search Bar ---- */
.tg-hero-search {
    max-width:600px;
    margin: 0 auto;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(16px);
    animation: tg-hero-text-enter 0.6s ease 0.3s forwards;
}

.tg-hero-search .tg-search-wrapper .form-control {
    height: 52px !important;
    font-size: 16px !important;
}

.tg-hero--cover .tg-hero-search .tg-search-wrapper .form-control {
    background-color: rgba(255, 255, 255, 0.95) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.tg-hero--cover .tg-hero-search .tg-search-wrapper .form-control:focus {
    background-color: #fff !important;
    background-image: none !important;
    border-color: #fff !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 575px) {
    .tg-hero-search {
        max-width: 100%;
    }

    .tg-hero-search .tg-search-wrapper .form-control {
        height: 46px !important;
        font-size: 15px !important;
    }
}

@keyframes tg-hero-text-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575px) {
    .tg-hero {
        padding: 32px 16px 28px;
    }
    .tg-hero--cover {
        padding: 64px 16px 56px;
    }
    .tg-hero-title {
        font-size: 1.6rem;
    }
}


/* ---- Hero (Single - with image) ---- */
.tg-single-hero {
    position: relative;
    height: 440px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.tg-single-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: transform 0.05s linear;
}

.tg-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

/* Single hero text enter */
.tg-single-hero-cat,
.tg-single-hero-title,
.tg-single-hero-meta {
    opacity: 0;
    transform: translateY(20px);
    animation: tg-hero-text-enter 0.6s ease forwards;
}

.tg-single-hero-title {
    animation-delay: 0.1s;
}

.tg-single-hero-meta {
    animation-delay: 0.2s;
}

.tg-single-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.tg-single-hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tg-single-hero-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-pill, 50px);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.tg-single-hero-cat img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.tg-single-hero-cat--inline {
    background: #f0f0f0;
    color: #555;
}

.tg-single-hero-cat--inline img {
    filter: none;
    opacity: 0.7;
}

.tg-single-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 12px;
    max-width: 700px;
}

.tg-single-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.tg-single-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tg-single-hero-meta i {
    font-size: 15px;
    opacity: 0.7;
}

@media (max-width: 575px) {
    .tg-single-hero {
        height: 300px;
    }
    .tg-single-hero-title {
        font-size: 1.6rem;
    }
    .tg-single-hero-content {
        padding-bottom: 24px;
    }
}


/* ---- Archive Section ---- */
.tg-archive {
    padding: 32px 0 48px;
}


/* ---- Filter Bar ---- */
.tg-filter-bar {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(16px);
    animation: tg-filter-enter 0.5s ease forwards;
}

@keyframes tg-filter-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Slider Wrapper */
.tg-filter-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
    padding-top: 8px;
    padding-bottom: 8px;
}

.tg-filter-slider {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

/* Pre-Swiper: prevent CLS by sizing slides before JS loads */
.tg-filter-slider:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 10px;
    overflow: hidden;
}

.tg-filter-slider:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 150px;
    width: 150px;
}

/* After Swiper initializes */
.tg-filter-slider.swiper-initialized .swiper-slide {
    width: 130px;
    flex-shrink: 0;
}

.tg-filter-slider.swiper-initialized {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 92%, transparent 100%);
}

.tg-filter-slider.swiper-initialized.tg-swiper--fade-left {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.tg-filter-slider.swiper-initialized.tg-swiper--at-end {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 100%);
}

.tg-filter-slider.swiper-initialized.tg-swiper--at-start {
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 92%, transparent 100%);
}

.tg-filter-slider.swiper-initialized.tg-swiper--no-fade {
    -webkit-mask-image: none;
    mask-image: none;
}

/* Allow hover overflow by adding padding */
.tg-filter-slider .swiper-wrapper {
    padding-top: 6px;
    padding-bottom: 6px;
}

.tg-filter-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle, 50%);
    border: 2px solid #eee;
    background: #fff;
    color: #777;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tg-filter-nav:hover {
    border-color: var(--brand-pri, #2b2b2b);
    color: var(--brand-pri, #2b2b2b);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tg-filter-nav.swiper-button-disabled {
    opacity: 0.25;
    pointer-events: none;
}

@media (max-width: 575px) {
    .tg-filter-nav {
        display: none;
    }

    .tg-filter-slider-wrap {
        gap: 0;
    }
}

.tg-filter-btn {
    display: grid;
    grid-template-rows: 1fr auto auto;
    align-items: end;
    justify-items: center;
    width: 100%;
    gap: 4px;
    height: 130px;
    border: 1px solid #ece7dc;
    border-radius: var(--radius-md, 14px);
    background: #fff;
    color: #6a6356;
    font-family: inherit;
    font-size: .72rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    padding: 14px 10px;
    overflow: hidden;
}

.tg-filter-btn:hover {
    border-color: #ddd;
    background: #fff;
    color: #2b2b2b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tg-filter-btn--active {
    background: color-mix(in srgb, var(--brand-pri) 8%, #fff);
    border-color: var(--brand-sec);
    color: var(--brand-sec);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--brand-pri) 15%, transparent);
}

.tg-filter-btn--active:hover {
    background: color-mix(in srgb, var(--brand-pri) 14%, #fff);
    border-color: var(--brand-sec);
    color: var(--brand-sec);
}

.tg-filter-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    color: #b8a983;
    transition: color 0.25s ease;
}

.tg-filter-btn:hover .tg-filter-btn-icon,
.tg-filter-btn--active .tg-filter-btn-icon {
    color: var(--brand-pri, #2b2b2b);
}

.tg-filter-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: none !important;
    -webkit-filter: none !important;
    box-shadow: none !important;
}

.tg-filter-btn--active .tg-filter-icon {
    filter: none !important;
    -webkit-filter: none !important;
}

.tg-filter-btn-label {
    font-family: inherit;
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: .01em;
    color: #1f1f1f;
    word-break: break-word;
    hyphens: auto;
    margin-top: 2px;
}

.tg-filter-count {
    font-family: inherit;
    font-size: .68rem;
    font-weight: 400;
    background: rgba(217, 207, 184, .25);
    color: #6a6356;
    padding: 2px 8px;
    border-radius: var(--radius-pill, 999px);
    line-height: 1.4;
    letter-spacing: .02em;
}

.tg-filter-btn--active .tg-filter-count {
    background: color-mix(in srgb, var(--brand-pri) 12%, transparent);
    color: var(--brand-sec);
}

@media (max-width: 575px) {
    .tg-filter-categories {
        gap: 8px;
    }
}

/* ---- Search ---- */
.tg-filter-search {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(12px);
    animation: tg-search-enter 0.5s ease 0.15s forwards;
}

@keyframes tg-search-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tg-search-wrapper {
    position: relative;
    transition: transform 0.2s;
}

.tg-search-wrapper:focus-within {
    transform: scale(1.02);
}

.tg-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--brand-pri, #3264f5);
    font-size: 18px;
    pointer-events: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.tg-search-wrapper:focus-within .tg-search-icon {
    color: var(--brand-pri, #3264f5);
}

/* Reset the centralized .form-control underline-only style for the
   travel-guide search field — it needs a proper pill-shaped input. */
.tg-search-wrapper .form-control {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 56px !important;
    padding: 0 20px 0 52px !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 1px solid #ece7dc !important;
    border-radius: var(--radius-pill, 999px) !important;
    color: #1f1f1f !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 300 !important;
    letter-spacing: .01em !important;
    box-shadow: 0 2px 12px rgba(60, 50, 40, 0.06) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.tg-search-wrapper .form-control::placeholder {
    color: #b0a896 !important;
    font-weight: 300;
    letter-spacing: .01em;
}

.tg-search-wrapper .form-control:focus,
.tg-search-wrapper .form-control:focus-visible {
    background-color: #fff !important;
    background-image: none !important;
    border-color: var(--brand-pri, #3264f5) !important;
    box-shadow: 0 4px 24px color-mix(in srgb, var(--brand-pri, #3264f5) 18%, transparent) !important;
    outline: 0 !important;
    transform: none;
}


/* ---- Card Grid ---- */
.tg-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    transition: opacity 0.3s ease;
}

@media (min-width: 576px) {
    .tg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .tg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Column variants for Gutenberg block */
.tg-grid--cols-2 { grid-template-columns: repeat(1, 1fr); }
.tg-grid--cols-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 576px) {
    .tg-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
    .tg-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .tg-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.tg-grid--loading {
    opacity: 0.5;
    pointer-events: none;
}


/* ---- Card ---- */
.tg-card {
    background: #fff;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

/* Card enter animation (QuicksandsectionObserver driven) */
.tg-card--anim {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.tg-card--anim.tg-card--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.tg-card-image-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.tg-card-image {
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.tg-card:hover .tg-card-image {
    transform: scale(1.05);
}

.tg-card-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 2.5rem;
}

.tg-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-pill, 50px);
    font-size: 12px;
    z-index: 1;
}

.tg-card-badge--featured {
    background: #f0b849;
    color: #fff;
}

.tg-card-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tg-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.tg-card-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    font-size: .68rem;
    font-weight: 400;
    color: #6a6356;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(217, 207, 184, 0.18);
    border: 1px solid rgba(217, 207, 184, 0.4);
    padding: 3px 9px;
    border-radius: var(--radius-pill, 999px);
    line-height: 1;
}

.tg-card-category-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    opacity: 0.65;
}

.tg-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tg-card-title a {
    color: #2b2b2b;
    text-decoration: none;
    transition: color 0.2s;
}

.tg-card-title a:hover {
    color: #555;
}

.tg-card-excerpt {
    color: #888;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    margin-bottom: 12px;
    margin-top: 0;
    flex: 1;
}

.tg-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.tg-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Difficulty colors — semantic tokens */
.tg-difficulty--easy { color: var(--color-success, #10b981); }
.tg-difficulty--moderate { color: var(--color-warning, #f59e0b); }
.tg-difficulty--challenging { color: var(--color-danger, #ef4444); }


/* ---- Button — shares animation language with global .btn system.
       Adds a custom shine sweep on hover + bigger CTA padding for the
       travel guide standalone shell. Tokens come from the global
       --btn-* and --duration-* / --ease-* systems. ---- */
.tg-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 10px);
    padding: calc(var(--btn-pad-y, 10px) + 4px) calc(var(--btn-pad-x, 20px) + 10px);
    border-radius: var(--btn-radius-lg, 14px);
    font-size: var(--text-base, 16px);
    font-family: inherit;
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--duration-fast, .25s) var(--btn-ease, cubic-bezier(.22,1,.36,1)),
                background var(--duration-base, .3s) ease,
                border-color var(--duration-fast, .25s) ease,
                box-shadow var(--duration-base, .3s) ease,
                color var(--duration-fast, .25s) ease;
}
.tg-btn::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: left .6s ease;
    z-index: 1;
}
.tg-btn:hover::before { left: 130%; }
.tg-btn > * { position: relative; z-index: 2; }
.tg-btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.tg-btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus, 0 0 0 3px color-mix(in srgb, var(--brand-pri, #3264f5) 24%, transparent));
}

.tg-btn--primary {
    background: var(--brand-pri, #2b2b2b);
    color: var(--brand-pri-text, #fff);
    border-color: var(--brand-pri, #2b2b2b);
    box-shadow: var(--btn-shadow, 0 4px 14px rgba(0, 0, 0, .10));
}
.tg-btn--primary:hover {
    background: var(--brand-sec, color-mix(in srgb, var(--brand-pri, #2b2b2b) 85%, #000));
    border-color: var(--brand-sec, var(--brand-pri, #2b2b2b));
    color: var(--brand-sec-text, #fff);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover, 0 10px 24px rgba(0, 0, 0, .18));
}

.tg-btn--primary.tg-btn--loading {
    pointer-events: none;
    opacity: 0.7;
}

.tg-btn--primary.tg-btn--loading i {
    animation: tg-spin 0.7s linear infinite;
}


/* ---- Empty State ---- */
.tg-empty {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
    grid-column: 1 / -1;
}

.tg-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.3;
}

.tg-empty p {
    font-size: 1rem;
}


/* ---- Loading ---- */
.tg-loading {
    text-align: center;
    padding: 30px;
}

.tg-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #eee;
    border-top-color: #2b2b2b;
    border-radius: var(--radius-circle, 50%);
    animation: tg-spin 0.7s linear infinite;
}

@keyframes tg-spin {
    to { transform: rotate(360deg); }
}

.tg-load-more-wrap {
    margin-top: 2rem;
}


/* ---- Single Page Layout ---- */
.tg-single-content {
    padding: 40px 0 48px;
}

.tg-container--narrow {
    max-width: 991px;
}


/* ---- Info Box ---- */
.tg-info-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
    border: 1px solid #eee;
    margin-bottom: 32px;
}

.tg-info-item {
    flex: 1 1 auto;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-right: 1px solid #eee;
}

.tg-info-item:last-child {
    border-right: none;
}

.tg-info-item i {
    font-size: 1.4rem;
    color: #aaa;
    width: 28px;
    text-align: center;
}

.tg-info-item small {
    display: block;
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tg-info-item strong {
    display: block;
    font-size: 16px;
    color: #2b2b2b;
}

@media (max-width: 575px) {
    .tg-info-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        min-width: 100%;
    }
    .tg-info-item:last-child {
        border-bottom: none;
    }
}


/* ---- Gutenberg content inside TG ---- */

.tg-content img {
    border-radius: var(--radius-md, 12px);
}

.tg-content h2, .tg-content h3, .tg-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}


/* ---- Share Buttons ---- */
.tg-share {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.tg-share-label {
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
}

.tg-share-buttons {
    display: flex;
    gap: 8px;
}

.tg-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-circle, 50%);
    border: 2px solid #eee;
    background: #fff;
    color: #888;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.tg-share-btn:hover {
    transform: translateY(-2px);
}

/* Social-network brand colors are intentionally hardcoded — they identify
   the destination platform and must not change with our theme palette. */
.tg-share-btn--whatsapp:hover { background: #25d366; border-color: #25d366; color: var(--color-white, #fff); }
.tg-share-btn--facebook:hover { background: #1877f2; border-color: #1877f2; color: var(--color-white, #fff); }
.tg-share-btn--twitter:hover  { background: var(--color-black, #000); border-color: var(--color-black, #000); color: var(--color-white, #fff); }
.tg-share-btn--copy:hover     { background: var(--color-fg-strong, #2b2b2b); border-color: var(--color-fg-strong, #2b2b2b); color: var(--color-white, #fff); }
.tg-share-btn--copy.copied    { background: var(--color-success, #10b981); border-color: var(--color-success, #10b981); color: var(--color-white, #fff); }

/* Copy tooltip */
.tg-share-btn--copy {
    position: relative;
}

.tg-share-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #2b2b2b;
    color: #fff;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: var(--radius-sm, 8px);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tg-share-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2b2b2b;
}

.tg-share-btn--copy.copied .tg-share-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ---- Fixed Side Prev/Next Navigation ---- */
.tg-side-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
    max-width: 180px;
}

.tg-side-nav:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
    color: var(--brand-sec);
    border-color: var(--brand-pri);
}

.tg-side-nav--prev {
    left: 16px;
}

.tg-side-nav--next {
    right: 16px;
}

.tg-side-nav i {
    font-size: 16px;
    flex-shrink: 0;
}

.tg-side-nav-label {
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tg-side-nav--prev .tg-side-nav-label {
    text-align: left;
}

.tg-side-nav--next .tg-side-nav-label {
    text-align: right;
}

@media (max-width: 1340px) {
    .tg-side-nav .tg-side-nav-label {
        display: none;
    }
    .tg-side-nav {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: var(--radius-circle, 50%);
        max-width: none;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .tg-side-nav {
        display: none;
    }
}


/* ---- Post Navigation (bottom) ---- */
.tg-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.tg-post-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-md, 14px);
    text-decoration: none;
    transition: all 0.25s ease;
}

.tg-post-nav-item:hover {
    border-color: var(--brand-pri);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--brand-pri) 10%, transparent);
    transform: translateY(-2px);
}

.tg-post-nav-item--next {
    text-align: right;
    justify-content: flex-end;
}

.tg-post-nav-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm, 10px);
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.tg-post-nav-text small {
    display: block;
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tg-post-nav-text small i {
    font-size: 10px;
}

.tg-post-nav-text span {
    font-size: 15px;
    color: #2b2b2b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 575px) {
    .tg-post-nav {
        grid-template-columns: 1fr;
    }
}


/* ---- Related Guides Slider ---- */
.tg-related {
    padding: 48px 0 56px;
    background: #fff;
    border-top: 1px solid #eee;
}

.tg-related-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2b2b2b;
    margin-bottom: 24px;
}

.tg-related-slider {
    position: relative;
    padding: 0 20px;
    max-width: 1140px;
    margin: 0 auto;
    overflow: hidden;
}

.tg-related-card {
    display: block;
    text-decoration: none;
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #eee;
    transition: all 0.25s ease;
    height: 100%;
}

.tg-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tg-related-card-img {
    width: 100%;
    padding-top: 60%;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 1.5rem;
    position: relative;
}

.tg-related-card-img i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tg-related-card-body {
    padding: 14px 16px 18px;
}

.tg-related-card-cat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.tg-related-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
    line-height: 1.35;
    margin-bottom: 6px;
}

.tg-related-card-meta {
    font-size: 13px;
    color: #bbb;
}

.tg-related-card-meta i {
    margin-right: 3px;
}

.tg-related-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.tg-related-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-circle, 50%);
    border: 2px solid #eee;
    background: #fff;
    color: #777;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tg-related-btn:hover {
    border-color: var(--brand-pri);
    color: var(--brand-pri);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-pri) 15%, transparent);
}

.tg-related-btn.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}


/* ---- Footer ---- */
.tg-footer {
    border-top: 1px solid #eee;
    background: #fff;
    padding: 16px 0;
}

.tg-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: #aaa;
}

.tg-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.tg-footer-link:hover {
    color: var(--brand-pri, #2b2b2b);
}


/* ---- Gutenberg Block embed (hotelface/travel-guide) ---- */
.wp-block-hotelface-travel-guide .tg-grid {
    margin-top: 0;
}

.wp-block-hotelface-travel-guide .tg-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2b2b2b;
}


/* ---- Back to Top ---- */
.tg-back-to-top {
    position: fixed;
    bottom: 88px;
    right: 28px;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-circle, 50%);
    border: none;
    background: var(--brand-pri, #2b2b2b);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--brand-pri, #2b2b2b) 30%, transparent);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.tg-back-to-top--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tg-back-to-top:hover {
    background: color-mix(in srgb, var(--brand-pri, #2b2b2b) 85%, #000);
    transform: translateY(-2px);
}

@media (max-width: 575px) {
    .tg-back-to-top {
        bottom: 80px;
        right: 20px;
    }
}


/* ---- Focus Visible (Accessibility) ---- */
.tg-filter-btn:focus-visible,
.tg-filter-nav:focus-visible,
.tg-share-btn:focus-visible,
.tg-topbar-back:focus-visible,
.tg-back-to-top:focus-visible,
.tg-related-btn:focus-visible,
.tg-load-more:focus-visible,
.tg-side-nav:focus-visible,
.tg-post-nav-item:focus-visible,
.tg-lang-current:focus-visible,
.tg-lang-dropdown a:focus-visible,
.tg-topbar-logo:focus-visible {
    outline: 2px solid var(--brand-pri, #2b2b2b);
    outline-offset: 2px;
}

.tg-search-wrapper .form-control:focus-visible {
    outline: none; /* already has custom focus ring via box-shadow */
}


/* ---- Prefers Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    .tg-hero--cover .tg-hero-title,
    .tg-hero--cover .tg-hero-subtitle,
    .tg-hero-search,
    .tg-single-hero-cat,
    .tg-single-hero-title,
    .tg-single-hero-meta,
    .tg-filter-bar,
    .tg-filter-search {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .tg-card--anim {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .tg-hero-bg,
    .tg-single-hero-bg {
        transform: none !important;
        transition: none !important;
    }

    .tg-card,
    .tg-filter-btn,
    .tg-share-btn,
    .tg-related-card,
    .tg-related-btn,
    .tg-post-nav-item,
    .tg-side-nav,
    .tg-back-to-top,
    .tg-btn {
        transition: color 0.15s, background 0.15s, border-color 0.15s, opacity 0.15s !important;
        transform: none !important;
    }
}


/* ---- Search Clear Button ---- */
.tg-search-wrapper {
    position: relative;
}

.tg-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: var(--radius-circle, 50%);
    background: #eee;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    line-height: 1;
}

.tg-search-clear:hover {
    background: #ddd;
    color: #555;
}

.tg-search-clear--visible {
    display: flex;
}


/* ---- Topbar - Mobile / Tablet ---- */
@media (max-width: 768px) {
    .tg-topbar {
        height: 56px;
    }

    .tg-topbar-back {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .tg-topbar-logo img {
        height: 34px;
    }

    .tg-topbar-logo-text {
        font-size: 18px;
    }

    .tg-topbar-left {
        gap: 12px;
    }
}

/* ---- Split View (Map + List) ---- */
.tg-container--full {
    max-width: 100%;
    padding: 0 24px;
}

.tg-split {
    display: flex;
    gap: 0;
    /* Crucial for position:sticky on a flex child — without this,
       align-items defaults to stretch and the map fills the parent
       height, leaving no scroll room for sticky to engage. */
    align-items: flex-start;
}

.tg-split-list {
    flex: 1 1 55%;
    max-width: 55%;
    padding-right: 24px;
    min-width: 0;
}

.tg-split-map {
    flex: 1 1 45%;
    max-width: 45%;
    position: sticky;
    top: calc(var(--header-h, 72px) + 12px);
    height: calc(100vh - var(--header-h, 72px) - 24px);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    border: 1px solid #eee;
}

.tg-map {
    width: 100%;
    height: 100%;
}

/* Split view: 2 columns instead of 3 */
.tg-archive--has-map .tg-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* --- Map Fullscreen Button --- */
.tg-map-fullscreen-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #555;
    transition: all 0.2s;
}

.tg-map-fullscreen-btn:hover {
    background: #f5f5f5;
    color: #2b2b2b;
}

/* --- Desktop Fullscreen Map --- */
.tg-split-map--fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    max-width: 100%;
    border-radius: 0;
    height: 100vh;
    border: none;
}

.tg-split-map--fullscreen .tg-map-fullscreen-btn {
    top: 16px;
    right: 16px;
}

/* --- Map Popup Card --- */
.tg-map-popup {
    width: 260px;
    font-family: Urbanist, sans-serif;
}

/* Clean up Google Maps InfoWindow chrome */
.gm-style-iw.gm-style-iw-c {
    padding: 0 !important;
    border-radius: var(--radius-md, 12px) !important;
    overflow: hidden !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
}

/* Remove default close button spacing */
.gm-style-iw-ch {
    padding: 0 !important;
    height: 0 !important;
}

/* Hide any extra buttons inside the InfoWindow */
.gm-style-iw button.gm-ui-hover-effect {
    display: none !important;
}

/* Remove the tail/arrow shadow container extra space */
.gm-style-iw-tc {
    display: none !important;
}

.tg-map-popup-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm, 8px) 8px 0 0;
    display: block;
}

.tg-map-popup-body {
    padding: 10px 12px;
}

.tg-map-popup-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #2b2b2b;
    line-height: 1.2;
}

.tg-map-popup-locname {
    font-size: 12px;
    color: var(--brand-pri, #2b2b2b);
    margin: 0 0 6px;
}

/* ---- Single Guide Locations Map ---- */
.tg-single-locations {
    margin: 2rem 0;
}

.tg-single-locations-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tg-single-locations-title i {
    color: var(--brand-pri, #2b2b2b);
}

.tg-single-locations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tg-single-location-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: var(--radius-pill, 50px);
    font-size: 13px;
    color: #555;
}

.tg-single-map {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md, 12px);
    border: 1px solid #eee;
    overflow: hidden;
}

@media (max-width: 575px) {
    .tg-single-map {
        height: 220px;
    }
}

.tg-map-popup-excerpt {
    font-size: 13px;
    color: #777;
    margin: 0 0 8px;
    line-height: 1.4;
}

.tg-map-popup-link {
    font-size: 13px;
    color: var(--brand-pri, #2b2b2b);
    text-decoration: none;
}

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

.tg-map-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: var(--radius-circle, 50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tg-map-popup-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.tg-map-popup {
    position: relative;
}

/* --- Custom Map Pin --- */
.tg-custom-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--brand-pri, #2b2b2b);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tg-pin-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-circle, 50%);
    border: 2px solid #fff;
    transform: rotate(45deg);
}

.tg-custom-pin:hover {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* --- Cluster Pin --- */
.tg-cluster-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--brand-pri, #2b2b2b);
    border: 3px solid #fff;
    border-radius: var(--radius-circle, 50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: Urbanist, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.tg-cluster-pin:hover {
    transform: scale(1.1);
}

/* --- Mobile "Open Map" FAB --- */
.tg-map-open-btn {
    display: none;
}

/* --- Mobile Map Overlay --- */
.tg-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #fff;
}

.tg-map-overlay-header {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.tg-map-overlay-close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-circle, 50%);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2b2b2b;
    transition: background 0.2s;
}

.tg-map-overlay-close span {
    display: none;
}

.tg-map-overlay-close:hover {
    background: #f0f0f0;
}

.tg-map--mobile {
    width: 100%;
    height: 100%;
}

/* --- Responsive: Mobile / Tablet --- */
@media (max-width: 991px) {
    .tg-split {
        display: block;
    }

    .tg-split-list {
        max-width: 100%;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .tg-split-map {
        display: none;
    }

    .tg-container--full {
        max-width: 1140px;
        padding: 0 20px;
    }

    .tg-archive--has-map .tg-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tg-map-open-btn {
        display: flex;
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 200;
        background: var(--brand-pri, #2b2b2b);
        color: #fff;
        border: none;
        border-radius: var(--radius-pill, 50px);
        padding: 12px 24px;
        font-size: 15px;
        gap: 8px;
        align-items: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        cursor: pointer;
        transition: all 0.2s;
    }

    .tg-map-open-btn:hover {
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
    }
}

@media (max-width: 575px) {
    .tg-archive--has-map .tg-grid {
        grid-template-columns: 1fr;
    }

    .tg-map-open-btn {
        bottom: 16px; /* above messaging hub */
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ---- Print Styles ---- */
@media print {
    .tg-topbar,
    .tg-filter-bar,
    .tg-share,
    .tg-footer,
    .tg-load-more-wrap,
    .tg-side-nav,
    .tg-post-nav,
    .tg-related,
    .tg-back-to-top {
        display: none !important;
    }
}
