/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6B2D8E;
    --primary-dark: #4E1F6B;
    --primary-light: #8E4FB8;
    --accent: #F4B942;
    --bg-soft: #F8F4FB;
    --bg-light: #FFFFFF;
    --text-dark: #1F1B2E;
    --text-muted: #6B6478;
    --border: #E8E2EE;
    --star: #FFB400;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 6px 24px rgba(107, 45, 142, 0.08);
    --shadow-hover: 0 12px 32px rgba(107, 45, 142, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.5;
    font-size: 14px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--primary);
}
.btn-light:hover {
    background: var(--accent);
    color: #fff;
}

.btn-light-outline {
    background: transparent;
    border: 1.5px solid #fff;
    color: #fff;
}
.btn-light-outline:hover {
    background: #fff;
    color: var(--primary);
}

/* ============ HEADER ============ */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(107, 45, 142, 0.04);
}

/* ----- HEADER TOP (logo + search + actions) ----- */
.header-top {
    border-bottom: 1px solid rgba(232, 226, 238, 0.7);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 14px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Logo tùy chỉnh (the_custom_logo): cố định chiều cao, rộng tự động giữ tỷ lệ */
.logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.logo .custom-logo {
    height: 50px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 6px 16px rgba(107, 45, 142, 0.3);
    position: relative;
    transition: transform .25s ease;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    z-index: -1;
    opacity: 0;
    transition: opacity .25s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-4deg) scale(1.05);
}

.logo:hover .logo-icon::after {
    opacity: 1;
}

.logo-text h1 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .8px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: .2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 18px;
    min-width: 280px;
    transition: all .25s ease;
}

.search-mini:focus-within {
    background: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(107, 45, 142, 0.1);
}

.search-mini i {
    color: var(--primary);
    font-size: 13px;
}

.search-mini input {
    background: none;
    border: none;
    outline: none;
    font-size: 13px;
    flex: 1;
    font-family: inherit;
    color: var(--text-dark);
}

.search-mini input::placeholder {
    color: var(--text-muted);
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 15px;
    transition: all .25s ease;
    position: relative;
}

.icon-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 45, 142, 0.3);
}

.icon-btn::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    opacity: 0;
    transition: opacity .25s ease;
}

.icon-btn.has-badge::after {
    opacity: 1;
}

.header-actions .btn {
    padding: 11px 24px;
    box-shadow: 0 6px 16px rgba(107, 45, 142, 0.3);
}

.header-actions .btn:hover {
    box-shadow: 0 8px 20px rgba(107, 45, 142, 0.4);
}

/* ----- HEADER NAV BAR (menu below logo) ----- */
.header-nav-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 16px rgba(107, 45, 142, 0.2);
    position: relative;
    overflow: hidden;
}

.header-nav-bar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08));
    pointer-events: none;
}

.header-nav-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.main-nav ul {
    display: flex;
    gap: 4px;
    align-items: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    padding: 16px 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all .25s ease;
    position: relative;
}

.main-nav a i {
    font-size: 13px;
    opacity: .85;
}

.main-nav a::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
    transition: all .25s ease;
    transform: translateX(-50%);
}

.main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.main-nav a:hover::before {
    width: 60%;
}

.main-nav .active a {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.main-nav .active a::before {
    width: 60%;
}

.main-nav .active a i {
    opacity: 1;
    color: var(--accent);
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.hotline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all .25s ease;
}

.hotline i {
    color: var(--accent);
    animation: ring 2s ease-in-out infinite;
}

.hotline:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.hotline:hover i {
    color: #fff;
}

@keyframes ring {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-12deg); }
    20%, 40% { transform: rotate(12deg); }
    50% { transform: rotate(0); }
}

/* ============ HERO ============ */
.hero {
    padding: 0;
    width: 100%;
}

.hero-slider {
    position: relative;
    height: calc(70vh - 80px);
    min-height: 420px;
    max-height: 575px;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(20,10,40,0.35) 0%, rgba(60,20,100,0.7) 100%),
        url('https://images.unsplash.com/photo-1597212618440-806262de4f6b?w=1920') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(40,15,75,0.4) 100%);
    pointer-events: none;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 4;
    font-size: 16px;
    transition: all .3s ease;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 32px; }
