/* ====== CRITICAL LAYOUT FALLBACKS (không phụ thuộc Tailwind CDN) ====== */
.klook-landing-page * { box-sizing: border-box; }
.klook-landing-page { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #212121; background: #fff; }
.klook-landing-page .max-w-\[1200px\] { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* Grid Gallery */
.klook-landing-page .grid { display: grid !important; }
.klook-landing-page .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.klook-landing-page .grid-rows-2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.klook-landing-page .col-span-2 { grid-column: span 2 / span 2; }
.klook-landing-page .row-span-1 { grid-row: span 1 / span 1; }
.klook-landing-page .gap-2 { gap: 0.5rem; }
.klook-landing-page .gap-3 { gap: 0.75rem; }
.klook-landing-page .gap-4 { gap: 1rem; }
.klook-landing-page .gap-8 { gap: 2rem; }
.klook-landing-page .gap-10 { gap: 2.5rem; }

/* Flex */
.klook-landing-page .flex { display: flex !important; }
.klook-landing-page .flex-col { flex-direction: column; }
.klook-landing-page .flex-wrap { flex-wrap: wrap; }
.klook-landing-page .items-center { align-items: center; }
.klook-landing-page .items-start { align-items: start; }
.klook-landing-page .items-end { align-items: end; }
.klook-landing-page .justify-between { justify-content: space-between; }
.klook-landing-page .justify-center { justify-content: center; }
.klook-landing-page .flex-1 { flex: 1 1 0%; }
.klook-landing-page .flex-shrink-0, .klook-landing-page .shrink-0 { flex-shrink: 0; }

/* Sizing */
.klook-landing-page .w-full { width: 100%; }
.klook-landing-page .h-full { height: 100%; }
.klook-landing-page .h-\[250px\] { height: 250px; }
.klook-landing-page .overflow-hidden { overflow: hidden; }
.klook-landing-page .relative { position: relative; }
.klook-landing-page .absolute { position: absolute; }
.klook-landing-page .inset-0 { top:0;right:0;bottom:0;left:0; }
.klook-landing-page .sticky { position: sticky; }
.klook-landing-page .hidden { display: none; }
.klook-landing-page .block { display: block; }

/* Object fit */
.klook-landing-page .object-cover { object-fit: cover; }

/* Spacing */
.klook-landing-page .mb-3 { margin-bottom: 0.75rem; }
.klook-landing-page .mb-4 { margin-bottom: 1rem; }
.klook-landing-page .mb-6 { margin-bottom: 1.5rem; }
.klook-landing-page .mb-8 { margin-bottom: 2rem; }
.klook-landing-page .mb-10 { margin-bottom: 2.5rem; }
.klook-landing-page .mb-12 { margin-bottom: 3rem; }
.klook-landing-page .mt-1 { margin-top: 0.25rem; }
.klook-landing-page .mt-4 { margin-top: 1rem; }
.klook-landing-page .mt-6 { margin-top: 1.5rem; }
.klook-landing-page .pt-2 { padding-top: 0.5rem; }
.klook-landing-page .pt-6 { padding-top: 1.5rem; }
.klook-landing-page .pt-10 { padding-top: 2.5rem; }
.klook-landing-page .p-4 { padding: 1rem; }
.klook-landing-page .p-6 { padding: 1.5rem; }
.klook-landing-page .px-4 { padding-left: 1rem; padding-right: 1rem; }
.klook-landing-page .px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.klook-landing-page .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.klook-landing-page .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.klook-landing-page .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.klook-landing-page .pb-4 { padding-bottom: 1rem; }

/* Border radius */
.klook-landing-page .rounded-lg { border-radius: 0.5rem; }
.klook-landing-page .rounded-xl { border-radius: 0.75rem; }
.klook-landing-page .rounded-2xl { border-radius: 1rem; }
.klook-landing-page .rounded-full { border-radius: 9999px; }

/* Borders */
.klook-landing-page .border { border-width: 1px; border-style: solid; }
.klook-landing-page .border-t { border-top-width: 1px; border-top-style: solid; }
.klook-landing-page .border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.klook-landing-page .border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }
.klook-landing-page .border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.klook-landing-page .border-gray-200 { border-color: #e5e7eb; }
.klook-landing-page .border-transparent { border-color: transparent; }

/* Typography */
.klook-landing-page .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.klook-landing-page .text-xs { font-size: 0.75rem; line-height: 1rem; }
.klook-landing-page .text-base { font-size: 1rem; line-height: 1.5rem; }
.klook-landing-page .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.klook-landing-page .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.klook-landing-page .text-2xl { font-size: 1.5rem; line-height: 2rem; }
.klook-landing-page .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.klook-landing-page .text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.klook-landing-page .font-bold { font-weight: 700; }
.klook-landing-page .font-medium { font-weight: 500; }
.klook-landing-page .font-normal { font-weight: 400; }
.klook-landing-page .leading-relaxed { line-height: 1.625; }
.klook-landing-page .leading-none { line-height: 1; }
.klook-landing-page .leading-tight { line-height: 1.25; }
.klook-landing-page .uppercase { text-transform: uppercase; }
.klook-landing-page .underline { text-decoration: underline; }
.klook-landing-page .whitespace-nowrap { white-space: nowrap; }
.klook-landing-page .text-white { color: #fff; }
.klook-landing-page .text-gray-600 { color: #4b5563; }
.klook-landing-page .text-gray-500 { color: #6b7280; }
.klook-landing-page .text-gray-400 { color: #9ca3af; }
.klook-landing-page .text-gray-300 { color: #d1d5db; }
.klook-landing-page .text-red-500 { color: #ef4444; }
.klook-landing-page .text-green-500 { color: #22c55e; }
.klook-landing-page .text-blue-500 { color: #3b82f6; }
.klook-landing-page .bg-white { background-color: #fff; }
.klook-landing-page .bg-gray-100 { background-color: #f3f4f6; }
.klook-landing-page .bg-orange-50 { background-color: #fff7ed; }

/* Cursors & transitions */
.klook-landing-page .cursor-pointer { cursor: pointer; }
.klook-landing-page .transition-all { transition: all 0.3s ease; }
.klook-landing-page .transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }

/* Shadow */
.klook-landing-page .shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.klook-landing-page .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

/* Space-y */
.klook-landing-page .space-y-3 > * + * { margin-top: 0.75rem; }
.klook-landing-page .space-y-4 > * + * { margin-top: 1rem; }
.klook-landing-page .space-y-5 > * + * { margin-top: 1.25rem; }
.klook-landing-page .space-y-8 > * + * { margin-top: 2rem; }

/* z-index */
.klook-landing-page .z-10 { z-index: 10; }
.klook-landing-page .z-40 { z-index: 40; }
.klook-landing-page .z-50 { z-index: 50; }

/* Overflow-x auto for scrollable areas */
.klook-landing-page .overflow-x-auto { overflow-x: auto; }

/* Desktop responsive (md: 768px+) */
@media (min-width: 768px) {
    .klook-landing-page .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .klook-landing-page .md\:row-span-2 { grid-row: span 2 / span 2; }
    .klook-landing-page .md\:h-\[400px\] { height: 400px; }
    .klook-landing-page .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .klook-landing-page .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .klook-landing-page .md\:px-0 { padding-left: 0; padding-right: 0; }
    .klook-landing-page .md\:mx-0 { margin-left: 0; margin-right: 0; }
    .klook-landing-page .md\:gap-12 { gap: 3rem; }
    .klook-landing-page .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .klook-landing-page .md\:flex-row { flex-direction: row; }
    .klook-landing-page .md\:mb-0 { margin-bottom: 0; }
    .klook-landing-page .md\:mt-0 { margin-top: 0; }
    .klook-landing-page .md\:w-auto { width: auto; }
    .klook-landing-page .md\:rounded-tr-2xl { border-top-right-radius: 1rem; }
    .klook-landing-page .md\:rounded-br-2xl { border-bottom-right-radius: 1rem; }
}

/* Large desktop (lg: 1024px+) */
@media (min-width: 1024px) {
    .klook-landing-page .lg\:flex-row { flex-direction: row; }
    .klook-landing-page .lg\:w-2\/3 { width: 66.666667%; }
    .klook-landing-page .lg\:w-1\/3 { width: 33.333333%; }
    .klook-landing-page .lg\:hidden { display: none !important; }
}

/* ====== ORIGINAL CUSTOM CSS ====== */
/* Fallback an toàn cho CSS màu Klook trong trường hợp CDN bị Delay/Cache */
.text-klook-orange { color: #f58220 !important; }
.bg-klook-orange { background-color: #f58220 !important; }
.border-klook-orange { border-color: #f58220 !important; }
.hover\:text-klook-orange:hover { color: #f58220 !important; }
.hover\:border-klook-orange:hover { border-color: #f58220 !important; }

.text-klook-dark { color: #212121 !important; }
.bg-klook-dark { background-color: #212121 !important; }
.border-klook-dark { border-color: #212121 !important; }

.text-klook-gray { color: #757575 !important; }

.bg-klook-light { background-color: #f5f5f5 !important; }
.border-klook-border { border-color: #e0e0e0 !important; }

/* Ẩn scrollbar cho danh sách trượt ngang */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* CSS Cho SEO Content để tránh trùng lặp Heading chính và canh đều lề */
.seo-wysiwyg h2, .seo-wysiwyg h3, .seo-wysiwyg h4 { font-weight: bold; margin-top: 1.5rem; margin-bottom: 0.75rem; color: #212121; }
.seo-wysiwyg h2 { font-size: 1.25rem; }
.seo-wysiwyg h3 { font-size: 1.125rem; }
.seo-wysiwyg p { margin-bottom: 1rem; text-align: justify; }
.seo-wysiwyg ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.seo-wysiwyg ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.seo-wysiwyg img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1rem 0; }

/* Itinerary (Timeline) CSS */
.timeline-item { position: relative; padding-left: 24px; padding-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: 7px; top: 2px; bottom: -2px; width: 2px; background-color: #e0e0e0; }
.timeline-item:last-child::before { display: none; }
.timeline-icon { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background-color: white; border: 2px solid #f58220; z-index: 10; display: flex; align-items: center; justify-content: center; }
.timeline-icon.start-end { background-color: #f58220; }

/* Fix xung đột CSS Flatsome */
@media (max-width: 767px) {
    .klook-desktop-only { display: none !important; }
}

/* Sidebar blocks: ẩn trên mobile, hiện trên desktop */
.klook-sidebar-block { display: none; }
@media (min-width: 1024px) {
    .klook-sidebar-block { display: block !important; }
}

/* Booking spinner */
.klook-spinner { display:inline-block; width:16px; height:16px; border:2px solid rgba(255,255,255,0.4); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notification */
#klook-toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(100px); background:#323232; color:#fff; padding:12px 24px; border-radius:8px; font-size:14px; z-index:9999; opacity:0; transition:all .4s ease; pointer-events:none; white-space:nowrap; }
#klook-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
#klook-toast.error { background:#d32f2f; }

/* Khôi phục CSS cho nội dung WYSIWYG (SEO Content) bị Tailwind reset */
.klook-wysiwyg h1, .klook-wysiwyg h2, .klook-wysiwyg h3, .klook-wysiwyg h4, .klook-wysiwyg h5, .klook-wysiwyg h6 { font-weight: bold; margin-top: 1.5em; margin-bottom: 0.5em; color: #212121; }
.klook-wysiwyg h1 { font-size: 2em; }
.klook-wysiwyg h2 { font-size: 1.5em; margin-top: 1.5em; margin-bottom: 1em; }
.klook-wysiwyg h3 { font-size: 1.25em; }
.klook-wysiwyg h4 { font-size: 1.1em; }
.klook-wysiwyg p { margin-bottom: 1em; line-height: 1.8; }
.klook-wysiwyg ul { list-style-type: disc; padding-left: 20px; margin-bottom: 1em; }
.klook-wysiwyg ol { list-style-type: decimal; padding-left: 20px; margin-bottom: 1em; }
.klook-wysiwyg a { color: #f58220; text-decoration: underline; }
.klook-wysiwyg table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; border: 1px solid #e0e0e0; font-size: 0.95em; }
.klook-wysiwyg th, .klook-wysiwyg td { border: 1px solid #e0e0e0; padding: 12px; text-align: left; }
.klook-wysiwyg th { background-color: #f5f5f5; font-weight: bold; color: #333; }
.klook-wysiwyg img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5em auto; display: block; }
.klook-wysiwyg strong, .klook-wysiwyg b { font-weight: bold; color: #111; }
.klook-wysiwyg blockquote { border-left: 4px solid #e0e0e0; padding-left: 16px; margin: 1.5em 0; color: #666; font-style: italic; }
@media (max-width: 767px) {
    .mobile-hidden { display: none !important; }
}

/* Thêm hiệu ứng active/selected cho các tuỳ chọn Tour (Departure Point, Time Slot, Package) */
input[type="radio"].peer:checked + div {
    border-color: #f58220 !important;
    background-color: #fff7ed !important;
    color: #f58220 !important;
    border-width: 2px !important;
    font-weight: 700 !important;
}
