/* =====================================================
   AN GIANG GUIDE – PREMIUM THEME STYLESHEET
   Version: 2.0.0 | Built with love for An Giang
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&display=swap');

/* ---- Root Variables ---- */
:root {
    --ag-primary: #1c3d31;
    --ag-primary-dark: #122a21;
    --ag-secondary: #f4efeb;
    --ag-gold: #d4af37;
    --ag-gold-light: #f0d870;
    --ag-text: #2c2c2c;
    --ag-text-muted: #6b7280;
    --ag-white: #ffffff;
    --ag-card-bg: #ffffff;
    --ag-border: rgba(0, 0, 0, 0.06);
    --ag-radius-sm: 6px;
    --ag-radius: 12px;
    --ag-radius-lg: 20px;
    --ag-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --ag-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    --ag-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
    --ag-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --ag-font-body: 'Be Vietnam Pro', sans-serif;
    --ag-font-display: 'Playfair Display', serif;
}

/* ============================================================
   CRITICAL FULL-WIDTH OVERRIDES
   These ensure the theme fills the entire viewport on both
   desktop and mobile regardless of WordPress default wrappers
   ============================================================ */
html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: var(--ag-font-body);
    color: var(--ag-text);
    background: var(--ag-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Override every WordPress wrapper that may constrain width */
#page,
.site,
.wp-site-blocks,
.entry-content,
.post-content,
.is-layout-constrained,
.is-layout-constrained>*:not(.alignfull),
.wp-block-group,
.wp-block-group__inner-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Force every full-bleed section to break out of any parent max-width */
.ag-hero,
.ag-map-cta,
.ag-gallery-strip,
.ag-biz-cta,
.ag-archive-header,
.ag-filter-bar,
.ag-single-hero,
.site-footer,
.site-header {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--ag-transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ag-font-display);
    color: var(--ag-primary);
    line-height: 1.25;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 2rem;
    height: 90px;
    /* Tăng chiều cao thanh Header để chứa Logo bự hơn */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled,
.site-header.ag-header--solid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .site-title a,
.site-header.scrolled .main-navigation a,
.site-header.ag-header--solid .site-title a,
.site-header.ag-header--solid .main-navigation a {
    color: var(--ag-primary);
}

.site-header.scrolled .ag-header-cta,
.site-header.ag-header--solid .ag-header-cta {
    border-color: var(--ag-primary);
    color: var(--ag-primary);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding .custom-logo {
    max-height: 72px;
    /* Phóng Logo lên gấp rưỡi để khắc phục viền trong suốt */
    width: auto;
    display: block;
}

.site-title {
    font-family: var(--ag-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-title a {
    color: var(--ag-white);
}

.site-description {
    display: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.25rem 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ag-gold);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* ====================================================================
   Language Switcher Dropdown
   ==================================================================== */

.lang-switcher {
    position: relative;
}

.lang-dropdown {
    position: relative;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.lang-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-button[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.lang-flag {
    font-size: 16px;
    line-height: 1;
}

.lang-code {
    font-weight: 700;
    letter-spacing: 0.05em;
}

.lang-button svg {
    width: 10px;
    height: 8px;
    transition: transform 0.2s ease;
}

.lang-button[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Language Menu */

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #eee;
}

.lang-menu.show {
    display: flex;
}

/* Language Options */

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--ag-text, #333);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: linear-gradient(90deg, #f8fafc 0%, #f0f4f8 100%);
    padding-left: 20px;
}

.lang-option.active {
    background: linear-gradient(90deg, #e8f5e9 0%, #f0f8f3 100%);
    color: #2d6a4f;
    font-weight: 600;
}

.lang-option .lang-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.lang-option .lang-name {
    flex: 1;
}

.lang-option .lang-code {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin: 0 4px;
}

.lang-option.active .lang-code {
    color: #2d6a4f;
}

.lang-option .checkmark {
    position: absolute;
    right: 12px;
    font-size: 16px;
    color: #2d6a4f;
    font-weight: 700;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scrolled state */

.site-header.scrolled .lang-button,
.site-header.ag-header--solid .lang-button {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--ag-text-muted);
    color: var(--ag-text, #333);
}

.site-header.scrolled .lang-button:hover,
.site-header.ag-header--solid .lang-button:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Mobile responsive */

@media (max-width: 640px) {
    .lang-menu {
        min-width: 200px;
    }

    .lang-option {
        padding: 10px 12px;
        font-size: 12px;
    }

    .lang-button {
        padding: 5px 10px;
        font-size: 11px;
    }

    .lang-flag {
        font-size: 14px;
    }

    .lang-option .lang-flag {
        font-size: 16px;
    }
}

.ag-header-cta {
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--ag-transition);
}

.ag-header-cta:hover {
    background: var(--ag-gold);
    border-color: var(--ag-gold);
    color: var(--ag-primary-dark);
}

/* Mobile hamburger */
.ag-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.ag-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--ag-transition);
}

.site-header.scrolled .ag-mobile-toggle span {
    background: var(--ag-primary);
}

/* ============================================================
   HERO
   ============================================================ */
.ag-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-hero__slides {
    position: absolute;
    inset: 0;
}

.ag-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 8s ease;
}

.ag-hero__slide.active {
    opacity: 1;
    transform: scale(1);
}

.ag-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 25, 18, 0.25) 0%,
            rgba(10, 25, 18, 0.55) 50%,
            rgba(10, 25, 18, 0.80) 100%);
    z-index: 1;
}

