/* SmartWay V38: coherent NIGHT palette, nine languages, old/new content, Elementor and confirmation pages. */
/* The earlier header sets html[data-sw-mode="dark"]; do not change light appearance. */
html[data-sw-mode="dark"] { --sw-paper:#241A16;--sw-ink:#F7F1E7;--sw-link:#F2C68B;--sw-action:#A84A1D;--sw-gold:#DCB778;color-scheme:dark!important; }
html[data-sw-mode="dark"] body { background-color:#241A16!important;color:#F7F1E7!important;color-scheme:dark!important; }
html[data-sw-mode="dark"] body :is(main,#primary,.swu-page-content,.sw-info-page,.sw-page-content,.entry-content,.site-content,.elementor-location-single) { background-color:#241A16!important;color:#F7F1E7!important; }
/* Main content panels. Never apply the light-mode fixed colors to dark-mode cards. */
html[data-sw-mode="dark"] body :is(.sw35-native,.sw35-wide,.sw34-city,.sw34-visa,.sw-confirm,.swv-confirm,.sw35-home-guides,.sw-page,.sw-info-page){background-color:#241A16!important;color:#F7F1E7!important;color-scheme:dark!important;}
html[data-sw-mode="dark"] body :is(.sw35-native,.sw35-wide,.sw34-city,.sw34-visa,.sw-confirm,.swv-confirm,.sw35-home-guides,.sw-page,.sw-info-page) :is(.sw35-native-hero,.sw35-hero-card,.sw35-card,.sw35-proof>div,.sw35-trio>article,.sw35-enquiry,.sw35-page-content,.sw35-feedback,.sw34-visa-hero,.sw34-visa-panel,.sw34-visa-confirm,.sw34-visa-doc,.sw34-visa-contact,.sw34-city-intro,.sw34-city-plan,.sw34-highlight,.sw34-tour-card,.sw34-form,.sw34-feedback,.swt-card,.swt-form,.swt-process li,.swt-faq,.swt-note,.swv-facts,.swv-facts>div,.swv-section,.swv-section.swv-alt,.swv-card,.swv-panel,.swv-box,.swv-enquiry,.swv-step,.swv-why,.swv-faq,.swv-sample){background-color:#35271F!important;color:#F7F1E7!important;border-color:#856648!important;color-scheme:dark!important;}
html[data-sw-mode="dark"] body :is(.sw35-native,.sw35-wide,.sw34-city,.sw34-visa,.sw-confirm,.swv-confirm,.sw35-home-guides,.sw-page,.sw-info-page) :is(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,li,dt,dd,summary,label,legend,th,td,blockquote,figcaption){color:#F7F1E7!important;-webkit-text-fill-color:#F7F1E7!important;}
html[data-sw-mode="dark"] body :is(.sw35-native,.sw35-wide,.sw34-city,.sw34-visa,.sw-confirm,.swv-confirm,.sw35-home-guides,.sw-page,.sw-info-page) :is(a:not(.sw35-btn):not(.swt-btn):not(.swv-button):not([role="button"])){color:#F2C68B!important;-webkit-text-fill-color:#F2C68B!important;}
html[data-sw-mode="dark"] body :is(.sw35-native,.sw35-wide,.sw34-city,.sw34-visa,.sw-confirm,.swv-confirm) :is(.sw35-card,.sw34-tour-card) :is(h2,h3,p,span,strong){color:#F7F1E7!important;-webkit-text-fill-color:#F7F1E7!important;}
/* Form elements must remain readable including their placeholders and validation. */
html[data-sw-mode="dark"] body :is(.sw35-form,.sw34-visa-form,.swv-confirm,.sw-confirm,.swu-page-content,.elementor) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),textarea,select,option){background-color:#4A3328!important;color:#FAF4EA!important;-webkit-text-fill-color:#FAF4EA!important;border:1px solid #B69972!important;color-scheme:dark!important;}
html[data-sw-mode="dark"] body :is(input,textarea)::placeholder {color:#E2CCB4!important;opacity:1!important;-webkit-text-fill-color:#E2CCB4!important;}
html[data-sw-mode="dark"] body :is(.sw35-form,.sw34-visa-form,.swv-confirm,.sw-confirm,.swu-page-content) :is(input,select,textarea):focus-visible {outline:2px solid #E9BF7B!important;outline-offset:2px!important;}
html[data-sw-mode="dark"] body :is(.sw35-btn,.swv-button,.swt-btn,.swu-book,.mobile-book,.swu-topbtn,.elementor-button,.wpcf7-submit,.wp-block-button__link,button[type="submit"],input[type="submit"]){background-color:#A84A1D!important;color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important;border-color:#D9B274!important;}
html[data-sw-mode="dark"] body :is(.sw35-btn,.swv-button,.swt-btn,.elementor-button,.wpcf7-submit,.wp-block-button__link,button[type="submit"]):hover{background-color:#893B17!important;}
/* Actual confirmation template is .swv-confirm (not .sw-confirm). The hero uses a photo background. */
html[data-sw-mode="dark"] body .swv-confirm .swv-hero{background-color:#2C211B!important;}
html[data-sw-mode="dark"] body .swv-confirm .swv-hero :is(h1,h2,h3,p,span,b,strong,small){color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important;}
html[data-sw-mode="dark"] body .swv-confirm .swv-hero a.swv-button{color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important;}
html[data-sw-mode="dark"] body .swv-confirm .swv-section.swv-alt{background-color:#30231C!important;}
html[data-sw-mode="dark"] body .swv-confirm .swv-legal-links a{display:inline-flex!important;align-items:center!important;background-color:#463126!important;color:#F6D09A!important;-webkit-text-fill-color:#F6D09A!important;border:1px solid #97734D!important;border-radius:7px!important;}
html[data-sw-mode="dark"] body .swv-confirm :is(.swv-legal-links,.swv-legal-links a,.swv-facts,.swv-section){color-scheme:dark!important;}
html[data-sw-mode="dark"] body .swv-confirm .swv-facts :is(strong,div){color:#F7F1E7!important;-webkit-text-fill-color:#F7F1E7!important;}
html[data-sw-mode="dark"] body :is(.swv-sample,.swt-letter){display:none!important;}
/* Elementor content: respect photo backgrounds while ensuring text over dark/plain surfaces is light. */
html[data-sw-mode="dark"] body .elementor :is(.elementor-heading-title,.elementor-icon-list-text,.elementor-text-editor,.elementor-widget-text-editor,.elementor-widget-heading) {color:#F7F1E7;}
html[data-sw-mode="dark"] body .elementor .elementor-widget-text-editor :is(p,li,span,strong,b){color:inherit;}
html[data-sw-mode="dark"] body :is(.elementor-tab-title,.elementor-tab-content,.elementor-accordion-item,.elementor-toggle-item,.elementor-alert,.elementor-testimonial-wrapper,.elementor-price-table,.elementor-widget-accordion .elementor-widget-container){background-color:#34271F!important;color:#F7F1E7!important;border-color:#886744!important;}
html[data-sw-mode="dark"] body :is(.elementor-tab-title,.elementor-tab-content,.elementor-accordion-item,.elementor-toggle-item,.elementor-alert,.elementor-testimonial-wrapper,.elementor-price-table) :is(h1,h2,h3,h4,p,span,li,strong){color:#F7F1E7!important;-webkit-text-fill-color:#F7F1E7!important;}
/* Dropdown colors continue to use theme variables; enforce contrast for Bengali/Hindi scripts too. */
html[data-sw-mode="dark"] body #sw-site-header :is(.swu-more-menu,.sw34-drop-menu,.sw35-xmas-menu){background:#30221B!important;color:#F7F1E7!important;border-color:#B79058!important;}
html[data-sw-mode="dark"] body #sw-site-header :is(.swu-more-menu,.sw34-drop-menu,.sw35-xmas-menu) a{color:#F7F1E7!important;-webkit-text-fill-color:#F7F1E7!important;}
html[data-sw-mode="dark"] body #sw-site-header :is(.swu-more-menu,.sw34-drop-menu,.sw35-xmas-menu) a:is(:hover,:focus-visible){background-color:#493225!important;color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important;}
/* Legacy V34 script duplicates existing visa/confirmation in More; hide only when main navigation has a direct matching link. */
#sw-site-header .swu-mainnav:has(>a[href*="schengen-visa/"]) .swu-more-menu a[href*="schengen-visa/"],
#sw-site-header .swu-mainnav:has(>a[href*="tour-reservation-confirmation-letter/"]) .swu-more-menu a[href*="tour-reservation-confirmation-letter/"]{display:none!important;}
/* Contrast repaired dynamically on other legacy layouts only when computed WCAG contrast fails. */
html[data-sw-mode="dark"] body .sw38-contrast-light{color:#F9F3EA!important;-webkit-text-fill-color:#F9F3EA!important;}
html[data-sw-mode="dark"] body .sw38-contrast-dark{color:#241A16!important;-webkit-text-fill-color:#241A16!important;}
html[data-sw-mode="dark"] body .sw38-contrast-link-light{color:#F2C68B!important;-webkit-text-fill-color:#F2C68B!important;}
html[data-sw-mode="dark"] body .sw38-contrast-link-dark{color:#76340F!important;-webkit-text-fill-color:#76340F!important;}
html[data-sw-mode="dark"] body .sw38-dark-surface{background-color:#35271F!important;color:#F7F1E7!important;}
html[data-sw-mode="dark"] body .sw38-dark-surface :is(h1,h2,h3,h4,p,span,strong,li,small){color:#F7F1E7!important;-webkit-text-fill-color:#F7F1E7!important;}
html[data-sw-mode="dark"] body .sw38-dark-surface a:not(.elementor-button):not(.sw35-btn):not(.swv-button){color:#F2C68B!important;-webkit-text-fill-color:#F2C68B!important;}
@media(max-width:700px){html[data-sw-mode="dark"] body .swv-confirm .swv-legal-links a{max-width:100%!important;overflow-wrap:anywhere!important;}}