.slider-arrow.next { right: 32px; }

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-welcome {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-style: italic;
    opacity: .95;
    margin-bottom: 4px;
    color: var(--accent);
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: 3px;
    text-shadow: 0 6px 40px rgba(0,0,0,0.5);
    background: linear-gradient(180deg, #fff 0%, #FFE5A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-desc {
    font-size: 14px;
    opacity: .95;
    max-width: 580px;
    margin: 0 auto 24px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-search {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 7px 7px 7px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 820px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    padding: 6px 12px;
    color: var(--text-dark);
}

.search-field + .search-field {
    border-left: 1px solid var(--border);
}

.search-field i {
    color: var(--primary);
}

.search-field input {
    border: none;
    outline: none;
    font-size: 13px;
    flex: 1;
    background: none;
    font-family: inherit;
}

.hero-search .btn {
    padding: 12px 26px;
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all .3s ease;
    border: none;
}

.dot:hover {
    background: rgba(255,255,255,0.7);
}

.dot.active {
    background: #fff;
    width: 32px;
    border-radius: 5px;
}

/* ============ CATEGORIES ============ */
.categories {
    padding: 32px 0 8px;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

.category-item {
    text-align: center;
    padding: 16px 6px;
    border-radius: var(--radius);
    background: #fff;
    transition: all .2s ease;
}

.category-item:hover {
    background: var(--bg-soft);
    transform: translateY(-3px);
}

.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #fff;
    font-size: 22px;
}

.cat-icon.orange   { background: #FF7A45; }
.cat-icon.yellow   { background: #FFA940; }
.cat-icon.pink     { background: #FF4D8D; }
.cat-icon.purple   { background: #9B5DE5; }
.cat-icon.blue     { background: #5B8DEF; }
.cat-icon.cyan     { background: #4DD0E1; }
.cat-icon.teal     { background: #26A69A; }
.cat-icon.lime     { background: #9CCC65; }
.cat-icon.green-dark { background: #2E7D32; }
.cat-icon.mint     { background: #66BB6A; }
.cat-icon.green    { background: #43A047; }
.cat-icon.green-light { background: #81C784; }

.cat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.cat-count {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

/* ============ THREE COLUMNS ============ */
.three-cols, .featured-row {
    padding: 28px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
}

/* Footer CTA còn 2 cột (đã bỏ phần tải app) */
.footer-cta-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 768px) {
    .footer-cta-grid { grid-template-columns: 1fr; gap: 24px; }
}

.block {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.block-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: .5px;
}

.view-all {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all i {
    font-size: 10px;
}

/* HOT MAIN */
.hot-main {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 200px;
    margin-bottom: 14px;
}

.hot-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
    color: #fff;
}

.badge {
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 6px;
}

.hot-overlay h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.hot-overlay p {
    font-size: 12px;
    opacity: .9;
    margin-bottom: 4px;
}

.hot-overlay .rating {
    color: #fff;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.rating i {
    color: var(--star);
}

.rating span {
    color: var(--text-muted);
    font-weight: 400;
}

.hot-list li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.hot-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hot-list img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.hot-list h5 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.hot-list p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* FOOD */
.food-main {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 200px;
    margin-bottom: 12px;
}

.food-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.food-overlay h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.food-overlay .rating {
    color: #fff;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.food-thumb {
    text-align: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-soft);
    transition: transform .2s ease;
}

.food-thumb:hover {
    transform: translateY(-3px);
}

.food-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.food-thumb span {
    display: block;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 600;
}

/* MAP */
.map-preview {
    display: block;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 240px;
    margin-bottom: 14px;
    background: var(--bg-soft);
}

.map-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-pin {
    position: absolute;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: bounce 2s infinite;
}

.map-pin i {
    transform: rotate(45deg);
    font-size: 14px;
}

.pin-1 { top: 30%; left: 25%; }
.pin-2 { top: 50%; left: 55%; animation-delay: .3s; }
.pin-3 { top: 65%; left: 35%; animation-delay: .6s; }

@keyframes bounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-6px); }
}

.map-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ============ FEATURED ROW ============ */
.tour-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.tour-content {
    position: relative;
    z-index: 2;
}

.tour-content h3 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.tour-content p {
    font-size: 13px;
    opacity: .9;
    margin-bottom: 16px;
}

.tour-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 60%;
    z-index: 1;
    opacity: .5;
}

.tour-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: luminosity;
}

/* ARTICLE LIST */
.article-list li {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.article-list h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    font-size: 11px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* VIDEO */
.video-card {
    background: linear-gradient(135deg, var(--primary-dark), #2A0F4A);
    border-radius: var(--radius);
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.video-thumb {
    position: relative;
    height: 60%;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .75;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(255,255,255,0.25);
    transition: all .25s ease;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-content {
    padding: 20px;
}

.video-content h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.video-content p {
    font-size: 12px;
    opacity: .85;
    margin-bottom: 14px;
}

/* ============ TOP REVIEWS ============ */
.top-reviews {
    padding: 30px 0 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .5px;
}

.nav-arrows {
    display: flex;
    gap: 8px;
}

.nav-arrows button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-dark);
    cursor: pointer;
    transition: all .2s ease;
}

.nav-arrows button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.review-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all .25s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.review-img {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.review-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 13px;
}

.fav-btn:hover {
    background: var(--primary);
    color: #fff;
}

.review-info {
    padding: 12px 14px 14px;
}

.review-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.review-info p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============ FOOTER CTA ============ */
.footer-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 40px 0 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background:
        url('https://images.unsplash.com/photo-1528127269322-539801943592?w=400') center/cover no-repeat;
    opacity: .12;
    pointer-events: none;
}

.cta-col h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: .5px;
}

.cta-col p {
    font-size: 13px;
    opacity: .85;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all .2s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.newsletter {
    display: flex;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    border: 1px solid rgba(255,255,255,0.2);
}

.newsletter input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
}

.newsletter input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background .2s ease;
}

.newsletter button:hover {
    background: #E0A02E;
}

.qr-codes {
    display: flex;
    gap: 14px;
}

.qr-box {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
    color: var(--text-dark);
}

.qr-box img {
    width: 90px;
    height: 90px;
    margin: 0 auto 6px;
}

.qr-box span {
    font-size: 11px;
    font-weight: 600;
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 36px 0 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: .8px;
    opacity: .95;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    font-size: 13px;
    opacity: .8;
    transition: opacity .2s ease;
}

.footer-col ul a:hover {
    opacity: 1;
    color: var(--accent);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 30px;
    padding: 16px 0;
}

.copyright .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    font-size: 12px;
    opacity: .7;
}

.back-to-top {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all .2s ease;
}

.back-to-top:hover {
    background: var(--accent);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
    .main-nav a { font-size: 13px; padding: 14px 14px; }
    .search-mini { min-width: 220px; }
    .hero-title { font-size: 84px; }
}

@media (max-width: 1100px) {
    .header-top-inner { gap: 16px; }
    .search-mini { min-width: 200px; }
    .nav-extra { display: none; }
    .category-list { grid-template-columns: repeat(6, 1fr); }
    .review-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 72px; }
}

@media (max-width: 900px) {
    .header-top-inner { padding: 12px 16px; }
    .search-mini { display: none; }
    .main-nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
    }
    .main-nav ul::-webkit-scrollbar { display: none; }
    .main-nav a { white-space: nowrap; padding: 14px 12px; font-size: 12.5px; }
    .main-nav a i { display: none; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-slider { height: calc(70vh - 100px); min-height: 380px; max-height: 480px; }
    .hero-title { font-size: 60px; letter-spacing: 2px; }
    .hero-welcome { font-size: 18px; }
    .hero-tagline { font-size: 16px; }
    .hero-search { flex-direction: column; border-radius: 18px; padding: 12px; gap: 4px; }
    .search-field + .search-field { border-left: none; border-top: 1px solid var(--border); }
    .hero-search .btn { width: 100%; }
    .slider-arrow.prev { left: 12px; }
    .slider-arrow.next { right: 12px; }
    .slider-arrow { width: 42px; height: 42px; }
    .review-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .category-list { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .hero-slider { height: auto; min-height: 400px; padding: 50px 0 40px; }
    .hero-title { font-size: 48px; letter-spacing: 1px; }
    .hero-welcome { font-size: 16px; }
    .hero-tagline { font-size: 14px; }
    .hero-desc { font-size: 13px; }
    .header-actions { gap: 6px; }
    .header-actions .btn { padding: 9px 14px; font-size: 12px; }
    .logo-text span { display: none; }
    .logo-icon { width: 42px; height: 42px; font-size: 20px; }
    .logo-text h1 { font-size: 16px; }
    .logo .custom-logo { height: 40px; max-width: 170px; }
    .icon-btn { width: 36px; height: 36px; }
    .main-nav a { padding: 12px 10px; font-size: 12px; }
}

/* ============================================================
   HERO SLIDER (multi-slide) — bổ sung cho CPT hero_slide
   ============================================================ */
.hero-slider.has-slides {
    display: block; /* override flex để các slide xếp chồng tuyệt đối */
}
.hero-slider.has-slides .hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease;
    z-index: 1;
}
.hero-slider.has-slides .hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.hero-slider.has-slides .hero-content {
    transform: translateY(8px);
    transition: transform .9s ease, opacity .9s ease;
    opacity: 0;
}
.hero-slider.has-slides .hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}
.hero-btn { margin-top: 18px; display: inline-flex; }
.hero-search-bar {
    position: absolute;
    left: 50%;
    bottom: 46px;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    z-index: 6;
}
.slider-dots { z-index: 7; }
.slider-arrow { z-index: 8; }

@media (max-width: 768px) {
    .hero-slider.has-slides {
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 50px 0 30px;
    }
    .hero-slider.has-slides .hero-slide {
        position: relative;
        inset: auto;
        opacity: 1;
        visibility: visible;
        padding-bottom: 0;
        min-height: 360px;
    }
    .hero-slider.has-slides .hero-slide:not(.active) { display: none; }
    .hero-slider.has-slides .hero-content { opacity: 1; transform: none; }
    .hero-search-bar {
        position: static;
        transform: none;
        margin: 18px auto 0;
    }
}

/* ============================================================
   FAVORITES (Yêu thích)
   ============================================================ */
/* Badge số trên icon tim header — thay cho chấm ::after */
.icon-btn { position: relative; }
.icon-btn .fav-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--pink, #ff4d8d);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(255, 77, 141, 0.5);
    z-index: 2;
}
/* Khi đã có badge số thì ẩn chấm trang trí mặc định (nếu trình duyệt hỗ trợ :has) */
.icon-btn:has(.fav-count)::after { display: none; }

/* Nút tim đã chọn */
.fav-btn.is-fav,
.fav-btn.is-fav i { color: var(--pink, #ff4d8d) !important; }
.fav-btn { transition: transform .15s ease, color .2s ease; }
.fav-btn.is-fav { animation: rh-fav-pop .3s ease; }
@keyframes rh-fav-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}
/* Nút "Lưu lại" dạng btn khi active */
.action-buttons .fav-btn.is-fav {
    border-color: var(--pink, #ff4d8d);
    background: rgba(255, 77, 141, 0.08);
}

/* Trang danh sách yêu thích */
.rh-favorites-page #rh-favorites-list { min-height: 120px; }
.rh-favorites-page .muted { padding: 30px 0; }

/* ============================================================
   AJAX FILTER — trạng thái loading + helpful vote
   ============================================================ */
.posts-grid { position: relative; transition: opacity .2s ease; }
.posts-grid.rh-loading { opacity: .45; pointer-events: none; }
.posts-grid.rh-loading::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    width: 38px;
    height: 38px;
    margin-left: -19px;
    border: 3px solid rgba(31, 107, 58, 0.2);
    border-top-color: var(--primary, #1f6b3a);
    border-radius: 50%;
    animation: rh-spin .8s linear infinite;
    z-index: 5;
}
@keyframes rh-spin { to { transform: rotate(360deg); } }

.muted { color: #888; font-size: 14px; }

/* Nút "Hữu ích" đã bình chọn */
.review-foot button.voted {
    color: var(--primary, #1f6b3a);
    font-weight: 600;
    cursor: default;
}
.review-foot button.voted i { font-weight: 900; }