.ag-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 1.5rem;
    max-width: 900px;
}

.ag-hero__eyebrow {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--ag-gold-light);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.ag-hero__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: white;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.ag-hero__title em {
    color: var(--ag-gold-light);
    font-style: italic;
}

.ag-hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ag-hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.ag-hero__stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.ag-stat {
    text-align: center;
}

.ag-stat__num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--ag-font-display);
    color: var(--ag-gold-light);
}

.ag-stat__label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.ag-stat__divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.ag-hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.ag-hero__scroll-indicator span {
    display: block;
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 auto 8px;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1.3);
        opacity: 1;
    }
}

.ag-hero__nav {
    position: absolute;
    bottom: 2.5rem;
    right: 2rem;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.ag-hero__prev,
.ag-hero__next {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: var(--ag-transition);
}

.ag-hero__prev:hover,
.ag-hero__next:hover {
    background: var(--ag-gold);
    border-color: var(--ag-gold);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ag-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--ag-transition);
    cursor: pointer;
    border: none;
}

.ag-btn--primary {
    background: var(--ag-gold);
    color: var(--ag-primary-dark);
}

.ag-btn--primary:hover {
    background: var(--ag-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.ag-btn--outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.ag-btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
}

.ag-btn--gold {
    background: var(--ag-gold);
    color: var(--ag-primary-dark);
    font-weight: 700;
}

.ag-btn--gold:hover {
    background: var(--ag-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.ag-section {
    padding: 6rem 0;
}

.ag-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ag-section__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3.5rem;
    gap: 0.75rem;
    position: relative;
}

.ag-section__head h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.ag-section__tag {
    display: inline-block;
    background: rgba(28, 61, 49, 0.08);
    color: var(--ag-primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ag-section__more {
    position: absolute;
    right: 0;
    bottom: 0;
    color: var(--ag-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
}

.ag-section__more:hover {
    border-color: var(--ag-gold);
    color: var(--ag-gold);
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.ag-categories {
    background: var(--ag-white);
}

.ag-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ag-cat-card {
    position: relative;
    border-radius: var(--ag-radius-lg);
    overflow: hidden;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    transition: transform 0.4s ease;
}

.ag-cat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ag-shadow-lg);
}

.ag-cat-card:hover img {
    transform: scale(1.06);
}

.ag-cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 18, 0.85) 0%, transparent 60%);
    transition: background 0.4s;
}

.ag-cat-card:hover .ag-cat-card__overlay {
    background: linear-gradient(to top, rgba(10, 25, 18, 0.9) 0%, rgba(10, 25, 18, 0.2) 60%);
}

.ag-cat-card__body {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    color: white;
}

.ag-cat-card__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.ag-cat-card__body h3 {
    color: white;
    font-size: 1.25rem;
}

/* ============================================================
   FEATURED PLACES GRID
   ============================================================ */
.ag-featured {
    background: var(--ag-secondary);
}

.ag-featured__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.ag-place-card {
    background: var(--ag-card-bg);
    border-radius: var(--ag-radius-lg);
    overflow: hidden;
    box-shadow: var(--ag-shadow-sm);
    transition: var(--ag-transition);
    display: flex;
    flex-direction: column;
}

.ag-place-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ag-shadow-lg);
}

