/* =====================================================
   Double Enjoy Travel - Main Stylesheet
   =====================================================
   Character: Friendly, Sincere, Credible
   Theme Colors:
     Primary Turquoise: #02A396
     Secondary Mint: #11CFBB
     Accent Gold: #F7AF2E
   Bootstrap: v5.3.3
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&family=Noto+Sans+Thai:wght@100..900&display=swap');


/* === CSS Variables === */
:root {
    --de-primary: #02A396;
    --de-primary-dark: #028a7f;
    --de-primary-light: #03c4b5;
    --de-secondary: #11CFBB;
    --de-secondary-light: #4de0d1;
    --de-accent: #F7AF2E;
    --de-accent-dark: #e09a1a;
    --de-accent-light: #f9c35c;
    --de-text: #333333;
    --de-text-light: #666666;
    --de-text-muted: #999999;
    --de-bg-light: #f8f9fa;
    --de-bg-gray: #f0f4f3;
    --de-white: #ffffff;
    --de-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --de-shadow-hover: 0 8px 25px rgba(2, 163, 150, 0.15);
    --de-radius: 12px;
    --de-radius-sm: 8px;
    --de-radius-lg: 20px;
    --de-transition: all 0.3s ease;
}

/* === Base Styles === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans Thai',Tahoma, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px !important;
    line-height: 1.6;
    color: var(--de-text);
    background: var(--de-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Sans Thai', Tahoma, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--de-text);
}

a {
    color: var(--de-primary);
    text-decoration: none;
    transition: var(--de-transition);
}
a:hover { color: var(--de-primary-dark); }

/* === Topbar === */
.de-topbar {
    background: var(--de-primary);
    color: white;
    font-size: 14px;
    padding: 8px 0;
}
.de-topbar a { color: rgba(255,255,255,0.9); }
.de-topbar a:hover { color: white; }
.de-topbar i { margin-right: 5px; }

/* === Navbar === */
.de-navbar {
    background: var(--de-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 3px 0;
}
.de-navbar .navbar-brand img { height: 120px; }
.de-navbar .nav-link {
    font-weight: 500;
    color: var(--de-text);
    padding: 10px 18px !important;
    border-radius: var(--de-radius-sm);
    transition: var(--de-transition);
}
.de-navbar .nav-link:hover,
.de-navbar .nav-link.active {
    color: var(--de-primary);
    background: rgba(2, 163, 150, 0.08);
}
.de-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--de-shadow);
    border-radius: var(--de-radius);
    padding: 10px 0;
}
.de-navbar .dropdown-item {
    padding: 10px 20px;
    transition: var(--de-transition);
}
.de-navbar .dropdown-item:hover {
    background: var(--de-bg-gray);
    color: var(--de-primary);
}

/* === Buttons === */
.btn {
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 600;
    border-radius: var(--de-radius-sm);
    padding: 10px 24px;
    transition: var(--de-transition);
}

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

.btn-secondary {
    background: var(--de-secondary);
    border-color: var(--de-secondary);
}

.btn-accent {
    background: var(--de-accent);
    border-color: var(--de-accent);
    color: #333;
}
.btn-accent:hover {
    background: var(--de-accent-dark);
    border-color: var(--de-accent-dark);
    color: #333;
}

.btn-outline-primary {
    border: 2px solid var(--de-primary);
    color: var(--de-primary);
}
.btn-outline-primary:hover {
    background: var(--de-primary);
    border-color: var(--de-primary);
    color: white;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}
.btn-outline-light:hover {
    background: white;
    color: var(--de-primary);
}

/* === Hero Carousel === */
.de-hero-carousel .carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
@media (max-width: 768px) {
    .de-hero-carousel .carousel-item img { height: 300px; }
}
.de-hero-carousel .carousel-control-prev,
.de-hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--de-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
}
.de-hero-carousel .carousel-control-prev { left: 20px; }
.de-hero-carousel .carousel-control-next { right: 20px; }
.de-hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    opacity: 0.6;
}
.de-hero-carousel .carousel-indicators button.active {
    background: var(--de-accent);
    opacity: 1;
}

/* === Search Box === */
.de-search-section {
    background: linear-gradient(135deg, var(--de-primary) 0%, var(--de-secondary) 100%);
    padding: 30px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.de-search-box {
    background: white;
    border-radius: var(--de-radius-lg);
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.de-search-box .form-control,
.de-search-box .form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--de-radius-sm);
    padding: 12px 16px;
    font-size: 15px;
}
.de-search-box .form-control:focus,
.de-search-box .form-select:focus {
    border-color: var(--de-primary);
    box-shadow: 0 0 0 3px rgba(2, 163, 150, 0.1);
}
.de-search-box .btn-search {
    background: var(--de-accent);
    border: none;
    color: #333;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--de-radius-sm);
}
.de-search-box .btn-search:hover {
    background: var(--de-accent-dark);
    transform: translateY(-2px);
}

/* === Section Headers === */
.de-section-header {
    margin-bottom: 30px;
}
.de-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--de-text);
    position: relative;
    display: inline-block;
}
.de-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--de-accent), var(--de-secondary));
    border-radius: 2px;
}
.de-section-title i {
    color: var(--de-primary);
    margin-right: 10px;
}

