/* TripKuwait Market — Arabic / TranslatePress RTL compatibility */
html[dir="rtl"],html.tkm-rtl-html{direction:rtl}
body.tkm-rtl{direction:rtl;text-align:right;overflow-x:hidden}
body.tkm-rtl .elementor-widget-container,
body.tkm-rtl .tkm-account-app,
body.tkm-rtl .tkm-market-app,
body.tkm-rtl .tkm-post-ad-app,
body.tkm-rtl .tkm-single-ad,
body.tkm-rtl .tkm-professionals-app,
body.tkm-rtl .tkm-chat-app,
body.tkm-rtl .tkm-contact-section,
body.tkm-rtl [class^="tkm-"],
body.tkm-rtl [class*=" tkm-"]{direction:rtl}

/* Natural Arabic alignment. Centered display components keep their alignment. */
body.tkm-rtl :where(.tkm-auth-heading,.tkm-card-head,.tkm-dashboard-section-head,.tkm-field,.tkm-filter-section,.tkm-contact-intro,.tkm-contact-form-intro,.tkm-footer-brand,.tkm-footer-links,.tkm-footer-contact,.tkm-description-section,.tkm-ad-summary,.tkm-professional-copy,.tkm-chat-inbox__head,.tkm-chat-panel__head){text-align:right}
body.tkm-rtl :where(.tkm-empty-state,.tkm-featured-empty,.tkm-contact-form-placeholder,.tkm-auth-tabs,.tkm-role-picker label>span){text-align:center}

/* Inputs and directional controls */
body.tkm-rtl input:not([type="email"]):not([type="tel"]):not([type="url"]):not([type="number"]),
body.tkm-rtl textarea,
body.tkm-rtl select{text-align:right}
body.tkm-rtl input[type="email"],body.tkm-rtl input[type="tel"],body.tkm-rtl input[type="url"],body.tkm-rtl input[type="number"],
body.tkm-rtl .tkm-phone,body.tkm-rtl .tkm-email,body.tkm-rtl .tkm-price,body.tkm-rtl .tkm-ad-price,body.tkm-rtl .tkm-featured-card__price{direction:ltr;text-align:left;unicode-bidi:isolate}
body.tkm-rtl .tkm-input-icon>svg,body.tkm-rtl .tkm-password-input>svg{left:auto;right:14px}
body.tkm-rtl .tkm-input-icon input,body.tkm-rtl .tkm-password-input:not(.plain) input{padding-left:14px;padding-right:43px}
body.tkm-rtl .tkm-password-input input{padding-right:43px;padding-left:52px}
body.tkm-rtl .tkm-password-input button{right:auto;left:7px}
body.tkm-rtl .tkm-honeypot{left:auto!important;right:-99999px!important}

/* Header / navigation / off-canvas */
body.tkm-rtl .tkm-header-menu,
body.tkm-rtl .tkm-market-nav,
body.tkm-rtl .tkm-footer-grid,
body.tkm-rtl .tkm-footer-bottom{direction:rtl}
body.tkm-rtl .tkm-mobile-drawer,
body.tkm-rtl [data-tkm-mobile-drawer]{transform-origin:top left!important}

