/* RTL Event Detail Page Styling */

body.rtl .tav-single-event-wrapper {
  text-align: right;
  direction: rtl;
}

body.rtl .tav-event-title {
  font-family: inherit;
  text-align: right;
}

body.rtl .tav-post-meta {
  flex-direction: row-reverse;
}

body.rtl .tav-post-meta span:not(:last-child):after {
  left: -10px;
  right: auto;
}

body.rtl .join-conversation {
  margin-right: auto;
  margin-left: 0;
}

body.rtl .countdown-wrapper {
  direction: rtl;
}

body.rtl .countdown-item:not(:last-child):after {
  right: auto;
  left: 0;
}

body.rtl .tav-event-layout {
  direction: rtl;
}

body.rtl .tav-event-info .info-item {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}

body.rtl .info-item i {
  margin-left: 10px;
  margin-right: 0;
  text-align: right;
  float: right;
}

body.rtl .detail-label i,
body.rtl .info-item i {
  order: 1;
  margin-left: 10px;
  margin-right: 0;
}

body.rtl .detail-label span,
body.rtl .info-item span {
  order: 2;
}

body.rtl .bookmark-btn, 
body.rtl .register-btn, 
body.rtl .order-now-btn {
  text-align: center;
}

body.rtl .tav-calendar-button {
    text-align: center;
}

body.rtl .tav-calendar-option {
    text-align: right;
}

body.rtl .category-quantity {
  text-align: left;
}

body.rtl .tav-event-details-section h3,
body.rtl .tav-ticket-categories h3,
body.rtl .tav-sidebar-widget h3 {
  text-align: center;
    padding: 20px 0 0;
}

body.rtl .tav-social-share {
  direction: rtl;
}

body.rtl .info-item[title="Doors Open"],
body.rtl .info-item[title="Beginning"] {
  text-align: right;
  display: flex;
  flex-direction: row-reverse;
}

body.rtl .fa-calendar, 
body.rtl .fa-door-open, 
body.rtl .fa-clock, 
body.rtl .fa-map-marker-alt {
  float: right !important;
  margin-left: 10px !important;
  margin-right: 0 !important;
}

body.rtl .tav-event-map iframe,
body.rtl input[type="email"],
body.rtl input[type="number"],
body.rtl input[type="password"],
body.rtl input[type="search"],
body.rtl input[type="tel"],
body.rtl input[type="text"],
body.rtl input[type="url"] {
  direction: ltr;
}

body.rtl .fas,
body.rtl .far,
body.rtl .fab {
  margin-left: 5px;
  margin-right: 0;
}

