/*
Theme Name: Flatsome Child - TravelReview
Description: TravelReview Custom Child Theme for Flatsome
Author: TravelReview Team
Template: flatsome
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS VARIABLES & GLOBAL RESET
   ========================================================================== */
:root {
    --tr-primary: #1e88e5;
    --tr-primary-hover: #1565c0;
    --tr-cyan: #00bcd4;
    --tr-gradient: linear-gradient(135deg, #1e88e5, #00bcd4);
    --tr-gradient-hover: linear-gradient(135deg, #1565c0, #0097a7);
    --tr-dark-navy: #0b1329;
    --tr-slate-900: #0f172a;
    --tr-slate-800: #1e293b;
    --tr-slate-700: #334155;
    --tr-slate-600: #475569;
    --tr-slate-500: #64748b;
    --tr-slate-400: #94a3b8;
    --tr-slate-200: #e2e8f0;
    --tr-slate-100: #f1f5f9;
    --tr-slate-50: #f8fafc;
    --tr-star: #f59e0b;
    --tr-card-bg: #ffffff;
    --tr-card-radius: 16px;
    --tr-shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --tr-shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08);
    --tr-shadow-lg: 0 20px 35px -10px rgba(0,0,0,0.12);
}

body.travelreview-theme {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: var(--tr-slate-800);
    background-color: var(--tr-slate-50);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

body.dark-mode {
    --tr-slate-50: #0f172a;
    --tr-card-bg: #1e293b;
    --tr-slate-800: #f8fafc;
    --tr-slate-600: #cbd5e1;
    --tr-slate-500: #94a3b8;
    --tr-slate-100: #334155;
    background-color: #0b1329;
    color: #f8fafc;
}

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

/* ==========================================================================
   HEADER NAVBAR
   ========================================================================== */
.tr-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.dark-mode .tr-header {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(51, 65, 85, 0.8);
}

.tr-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Brand Logo */
.tr-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 22px;
    color: var(--tr-slate-900);
}
.dark-mode .tr-logo { color: #ffffff; }

.tr-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--tr-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.tr-logo-text span {
    color: var(--tr-primary);
}

/* Navigation Menu */
.tr-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tr-nav-item a {
    text-decoration: none !important;
    font-weight: 500;
    font-size: 15px;
    color: var(--tr-slate-700);
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}
.dark-mode .tr-nav-item a { color: var(--tr-slate-200); }

.tr-nav-item.active a,
.tr-nav-item a:hover {
    color: var(--tr-primary);
}

.tr-nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tr-gradient);
    border-radius: 2px;
}

/* Header Action Buttons */
.tr-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tr-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--tr-slate-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}
.dark-mode .tr-icon-btn { color: var(--tr-slate-300); }

.tr-icon-btn:hover {
    background: var(--tr-slate-100);
    color: var(--tr-primary);
}

.tr-btn-login {
    background: var(--tr-gradient);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(30, 136, 229, 0.35);
    transition: all 0.3s ease;
}

.tr-btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.5);
}

/* ==========================================================================
   HERO BANNER & SEARCH WIDGET
   ========================================================================== */
.tr-hero {
    position: relative;
    min-height: 540px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

.tr-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 1;
}

.tr-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.tr-hero-title {
    color: #ffffff;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.tr-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
}

/* Search Box Container */
.tr-search-box {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-radius: 20px !important;
    padding: 16px 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    max-width: 1140px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}
