 
/* ==========================================================================
   1. NAVBAR & GENERIC STYLES
   ========================================================================== */

/* Navbar active item styling */
.navbar .nav-item.active .nav-link {
    color: white !important;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Force body and header to prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.body {
    padding: 40px 0;
    background: #f8f9fa;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

.li .bb a {
    color: white;
    text-decoration: none;
}

.li .bb a:hover {
    color: orange;
}


/* ==========================================================================
   2. OWL CAROUSEL GENERAL & NAVIGATION (Global Overrides)
   ========================================================================== */

.carousel-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0; 
}

.item {
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 10px;
    height: auto;
}

.item:hover {
    color: orange;
}

/* Hide dots globally */
.owl-dots {
    display: none !important;
}

/* Custom navigation arrows - POSITIONED ON SIDES */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    left: 0;
    z-index: 10;
}

.owl-nav button {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #fff !important;
    color: #333 !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.owl-nav button:hover {
    background: #007bff !important;
    color: white !important;
    transform: scale(1.1);
}

.owl-prev { left: -25px !important; }
.owl-next { right: -25px !important; }

/* Disable hover effect on disabled buttons */
.owl-nav button.disabled {
    opacity: 0.3;
    cursor: default;
    transform: none !important;
}

/* Custom Carousel Caption */
.custom-carousel-caption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    text-align: left;
    padding: 8px 12px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 4px;
}

.custom-carousel-caption h5 {
    font-size: 14px;
    margin: 0;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

@media (min-width: 768px) {
    .custom-carousel-caption {
        left: 10px;
        bottom: 10px;
        padding: 10px;
    }
    .custom-carousel-caption h5 {
        font-size: 20px;
    }
}


/* ==========================================================================
   3. TOUR CARD (A1 - Type 1 & General)
   ========================================================================== */

.a1 .card {
    transition: all 0.3s ease;
}

.a1 .card .star { color: #FFC300; }
.a1 .card .price { color: orange; }

.a1 .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: #5d6d7e;
    color: white;
}

.a1 a {
    text-decoration: none;
    color: inherit;
}

.a1 a:hover {
    text-decoration: none;
}


/* ==========================================================================
   4. TOUR BANNER STYLES (Type 2)
   ========================================================================== */

.aw-tour-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    background-color: #f8f5f0;
    color: #333;
    line-height: 1.6;
}

