/* Search Tabs Redesign */
.box-tabs-search .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-bottom: none;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 100px;
    margin-bottom: 20px;
    scrollbar-width: none;
}
.box-tabs-search .nav-tabs::-webkit-scrollbar {
    display: none;
}
.box-tabs-search .nav-item {
    margin-bottom: 0;
    flex: 0 0 auto;
}
.box-tabs-search .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none !important;
    background: transparent;
    color: #475569;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.box-tabs-search .nav-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.box-tabs-search .nav-link.active {
    background: #000080 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 128, 0.3);
}
.box-tabs-search .nav-link .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.box-tabs-search .nav-link.active .icon-wrapper {
    background: rgba(255,255,255,0.2);
}
.box-tabs-search .nav-link i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .box-tabs-search .nav-tabs {
        border-radius: 100px;
        padding: 4px;
    }
    .box-tabs-search .nav-link {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 8px 16px !important;
        font-size: 14px !important;
        border-radius: 100px !important;
        gap: 6px !important;
        height: auto !important;
        white-space: nowrap !important;
    }
    .box-tabs-search .nav-link .icon-wrapper {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 0 !important;
    }
    .box-tabs-search .nav-link i {
        font-size: 12px !important;
    }
}

/* Nï¿½ng Modal lï¿½n trï¿½n Contact Bar */
.modal { z-index: 1600 !important; }
.modal-backdrop { z-index: 1550 !important; }