.dark-mode .tr-search-box {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.tr-search-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tr-field-group {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 0 12px !important;
    height: 52px !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.dark-mode .tr-field-group {
    background: var(--tr-slate-800) !important;
    border-color: var(--tr-slate-700) !important;
}

.tr-field-group-first {
    flex: 1.4 1 0% !important;
}

.tr-field-group i {
    color: #94a3b8 !important;
    margin-right: 8px !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
}

/* Reset inputs and select elements inside search field groups */
.tr-field-group input[type="text"],
.tr-field-group select {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: normal !important;
    color: #0f172a !important;
    font-family: inherit !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.tr-field-group select {
    padding-right: 20px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 2px center !important;
    background-size: 14px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

.dark-mode .tr-field-group input[type="text"],
.dark-mode .tr-field-group select {
    color: #ffffff !important;
}

.tr-btn-search {
    height: 52px !important;
    padding: 0 26px !important;
    background: linear-gradient(135deg, #1e88e5, #00bcd4) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(30, 136, 229, 0.4) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 140px !important;
}

.tr-btn-search:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(30, 136, 229, 0.5) !important;
}

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */
.tr-section {
    padding: 56px 0;
}

.tr-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 28px !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
}

.tr-section-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--tr-slate-900) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}
.dark-mode .tr-section-title { color: #ffffff !important; }

.tr-section-link {
    color: var(--tr-primary) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: gap 0.2s ease !important;
}
.tr-section-link:hover {
    gap: 10px !important;
}

/* Carousel Controls */
.tr-nav-arrows {
    display: flex;
    gap: 8px;
}
.tr-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--tr-slate-200);
    background: #ffffff;
    color: var(--tr-slate-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.dark-mode .tr-arrow-btn {
    background: var(--tr-slate-800);
    border-color: var(--tr-slate-700);
    color: #ffffff;
}
.tr-arrow-btn:hover {
    background: var(--tr-primary);
    color: #ffffff;
    border-color: var(--tr-primary);
}

/* ==========================================================================
   SECTION 1: FEATURED DESTINATIONS
   ========================================================================== */
.tr-dest-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.tr-dest-card {
    position: relative;
    height: 300px;
    border-radius: var(--tr-card-radius);
    overflow: hidden;
    box-shadow: var(--tr-shadow-md);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tr-dest-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tr-shadow-lg);
}

.tr-dest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.tr-dest-card:hover .tr-dest-img {
    transform: scale(1.08);
}

.tr-dest-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    z-index: 2;
}

.tr-dest-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tr-badge-location {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.card-favorite {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tr-slate-600);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.card-favorite:hover {
    background: #ffffff;
    color: #ef4444;
}

.tr-dest-bottom {
    color: #ffffff;
}

.tr-dest-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.tr-dest-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.tr-stars {
    color: var(--tr-star);
    font-size: 12px;
}

/* ==========================================================================
   SECTION 2: EXPLORE BY REGION (PILLS)
   ========================================================================== */
.tr-region-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.tr-region-pill {
    background: var(--tr-card-bg);
    border: 1px solid var(--tr-slate-200);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: var(--tr-shadow-sm);
}
.dark-mode .tr-region-pill {
    border-color: var(--tr-slate-700);
}

.tr-region-pill:hover {
    transform: translateY(-3px);
    border-color: var(--tr-primary);
    box-shadow: var(--tr-shadow-md);
}

.tr-region-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tr-slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.tr-region-info {
    overflow: hidden;
}

.tr-region-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--tr-slate-900);
    margin-bottom: 2px;
}
.dark-mode .tr-region-name { color: #ffffff; }

.tr-region-count {
    font-size: 12px;
    color: var(--tr-slate-500);
}

/* ==========================================================================
   SECTION 3: LATEST REVIEWS (LAYOUT 3-COLUMN)
   ========================================================================== */
.tr-review-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 300px;
    gap: 24px;
}

/* Col 1: Main Featured Card */
.tr-featured-post {
    background: var(--tr-card-bg);
    border-radius: var(--tr-card-radius);
    overflow: hidden;
    box-shadow: var(--tr-shadow-md);
    border: 1px solid var(--tr-slate-200);
    display: flex;
    flex-direction: column;
}
.dark-mode .tr-featured-post { border-color: var(--tr-slate-700); }