/* Account and dashboard */
body.tkm-rtl .tkm-dashboard-layout{direction:rtl}
body.tkm-rtl .tkm-dashboard-hero:after{right:auto;left:-140px}
body.tkm-rtl .tkm-online-dot{right:auto;left:-2px}
body.tkm-rtl .tkm-dashboard-sidebar{border-left:1px solid var(--tkm-account-line,#dce9e2);border-right:0}
body.tkm-rtl .tkm-dashboard-nav a svg,body.tkm-rtl .tkm-dashboard-nav button svg{transform:scaleX(-1)}
body.tkm-rtl .tkm-form-row,body.tkm-rtl .tkm-card-head,body.tkm-rtl .tkm-dashboard-section-head{direction:rtl}

/* Cards, badges and listing grids */
body.tkm-rtl .tkm-ad-card__badges,body.tkm-rtl .tkm-featured-card__badges{left:auto;right:12px}
body.tkm-rtl .tkm-card-save,body.tkm-rtl .tkm-featured-save{right:auto;left:12px}
body.tkm-rtl .tkm-featured-card__cta svg,body.tkm-rtl .tkm-area-arrow svg,body.tkm-rtl .tkm-gateway-cta svg{transform:scaleX(-1)}
body.tkm-rtl .tkm-area-card__copy,body.tkm-rtl .tkm-featured-card__details,body.tkm-rtl .tkm-ad-card__body{text-align:right}

/* Filters and dropdowns */
body.tkm-rtl .tkm-ad-filters,body.tkm-rtl .tkm-filter-row,body.tkm-rtl .tkm-filter-actions{direction:rtl}
body.tkm-rtl .tkm-ad-more-menu__panel{right:auto;left:0}
body.tkm-rtl .tkm-filter-drawer,body.tkm-rtl [data-tkm-filter-drawer]{left:auto;right:0}

/* Contact widget + Fluent Forms */
body.tkm-rtl .tkm-contact-card--info-right .tkm-contact-card__info{order:2}
body.tkm-rtl .tkm-contact-card--info-right .tkm-contact-card__form{order:1}
body.tkm-rtl .tkm-contact-item__copy,body.tkm-rtl .tkm-contact-form-wrap .ff-el-group{text-align:right}
body.tkm-rtl .tkm-contact-form-wrap .ff-el-form-check{padding-left:0;padding-right:1.4em}
body.tkm-rtl .tkm-contact-form-wrap .ff-el-form-check-input{margin-left:.5em;margin-right:-1.4em}
body.tkm-rtl .tkm-contact-form-wrap input[type="email"],body.tkm-rtl .tkm-contact-form-wrap input[type="tel"]{direction:ltr;text-align:right}

/* Chat */
body.tkm-rtl .tkm-chat-bubble.is-mine{margin-left:0;margin-right:auto}
body.tkm-rtl .tkm-chat-bubble:not(.is-mine){margin-right:0;margin-left:auto}
body.tkm-rtl .tkm-chat-compose textarea{text-align:right}

/* Maps remain spatially neutral; controls/copy follow Arabic direction. */
body.tkm-rtl :where(.gm-style,.leaflet-container){direction:ltr;text-align:left}
body.tkm-rtl :where(.tkm-area-popup,.tkm-ad-map-marker,.tkm-area-map-marker){direction:rtl;text-align:right}

/* Generic directional utilities for plugin arrows and pseudo actions. */
body.tkm-rtl :where(.tkm-area-arrow,.tkm-gateway-cta,.tkm-featured-view-all,.tkm-soft-action,.tkm-primary-action) svg[data-directional="true"]{transform:scaleX(-1)}

@media(max-width:767px){
  body.tkm-rtl .tkm-dashboard-sidebar{border:0}
  body.tkm-rtl .tkm-contact-card--info-right .tkm-contact-card__info,
  body.tkm-rtl .tkm-contact-card--info-right .tkm-contact-card__form{order:initial}
}

/* v2.9 — Market hero + stronger responsive RTL alignment. */
body.tkm-rtl .tkm-market-hero__content{
  direction:rtl;
  text-align:right!important;
}
body.tkm-rtl .tkm-market-hero__intro{
  width:min(100%,var(--tkm-hero-intro-width,850px));
  margin-left:auto!important;
  margin-right:0!important;
  align-items:flex-end!important;
  text-align:right!important;
}
body.tkm-rtl .tkm-market-hero__intro .tkm-eyebrow{
  align-self:flex-end!important;
  direction:rtl;
  text-align:right!important;
}
body.tkm-rtl .tkm-market-hero__intro .tkm-heading,
body.tkm-rtl .tkm-market-hero__intro .tkm-description{
  width:100%;
  margin-left:0!important;
  margin-right:0!important;
  text-align:right!important;
}
body.tkm-rtl .tkm-market-hero__intro .tkm-description{margin-top:2px!important}
body.tkm-rtl .tkm-market-search,
body.tkm-rtl .tkm-market-search__tabs,
body.tkm-rtl .tkm-market-search__fields,
body.tkm-rtl .tkm-hero-trust{direction:rtl}
body.tkm-rtl .tkm-market-search__tabs{justify-content:flex-start}
body.tkm-rtl .tkm-market-search__tabs span{flex-direction:row}
body.tkm-rtl .tkm-market-search__fields input,
body.tkm-rtl .tkm-market-search__fields select{text-align:right;direction:rtl}
body.tkm-rtl .tkm-search-keyword svg{left:auto;right:16px}
body.tkm-rtl .tkm-search-keyword input{padding-left:16px!important;padding-right:46px!important}
body.tkm-rtl .tkm-market-search__fields select{padding-left:34px;padding-right:16px}
body.tkm-rtl .tkm-hero-trust{justify-content:flex-start;text-align:right}
body.tkm-rtl .tkm-hero-trust span{flex-direction:row}

/* Arabic mobile viewport hardening. */
@media(max-width:767px){
  html[dir="rtl"],body.tkm-rtl{max-width:100%;overflow-x:clip}
  body.tkm-rtl .elementor,
  body.tkm-rtl .elementor-section,
  body.tkm-rtl .elementor-container,
  body.tkm-rtl .elementor-widget-container,
  body.tkm-rtl .tkm-section,
  body.tkm-rtl .tkm-market-hero,
  body.tkm-rtl .tkm-market-hero__content,
  body.tkm-rtl .tkm-market-hero__intro,
  body.tkm-rtl .tkm-market-search,
  body.tkm-rtl .tkm-market-search__fields,
  body.tkm-rtl .tkm-market-shell,
  body.tkm-rtl .tkm-account-app,
  body.tkm-rtl .tkm-post-ad-app{min-width:0;max-width:100%}

  body.tkm-rtl .tkm-market-hero__content{
    width:100%!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }
  body.tkm-rtl .tkm-market-hero__intro{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    align-items:flex-end!important;
  }
  body.tkm-rtl .tkm-market-hero__intro .tkm-eyebrow{max-width:100%;white-space:normal}
  body.tkm-rtl .tkm-market-hero__intro .tkm-heading,
  body.tkm-rtl .tkm-market-hero__intro .tkm-description{width:100%;max-width:100%!important;text-align:right!important}
  body.tkm-rtl .tkm-market-search{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
  body.tkm-rtl .tkm-market-search__fields{grid-template-columns:minmax(0,1fr)!important;width:100%}
  body.tkm-rtl .tkm-market-search__fields label,
  body.tkm-rtl .tkm-market-search__fields input,
  body.tkm-rtl .tkm-market-search__fields select,
  body.tkm-rtl .tkm-market-search__fields button{width:100%;min-width:0;max-width:100%}
  body.tkm-rtl .tkm-market-search__tabs{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  body.tkm-rtl .tkm-market-search__tabs label,
  body.tkm-rtl .tkm-market-search__tabs span{min-width:0;max-width:100%}
  body.tkm-rtl .tkm-hero-trust{width:100%;justify-content:flex-start;gap:9px 12px}

  body.tkm-rtl .tkm-mobile-drawer,
  body.tkm-rtl [data-tkm-mobile-drawer]{
    left:10px!important;
    right:10px!important;
    width:auto!important;
    max-width:calc(100vw - 20px)!important;
  }
  body.tkm-rtl .tkm-filter-drawer,
  body.tkm-rtl [data-tkm-filter-drawer]{
    left:auto!important;
    right:0!important;
    max-width:min(92vw,390px)!important;
  }
}

@media(max-width:420px){
  body.tkm-rtl .tkm-market-hero__content{padding-left:10px!important;padding-right:10px!important}
  body.tkm-rtl .tkm-market-hero__intro .tkm-heading{font-size:clamp(28px,9vw,34px)!important;line-height:1.18!important}
  body.tkm-rtl .tkm-market-hero__intro .tkm-description{font-size:13px!important;line-height:1.75!important}
  body.tkm-rtl .tkm-market-search__tabs span{padding-left:10px;padding-right:10px}
}


/* v2.10 — lock Arabic hero copy to the physical right edge.
   Do not use margin-inline here: in RTL it can override the physical margin
   that places the 850px intro block against the right side of the hero. */
body.tkm-rtl .tkm-market-hero__intro{
  margin-left:auto!important;
  margin-right:0!important;
  align-items:flex-end!important;
}
body.tkm-rtl .tkm-market-hero__intro>.tkm-eyebrow{
  align-self:flex-end!important;
  margin-left:0!important;
  margin-right:0!important;
  justify-content:flex-start!important;
  text-align:right!important;
}
body.tkm-rtl .tkm-market-hero__intro>.tkm-eyebrow>span{
  text-align:right!important;
}
@media(max-width:767px){
  body.tkm-rtl .tkm-market-hero__intro{
    margin-left:0!important;
    margin-right:0!important;
    align-items:flex-end!important;
  }
  body.tkm-rtl .tkm-market-hero__intro>.tkm-eyebrow{
    align-self:flex-end!important;
    width:auto!important;
    max-width:100%!important;
  }
}


/* v2.11 — definitive physical-right alignment for the Arabic Market hero.
   In an RTL flex-column, flex-end maps to the LEFT side of the inline axis.
   Stretch the intro children and use a physical auto left margin on the compact
   eyebrow so the badge is pinned to the actual right edge. */
body.tkm-rtl .tkm-market-hero__intro{
  margin-left:auto!important;
  margin-right:0!important;
  align-items:stretch!important;
  text-align:right!important;
}
body.tkm-rtl .tkm-market-hero__intro>.tkm-eyebrow{
  width:max-content!important;
  max-width:100%!important;
  align-self:auto!important;
  margin-left:auto!important;
  margin-right:0!important;
  direction:rtl!important;
  justify-content:flex-start!important;
  text-align:right!important;
}
body.tkm-rtl .tkm-market-hero__intro>.tkm-heading,
body.tkm-rtl .tkm-market-hero__intro>.tkm-description{
  width:100%!important;
  max-width:100%!important;
  text-align:right!important;
}
@media(max-width:767px){
  body.tkm-rtl .tkm-market-hero__intro{
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    align-items:stretch!important;
  }
  body.tkm-rtl .tkm-market-hero__intro>.tkm-eyebrow{
    width:max-content!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:0!important;
  }
}
