/* Logo banner bar at the top (independent from navbar/sidebar) */
.logo-bar {
  width: 100%;
  background-color: #f8f9fa; /* neutral background */
  overflow: hidden;
}

/* Banner image */
.logo-bar-img {
  display: block;
  width: 100%;   /* stretch horizontally */
  height: 50px;  /* your source height */
  object-fit: cover; /* crop horizontally if necessary without distortion */
}

/* Result tiles */
.esObj {
  /* Fixed tile width so you can fit many per row on desktop */
  width: 150px;
  flex: 0 0 150px;
  max-width: 150px;

  min-height: 325px;
  box-shadow: 1px 1px 5px rgba(136, 136, 136, 0.67);
  margin: 5px;
  padding: 5px;
  overflow: hidden;

  position: relative;      /* for .btn-esExp and .sniped::after */
  display: flex;
  flex-direction: column;
}

.esObj a.eshTitle {
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-top: 5px;
}

.esObj img {
  display: block;
  width: 100%;     /* scale to tile width */
  height: auto;
  margin: 0 auto;  /* horizontally centered */
}

/* Expand (+) button in bottom-right of tile */
.btn-esExp {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 20;
}

.esDesc {
  font-weight: 600;
  margin-left: 5px;
}

.eshNew {
  background: #e2e845;
}

.esEndDate {
}

.esPrice {
  margin-top: 10px;
}

.eshTitle {
  word-wrap: break-word;
}

/* Small flag text in Resources menu */
.smf {
  display: inline-block;
  font-size: 70%;
  margin-left: auto;
}

/* Back-to-top button */
#eshTop {
  display: none;        /* Hidden by default */
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease-out;
}

#eshTop:hover {
  background-color: #555;
}

/* Scrolling tabs plugin styling (when you re-enable it) */
.scrtabs-tab-container {
  margin-left: -15px;
  margin-right: -15px;
}

.scrtabs-tab-scroll-arrow-left {
  position: relative;
}

.scrtabs-tab-scroll-arrow-right {
  position: absolute;
  top: 0;
  right: 0;
  float: right;
}

.scrtabs-tab-scroll-arrow {
  width: 35px !important;
  background-color: #fff;
}

.scrtabs-tab-scroll-arrow span.glyphicon {
  display: table;
  margin: 0 auto;
}

/* Resources submenu bullet alignment */
#eshRes {
  width: 100%;
}

#eshRes li {
  padding-left: 1em;
  text-indent: -1em;
}

/* Read-only “email” style span */
.usEmail {
  display: block;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  color: #888;
  background-color: #fff;
}

/* Sniped overlay icon (note: relies on Font Awesome webfont) */
.sniped::after {
  position: absolute;
  top: 50%;
  margin-top: -25px; /* 25px is half of the font-size */
  left: 50%;
  margin-left: -25px;
  font-family: FontAwesome;
  content: "\f05b";
  font-size: 50px;
  opacity: 0.5;
}

/* Result info text */
.res-txt {
  text-align: right;
  font-size: x-small;
  font-style: italic;
}

/* MOBILE: make tiles full-width so they don’t overflow horizontally */
@media (max-width: 575.98px) {
  .esObj {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}

/* DESKTOP: offcanvas becomes fixed sidebar */
@media (min-width: 992px) {
  .offcanvas-start {
    position: static;
    transform: none !important;
    visibility: visible !important;
    border-right: 1px solid #dee2e6;
    width: 260px;
  }

  .offcanvas-backdrop {
    display: none;
  }

  #wrapper {
    display: flex;
    align-items: stretch;
  }

  #sidebarOffcanvas {
    position: static;
    transform: none !important;
    visibility: visible !important;
    flex: 0 0 260px;   /* fixed sidebar width */
    max-width: 260px;
    height: 100vh;     /* full viewport height */
    border-right: 1px solid #dee2e6;
    z-index: 1000;
  }

  #page-wrapper {
    flex: 1 1 auto;
    width: auto;
  }
}