/* === Tour Card === */
.de-tour-card {
    background: white;
    border: none;
    border-radius: var(--de-radius);
    overflow: hidden;
    box-shadow: var(--de-shadow);
    transition: var(--de-transition);
    height: 100%;
}
.de-tour-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--de-shadow-hover);
}
.de-tour-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
}
.de-tour-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.de-tour-card:hover .card-img-top {
    transform: scale(1.08);
}
.de-tour-card .badge-hot {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.de-tour-card .badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--de-accent);
    color: #333;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.de-tour-card .card-body {
    padding: 20px;
}
    .de-tour-card .card-title {
        font-size: 17px;
        font-weight: 600;
        color: var(--de-accent);
        margin-bottom: 12px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.de-tour-card .card-title a {
    color: inherit;
    text-decoration: none;
}
.de-tour-card .card-title a:hover {
    color: var(--de-primary);
}
.de-tour-card .tour-meta {
    font-size: 14px;
    color: var(--de-text-light);
    margin-bottom: 6px;
}
.de-tour-card .tour-meta i {
    color: var(--de-secondary);
    margin-right: 6px;
    width: 16px;
}
.de-tour-card .card-footer {
    background: var(--de-bg-light);
    border: none;
    padding: 15px 20px;
}
.de-tour-card .price-label {
    font-size: 12px;
    color: var(--de-text-muted);
}
.de-tour-card .price-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--de-primary);
}
.de-tour-card .btn-detail {
    background: var(--de-primary);
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: var(--de-radius-sm);
    font-size: 14px;
    font-weight: 600;
}
.de-tour-card .btn-detail:hover {
    background: var(--de-primary-dark);
}

/* === Zone Card === */
.de-zone-card {
    position: relative;
    border-radius: var(--de-radius);
    overflow: hidden;
    box-shadow: var(--de-shadow);
    transition: var(--de-transition);
    height: 100%;
}
.de-zone-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--de-shadow-hover);
}
.de-zone-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.de-zone-card:hover img {
    transform: scale(1.1);
}
.de-zone-card .zone-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(2, 163, 150, 0.9));
    padding: 30px 20px 20px;
    color: white;
}
.de-zone-card .zone-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}
.de-zone-card .zone-count {
    font-size: 14px;
    opacity: 0.9;
}

/* === Page Header === */
.de-page-header {
    background: linear-gradient(135deg, var(--de-primary) 0%, var(--de-secondary) 100%);
    color: white;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
.de-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.de-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}
.de-page-header .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
}
.de-page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}
.de-page-header .breadcrumb-item.active {
    color: white;
}
.de-page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* === Why Us Section === */
.de-why-section {
    background: linear-gradient(135deg, var(--de-primary) 0%, var(--de-primary-dark) 100%);
    padding: 80px 0;
    color: white;
}
.de-why-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--de-radius);
    padding: 35px 25px;
    text-align: center;
    transition: var(--de-transition);
    height: 100%;
}
.de-why-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}
.de-why-card .icon-box {
    width: 80px;
    height: 80px;
    background: var(--de-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #333;
}
.de-why-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}
.de-why-card p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* === Pagination === */
.de-pagination .page-link {
    border: none;
    border-radius: var(--de-radius-sm);
    padding: 10px 16px;
    margin: 0 3px;
    color: var(--de-text);
    font-weight: 500;
    transition: var(--de-transition);
}
.de-pagination .page-link:hover {
    background: var(--de-bg-light);
    color: var(--de-primary);
}
.de-pagination .page-item.active .page-link {
    background: var(--de-primary);
    color: white;
}

/* === Alert === */
.de-alert-info {
    background: var(--de-bg-light);
    border: 1px solid rgba(2, 163, 150, 0.2);
    border-radius: var(--de-radius);
    color: var(--de-primary-dark);
    padding: 20px;
}

/* === Footer === */
.de-footer {
    background: var(--de-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.de-footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}
.de-footer a {
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 6px 0;
    transition: var(--de-transition);
}
.de-footer a:hover {
    color: var(--de-accent);
    padding-left: 5px;
}
    .de-footer .social-links a {
        display: inline-flex;
        width: 40px;
        height: 40px;
        background: var(--de-primary-dark);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        font-size: 18px;
    }
.de-footer .social-links a:hover {
    background: var(--de-primary);
    color: white;
}
.de-footer-bottom {
    background: var(--de-primary);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 14px;
}

/* === Tour Detail === */
.de-tour-detail .tour-banner {
    height: 400px;
    object-fit: cover;
    border-radius: var(--de-radius);
}
.de-tour-detail .info-card {
    background: white;
    border-radius: var(--de-radius);
    box-shadow: var(--de-shadow);
    transition: var(--de-transition);
    padding: 25px;
    margin-bottom: 20px;
}
.de-tour-detail .info-card h5 {
    color: var(--de-primary);
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--de-bg-light);
}
.de-tour-detail .schedule-table th {
    background: var(--de-primary);
    color: white;
}
.de-tour-detail .schedule-table .badge-available {
    background: #28a745;
}
.de-tour-detail .schedule-table .badge-full {
    background: #dc3545;
}
.de-tour-detail .price-box {
    background: linear-gradient(135deg, var(--de-accent) 0%, var(--de-accent-light) 100%);
    border-radius: var(--de-radius);
    padding: 25px;
    text-align: center;
}
.de-tour-detail .price-box .price-label {
    font-size: 14px;
    color: #666;
}
.de-tour-detail .price-box .price-value {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}
.de-tour-detail .contact-box {
    background: var(--de-primary);
    color: white;
    border-radius: var(--de-radius);
    padding: 25px;
}
.de-tour-detail .btn-line {
    background: #06c755;
    color: white;
    border: none;
}
.de-tour-detail .btn-line:hover {
    background: #05a847;
}