.tr-featured-img-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.tr-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.tr-featured-post:hover .tr-featured-img {
    transform: scale(1.05);
}

.tr-badge-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--tr-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.tr-featured-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tr-featured-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--tr-slate-900);
    margin-bottom: 10px;
    line-height: 1.4;
}
.dark-mode .tr-featured-title { color: #ffffff; }

.tr-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--tr-slate-500);
    margin-bottom: 12px;
}

.tr-featured-excerpt {
    font-size: 14px;
    color: var(--tr-slate-600);
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tr-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}
.tr-author-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.tr-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--tr-slate-800);
}
.dark-mode .tr-author-name { color: #ffffff; }

/* Col 2: List of 3 Horizontal Cards */
.tr-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tr-horizontal-card {
    background: var(--tr-card-bg);
    border-radius: var(--tr-card-radius);
    padding: 12px;
    display: flex;
    gap: 14px;
    box-shadow: var(--tr-shadow-sm);
    border: 1px solid var(--tr-slate-200);
    transition: all 0.25s ease;
}
.dark-mode .tr-horizontal-card { border-color: var(--tr-slate-700); }
.tr-horizontal-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tr-shadow-md);
}

.tr-horiz-img-wrap {
    width: 120px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.tr-horiz-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tr-horiz-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--tr-primary);
    margin-bottom: 4px;
}

.tr-horiz-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tr-slate-900);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dark-mode .tr-horiz-title { color: #ffffff; }

/* Col 3: Sidebar Box "Cẩm nang du lịch" */
.tr-guide-box {
    background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
    border-radius: var(--tr-card-radius);
    padding: 24px 20px;
    border: 1px solid #bae6fd;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.dark-mode .tr-guide-box {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

.tr-guide-header {
    font-size: 18px;
    font-weight: 800;
    color: var(--tr-slate-900);
    margin-bottom: 18px;
}
.dark-mode .tr-guide-header { color: #ffffff; }

.tr-guide-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tr-guide-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--tr-slate-800);
    line-height: 1.4;
}
.dark-mode .tr-guide-item { color: var(--tr-slate-200); }

.tr-guide-item i {
    color: var(--tr-primary);
    font-size: 14px;
    margin-top: 2px;
}

.tr-btn-guide {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border: 1.5px solid var(--tr-primary);
    color: var(--tr-primary);
    border-radius: 25px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.tr-btn-guide:hover {
    background: var(--tr-primary);
    color: #ffffff;
}

/* ==========================================================================
   SECTION 4: TOP HOTELS & TOP RESTAURANTS
   ========================================================================== */
.tr-dual-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 32px !important;
    width: 100% !important;
    align-items: flex-start !important;
}

.tr-dual-grid > div,
.tr-dual-grid > .ux-builder-element {
    flex: 1 1 50% !important;
    width: 50% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .tr-dual-grid {
        flex-direction: column !important;
    }
    .tr-dual-grid > div,
    .tr-dual-grid > .ux-builder-element {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}

.tr-card-col-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tr-biz-card {
    background: var(--tr-card-bg);
    border-radius: var(--tr-card-radius);
    padding: 12px;
    display: flex;
    gap: 16px;
    border: 1px solid var(--tr-slate-200);
    box-shadow: var(--tr-shadow-sm);
    position: relative;
    transition: all 0.25s ease;
}
.dark-mode .tr-biz-card { border-color: var(--tr-slate-700); }
.tr-biz-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tr-shadow-md);
}

.tr-biz-img-wrap {
    width: 130px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

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

.tr-badge-discount {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
}

.tr-biz-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.tr-biz-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tr-slate-900);
    margin-bottom: 2px;
}
.dark-mode .tr-biz-title { color: #ffffff; }

.tr-biz-location {
    font-size: 12px;
    color: var(--tr-slate-500);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.tr-biz-rating-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 136, 229, 0.1);
    color: var(--tr-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
}

.tr-biz-price {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
}
.tr-biz-price-old {
    font-size: 12px;
    color: var(--tr-slate-400);
    text-decoration: line-through;
    margin-left: 6px;
}

/* ==========================================================================
   SECTION 5: VIDEO EXPERIENCES
   ========================================================================== */
.tr-video-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    scrollbar-width: none;
}
.tr-video-slider::-webkit-scrollbar { display: none; }