/* Xï¿½a kho?ng h? du?i dï¿½y Modal trï¿½n Mobile */
@media (max-width: 768px) {
  .modal-dialog { margin-bottom: 0 !important; }
  .modal-content { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}

/* ï¿½?m b?o ch? d? Lu?i hi?n th? d?p trï¿½n Mobile */
@media (max-width: 991px) {
  .grid-view .product-card { flex-direction: column !important; }
  .grid-view .product-image { width: 100% !important; height: auto !important; max-width: 100% !important; }
  .grid-view .product-image img { height: 220px !important; object-fit: cover !important; }
  .grid-view .product-info { width: 100% !important; padding: 15px !important; }
}

/* ï¿½?m b?o khung Lu?i trï¿½n di?n tho?i hi?n th? 1 s?n ph?m 1 hï¿½ng (?nh trï¿½n, ch? du?i) */
@media (max-width: 768px) {
  .products-grid.grid-view { display: grid !important; grid-template-columns: 1fr !important; gap: 15px !important; }
}




/* ï¿½?m b?o khung Lu?i trï¿½n di?n tho?i hi?n th? 1 s?n ph?m 1 hï¿½ng (?nh trï¿½n, ch? du?i) */
@media (max-width: 768px) {
  .products-grid.grid-view { display: grid !important; grid-template-columns: 1fr !important; gap: 15px !important; }
  .mobile-toolbar { display: flex; align-items: center; justify-content: space-between; }
}

/* Tang g?p dï¿½i kï¿½ch thu?c hi?n th? c?a cï¿½c Ngï¿½i sao dï¿½nh giï¿½ */
.product-rating .stars .star { font-size: 16px !important; margin-right: 2px; }
.product-rating .stars { display: flex; align-items: center; }

/* ï¿½?m b?o phï¿½n trang khï¿½ng b? trï¿½n mï¿½n hï¿½nh trï¿½n mobile */
@media (max-width: 576px) {
  .blog-pagination .page-numbers { padding: 5px 10px !important; min-width: 35px !important; }
  .blog-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
}

/* ï¿½?nh d?ng l?i phï¿½n trang: Tï¿½ch riï¿½ng Tru?c/Ti?p xu?ng du?i cï¿½ng trï¿½n mobile */
@media (max-width: 576px) {
  .blog-pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  .blog-pagination .page-numbers {
    order: 1;
  }
  /* T?o xu?ng dï¿½ng */
  .blog-pagination::after {
    content: '';
    width: 100%;
    order: 2;
  }
  .blog-pagination .prev.page-numbers {
    order: 3 !important;
    margin-right: auto !important;
    width: auto !important;
  }
  .blog-pagination .next.page-numbers {
    order: 4 !important;
    margin-left: auto !important;
    width: auto !important;
  }
}

/* Lï¿½m d?p nï¿½t chuy?n d?i Grid/List gi?ng nï¿½t L?c */
.products-toolbar .view-btn { background-color: #f5f6f8 !important; color: #333 !important; border: 1px solid #e5e7eb !important; border-radius: 50px !important; padding: 5px 16px !important; gap: 6px !important; font-size: 13px !important; font-weight: 500 !important; height: 38px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; transition: all 0.3s ease; margin-left: 8px !important; }
.products-toolbar .view-btn.active { background-color: #000080 !important; color: #fff !important; border-color: #000080 !important; } .products-toolbar .view-btn svg { display: block !important; width: 16px !important; height: 16px !important; }


/* Fix shape */
.products-toolbar .view-toggle { border: none !important; background: transparent !important; padding: 0 !important; display: flex !important; gap: 8px !important; }
.products-toolbar .view-btn { width: auto !important; background-color: #f5f6f8 !important; color: #333 !important; border: 1px solid #e5e7eb !important; border-radius: 50px !important; padding: 5px 16px !important; gap: 6px !important; font-size: 13px !important; font-weight: 500 !important; height: 38px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; transition: all 0.3s ease; margin-left: 0 !important; }
.products-toolbar .view-btn.active { background-color: #000080 !important; color: #fff !important; border-color: #000080 !important; }
.products-toolbar .view-btn svg { display: block !important; width: 16px !important; height: 16px !important; margin: 0 !important; }
@media (min-width: 992px) { .mobile-toolbar { display: none !important; } }
@media (max-width: 991px) { .products-toolbar .toolbar-right { display: none !important; } }
/* Bo tron dropdown Sap xep */
.products-toolbar .sort-select {
  border-radius: 50px !important;
  padding: 5px 30px 5px 15px !important;
  height: 38px !important;
  border: 1px solid #e5e7eb !important;
  outline: none !important;
}
/* Fix Filters Sidebar */
.filters-sidebar .location-links { max-height: 250px !important; overflow-y: auto !important; overscroll-behavior-y: contain !important; border: 1px solid #000080 !important; border-radius: 8px !important; padding: 5px 0 !important; scrollbar-width: thin !important; scrollbar-color: #000080 #f1f1f1 !important; }
.filters-sidebar .location-links::-webkit-scrollbar { width: 6px !important; }
.filters-sidebar .location-links::-webkit-scrollbar-track { background: #f1f1f1 !important; border-radius: 8px !important; }
.filters-sidebar .location-links::-webkit-scrollbar-thumb { background: #000080 !important; border-radius: 8px !important; }
.filters-sidebar .location-links .loc-item { color: #333 !important; font-weight: 500 !important; padding: 8px 12px !important; transition: all 0.2s ease !important; }
.filters-sidebar .location-links .loc-item:hover, .filters-sidebar .location-links .loc-item.active { color: #000080 !important; background-color: rgba(0,0,128,0.05) !important; font-weight: 600 !important; }
.filters-sidebar .range-slider .range-progress { background-color: #000080 !important; }
.filters-sidebar .range-slider .range-input::-webkit-slider-thumb { border: 2px solid #000080 !important; background: #fff !important; box-shadow: 0 0 0 1px #000080 !important; }
.filters-sidebar .range-slider .range-input::-moz-range-thumb { border: 2px solid #000080 !important; background: #fff !important; box-shadow: 0 0 0 1px #000080 !important; }
.filters-sidebar .star-buttons .star-btn.active, .filters-sidebar .star-buttons .star-btn:hover { background-color: #000080 !important; color: #fff !important; border-color: #000080 !important; }
.filters-sidebar input[type="checkbox"]:checked { background-color: #000080 !important; border-color: #000080 !important; accent-color: #000080 !important; }
/* --- DARK MODE --- */
body.dark-mode { background-color: #121212 !important; color: #e0e0e0 !important; }
body.dark-mode header { background-color: #1e1e1e !important; border-bottom: 1px solid #333 !important; }
body.dark-mode header a, body.dark-mode header .username, body.dark-mode .main-menu .menu > li > a { color: #e0e0e0 !important; }
body.dark-mode .product-card { background-color: #1e1e1e !important; border-color: #333 !important; }
body.dark-mode .product-card .product-title a { color: #fff !important; }
body.dark-mode .filters-sidebar { background-color: #1e1e1e !important; border-color: #333 !important; color: #e0e0e0 !important; }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 { color: #fff !important; }
body.dark-mode .products-toolbar { background-color: #1e1e1e !important; border-color: #333 !important; color: #e0e0e0 !important; }
body.dark-mode .products-toolbar .sort-select { background-color: #333 !important; color: #fff !important; border-color: #555 !important; }
body.dark-mode .products-toolbar .view-btn { background-color: #333 !important; color: #e0e0e0 !important; border-color: #555 !important; }
body.dark-mode .products-toolbar .view-btn.active { background-color: #000080 !important; color: #fff !important; border-color: #000080 !important; }
body.dark-mode .loc-item { color: #e0e0e0 !important; }
body.dark-mode .loc-item:hover, body.dark-mode .loc-item.active { color: #fff !important; background-color: #000080 !important; }
body.dark-mode input[type="text"], body.dark-mode select, body.dark-mode textarea { background-color: #333 !important; color: #fff !important; border-color: #555 !important; }
body.dark-mode .breadcrumb-item a, body.dark-mode .breadcrumb-item.active { color: #bbb !important; }
body.dark-mode .text-muted { color: #aaa !important; }
body.dark-mode .product-card .product-price { color: #fff !important; }
/* --- DARK MODE TOGGLE SWITCH --- */
.theme-switch-wrapper { display: flex; align-items: center; }
.theme-switch { display: inline-block; height: 30px; position: relative; width: 56px; margin: 0; }
.theme-switch input { display: none; }
.theme-switch .slider { background-color: #ccc; bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; display: flex; align-items: center; justify-content: space-between; padding: 0 5px; }
.theme-switch .slider:before { background-color: #fff; bottom: 3px; content: ""; height: 24px; left: 4px; position: absolute; transition: .4s; width: 24px; z-index: 2; }
.theme-switch .slider.round { border-radius: 34px; }
.theme-switch .slider.round:before { border-radius: 50%; }
.theme-switch input:checked + .slider { background-color: #000080; }
.theme-switch input:checked + .slider:before { transform: translateX(24px); }
.theme-switch .sun-icon { color: #f39c12; font-size: 14px; z-index: 1; margin-left: 2px; }
.theme-switch .moon-icon { color: #f1c40f; font-size: 14px; z-index: 1; margin-right: 2px; }
/* --- DARK MODE SEGMENTED CONTROL --- */
.theme-segmented-control { position: relative; display: flex; width: 100%; background-color: #f1f5f9; border-radius: 30px; padding: 4px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.06); margin-bottom: 20px; transition: background-color 0.4s ease; }
.theme-segmented-control input { display: none; }
.theme-segmented-control .segment-label { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; position: relative; z-index: 2; transition: color 0.3s ease; border-radius: 30px; margin-bottom: 0; }
.theme-segmented-control input#modeLight:checked ~ .light-label { color: #d97706; /* Sunset orange */ }
.theme-segmented-control input#modeDark:checked ~ .dark-label { color: #fff; }
.segment-slider { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px); background-color: #fff; border-radius: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), background-color 0.4s ease; z-index: 1; }
.theme-segmented-control input#modeDark:checked ~ .segment-slider { transform: translateX(100%); background-color: #1e293b; /* Dark elegant blue */ }
body.dark-mode .theme-segmented-control { background-color: #0f172a; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); }
body.dark-mode .theme-segmented-control .segment-label { color: #94a3b8; }
body.dark-mode .theme-segmented-control input#modeDark:checked ~ .dark-label { color: #fff; }
body.dark-mode .theme-segmented-control input#modeLight:checked ~ .light-label { color: #cbd5e1; }
/* --- WEATHER WIDGET --- */
.weather-widget { background: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%); border-radius: 12px; padding: 15px; color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 20px; }
.weather-loading { text-align: center; font-size: 14px; color: #fff; }
.weather-header { font-size: 16px; font-weight: 600; margin-bottom: 12px; text-align: center; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }
.weather-days-grid { display: flex; justify-content: space-between; gap: 8px; }
.weather-day { flex: 1; background: rgba(255, 255, 255, 0.15); border-radius: 8px; padding: 10px 5px; text-align: center; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.3); transition: transform 0.2s; }
.weather-day.active { background: rgba(255, 255, 255, 0.35); transform: scale(1.05); box-shadow: 0 4px 8px rgba(0,0,0,0.15); border-color: #fff; }
.weather-day .w-label { font-size: 11px; text-transform: uppercase; font-weight: bold; opacity: 0.9; margin-bottom: 4px; }
.weather-day .w-date { font-size: 12px; margin-bottom: 5px; }
.weather-day .w-icon { font-size: 22px; margin-bottom: 5px; filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.2)); }
.weather-day .w-temp { font-size: 12px; font-weight: 600; }
/* --- STICKY SIDEBAR --- */
@media (min-width: 992px) {
  .filters-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

/* CSS cho Nut Xem chi tiet */
.tour-details-toggle-wrap {
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
    padding-bottom: 10px;
    margin-top: 20px;
}
.btn-toggle-details {
    background-color: transparent;
    color: #000080;
    border: 1px solid #000080;
    border-radius: 50px;
    padding: 6px 24px;
    font-weight: 600;
    font-size: 14.5px;
    transition: all 0.3s ease;
}
.btn-toggle-details:hover {
    background-color: #000080;
    color: #fff;
}

/* Responsive video embed in post content */
.description-content iframe,
.description-content object,
.description-content embed,
figure.wp-block-embed iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
figure.wp-block-embed {
    margin: 20px 0;
    width: 100%;
}

/* TÄƒng kÃ­ch thÆ°á»›c áº£nh cÃ¡c tour con trong trang chi tiáº¿t du thuyá»n */
.check-availability .room-list .room-item .room-gallery-img {
    width: 100% !important;
    aspect-ratio: 4/3 !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}


@media (max-width: 768px) {
  .check-availability .room-list .room-item .room-gallery-img {
      aspect-ratio: 4/3 !important;
  }
}

/* Fix table borders in content */
.post-content table,
.description-content table,
.entry-content table,
.tab-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}
.post-content table th,
.post-content table td,
.description-content table th,
.description-content table td,
.entry-content table th,
.entry-content table td,
.tab-content table th,
.tab-content table td {
    border: 1px solid #dee2e6 !important;
    padding: 10px 12px;
}

/* Global fix for table borders in post content */
article table, .container table {
    border-collapse: collapse !important;
    width: 100% !important;
}
article table th, article table td,
.container table th, .container table td,
.check-availability table th, .check-availability table td {
    border: 1px solid #333 !important;
    padding: 10px !important;
}

/* Standardize image gallery aspect ratio */
.room-gallery .room-gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