.ag-place-card--big {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.ag-place-card--big .ag-place-card__img-wrap {
    height: 420px;
}

.ag-place-card__img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    height: 200px;
}

.ag-place-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ag-place-card:hover .ag-place-card__img {
    transform: scale(1.06);
}

.ag-place-card__type {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--ag-gold);
    color: var(--ag-primary-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ag-place-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ag-place-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.ag-place-card__location {
    font-size: 0.8rem;
    color: var(--ag-text-muted);
}

.ag-place-card__rating {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ag-primary);
}

.ag-place-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.ag-place-card__title a:hover {
    color: var(--ag-gold);
}

.ag-place-card__excerpt {
    font-size: 0.875rem;
    color: var(--ag-text-muted);
    flex: 1;
    margin-bottom: 1rem;
}

.ag-place-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ag-primary);
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    align-self: flex-start;
}

.ag-place-card__link:hover {
    color: var(--ag-gold);
    border-color: var(--ag-gold);
}

/* ============================================================
   MAP CTA
   ============================================================ */
.ag-map-cta {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.ag-map-cta__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.ag-map-cta__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 20, 0.78);
}

/* ============================================================
   GALLERY STRIP
   ============================================================ */
.ag-gallery-strip {
    padding: 0;
    overflow: hidden;
    background: var(--ag-primary-dark);
}

.ag-gallery-strip .ag-section__head h2 {
    color: var(--ag-white);
}

.ag-gallery-strip .ag-section__tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--ag-gold-light);
}

.ag-gallery-strip .ag-section__head {
    padding-top: 5rem;
    margin-bottom: 2.5rem;
}

.ag-gallery-strip__track {
    display: flex;
    gap: 4px;
    height: 280px;
    animation: gallery-scroll 25s linear infinite;
}

.ag-gallery-strip__track:hover {
    animation-play-state: paused;
}

.ag-gallery-strip__item {
    flex: 0 0 300px;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.75) saturate(1.1);
    transition: filter 0.4s;
}

.ag-gallery-strip__item:hover {
    filter: brightness(1) saturate(1.3);
}

@keyframes gallery-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================================
   GUIDES
   ============================================================ */
.ag-guides {
    background: var(--ag-white);
}

.ag-guides__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ag-guide-card {
    display: flex;
    flex-direction: column;
}

.ag-guide-card__img-wrap {
    position: relative;
    display: block;
    border-radius: var(--ag-radius);
    overflow: hidden;
    height: 220px;
    margin-bottom: 1.25rem;
}

.ag-guide-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ag-guide-card:hover .ag-guide-card__img {
    transform: scale(1.05);
}

.ag-guide-card__date {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
}

.ag-guide-card__body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.ag-guide-card__body h3 a:hover {
    color: var(--ag-gold);
}

.ag-guide-card__body p {
    font-size: 0.875rem;
    color: var(--ag-text-muted);
    margin-bottom: 1rem;
}

.ag-guide-card__read {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ag-primary);
}

.ag-guide-card__read:hover {
    color: var(--ag-gold);
}

/* ============================================================
   BUSINESS CTA
   ============================================================ */
.ag-biz-cta {
    background: var(--ag-primary);
    padding: 5rem 0;
}

.ag-biz-cta__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ag-biz-cta__text .ag-section__tag {
    background: rgba(212, 175, 55, 0.15);
    color: var(--ag-gold);
    margin-bottom: 1.5rem;
}

.ag-biz-cta__text h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.ag-biz-cta__list {
    list-style: none;
    margin-bottom: 2rem;
}