.tr-video-card {
    min-width: 280px;
    width: 280px;
    background: var(--tr-card-bg);
    border-radius: var(--tr-card-radius);
    overflow: hidden;
    box-shadow: var(--tr-shadow-sm);
    border: 1px solid var(--tr-slate-200);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.dark-mode .tr-video-card { border-color: var(--tr-slate-700); }
.tr-video-card:hover { transform: translateY(-4px); }

.tr-video-thumb {
    position: relative;
    height: 165px;
    overflow: hidden;
}

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

.tr-badge-4k {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: #f59e0b;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.tr-video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(30, 136, 229, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.15); }

.tr-video-body {
    padding: 14px;
}

.tr-video-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tr-slate-900);
    margin-bottom: 6px;
    line-height: 1.35;
}
.dark-mode .tr-video-title { color: #ffffff; }

.tr-video-views {
    font-size: 12px;
    color: var(--tr-slate-500);
}

/* ==========================================================================
   SECTION 6: READER TESTIMONIALS
   ========================================================================== */
.tr-review-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 12px;
}
.tr-review-slider::-webkit-scrollbar { display: none; }

.tr-review-card {
    min-width: 280px;
    width: 280px;
    background: var(--tr-card-bg);
    border-radius: var(--tr-card-radius);
    padding: 20px;
    border: 1px solid var(--tr-slate-200);
    box-shadow: var(--tr-shadow-sm);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.dark-mode .tr-review-card { border-color: var(--tr-slate-700); }

.tr-review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tr-review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.tr-review-username {
    font-weight: 700;
    font-size: 14px;
    color: var(--tr-slate-900);
}
.dark-mode .tr-review-username { color: #ffffff; }

.tr-review-city {
    font-size: 12px;
    color: var(--tr-slate-500);
}

.tr-review-stars {
    color: var(--tr-star);
    font-size: 13px;
    margin-bottom: 10px;
}

.tr-review-text {
    font-size: 13.5px;
    color: var(--tr-slate-600);
    line-height: 1.5;
}
.dark-mode .tr-review-text { color: var(--tr-slate-300); }

/* ==========================================================================
   SECTION 7: NEWSLETTER BANNER
   ========================================================================== */
.tr-newsletter-banner {
    background: var(--tr-gradient);
    border-radius: 24px;
    padding: 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(30, 136, 229, 0.35);
    position: relative;
    overflow: hidden;
}

.tr-news-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tr-news-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.tr-news-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.tr-news-desc {
    font-size: 14px;
    opacity: 0.9;
}

.tr-news-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    width: 100%;
}

.tr-news-input {
    flex-grow: 1;
    height: 48px;
    border-radius: 12px;
    border: none !important;
    padding: 0 16px;
    font-size: 14px;
    outline: none !important;
}

.tr-btn-news {
    height: 48px;
    padding: 0 24px;
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.tr-btn-news:hover { background: #0369a1; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tr-footer {
    background: var(--tr-dark-navy);
    color: var(--tr-slate-400);
    padding-top: 60px;
    font-size: 14px;
}

.tr-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.tr-footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.tr-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tr-footer-links a {
    color: var(--tr-slate-400);
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.tr-footer-links a:hover { color: #ffffff; }

.tr-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.tr-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.tr-social-icon:hover { background: var(--tr-primary); }

.tr-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tr-scroll-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.tr-scroll-top:hover { background: var(--tr-primary); }

/* Hide default Flatsome parent theme header & footer widgets */
#top-bar,
.top-bar,
.header-wrapper > .header-main:not(.tr-header),
.footer-widgets,
.absolute-footer,
#footer-1,
#footer-2 {
    display: none !important;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1024px) {
    .tr-dest-grid { grid-template-columns: repeat(3, 1fr); }
    .tr-region-grid { grid-template-columns: repeat(3, 1fr); }
    .tr-review-grid { grid-template-columns: 1fr; }
    .tr-dual-grid { grid-template-columns: 1fr; }
    .tr-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .tr-hero-title { font-size: 32px; }
}

@media (max-width: 640px) {
    .tr-dest-grid { grid-template-columns: repeat(1, 1fr); }
    .tr-region-grid { grid-template-columns: repeat(2, 1fr); }
    .tr-search-grid { grid-template-columns: 1fr; }
    .tr-newsletter-banner { flex-direction: column; gap: 20px; text-align: center; }
    .tr-news-left { flex-direction: column; }
    .tr-news-form { flex-direction: column; }
    .tr-footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SINGLE POST & ARCHIVE STYLES
   ========================================================================== */
.tr-single-wrapper {
    background-color: var(--tr-slate-50);
    min-height: 80vh;
}
.tr-single-hero {
    background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
    color: #fff;
    padding: 30px 0 40px;
}
.tr-breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tr-breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.tr-breadcrumb a:hover {
    color: #38bdf8;
}
.tr-breadcrumb .separator {
    font-size: 10px;
    opacity: 0.5;
}
.tr-single-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
    margin: 12px 0 16px;
}
.tr-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}
.tr-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tr-meta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}
.tr-single-body-container {
    padding: 40px 15px;
}
.tr-single-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}
.tr-single-main {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--tr-shadow-sm);
    border: 1px solid var(--tr-slate-200);
}
.tr-single-featured-img {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    max-height: 480px;
}
.tr-single-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tr-single-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--tr-slate-700);
}
.tr-single-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--tr-slate-900);
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}
.tr-single-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--tr-slate-900);
    margin: 24px 0 12px;
}
.tr-single-content p {
    margin-bottom: 18px;
}
.tr-single-content ul, .tr-single-content ol {
    margin: 0 0 20px 24px;
}
.tr-single-content li {
    margin-bottom: 8px;
}
.tr-single-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid var(--tr-slate-200);
}
.tr-single-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--tr-slate-500);
}
.tr-tag-pill {
    background: var(--tr-slate-100);
    color: var(--tr-slate-700);
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}
.tr-tag-pill:hover {
    background: #1e88e5;
    color: #ffffff;
}
.tr-single-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tr-slate-700);
}
.tr-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: transform 0.2s ease;
}
.tr-share-btn:hover {
    transform: translateY(-2px);
}
.tr-share-btn.fb { background: #1877f2; }
.tr-share-btn.tw { background: #0f1419; }
.tr-share-btn.copy { background: #64748b; }

.tr-author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--tr-slate-100);
    padding: 24px;
    border-radius: 16px;
    margin-top: 32px;
}
.tr-author-box-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
}
.tr-author-box-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--tr-slate-900);
}
.tr-author-box-info p {
    font-size: 14px;
    color: var(--tr-slate-600);
    margin: 0;
}

