/* ===== Tour List Grid ===== */
.tour365-list-wrap { max-width: 1180px; margin: 0 auto; padding: 30px 15px; }
.tour365-title { text-align: center; margin-bottom: 20px; font-size: 26px; color: #1a1a1a; }
.tour365-tabs { display: flex; justify-content: center; gap: 30px; border-bottom: 1px solid #e2e2e2; margin-bottom: 25px; flex-wrap: wrap; }
.tour365-tab { padding: 10px 4px; cursor: pointer; font-weight: 600; color: #666; letter-spacing: .5px; text-transform: uppercase; font-size: 13px; border-bottom: 2px solid transparent; }
.tour365-tab.active { color: #e8590c; border-bottom-color: #e8590c; }
.tour365-grid { display: grid; grid-template-columns: repeat(var(--tour365-cols, 3), 1fr); gap: 24px; }
@media (max-width: 900px) { .tour365-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .tour365-grid { grid-template-columns: 1fr !important; } }
.tour365-card { border: 1px solid #eee; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.tour365-card-img { display: block; position: relative; height: 190px; overflow: hidden; }
.tour365-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour365-heart { position: absolute; top: 10px; right: 10px; background: #fff; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.tour365-card-body { padding: 14px 16px 18px; }
.tour365-card-name { display: block; font-weight: 700; font-size: 16px; color: #1a1a1a; text-decoration: none; margin-bottom: 8px; line-height: 1.3; }
.tour365-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 8px; }
.tour365-score { background: #1a9e5c; color: #fff; font-weight: 700; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.tour365-label { color: #1a9e5c; font-weight: 600; }
.tour365-reviews { color: #888; }
.tour365-price { margin-bottom: 10px; }
.tour365-price-old { text-decoration: line-through; color: #999; font-size: 13px; margin-right: 6px; }
.tour365-price-sale { color: #e8590c; font-weight: 800; font-size: 18px; }
.tour365-price-pax { color: #888; font-size: 12px; font-weight: 400; }
.tour365-view-btn { display: inline-block; background: #e8590c; color: #fff; padding: 8px 18px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 13px; }
.tour365-view-btn:hover { background: #c94e0a; color: #fff; }

/* ===== Single Tour Page ===== */
.tour365-single-wrap { max-width: 1180px; margin: 0 auto; padding: 30px 15px; }
.tour365-single-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.tour365-single-header h1 { font-size: 26px; margin: 0; }
.tour365-header-price { text-align: right; white-space: nowrap; }
.tour365-header-price .tour365-price-old-small { display: block; text-decoration: line-through; color: #999; font-size: 13px; }
.tour365-header-price .tour365-price-sale-small { font-size: 22px; font-weight: 800; color: #e8590c; }

.tour365-single-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 20px; align-items: start; }
@media (max-width: 900px) { .tour365-single-columns { grid-template-columns: 1fr; } }

.tour365-icon { color: #e8590c; flex-shrink: 0; }

.tour365-why-box, .tour365-map-box, .tour365-itinerary-box, .tour365-inclusion-box, .tour365-activities-box, .tour365-excluded-box { margin-top: 30px; }
.tour365-why-box { background: #fdece0; padding: 20px; border-radius: 6px; }
.tour365-check-list { list-style: none; margin: 0; padding: 0; }
.tour365-check-list li { margin-bottom: 10px; padding-left: 26px; position: relative; }
.tour365-check { position: absolute; left: 0; color: #e8590c; font-weight: 700; }
.tour365-x-list .tour365-check { display: none; }
.tour365-x-list .tour365-x { position: absolute; left: 0; color: #999; font-weight: 700; }
.tour365-map-box img { width: 100%; border-radius: 6px; }
.tour365-day { border-bottom: 1px solid #eee; padding: 12px 0; }
.tour365-day-title { font-weight: 700; cursor: pointer; }
.tour365-day-content { display: none; padding-top: 8px; color: #444; line-height: 1.6; }
.tour365-hotel-list { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.tour365-hotel-card { width: 180px; }
.tour365-hotel-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 4px; }
.tour365-hotel-name { font-weight: 600; margin-top: 6px; font-size: 14px; }
.tour365-hotel-stars { color: #e8b800; font-size: 13px; }
.tour365-hotel-days { color: #888; font-size: 12px; }

/* ===== Single Tour: Image Slider ===== */
.tour365-slider { position: relative; margin-top: 16px; border-radius: 6px; overflow: hidden; background: #000; }
.tour365-slider-track { position: relative; width: 100%; height: 430px; }
@media (max-width: 700px) { .tour365-slider-track { height: 260px; } }
.tour365-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .25s; }
.tour365-slide.active { opacity: 1; z-index: 1; }
.tour365-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour365-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.85); border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 15px; z-index: 2; }
.tour365-slider-arrow.prev { left: 14px; }
.tour365-slider-arrow.next { right: 14px; }
.tour365-slider-count { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.6); color: #fff; padding: 4px 10px; border-radius: 14px; font-size: 12px; z-index: 2; }

/* ===== Single Tour: Tab nav (inside main column) ===== */
.tour365-tabnav { display: flex; gap: 26px; border-bottom: 1px solid #e2e2e2; margin-top: 24px; flex-wrap: wrap; position: sticky; top: 0; background: #fff; z-index: 20; }
.tour365-tabnav-item { cursor: pointer; font-weight: 600; color: #666; padding: 10px 0; border-bottom: 2px solid transparent; font-size: 14px; }
.tour365-tabnav-item.active { color: #e8590c; border-bottom-color: #e8590c; }

.tour365-tabpanel { scroll-margin-top: 56px; padding-top: 4px; }
.tour365-tabpanel:not(:first-of-type) { margin-top: 36px; padding-top: 28px; border-top: 1px solid #eee; }

.tour365-quickfacts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 22px 0; font-size: 14px; }
@media (max-width: 500px) { .tour365-quickfacts-row { grid-template-columns: 1fr; } }
.tour365-quickfacts-row > div { display: flex; align-items: flex-start; gap: 10px; }
.tour365-quickfacts-row > div span { line-height: 1.4; }

/* ===== Single Tour: Sidebar ===== */
.tour365-single-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.tour365-sidebar-box { border: 1px solid #eee; border-radius: 6px; padding: 20px; }
.tour365-sidebar-list { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; }
.tour365-sidebar-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.tour365-sidebar-list li span { line-height: 1.4; }
.tour365-sidebar-note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #333; margin-bottom: 16px; }
.tour365-sidebar-note .tour365-check { position: static; color: #1a9e5c; font-weight: 700; }
.tour365-sidebar-actions { display: flex; align-items: center; gap: 10px; }
.tour365-heart-btn { border: 1px solid #eee; border-radius: 50%; width: 42px; height: 42px; min-width: 42px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #e8590c; }
.tour365-quote-btn { flex: 1; display: block; text-align: center; background: #e8590c; color: #fff; padding: 12px; border-radius: 4px; text-decoration: none; font-weight: 700; }
.tour365-quote-btn:hover { background: #c94e0a; color: #fff; }
.tour365-sidebar-perks { border: 1px solid #eee; border-radius: 6px; padding: 18px 20px; background: #fafafa; }
.tour365-perk-item { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 12px; }
.tour365-perk-item:last-child { margin-bottom: 0; }

/* ===== Single Tour: Price tab ===== */
.tour365-price-block { border: 1px solid #eee; border-radius: 6px; margin-bottom: 18px; overflow: hidden; }
.tour365-price-block-header { background: #f5f5f5; padding: 10px 16px; font-weight: 700; }
.tour365-price-tier-table { width: 100%; border-collapse: collapse; }
.tour365-price-tier-table td { padding: 12px 16px; border-top: 1px solid #f0f0f0; }
.tour365-price-tier-table td:last-child { text-align: right; color: #e8590c; font-weight: 700; }

/* ===== Single Tour: Reviews tab ===== */
.tour365-review-summary { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; background: #2c3e50; color: #fff; padding: 24px; border-radius: 6px; margin-bottom: 24px; margin-top: 22px; }
@media (max-width: 700px) { .tour365-review-summary { grid-template-columns: 1fr; } }
.tour365-review-overall-label { font-size: 13px; opacity: .8; margin-bottom: 10px; }
.tour365-review-overall-score { background: #1a9e5c; display: inline-block; font-size: 28px; font-weight: 800; padding: 6px 14px; border-radius: 6px; }
.tour365-review-overall-tag { margin-top: 8px; font-weight: 700; }
.tour365-review-counts-title { font-size: 12px; opacity: .7; margin-bottom: 10px; letter-spacing: .5px; }
.tour365-review-count-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.tour365-review-list { display: flex; flex-direction: column; gap: 18px; }
.tour365-review-item { display: flex; gap: 14px; border-bottom: 1px solid #eee; padding-bottom: 18px; }
.tour365-review-item-score { background: #1a9e5c; color: #fff; font-weight: 800; padding: 6px 10px; border-radius: 6px; height: fit-content; font-size: 14px; }
.tour365-review-item-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.tour365-review-item-meta { color: #888; font-size: 12px; }
.tour365-review-item-title { font-weight: 700; margin-bottom: 4px; }

/* ===== Tour Archive (search / sort / filter bar) ===== */
.tour365-archive-wrap { max-width: 1180px; margin: 0 auto; padding: 30px 15px; }
.tour365-archive-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tour365-archive-search,
.tour365-archive-sort,
.tour365-filter-btn,
.tour365-filter-date,
.tour365-filter-search-btn { height: 44px; box-sizing: border-box; }
.tour365-archive-search { display: flex; align-items: center; gap: 8px; border: 1px solid #ddd; border-radius: 6px; padding: 0 14px; flex: 1; min-width: 220px; box-sizing: border-box; overflow: hidden; }
.tour365-archive-search svg { color: #999; flex-shrink: 0; }
.tour365-archive-search input[type="text"],
.tour365-archive-search input {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	flex: 1;
	width: 100%;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 14px !important;
	background: transparent !important;
	border-radius: 0 !important;
	box-sizing: border-box;
}
.tour365-archive-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; white-space: nowrap; }
.tour365-archive-sort select { border: 1px solid #ddd; border-radius: 6px; padding: 0 12px; font-size: 13px; height: 44px; box-sizing: border-box; background: #fff; }

/* FIX: bỏ overflow-x: auto (kéo theo overflow-y auto khiến dropdown bị cắt mất) và
   đổi nowrap -> wrap để các phần tử tự xuống dòng khi không đủ chỗ, thay vì đẩy
   nút Search trồi ra ngoài khung / sinh thanh cuộn ngang. */
.tour365-filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 14px 16px; margin-bottom: 26px; }
.tour365-filter-dropdown { position: relative; height: 44px; flex-shrink: 0; }
.tour365-filter-btn { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 0 14px; font-size: 13px; cursor: pointer; color: #333; white-space: nowrap; flex-shrink: 0; }
.tour365-filter-btn .tour365-icon { color: #666; flex-shrink: 0; }
.tour365-filter-caret { font-size: 10px; color: #999; margin-left: 2px; }
.tour365-filter-panel { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.1); padding: 10px 0; min-width: 240px; z-index: 30; max-height: 400px; overflow-y: auto; }
.tour365-filter-dropdown.open .tour365-filter-panel { display: block; }
.tour365-filter-panel label { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; }
.tour365-filter-panel label:hover { background: #f7f7f7; }
.tour365-filter-date { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 0 14px; flex-shrink: 0; }
.tour365-filter-date input[type="date"] { border: none; outline: none; font-size: 13px; height: 100%; background: transparent; }
.tour365-filter-search-btn { display: flex; align-items: center; gap: 8px; background: #e8590c; color: #fff; border: none; border-radius: 6px; padding: 0 22px; font-weight: 700; font-size: 13px; cursor: pointer; margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.tour365-filter-search-btn:hover { background: #c94e0a; }
.tour365-filter-search-btn .tour365-icon { color: #fff; flex-shrink: 0; }
@media (max-width: 782px) {
	.tour365-filter-bar { flex-wrap: wrap; }
	.tour365-filter-dropdown, .tour365-filter-date { width: 100%; }
	.tour365-filter-btn, .tour365-filter-date { width: 100%; justify-content: space-between; }
	.tour365-filter-search-btn { margin-left: 0; width: 100%; justify-content: center; }
}

.tour365-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; min-height: 100px; transition: opacity .2s; }
@media (max-width: 900px) { .tour365-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tour365-archive-grid { grid-template-columns: 1fr; } }
.tour365-no-results { grid-column: 1 / -1; text-align: center; color: #888; padding: 40px 0; }
.tour365-archive-loadmore-wrap { text-align: center; margin-top: 28px; }
.tour365-loadmore-btn { background: #fff; border: 1px solid #e8590c; color: #e8590c; padding: 10px 26px; border-radius: 6px; font-weight: 700; cursor: pointer; }
.tour365-loadmore-btn:hover { background: #fdece0; }

/* ===== Standalone Search Bar Widget [tour_search_bar] ===== */
/* FIX: cùng lỗi như .tour365-filter-bar ở trên — bỏ overflow-x: auto, đổi nowrap -> wrap */
.tour365-searchbar-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(255,255,255,.96); border-radius: 8px; padding: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-width: 900px; }
.tour365-searchbar-wrap .tour365-filter-dropdown { flex-shrink: 0; }
.tour365-searchbar-wrap .tour365-filter-btn { min-width: 140px; justify-content: space-between; }
.tour365-searchbar-btn { margin-left: auto; }
.tour365-searchbar-warning { width: 100%; color: #c0392b; font-size: 13px; margin: 0 0 8px; }
@media (max-width: 782px) {
	.tour365-searchbar-wrap { flex-wrap: wrap; }
	.tour365-searchbar-wrap .tour365-filter-dropdown { width: 100%; }
	.tour365-searchbar-wrap .tour365-filter-btn { width: 100%; }
	.tour365-searchbar-btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* ===== Booking Page ===== */
.tour365-booking-wrap { max-width: 700px; margin: 0 auto; padding: 30px 15px; }
.tour365-booking-steps { color: #888; margin-bottom: 20px; }
.tour365-booking-steps .active { color: #e8590c; font-weight: 700; }
.tour365-booking-summary { display: flex; gap: 14px; border: 1px solid #eee; border-radius: 6px; padding: 14px; margin-bottom: 24px; align-items: center; }
.tour365-booking-summary img { width: 90px; height: 90px; object-fit: cover; border-radius: 4px; }
.tour365-booking-summary-name { font-weight: 700; margin-bottom: 6px; }
.tour365-booking-summary-places { color: #666; font-size: 13px; margin-top: 4px; }
.tour365-cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.tour365-booking-form a.tour365-cta-btn,
.tour365-cta-btn { flex: 1; min-width: 160px; display: flex !important; align-items: center; justify-content: center; gap: 9px; padding: 15px 20px; border-radius: 6px; text-decoration: none !important; font-weight: 700; font-size: 14px; letter-spacing: .4px; color: #fff !important; border: none; box-shadow: 0 2px 6px rgba(0,0,0,.12); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.tour365-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.18); color: #fff !important; }
.tour365-cta-btn svg { flex-shrink: 0; }
.tour365-cta-email { background: #d64545 !important; }
.tour365-cta-email:hover { background: #c23434 !important; }
.tour365-cta-whatsapp { background: #4caf50 !important; }
.tour365-cta-whatsapp:hover { background: #3f9a43 !important; }
@media (max-width: 480px) { .tour365-cta-buttons { flex-direction: column; } .tour365-cta-btn { width: 100%; } }