body.rtl .countdown-number {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.rtl .ticket-category {
  text-align: right;
  flex-direction: row-reverse;
}

body.rtl .category-name {
  text-align: right;
}

body.rtl .category-price {
  text-align: right;
}

body.rtl .category-quantity select {
  direction: rtl;
}

@media (max-width: 768px) {
  body.rtl .tav-post-meta {
    flex-direction: column;
    align-items: flex-end;
  }
  
  body.rtl .tav-post-meta span:not(:last-child):after {
    display: none;
  }
  
  body.rtl .join-conversation {
    margin-right: 0;
  }
  
  body.rtl .ticket-category {
    flex-direction: column;
  }
  
  body.rtl .category-price, 
  body.rtl .category-quantity {
    text-align: right;
  }
}

body.rtl .tav-event-cover {
  direction: ltr;
}

body.rtl .tav-cover-placeholder {
  direction: rtl;
}

body.rtl .tav-event-title {
  text-align: right;
}

body.rtl .detail-row {
  flex-direction: row-reverse;
}

body.rtl .detail-label {
  text-align: right;
}

body.rtl .detail-value {
  text-align: right;
}

body.rtl .detail-label i {
  margin-left: 8px;
  margin-right: 0;
  float: right;
}

@media (max-width: 768px) {
  body.rtl .detail-row {
    flex-direction: column;
  }
  
  body.rtl .detail-label, 
  body.rtl .detail-value {
    text-align: right;
  }
}

body.rtl .tav-view-venue-link, 
body.rtl .tav-view-organizer-link,
body.rtl .tav-view-map-link {
  flex-direction: row-reverse;
  text-align: right;
}

body.rtl .tav-view-venue-link i,
body.rtl .tav-view-organizer-link i,
body.rtl .tav-view-map-link i {
  margin-left: 8px;
  margin-right: 0;
  float: right;
}

body.rtl .tav-view-map-link:before {
  margin-left: 8px;
  margin-right: 0;
  float: right;
}

body.rtl .organizer-meta > div {
  flex-direction: row-reverse;
  text-align: right;
}

body.rtl .organizer-meta i {
  margin-left: 8px;
  margin-right: 0;
  float: right;
}

body.rtl .single-line-description {
  direction: rtl;
  text-align: right;
}

body.rtl .venue-address {
  flex-direction: row-reverse;
  text-align: right;
}

body.rtl .venue-address i {
  margin-left: 8px;
  margin-right: 0;
  float: right;
}

body.rtl .tav-event-category, 
body.rtl .tav-event-tag {
  margin-left: 8px;
  margin-right: 0;
  float: right;
}

body.rtl .organizer-info {
  text-align: center;
}

body.rtl .venue-info {
  text-align: right;
}

body.rtl .venue-name, 
body.rtl .organizer-name {
  text-align: center;
}

body.rtl .organizer-actions {
  text-align: right;
}

body.rtl .organizer-actions a {
  text-align: center;
}

body.rtl .tav-event-main-content,
body.rtl .tav-event-description {
  direction: rtl;
  text-align: right;
}

body.rtl .tav-event-info .info-item .date-display {
  direction: rtl;
}

body.rtl .fa-external-link-alt {
  float: right;
  margin-left: 8px;
  margin-right: 0;
}

body.rtl .fa-phone, 
body.rtl .fa-envelope, 
body.rtl .fa-globe {
  float: right;
  margin-left: 8px;
  margin-right: 0;
}

body.rtl [class^="fa-"], 
body.rtl [class*=" fa-"],
body.rtl [class^="fas-"], 
body.rtl [class*=" fas-"],
body.rtl [class^="far-"], 
body.rtl [class*=" far-"],
body.rtl [class^="fab-"], 
body.rtl [class*=" fab-"] {
  float: right;
  margin-left: 8px;
  margin-right: 0;
}

body.rtl .fas,
body.rtl .fab,
body.rtl .far {
  float: right;
  margin-left: 8px;
  margin-right: 0 !important;
}

body.rtl i.fas,
body.rtl i.fab,
body.rtl i.far {
  float: right !important;
  margin-left: 8px !important;
  margin-right: 0 !important;
}

body.rtl .tav-event-info div.info-item {
  display: flex;
  flex-direction: row-reverse;
}

body.rtl .tav-event-info div.info-item i {
  float: right !important;
  margin-left: 8px !important;
  margin-right: 0 !important;
}

body.rtl div.info-item i.fas {
  float: right !important; 
  margin-left: 10px !important;
  margin-right: 0 !important;
}

body.rtl .tav-event-info .info-item {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

body.rtl .tav-event-info .info-item i,
body.rtl .tav-event-info .info-item .fas,
body.rtl .tav-event-info .info-item .far,
body.rtl .tav-event-info .info-item .fab {
  position: relative;
  float: right !important;
  margin-left: 10px !important;
  margin-right: 0 !important;
  order: -1 !important;
  display: inline-block !important;
}

body.rtl .tav-event-info .info-item span {
  text-align: right;
  direction: rtl;
}

body.rtl div[class*="info-item"] > i.fas,
body.rtl div[class*="info-item"] > i.far,
body.rtl div[class*="info-item"] > i.fab {
  float: right !important;
  margin-left: 10px !important;
  margin-right: 0 !important;
  order: -1 !important;
}

/* RTL Event Detail Page - Critical fixes */


/* Force proper icon alignment in RTL mode - overrides for specific elements */
body.rtl .info-item i,
body.rtl .detail-label i,
body.rtl .tav-view-venue-link i, 
body.rtl .tav-view-organizer-link i,
body.rtl .tav-view-map-link i,
body.rtl .venue-address i,
body.rtl .organizer-meta i,
body.rtl i.fas,
body.rtl i.fab,
body.rtl i.far {
  float: right !important;
  margin-left: 10px !important;
  margin-right: 0 !important;
}

/* Fix for the event info section - ensure icons appear on the right */
body.rtl .tav-event-info {
  text-align: right;
  direction: rtl;
}

body.rtl .tav-event-info .info-item {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  text-align: right;
}

body.rtl .tav-event-info .info-item i,
body.rtl .tav-event-info .info-item .fas,
body.rtl .tav-event-info .info-item .far,
body.rtl .tav-event-info .info-item .fab {
  position: relative;
  float: right !important;
  margin-left: 10px !important;
  margin-right: 0 !important;
  order: -1 !important;
  display: inline-block !important;
}

/* Fix for the event info section - ensure text appears on the left */
body.rtl .tav-event-info .info-item span,
body.rtl .tav-event-info .info-text {
  text-align: right;
  direction: rtl;
  display: inline-block;
}

/* Fix for flexbox items in RTL */
body.rtl .detail-row {
  flex-direction: row-reverse;
}

body.rtl .ticket-category {
  flex-direction: row-reverse;
}

/* Special overrides for info items - needed in some themes */
body.rtl div.info-item {
  display: flex !important;
  flex-direction: row-reverse !important;
  text-align: right !important;
}

body.rtl div.info-item i {
  order: -1 !important;
  float: right !important;
  margin-left: 10px !important;
  margin-right: 0 !important;
}

body.rtl div.info-item span {
  order: 1 !important;
  text-align: right !important;
}

/* Specific styling for each info item in RTL mode */
body.rtl .info-date,
body.rtl .info-doors,
body.rtl .info-begin,
body.rtl .info-venue {
  flex-direction: row-reverse !important;
}

body.rtl .info-date i,
body.rtl .info-doors i,
body.rtl .info-begin i,
body.rtl .info-venue i {
  float: right !important;
  margin-left: 10px !important;
  margin-right: 0 !important;
}

/* Sidebar center alignment override for RTL */
body.rtl .tav-sidebar-widget * {
  text-align: center !important;
}

body.rtl .tav-sidebar-widget h3 {
  text-align: center !important;
}

body.rtl .venue-info, 
body.rtl .organizer-info {
  align-items: center !important;
  text-align: center !important;
}

body.rtl .venue-name, 
body.rtl .organizer-name {
  text-align: center !important;
}

body.rtl .tav-view-venue, 
body.rtl .tav-view-organizer {
  text-align: center !important;
}

body.rtl .tav-view-map {
  text-align: center !important;
}

body.rtl .organizer-meta {
  align-items: center !important;
}

body.rtl .organizer-meta > div {
  justify-content: center !important;
  text-align: center !important;
}

/* Center the view venue and organizer links */
body.rtl .tav-view-venue-link,
body.rtl .tav-view-organizer-link {
  justify-content: center !important;
  text-align: center !important;
}

/* Fix for venue address to stay centered in RTL */
body.rtl .venue-address {
  justify-content: center !important;
  text-align: center !important;
}

/* Fix ticket categories to be center aligned in sidebar */
body.rtl .tav-sidebar-widget .ticket-category {
  justify-content: center !important;
  text-align: center !important;
} 