.tr-related-section {
    margin-top: 40px;
}
.tr-related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tr-slate-900);
    margin-bottom: 20px;
}
.tr-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.tr-related-card {
    background: #ffffff;
    border: 1px solid var(--tr-slate-200);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease;
}
.tr-related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tr-shadow-md);
}
.tr-related-img-wrap {
    height: 120px;
    overflow: hidden;
}
.tr-related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tr-related-card-body {
    padding: 12px;
}
.tr-related-card-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--tr-slate-900);
    line-height: 1.4;
    margin-bottom: 6px;
}

/* Sidebar Widgets */
.tr-sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--tr-shadow-sm);
    border: 1px solid var(--tr-slate-200);
}
.tr-sidebar-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--tr-slate-900);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tr-slate-100);
}
.tr-sidebar-search {
    display: flex;
    gap: 8px;
}
.tr-sidebar-search input {
    flex: 1;
    border: 1px solid var(--tr-slate-300);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
}
.tr-sidebar-search button {
    background: #1e88e5;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    cursor: pointer;
}
.tr-sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tr-sidebar-cat-list li {
    margin-bottom: 10px;
}
.tr-sidebar-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--tr-slate-50);
    border-radius: 8px;
    color: var(--tr-slate-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}
.tr-sidebar-cat-list a:hover {
    background: #e0f2fe;
    color: #0284c7;
}
.tr-sidebar-cat-list .cat-count {
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.tr-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tr-sidebar-post-item {
    display: flex;
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
}
.tr-sidebar-post-item img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}
.tr-sidebar-post-item h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--tr-slate-900);
    line-height: 1.4;
    margin-bottom: 4px;
}
.tr-sidebar-post-item span {
    font-size: 11px;
    color: var(--tr-slate-500);
}
.tr-sidebar-news-card {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: #ffffff;
}
.tr-sidebar-news-card .tr-sidebar-heading,
.tr-sidebar-news-card h4 {
    color: #ffffff;
    border: none;
}
.tr-sidebar-news-card p {
    font-size: 13px;
    opacity: 0.9;
}
.tr-sidebar-news-form input {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
}