/* === Tour List Card (Horizontal) === */
.de-tour-list-card {
    background: white;
    border-radius: var(--de-radius);
    overflow: hidden;
    box-shadow: var(--de-shadow);
    transition: var(--de-transition);
    margin-bottom: 25px;
}
.de-tour-list-card:hover {
    box-shadow: var(--de-shadow-hover);
}
.de-tour-list-card .tour-image {
    position: relative;
    overflow: hidden;
}
.de-tour-list-card .tour-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.de-tour-list-card:hover .tour-image img {
    transform: scale(1.05);
}
.de-tour-list-card .tour-image .watermark {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.de-tour-list-card .tour-content {
    padding: 20px 25px;
}
    .de-tour-list-card .tour-title {
        font-size: 20px;
        font-weight: 600;
        color: var(--de-accent);
        margin-bottom: 8px;
        line-height: 1.4;
    }
.de-tour-list-card .tour-title a {
    color: inherit;
    text-decoration: none;
}
.de-tour-list-card .tour-title a:hover {
    color: var(--de-primary-dark);
}
.de-tour-list-card .tour-price {
    font-size: 15px;
    margin-bottom: 15px;
}
.de-tour-list-card .tour-price .price-label {
    color: var(--de-primary);
}
    .de-tour-list-card .tour-price .price-value {
        font-size: 25px;
        font-weight: 700;
        color: var(--de-primary);
        margin-left: 5px;
    }
    .de-tour-list-card .tour-description {
        color: var(--de-primary);
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
.de-tour-list-card .btn-readmore {
    background: var(--de-primary);
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: var(--de-radius-sm);
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--de-transition);
}
.de-tour-list-card .btn-readmore:hover {
    background: var(--de-primary-dark);
    transform: translateX(5px);
}
.de-tour-list-card .btn-readmore i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.de-tour-list-card .btn-readmore:hover i {
    transform: translateX(3px);
}

/* === Schedule Months === */
.schedule-months {
    margin-bottom: 15px;
}
.schedule-month-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.schedule-month-badge {
    background: var(--de-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.schedule-dates {
    color: var(--de-primary);
    font-size: 14px;
    line-height: 1.8;
}
.schedule-dates .date-item {
    display: inline;
}
.schedule-dates .date-separator {
    color: var(--de-text-muted);
    margin: 0 3px;
}
.schedule-more-link {
    color: var(--de-accent);
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
}
    .schedule-more-link:hover {
        color: var(--de-accent-dark);
        text-decoration: underline;
    }

/* === Info Card (General) === */
.info-card {
    background: white;
    border-radius: var(--de-radius);
    box-shadow: var(--de-shadow);
    transition: var(--de-transition);
    padding: 25px;
    margin-bottom: 20px;
}
.info-card h5 {
    color: var(--de-primary);
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--de-bg-light);
}

/* === Responsive Tour List Card === */
@media (min-width: 768px) {
    .de-tour-list-card .row {
        align-items: stretch;
    }
    .de-tour-list-card .tour-image img {
        height: 100%;
        min-height: 280px;
    }
}
@media (max-width: 767px) {
    .de-tour-list-card .tour-content {
        padding: 15px 20px;
    }
    .de-tour-list-card .tour-title {
        font-size: 18px;
    }
    .de-tour-list-card .tour-price .price-value {
        font-size: 24px;
    }
    .schedule-month-row {
        flex-direction: column;
        gap: 5px;
    }
}

/* === Utilities === */
.bg-de-primary { background: var(--de-primary) !important; }
.bg-de-secondary { background: var(--de-secondary) !important; }
.bg-de-accent { background: var(--de-accent) !important; }
.bg-de-light { background: var(--de-bg-light) !important; }
.text-de-primary { color: var(--de-primary) !important; }
.text-de-secondary { color: var(--de-secondary) !important; }
.text-de-accent { color: var(--de-accent) !important; }

/* === Responsive === */
@media (max-width: 991px) {
    .de-page-header { padding: 40px 0; }
    .de-page-header h1 { font-size: 26px; }
    .de-search-section { margin-top: 0; }
    .de-search-box { padding: 20px; }
}
@media (max-width: 767px) {
    body { font-size: 15px; }
    .de-tour-card .card-img-top { height: 180px; }
    .de-zone-card img { height: 180px; }
    .de-section-title { font-size: 22px; }
}