.ag-biz-cta__list li {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ag-biz-cta__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-biz-cta__map-preview {
    position: relative;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-map-pin {
    position: absolute;
    background: var(--ag-white);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ag-map-pin--restaurant {
    top: 20%;
    left: 15%;
}

.ag-map-pin--hotel {
    bottom: 25%;
    left: 20%;
}

.ag-map-pin--attraction {
    top: 15%;
    right: 20%;
}

.ag-map-pin--premium {
    bottom: 20%;
    right: 15%;
    background: var(--ag-gold);
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

.pulsing::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--ag-gold);
    width: 56px;
    height: 56px;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--ag-primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 0;
}

.ag-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.ag-footer__brand p {
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.8;
}

.ag-footer__brand .site-title a {
    color: var(--ag-gold-light);
}

.ag-footer__col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.ag-footer__col ul {
    list-style: none;
}

.ag-footer__col ul li {
    margin-bottom: 0.6rem;
}

.ag-footer__col ul a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s;
}

.ag-footer__col ul a:hover {
    color: var(--ag-gold-light);
}

.ag-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.ag-footer__social a {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: var(--ag-transition);
}

.ag-footer__social a:hover {
    background: var(--ag-gold);
    color: var(--ag-primary-dark);
}

.ag-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.ag-footer__bottom a {
    color: var(--ag-gold-light);
}

/* ============================================================
   SINGLE PLACE
   ============================================================ */
.ag-single-hero {
    height: 75vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.ag-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

.ag-single-hero__content {
    position: relative;
    z-index: 1;
    padding: 3rem 4rem;
    color: white;
}

.ag-breadcrumb {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.ag-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.ag-single-hero__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: white;
}

.ag-single-hero__meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.ag-badge {
    background: var(--ag-gold);
    color: var(--ag-primary-dark);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

.ag-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.ag-content-body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--ag-text);
}

.ag-content-body h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
}

.ag-content-body p {
    margin-bottom: 1.25rem;
}

.ag-info-widget {
    background: var(--ag-white);
    border-radius: var(--ag-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--ag-shadow);
    margin-bottom: 1.5rem;
}

.ag-info-widget h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ag-secondary);
}

.ag-info-row {
    display: flex;
    gap: 10px;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--ag-border);
    font-size: 0.875rem;
}

.ag-info-row:last-child {
    border: none;
}

.ag-info-row strong {
    color: var(--ag-text-muted);
    min-width: 90px;
}

/* ============================================================
   ARCHIVE PLACES
   ============================================================ */
.ag-archive-header {
    background: var(--ag-primary);
    color: white;
    padding: 6rem 2rem 3rem;
    text-align: center;
}

.ag-archive-header h1 {
    color: white;
    font-size: 3rem;
}

.ag-archive-header p {
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.75rem;
}

.ag-filter-bar {
    background: var(--ag-white);
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--ag-border);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: sticky;
    top: 72px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ag-filter-btn {
    background: none;
    border: 1.5px solid var(--ag-border);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ag-transition);
    color: var(--ag-text-muted);
}

.ag-filter-btn:hover,
.ag-filter-btn.active {
    background: var(--ag-primary);
    border-color: var(--ag-primary);
    color: white;
}

.ag-archive-grid {
    max-width: 1240px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* ============================================================
   SUBMIT FORM
   ============================================================ */
.ag-form-container {
    max-width: 680px;
    margin: 4rem auto;
    background: var(--ag-white);
    border-radius: var(--ag-radius-lg);
    padding: 3rem;
    box-shadow: var(--ag-shadow-lg);
}

.ag-form-group {
    margin-bottom: 1.5rem;
}

.ag-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--ag-primary);
}

.ag-form-group input,
.ag-form-group textarea,
.ag-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--ag-border);
    border-radius: var(--ag-radius-sm);
    font-family: var(--ag-font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: var(--ag-secondary);
}

.ag-form-group input:focus,
.ag-form-group textarea:focus,
.ag-form-group select:focus {
    outline: none;
    border-color: var(--ag-primary);
    background: white;
}

.ag-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ============================================================
   CUSTOM MAP POPUP
   ============================================================ */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: auto !important;
    min-width: 220px;
}

.custom-map-popup .leaflet-popup-content {
    min-width: 220px;
}

.leaflet-popup-tip-container {
    display: none;
}

/* ============================================================
   COMMENTS / RATING
   ============================================================ */
.anggiang-rating-fields {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.anggiang-rating-fields label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ag-primary);
}

.anggiang-rating-fields select {
    padding: 10px 14px;
    border: 1.5px solid var(--ag-border);
    border-radius: var(--ag-radius-sm);
    color: var(--ag-text);
    background: var(--ag-secondary);
}

