/* Approved shared palette and responsive form/table geometry. */
:root,body{--me-navy:#0B5D37;--me-teal:#0B5D37;--me-gold:#D4A017;--me-paper:#FAF6E7;--theme:#0B5D37;--me-ink:#2E2E2E}
body,body[class]{background-color:#FAF6E7!important;color:#2E2E2E}
body .btn-primary,body .btn-success,body .theme-btn,body .search-btn{background:#0B5D37!important;border-color:#0B5D37!important;color:#fff!important}
body .btn-primary:hover,body .theme-btn:hover{background:#08482b!important;border-color:#08482b!important}
body .btn-outline-primary{color:#0B5D37!important;border-color:#0B5D37!important}
body .btn-outline-primary:hover{color:#fff!important;background:#0B5D37!important}
body .form-control:focus,body .form-select:focus{border-color:#D4A017;box-shadow:0 0 0 3px #D4A01722}
body .nav-link.active,body .page-item.active .page-link,body .pagination .active>a{background-color:#0B5D37!important;border-color:#0B5D37!important;color:#fff!important}
body #layoutDrawer_nav .drawer-footer{background:#08482b!important}
body #layoutDrawer_nav .drawer-menu .nav-link:hover,body #layoutDrawer_nav .drawer-menu .nav-link.active{background:#ffffff18!important}
.me-table-scroll,.dataTables_scrollBody,.xcrud-list-container{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.me-table-scroll>table{width:100%;min-width:680px;table-layout:auto}
.me-table-scroll td,.me-table-scroll th,.dataTables_wrapper td,.dataTables_wrapper th{vertical-align:middle;white-space:normal;overflow-wrap:anywhere;line-height:1.8;min-width:80px}
.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none!important;display:inline-flex;align-items:center;margin:10px 0 14px 18px}
.dataTables_wrapper label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dataTables_wrapper input,.dataTables_wrapper select{border:1px solid #ddd7c5!important;border-radius:7px!important;min-height:36px}
.dataTables_wrapper .dataTables_paginate .paginate_button.current{background:#0B5D37!important;border-color:#0B5D37!important;color:#fff!important;border-radius:6px}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover{background:#FAF6E7!important;color:#0B5D37!important;border-color:#D4A017!important}
body .row>[class*="col-"]{min-width:0}
body form .form-control,body form .form-select,body .select2-container{max-width:100%;min-width:0;box-sizing:border-box}
body form label{height:auto;white-space:normal;line-height:1.8}
body .select2-container .select2-choice,body .select2-container--default .select2-selection--single{border-color:#ded7c4;border-radius:8px;background:#fff}
body .select2-results .select2-highlighted,body .select2-container--default .select2-results__option--highlighted[aria-selected]{background:#0B5D37;color:#fff}
body .me-search,body .search-fields-container,body .main_search{background:#fff;border-color:#e6deca;border-radius:12px}
body .me-search label,body .search-fields-container label{color:#0B5D37}
.me-amenity-icon{width:28px;height:28px;display:inline-block;flex-shrink:0;color:#0B5D37;vertical-align:middle}
.me-result-card{content-visibility:auto;contain-intrinsic-size:auto 260px}
@media(max-width:767px){
 body .dataTables_wrapper .dataTables_filter,body .dataTables_wrapper .dataTables_length{display:flex;width:100%;margin:8px 0}
 body .dataTables_wrapper .dataTables_filter input{width:min(65vw,270px)}
 body form .row{row-gap:14px}
 body form .row>[class*="col-md-"],body form .row>[class*="col-lg-"]{width:100%;max-width:100%;flex:0 0 100%}
 body .search-fields-container .row>[class*="col-"],body .me-search .row>[class*="col-"]{width:100%;max-width:100%;flex:0 0 100%}
 body .card-body{min-width:0}body .select2-container{width:100%!important}
 .dataTables_wrapper .dataTables_paginate{float:none!important;text-align:center!important;white-space:normal}
 body .xcrud-top-actions,body .xcrud-bottom-actions{display:flex;gap:8px;flex-wrap:wrap}
}

body{--mdc-theme-primary:#0B5D37;--mdc-theme-secondary:#D4A017;--mdc-typography-font-family:MehmanSans,Shabnam,Tahoma,sans-serif}mwc-tab-bar{max-width:100%;overflow:auto}

/* Existing hotel counters, presented through the same local Select2 as destination. */
.me-guest-control{position:relative;min-width:0}.me-guest-parking,.me-guest-panel[hidden]{display:none!important}
.me-guest-control>.select2-container{width:100%!important}.me-guest-control .select2-selection__rendered{padding-right:40px!important;padding-left:30px!important}
.me-guest-select2-dropdown{min-width:290px;max-width:calc(100vw - 32px);border-color:#e5d9bf!important;border-radius:8px!important;background:#fffdf5!important;box-shadow:0 6px 20px #2e2e2e15}
.me-guest-select2-dropdown>.select2-results{display:none}.me-guest-panel{display:block;padding:14px;max-height:min(65vh,460px);overflow:auto;direction:rtl;font-family:MehmanSans,Shabnam,Tahoma,sans-serif}
.me-guest-panel .dropdown-item{white-space:normal;padding:9px 0;background:transparent!important;color:#2E2E2E}.me-guest-panel label{font-size:13px!important;margin:0}
.me-guest-panel .qtyBtn{gap:8px;flex-shrink:0}.me-guest-panel .qtyBtn input{width:34px!important;min-height:32px!important;height:32px!important;padding:3px!important;text-align:center}
.me-guest-panel .qtyInc,.me-guest-panel .qtyDec,.me-guest-panel .roomInc,.me-guest-panel .roomDec{display:grid;place-items:center;width:30px;height:30px;border:1px solid #e5d9bf;border-radius:6px;color:#0B5D37;cursor:pointer;background:#fff}
.me-guest-panel .qtyInc:focus-visible,.me-guest-panel .qtyDec:focus-visible,.me-guest-panel .roomInc:focus-visible,.me-guest-panel .roomDec:focus-visible{outline:2px solid #D4A017;outline-offset:2px}
.me-guest-panel #append{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.me-guest-panel #append>.col{width:auto!important;padding:0!important}.me-guest-panel #append .dropdown-item{margin-top:0!important}
.me-guest-panel .form-select{width:100%;min-height:38px;border:1px solid #e5d9bf;border-radius:6px;background-color:#fff!important}
@media(max-width:767px){.me-guest-select2-dropdown{min-width:0;width:100%!important}.me-guest-panel{padding:12px}}

/* Shared traveller field baseline across existing search modules. */
:is(.main_search,.main_search_mobile,#tours-search,#cars-search) .input-box>.label-text{display:block;min-height:22px;margin-bottom:7px;line-height:22px}
:is(.main_search,.main_search_mobile,#tours-search,#cars-search) .input-box>.form-group{margin-bottom:0}
:is(.main_search,.main_search_mobile,#tours-search,#cars-search) .me-guest-control>.select2-container .select2-selection{height:55px!important;min-height:55px!important;display:flex;align-items:center}
:is(.main_search,.main_search_mobile,#tours-search,#cars-search) .me-guest-control>.select2-container .select2-selection__rendered{width:100%;line-height:53px!important}
:is(.main_search,.main_search_mobile,#tours-search,#cars-search) .me-guest-control>.select2-container .select2-selection__arrow{height:53px!important}
.me-guest-control>.form-icon{z-index:1;pointer-events:none}
@media(max-width:767px){
 .me-header .me-nav{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px!important;align-items:center;align-content:center}
 .me-header .me-brand{grid-column:2;grid-row:1;justify-self:center;flex:none!important;margin:0!important}
 .me-header .me-mobile-toggle{grid-column:1;grid-row:1;justify-self:start;margin:0!important;z-index:2}
 .me-header .me-account{grid-column:3;grid-row:1;justify-self:end;max-width:100%;font-size:9px;padding:6px;white-space:normal;text-align:center}
 .me-header .me-menu{grid-column:1/-1;position:absolute;width:100%;right:0}
}

:is(.main_search,.main_search_mobile,#tours-search,#cars-search) .label-text{display:block;min-height:22px;line-height:22px;margin-bottom:7px}
:is(#tours-search,#cars-search) .form-control,:is(#tours-search,#cars-search) .select2-selection{min-height:55px!important;height:55px!important;display:flex;align-items:center}
/* Search actions share the field baseline and control height in every module. */
:is(.main_search,.main_search_mobile,#tours-search,#cars-search) .row:has(>[class*="col-"]>.btn-search){align-items:flex-end!important}
:is(.main_search,.main_search_mobile,#tours-search,#cars-search) .form-group:not(.me-guest-panel .form-group){margin-bottom:0!important}
:is(.main_search,.main_search_mobile,#tours-search,#cars-search) .btn-search{padding-top:0!important;margin-top:0!important;margin-bottom:0!important}
:is(.main_search,.main_search_mobile,#tours-search,#cars-search) .btn-search button{height:55px!important;min-height:55px!important;margin:0!important;display:flex;align-items:center;justify-content:center;gap:8px;padding-top:8px!important;padding-bottom:8px!important;line-height:1.5!important}
:is(.main_search,.main_search_mobile,#tours-search,#cars-search) .form-group>.form-control:not(.select2-hidden-accessible),:is(.main_search,.main_search_mobile,#tours-search,#cars-search) .select2-container .select2-selection{height:55px!important;min-height:55px!important}
.me-approved .me-results-heading button[data-bs-target="#collapseOne"]{display:flex!important;margin-top:10px;max-width:100%}
/* Persian in-page field feedback and confirmations. */
.me-field-error{display:block;width:100%;margin:5px 0 0;color:#a52323;font-size:12px;line-height:1.9;white-space:normal}
[aria-invalid=true]:not(.select2-hidden-accessible){border-color:#a52323!important;outline-color:#a52323!important}
.select2-hidden-accessible[aria-invalid=true]+.select2-container .select2-selection{border-color:#a52323!important}
.me-feedback-overlay{position:fixed;inset:0;z-index:20000;background:#2e2e2e80;display:grid;place-items:center;padding:16px;direction:rtl}
.me-feedback-dialog{background:#fffdf6;color:#2E2E2E;border:1px solid #e5d9bf;border-radius:12px;box-shadow:0 8px 32px #0002;padding:24px;width:min(440px,100%);max-height:85dvh;overflow:auto;text-align:right;font-family:inherit}
.me-feedback-dialog h2{font-size:19px;color:#0B5D37;margin:0 0 12px}.me-feedback-dialog p{font-size:14px;line-height:2;white-space:pre-line;margin:0}
.me-feedback-actions{display:flex;gap:10px;margin-top:22px}.me-feedback-actions button{border:1px solid #0B5D37;background:#0B5D37;color:#fff;border-radius:7px;padding:9px 18px;min-height:44px;font:inherit;font-size:13px}.me-feedback-actions .me-feedback-cancel{background:#fffdf6;color:#0B5D37}
.me-feedback-actions button:focus-visible{outline:2px solid #D4A017;outline-offset:3px}
/* Brand images retain their uploaded proportions in every shell. */
.me-header .me-brand img,.me-site-footer .me-footer-brand img,.me-auth-brand img,.me-admin-brand img{object-fit:contain!important}
@media(max-width:767px){
 .me-header .me-brand{min-width:0}.me-header .me-brand img{width:60px!important;height:52px!important;object-fit:contain!important}
 :is(.main_search,.main_search_mobile,#tours-search,#cars-search) :is(input.form-control,.select2-selection__rendered){text-align:right!important}
 :is(.main_search,.main_search_mobile,#tours-search,#cars-search) input.form-control:not([type=checkbox]):not([type=radio]){padding-right:40px!important;padding-left:14px!important}
 .me-results-layout .controls-pagination{max-width:100%;min-width:0}
 .me-results-layout .mixitup-page-list{display:flex!important;flex-wrap:nowrap!important;gap:4px;width:100%;max-width:100%;overflow-x:auto;align-items:center;justify-content:flex-start;padding:4px 0;direction:rtl}
 .me-results-layout .mixitup-page-list>*{flex:0 0 auto!important;float:none!important;margin:0!important;min-width:32px;white-space:nowrap}
 .modal#flights_load.show,.modal#hotels_load.show,.modal#tours_load.show,.modal#cars_load.show,.modal.me-loading-modal.show{display:block!important}
 .me-loading-modal .modal-content{padding:22px 14px!important}.me-loader-content{max-width:100%}.me-loader-symbol img{object-fit:contain!important}
}