@media (max-width: 991px) {
    .tr-single-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   NEWSLETTER BANNER STYLES - PERFECT BALANCE & CONTRAST
   ========================================================================== */
.tr-newsletter-banner {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-radius: 20px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.25);
    color: #ffffff;
}

.tr-news-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.tr-news-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
}

.tr-news-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.tr-news-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.tr-news-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 6px 6px 6px 18px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 420px;
    max-width: 480px;
    box-sizing: border-box;
}

.tr-news-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
    color: #0f172a !important;
    flex: 1;
    padding: 8px 12px 8px 0 !important;
    height: auto !important;
    margin: 0 !important;
}

.tr-news-input::placeholder {
    color: #94a3b8;
}

.tr-btn-news {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap !important;
    transition: background 0.2s ease;
    height: auto !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    flex-shrink: 0;
}

.tr-btn-news:hover {
    background: #1e293b !important;
}

@media (max-width: 991px) {
    .tr-newsletter-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
    .tr-news-left {
        flex-direction: column;
        gap: 12px;
    }
    .tr-news-form {
        width: 100%;
        min-width: unset;
    }
}

/* ==========================================================================
   POST CONTENT IMAGES (CENTERED & ROUNDED CORNERS LIKE AVATAR)
   ========================================================================== */
.tr-single-content img,
.tr-article-content img,
.entry-content img,
.post-content img,
.single .content img,
article .tr-single-content img,
article .tr-article-content img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 16px !important; /* Bo góc mượt mà như ảnh đại diện / thẻ card */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tr-single-content img:hover,
.tr-article-content img:hover,
.entry-content img:hover,
.post-content img:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Override WordPress default alignleft / alignright to ensure centering */
.tr-single-content img.alignleft,
.tr-single-content img.alignright,
.tr-single-content img.aligncenter,
.tr-article-content img.alignleft,
.tr-article-content img.alignright,
.tr-article-content img.aligncenter,
.entry-content img.alignleft,
.entry-content img.alignright,
.entry-content img.aligncenter {
    float: none !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    clear: both !important;
}

/* Ensure figure, .wp-block-image, and paragraph wrappers are centered */
.tr-single-content figure,
.tr-article-content figure,
.entry-content figure,
.post-content figure,
.tr-single-content .wp-block-image,
.tr-article-content .wp-block-image,
.entry-content .wp-block-image,
.post-content .wp-block-image,
.tr-single-content p:has(> img),
.tr-article-content p:has(> img),
.entry-content p:has(> img),
.post-content p:has(> img) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
}