.aw-tour-header { text-align: center; margin-bottom: 30px; }
.aw-tour-title { color: #d4af37; font-size: 2.5rem; margin-bottom: 10px; }
.aw-tour-subtitle { color: #8c6d46; font-size: 1.2rem; margin-bottom: 30px; }

.aw-tour-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.aw-tour-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 350px;
    cursor: pointer;
}

.aw-tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.aw-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.aw-card-content { padding: 20px; }

.aw-card-title {
    font-size: 1.5rem;
    color: #8c6d46;
    margin-bottom: 10px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 8px;
}

.aw-card-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.aw-card-button {
    display: inline-block;
    background-color: #d4af37;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.aw-card-button:hover { background-color: #b8941f; }

.aw-tour-details, .aw-tour-details1 {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.aw-tour-details { display: none; }

.aw-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 15px;
}

.aw-details-title { font-size: 1.8rem; color: #8c6d46; }
.aw-close-button { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #8c6d46; }
.aw-details-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aw-details-image { height: 250px; background-size: cover; background-position: center; border-radius: 8px; }
.aw-details-text { color: #666; }
.aw-details-highlights { margin-top: 20px; }
.aw-details-highlights h3 { color: #8c6d46; margin-bottom: 10px; }
.aw-details-highlights ul { padding-left: 20px; }
.aw-details-highlights li { margin-bottom: 8px; }
.aw-booking-section { margin-top: 30px; text-align: center; }

.aw-booking-button {
    display: inline-block;
    background-color: #8c6d46;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.aw-booking-button:hover { background-color: #6d5334; }
.aw-tour-footer { text-align: center; margin-top: 50px; padding: 20px; color: #8c6d46; border-top: 1px solid #e0d6c8; }

/* Mobile Styles for Type 2 */
@media (max-width: 768px) {
    .aw-details-content { grid-template-columns: 1fr; }
    .aw-tour-title { font-size: 2rem; }
    .aw-card-image, .aw-card-description, .aw-card-button { display: none; }
    .aw-card-content { padding: 15px; text-align: center; }
    .aw-card-title { font-size: 1.3rem; margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
    .aw-tour-card { max-width: 100%; margin-bottom: 10px; }
    .aw-tour-banner { gap: 10px; }
}


/* ==========================================================================
   5. MODERN REVIEWS STYLES (Type 3)
   ========================================================================== */

.review-card-modern {
    background: #ffffff;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
    animation: fadeInUp 0.5s ease-out;
}

.review-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 36px -12px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tour-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f8f9fc 0%, #f1f3f8 100%);
    padding: 0.35rem 1rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2c5f8a;
    letter-spacing: 0.3px;
    border: 1px solid rgba(44, 95, 138, 0.1);
}

.star-rating-modern {
    letter-spacing: 2px;
    color: #f5b042;
    background: #fff8ed;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-size: 0.85rem;
}

.review-title-modern {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.45;
    color: #1a2c3e;
    margin: 0.75rem 0 0.25rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.review-title-modern:hover { color: #2c7da0; }

.review-meta-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #8a99aa;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f8;
}

.review-text-modern {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #4a5b6e;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.25s ease;
    margin-bottom: 0;
}

.review-text-modern.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.read-more-btn-modern {
    background: none;
    border: none;
    color: #2c7da0;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.3rem 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.read-more-btn-modern:hover { color: #1f5e7e; gap: 8px; }

.btn-allreview-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 0.75rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c5f8a;
    border: 1.5px solid #dce5ed;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.btn-allreview-modern:hover {
    background: linear-gradient(135deg, #2c5f8a 0%, #1f4e72 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 95, 138, 0.2);
}

.total-badge-modern {
    background: rgba(44, 95, 138, 0.12);
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 6px;
    transition: all 0.3s ease;
}

.btn-allreview-modern:hover .total-badge-modern { background: rgba(255, 255, 255, 0.2); color: white; }

/* Review Stagger Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.col-md-6:nth-child(1) .review-card-modern { animation-delay: 0.05s; }
.col-md-6:nth-child(2) .review-card-modern { animation-delay: 0.1s; }
.col-md-6:nth-child(3) .review-card-modern { animation-delay: 0.15s; }
.col-md-6:nth-child(4) .review-card-modern { animation-delay: 0.2s; }
.col-md-6:nth-child(5) .review-card-modern { animation-delay: 0.25s; }
.col-md-6:nth-child(6) .review-card-modern { animation-delay: 0.3s; }

@media (max-width: 768px) {
    .review-card-modern .card-body { padding: 1.25rem !important; }
    .review-title-modern { font-size: 1rem; }
    .btn-allreview-modern { padding: 0.6rem 1.5rem; font-size: 0.85rem; }
}


/* ==========================================================================
   6. FEATURED TOURS CAROUSELS (Type 4, 6 & 7 Unified)
   ========================================================================== */

.featured-tours-carousel, .featured-tours-carousela {
    padding: 0 40px;
}

.tour-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.tour-image-container, .tour-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
}

.tour-card-image, .tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-popular-badge, .tour-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
}
.tour-badge { background: #ff4757; top: 15px; left: 15px; }

.tour-card-overlay, .tour-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 16px;
    z-index: 1;
}
.tour-image-overlay { padding: 20px; }

.tour-card-title, .tour-title-overlay { color: white; margin: 0; font-size: 1.1rem; }
.tour-card-content { padding: 16px; }
.tour-name { font-size: 1.25rem; margin-bottom: 12px; color: #2f3542; }

.tour-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.tour-star-rating, .tour-rating-stars { color: #ffc107; font-weight: bold; }
.tour-rating-stars { color: #ffa502; }
.tour-review-count { color: #333; font-weight: 500; }
.tour-review-label { color: #6c757d; }

.tour-price { color: #ffc107; font-size: 1.25rem; font-weight: bold; margin-bottom: 12px; }

/* Line clamping handles for tour descriptions */
.tour-description {
    color: #495057;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    min-height: 4em;
}

.tour-description1 {
    color: #57606f;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    line-height: 1.5;
}

.tour-description3 {
    color: #57606f;
    display: -webkit-box; /* Fixed to box standard */
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    line-height: 1.5;
    max-width: 100%;
}

/* Pricing Layout inside Cards */
.tour-pricing { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tour-original-price { color: #747d8c; text-decoration: line-through; font-size: 0.9rem; }
.tour-current-price { color: #ff4757; font-size: 1.4rem; font-weight: bold; }
.tour-price-note { color: #57606f; font-size: 0.9rem; }

/* Specific Owl Nav Positioning inside Featured Section */
.featured-tours-carousel .owl-nav button, 
.featured-tours-carousela .owl-nav button {
    background: rgba(255,255,255,0.9) !important;
    color: #333 !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
}
.featured-tours-carousel .owl-prev, .featured-tours-carousela .owl-prev { left: -20px !important; }
.featured-tours-carousel .owl-next, .featured-tours-carousela .owl-next { right: -20px !important; }


/* ==========================================================================
   7. MODERN TOOLS NAVIGATION (Blog, Tips, Pickup Section)
   ========================================================================== */

.aw-modern-tools-container {
    width: 100%;
    margin: 0;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
}

.aw-modern-tools {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #A38A68;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.modern-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Mobile Responsive For Tools Header & Titles */
@media (max-width: 767px) {
    .aw-modern-tools {
        gap: 10px;
        padding: 0 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .modern-icon { display: none !important; }
    .tool-item { font-size: 0.75rem; margin: 5px !important; }
    
    .aw-tour-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        word-wrap: break-word;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .aw-tour-title {
        font-size: 1.4rem !important;
        line-height: 1.5;
        padding: 0 15px;
    }
}


/* ==========================================================================
   8. JAPANESE GUIDE TEAM SECTION
   ========================================================================== */

.guide-team-title {
    color: #2c3e50;
    font-weight: 600;
    border-left: 4px solid #e74c3c;
    padding-left: 15px;
}

.guide-profile-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    min-height: 100px;
}

.guide-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

.guide-profile-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.guide-english-name { color: #2c3e50; font-size: 1.1rem; }
.guide-japanese-name { color: #7f8c8d; font-size: 0.9rem; font-weight: 500; }
.guide-mobile-card { padding: 10px 0; }

.mobile-guide-avatar {
    position: relative;
    width: 120px;
    height: 120px;
}

.mobile-guide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    color: white;
    padding: 20px 5px 5px 5px;
    text-align: center;
    border-radius: 0 0 50% 50%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-jp-name {
    font-size: 14px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specific Carousel Navigation Settings for Japanese Guides Section */
#japaneseGuideCarousel .owl-nav {
    text-align: center;
    margin-top: 20px;
}

#japaneseGuideCarousel .owl-nav button {
    background: #3498db !important;
    color: white !important;
    width: 40px;
    height: 40px;
    margin: 0 10px;
    font-size: 20px !important;
}

#japaneseGuideCarousel .owl-dots { display: block !important; margin-top: 15px; }
#japaneseGuideCarousel .owl-dot span { background: #bdc3c7 !important; width: 12px; height: 12px; margin: 5px; }
#japaneseGuideCarousel .owl-dot.active span { background: #3498db !important; transform: scale(1.2); }

/* Japanese Guides Responsive Layout */
@media (max-width: 768px) {
    .guide-profile-card {
        flex-direction: column !important;
        text-align: center;
        padding: 20px 15px !important;
    }
    .guide-avatar { margin-bottom: 15px; margin-right: 0 !important; }
    .guide-profile-img { width: 80px; height: 80px; }
    #japaneseGuideCarousel .guide-item { display: flex; justify-content: center; align-items: center; }
    .mobile-guide-avatar { width: 100px; height: 100px; }
    .name-overlay { height: 35px; padding: 15px 5px 5px 5px; }
    .mobile-jp-name { font-size: 12px; }
}

@media (max-width: 480px) {
    .mobile-guide-avatar { width: 90px; height: 90px; }
    .name-overlay { height: 30px; }
    .mobile-jp-name { font-size: 11px; }
}


/* --- បង្ខំឱ្យប្រអប់ Owl Carousel លាតកម្ពស់ស្មើគ្នា --- */
.my-special-slider .owl-stage {
    display: flex !important;
}
.my-special-slider .owl-item {
    display: flex !important;
}
.my-special-slider .item1.a1 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
}
.my-special-slider .tour-card-link {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    text-decoration: none !important;
    height: 100% !important;
}

/* --- រៀបចំរចនាសម្ព័ន្ធកាតខាងក្នុង --- */
.tour-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    justify-content: space-between !important;
}
.tour-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}
.tour-description {
    flex-grow: 1 !important; /* រុញផ្នែក rating និងតម្លៃឱ្យធ្លាក់ទៅបាតស្មើគ្នា */
}


/* --- កូដសម្រាប់ Slide ទី 2 (featured-tours-carousel1) --- */
.featured-tours-carousel1 .owl-stage {
    display: flex !important;
}
.featured-tours-carousel1 .owl-item {
    display: flex !important;
}
.featured-tours-carousel1 .featured-tour-item {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
}
.featured-tours-carousel1 .tour-card-link {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    height: 100% !important;
}
.featured-tours-carousel1 .tour-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* បង្ខំឱ្យប្រអប់រូបភាពបើកចំហរទិន្នន័យ និងបង្ហាញអក្សរមកវិញ */
.featured-tours-carousel1 .tour-image-wrapper {
    height: auto !important; /* បើកកម្ពស់ឱ្យរត់តាមទិន្នន័យជាក់ស្តែង */
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* រៀបចំឱ្យរូបភាព និងអក្សររត់ត្រូវរចនាបថ */
.featured-tours-carousel1 .tour-card-image {
    width: 100% !important;
    object-fit: cover !important;
}

.featured-tours-carousel1 .tour-description {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-grow: 1 !important; /* រុញឱ្យអត្ថបទវែងខ្លីយ៉ាងណា ក៏កាតលាតស្មើគ្នាដែរ */
    color: #333 !important; /* ប្តូរពណ៌អក្សរទៅជាពណ៌ខ្មៅស្រអាប់ដើម្បីឱ្យងាយមើល */
}