.anggiang-star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .ag-categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ag-featured__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ag-place-card--big {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .ag-place-card--big .ag-place-card__img-wrap {
        height: 320px;
    }

    .ag-footer__grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 2rem;
    }

    .ag-biz-cta__content {
        grid-template-columns: 1fr;
    }

    .ag-single-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ag-hero__title {
        font-size: 2.2rem;
    }

    .ag-hero__subtitle {
        font-size: 1rem;
    }

    .ag-hero__stats {
        gap: 1rem;
    }

    .ag-stat__num {
        font-size: 1.5rem;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.open {
        display: block;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--ag-white);
        padding: 1rem 2rem;
        box-shadow: var(--ag-shadow);
    }

    .main-navigation.open ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation.open a {
        color: var(--ag-text);
        padding: 0.8rem 0;
        display: block;
        border-bottom: 1px solid var(--ag-border);
    }

    .ag-mobile-toggle {
        display: flex;
    }

    /* ═══ HEADER MOBILE: gọn gàng, chìm vào nền ═══ */
    .site-header {
        height: 70px;
        padding: 0 1rem;
    }

    .site-branding .custom-logo {
        max-height: 50px;
    }

    .ag-header-cta {
        font-size: 0.75rem;
        padding: 6px 14px;
        border-width: 1px;
        opacity: 0.85;
    }

    .ag-mobile-toggle {
        gap: 4px;
        padding: 8px;
        border-radius: 0;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        backdrop-filter: none;
        -webkit-appearance: none;
    }

    .ag-mobile-toggle span {
        width: 20px;
        height: 2px;
    }

    .site-header.scrolled .ag-mobile-toggle,
    .site-header.ag-header--solid .ag-mobile-toggle {
        background: transparent !important;
        border: none !important;
    }

    .lang-button {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }

    .ag-categories__grid {
        grid-template-columns: 1fr 1fr;
    }

    .ag-featured__grid {
        grid-template-columns: 1fr;
    }

    .ag-guides__grid {
        grid-template-columns: 1fr;
    }

    .ag-footer__grid {
        grid-template-columns: 1fr;
    }

    .ag-section__more {
        position: static;
        margin-top: 0.5rem;
    }

    .ag-form-row {
        grid-template-columns: 1fr;
    }

    .lang-menu {
        left: 0;
        right: auto;
    }
}

@media (max-width: 480px) {
    .ag-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .ag-cat-card {
        height: 160px;
    }

    .ag-cat-card__body {
        padding: 1rem;
    }

    .ag-cat-card__body h3 {
        font-size: 1rem;
    }

    .ag-hero {
        height: 100svh;
    }

    .ag-header-cta {
        padding: 6px 10px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

/* ============================================================
   AI CHATBOT (TRỢ LÝ CỦA BẠN - GEMINI)
   ============================================================ */
.ag-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    font-family: var(--ag-font-body);
}

.ag-chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ag-primary), #2a5a48);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(28, 61, 49, 0.4);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.ag-chatbot-toggle:hover {
    transform: scale(1.1);
}

.ag-chatbot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ag-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ag-chatbot.is-open .ag-chatbot-window {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.ag-chatbot-header {
    background: linear-gradient(135deg, var(--ag-primary), #2a5a48);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ag-chatbot-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.ag-chatbot-status {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.3);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.ag-chatbot-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.ag-chatbot-close:hover {
    opacity: 1;
}

.ag-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f9f9f9;
}

.ag-chatbot-msg {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ag-chatbot-msg--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ag-chatbot-avatar {
    width: 28px;
    height: 28px;
    background: var(--ag-gold);
    color: var(--ag-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ag-chatbot-msg--user .ag-chatbot-avatar {
    background: #e0e0e0;
    color: #666;
}

.ag-chatbot-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 14px;
    border-top-left-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ag-chatbot-msg--user .ag-chatbot-bubble {
    background: var(--ag-primary);
    color: white;
    border-radius: 14px;
    border-top-right-radius: 4px;
}

.ag-chatbot-input {
    padding: 16px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.ag-chatbot-input input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--ag-font-body);
}

.ag-chatbot-input input:focus {
    border-color: var(--ag-primary);
}

.ag-chatbot-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ag-gold);
    color: var(--ag-primary-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.ag-chatbot-send:hover {
    transform: scale(1.05);
}

.ag-chatbot-send:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Typing indicator */
.ag-typing {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
}

.ag-typing span {
    width: 6px;
    height: 6px;
    background: #bbb;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.ag-typing span:nth-child(1) {
    animation-delay: -0.32s;
}

.ag-typing span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 500px) {
    .ag-chatbot {
        bottom: 20px;
        right: 20px;
    }

    .ag-chatbot-window {
        position: absolute;
        bottom: 70px;
        right: 0;
        left: auto;
        top: auto;
        width: 300px;
        max-width: calc(100vw - 40px);
        height: 400px;
        max-height: 60vh;
        border-radius: 16px;
    }
}