.tr-single-content figcaption,
.tr-article-content figcaption,
.entry-content figcaption,
.post-content figcaption {
    text-align: center !important;
    margin-top: 10px !important;
    font-size: 14px !important;
    color: var(--tr-slate-500) !important;
    font-style: italic;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & UNIVERSAL RESPONSIVE OPTIMIZATION
   ========================================================================== */
html, body, #wrapper {
    overflow-x: hidden;
    max-width: 100%;
}

.tr-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--tr-slate-800);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.dark-mode .tr-mobile-toggle { color: #ffffff; }
.tr-mobile-toggle:hover { background: var(--tr-slate-100); }

/* Backdrop Overlay */
.tr-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.tr-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Off-Canvas Drawer */
.tr-mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.dark-mode .tr-mobile-drawer {
    background: var(--tr-dark-navy);
    color: #ffffff;
}
.tr-mobile-drawer.active {
    transform: translateX(-320px);
}

.tr-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--tr-slate-200);
}
.dark-mode .tr-drawer-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.tr-drawer-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--tr-slate-600);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.dark-mode .tr-drawer-close { color: #ffffff; }
.tr-drawer-close:hover { background: var(--tr-slate-100); }

.tr-drawer-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.tr-drawer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tr-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--tr-slate-800);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}
.dark-mode .tr-drawer-nav a { color: var(--tr-slate-200); }
.tr-drawer-nav li.active a,
.tr-drawer-nav a:hover {
    background: var(--tr-slate-100);
    color: var(--tr-primary);
}
.dark-mode .tr-drawer-nav li.active a,
.dark-mode .tr-drawer-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
}

.tr-drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--tr-slate-200);
}
.dark-mode .tr-drawer-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Breakpoint 1200px: Desktop Adjustments */
@media (max-width: 1200px) {
    .tr-container { max-width: 960px; }
    .tr-tour-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Breakpoint 991px: Tablet & Mobile Header Transition */
@media (max-width: 991px) {
    .tr-container { max-width: 720px; }
    .tr-nav { display: none !important; }
    .tr-mobile-toggle { display: inline-flex !important; }

    .tr-single-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    .tr-tour-grid { grid-template-columns: repeat(2, 1fr); }
    .tr-dest-grid { grid-template-columns: repeat(2, 1fr); }
    .tr-region-grid { grid-template-columns: repeat(2, 1fr); }
    .tr-review-grid { grid-template-columns: 1fr; }
    .tr-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Breakpoint 768px: Small Tablets & Large Phones */
@media (max-width: 768px) {
    .tr-container { padding: 0 16px; }
    .tr-header-inner { height: 64px; }
    
    .tr-single-title { font-size: 24px; }
    .tr-single-hero { padding: 20px 0 28px; }
    .tr-single-main { padding: 20px; border-radius: 16px; }
    
    .tr-hero-title { font-size: 26px; }
    .tr-hero-subtitle { font-size: 15px; }

    .tr-tour-grid { grid-template-columns: 1fr; }
    .tr-dest-grid { grid-template-columns: 1fr; }
    .tr-region-grid { grid-template-columns: 1fr; }
    .tr-footer-grid { grid-template-columns: 1fr; }
    
    .tr-single-footer-bar { flex-direction: column; gap: 16px; align-items: flex-start; }
    .tr-author-box { flex-direction: column; text-align: center; }
}

/* Breakpoint 576px & 420px: Small Mobile Phones */
@media (max-width: 576px) {
    .tr-btn-login { display: none !important; }
    
    .tr-search-box {
        padding: 16px;
        border-radius: 16px;
    }
    
    .tr-newsletter-banner {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    input, select, textarea, button {
        font-size: 16px !important; /* Prevent iOS zoom-on-focus */
    }
}