/*
Theme Name: Vietnam Motorbike Tour_Child
Description: Modern child theme for Flatsome with Tailwind CSS, Dark/Light Mode & AOS Animations
Author: UX Themes
Template: flatsome
Version: 4.0
*/

/* ============================================
   CSS CUSTOM PROPERTIES (Color System)
   ============================================ */
:root {
    /* Primary - Brand Red */
    --color-primary: #a10c10;
    --color-primary-hover: #7a0a0c;
    --color-primary-light: #dc2626;
    
    /* Text Colors */
    --color-text: #1d1d1d;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    
    /* Background Colors */
    --color-bg: #ffffff;
    --color-bg-secondary: #f3f4f6;
    --color-bg-tertiary: #e5e7eb;
    
    /* Border & Shadow */
    --color-border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Spacing */
    --spacing-section: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

/* Dark Mode Variables */
.dark {
    --color-text: #f9fafb;
    --color-text-muted: #9ca3af;
    --color-text-light: #6b7280;
    
    --color-bg: #111827;
    --color-bg-secondary: #1f2937;
    --color-bg-tertiary: #374151;
    
    --color-border: #374151;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

/* ============================================
   BASE STYLES
   ============================================ */

/* Apply color scheme to body */
body {
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Dark mode for Flatsome elements */
.dark .header-main,
.dark .header-bottom,
.dark .footer-wrapper,
.dark .absolute-footer {
    background-color: var(--color-bg-secondary) !important;
    color: var(--color-text);
}

.dark .nav > li > a,
.dark .header-nav a {
    color: var(--color-text) !important;
}

/* ============================================
   TOUR CARD COMPONENT
   ============================================ */
.tour-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.tour-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.tour-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.tour-card:hover .tour-card__image img {
    transform: scale(1.05);
}

.tour-card__badge {
    position: absolute;
    top: 1rem;
    z-index: 10;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    border-radius: var(--radius-md);
    background: var(--color-primary);
}

.tour-card__badge--left {
    left: 1rem;
}

.tour-card__badge--right {
    right: 1rem;
}

.tour-card__content {
    padding: 1.25rem;
}

.tour-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
}

.tour-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.tour-card__title a:hover {
    color: var(--color-text);
}

.tour-card__location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.tour-card__excerpt {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
}

.tour-card__duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.tour-card__duration-value {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ============================================
   SINGLE TOUR PAGE
   ============================================ */
.single-tour {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    line-height: 1.8;
    margin: 1.5rem auto;
    padding: 1.5rem;
}

@media (min-width: 1024px) {
    .single-tour {
        padding: 2rem;
    }
}

.single-tour__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .single-tour__title {
        font-size: 2.25rem;
    }
}

.single-tour__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.single-tour__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.single-tour__price {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-primary);
}

.single-tour__section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.sidebar-widget {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-primary);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-fast);
}

.accordion-title:hover {
    color: var(--color-primary);
}

.accordion-title .toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: var(--color-bg-secondary);
    transition: transform var(--transition-normal), background var(--transition-fast);
}

.accordion-item.is-open .accordion-title .toggle {
    transform: rotate(180deg);
    background: var(--color-primary);
    color: #fff;
}

.accordion-inner {
    padding: 0 0 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   TAGS
   ============================================ */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.tag-item:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: 1rem 0;
}

#breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

#breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

#breadcrumb a:hover {
    color: var(--color-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

/* Fixed CTA Button (Mobile) */
.btn-fixed-cta {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
    .btn-fixed-cta {
        position: static;
        box-shadow: none;
    }
}

/* ============================================
   DARK MODE TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--color-bg-tertiary);
}

.theme-toggle__icon--light,
.dark .theme-toggle__icon--dark {
    display: none;
}

.dark .theme-toggle__icon--light {
    display: block;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--color-primary) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-bg-secondary) !important; }

/* Image Cover (Override Flatsome) */
.image-cover {
    padding-top: 75% !important;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.image-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 48em) {
    .single-tour {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .single-tour__title {
        font-size: 1.5rem;
    }
    
    .youtube_single iframe {
        height: 250px !important;
    }
}

/* ============================================
   INCLUSION/EXCLUSION LISTS
   ============================================ */
.inclusion-list,
.exclusion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inclusion-list li,
.exclusion-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--color-text);
}

.inclusion-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: 700;
}

.exclusion-list li::before {
    content: "✕";
    color: #ef4444;
    font-weight: 700;
}

/* ============================================
   OWL CAROUSEL OVERRIDES
   ============================================ */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-full) !important;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

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

.owl-prev { left: -1rem; }
.owl-next { right: -1rem; }

.owl-nav span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.owl-nav button:hover span {
    color: #fff;
}

/* ============================================
   POST CONTENT STYLING
   ============================================ */
.post-content {
    text-align: justify;
    color: var(--color-text);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.post-content ul li {
    color: var(--color-text);
    margin-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-content a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-content a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* ============================================
   HIDE FLATSOME DEFAULTS WE'RE OVERRIDING
   ============================================ */
.absolute-footer.dark { display: none; }