
/* ===== Toolbar ===== */
:root {
  --thad-accent-color: #81ac54;
  --thad-search-text-color: #7FAB5A;
  --thad-accent-color-dark: #386F36;
  --thad-line-color: #8c6f4a;
  --thad-image-border-color: #BFA87E;
  --thad-box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.16);
  --thad-select-bg-color: #EAD8B7;
  --thad-select-text-color: #8C6F4A;
  --thad-tag-bg-color: #CB5F11;
  --thad-tag-text-color: #ffffff;
  --thad-grid-horizontal-gap: 2.5%;
  --thad-grid-vertical-gap: 35px;
  --thad-col-min: 320px; 
  /*--thad-grid-columns: repeat(3,minmax(0,1fr));
  --thad-grid-columns: repeat(auto-fit, minmax(350px, 1fr)); */
}
.thad-toolbar{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items: flex-end;
  margin: 0 0 35px;
}
.thad-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:start;justify-content:flex-start;flex:1}
.thad-actions{display:flex;gap:10px}
  
  /* â–¼ chevron for the beige selects (keeps your current look) */
.thad-chip{ position:relative; display:inline-block; }

.thad-chip select.thad-input{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  text-transform: uppercase;
  background: var(--thad-select-bg-color) 0% 0% no-repeat padding-box;
  text-align: left;
  color: var(--thad-select-text-color);
  font-size: 15px;
  appearance:none;
  border:0;
  font-weight:700;
  padding: .6em .8em;
  border-radius: 0;
  min-width:210px;
  cursor: pointer;
  padding-right: 40px;                /* room for the arrow */
  position: relative;                 /* for focus-within */
  letter-spacing: .1em;
}

.thad-chip select.thad-input option {
  text-transform: none;
}

.thad-chip::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C6F4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

.thad-chip:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
}
/* Reserve / Vermittelt ribbon on image */

.thad-pager .thad-btn {
  background-color: transparent;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--thad-accent-color);
  font-size: 20px;
  letter-spacing: 0.03em;
  margin-top: auto;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  padding-top: 5px;
  padding-right: 0px;
  padding-bottom: 5px;
  padding-left: 0px;
  border: none;
  border-bottom-width: 3px;
  border-bottom-color: transparent;
  border-bottom-style: solid;
  transition-property: border-bottom-color;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0ms;
  border-radius: 0;
}
.thad-pager .thad-btn:hover, .thad-pager .thad-btn:focus {
  border-bottom-color: var(--thad-accent-color);
}
.thad-ghost{
  text-transform: uppercase;
  background: var(--thad-select-bg-color) 0% 0% no-repeat padding-box;
  text-align: center;
  color: var(--thad-select-text-color) !important;
  font-size: 15px;
  appearance: none;
  border: 0;
  font-weight: bold;
  padding: .6em .8em;
  border-radius: 0;
  min-width: 210px;
  letter-spacing: .1em;
}
.thad-filter-badge {
  background: var(--thad-select-bg-color);
  color: var(--thad-select-text-color);
  font-weight: bold;
  letter-spacing: .1em;
  border-radius: 0;
  padding: .6em .8em;
  margin: 4px;
  display: inline-block;
  text-align: center;
}
#selected-filters-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: flex-start;
  font-size: 15px;
  letter-spacing: .1em;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

#selected-filters-detail .thad-ghost {
  line-height: 1;
  background: var(--thad-select-bg-color);
  color: var(--thad-select-text-color);
  padding: .6em .8em;
}
/* search pill */
.thad-search{position:relative;flex:0 0 400px;max-width:100%}
.thad-search-input{
  width:100%;
  background:#fff;
  border:0;
  border-radius:999px;
  padding: 1.2em 2em 1.2em 2.8em;
  box-shadow:0 10px 22px rgba(0,0,0,.08);
  font-weight: bold;
  color:var(--thad-search-text-color);
  font-size: inherit;
  letter-spacing: .08em;
}
.thad-search-input::placeholder{color:var(--thad-search-text-color)}
.thad-search-icon{position:absolute;left:16px;top:56%;transform:translateY(-50%);color:var(--thad-select-text-color)}
.thad-search-clear{position:absolute;right:14px;top:50%;transform:translateY(-50%);border:0;background:transparent;font-size:22px;line-height:1;color:var(--thad-select-text-color);cursor:pointer;display:none}

/* ===== Grid & Card ===== */
.thad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--thad-col-min), 1fr));
  gap: var(--thad-grid-vertical-gap) var(--thad-grid-horizontal-gap);
  justify-content: center;
  align-items: stretch;
}
.thad-card{
  background: #fff;
  border-radius: 0px;
  box-shadow: var(--thad-box-shadow);
  overflow: hidden;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  display: flex;
  position: relative;
}
.thad-media {
    display: flex;
    position: relative;
    margin: 0;
    padding: 100% 0 0 0;
    width: 100%;
    border-bottom: 4px solid var(--thad-image-border-color);
    z-index: 1;
}
.thad-thumb {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
}
.thad-badge, .thad-partner-badge{
  position:absolute;
  top: 16px;
  right: 16px;
  background:var(--thad-tag-bg-color);          /* your orange */
  color:var(--thad-tag-text-color);
  font-weight:700;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 15px;
  line-height: 1;
  padding: .6em .75em;             /* match your spec */
  border-radius:0px;
  z-index: 3;
} 
/* Partner badge (clickable tag inside media) */
.thad-partner-badge{
  top: -3.5em;
  left: auto;
  bottom: auto;
  right: 16px;
  background:#ffffff;
  color: var(--thad-accent-color-dark);
  box-shadow: none;
  text-transform: none;
  letter-spacing: .03em;
}
span.thad-partner-badge-prefix {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--thad-accent-color);
  text-transform: uppercase;
}
a.thad-link.thbutton {
  margin-top: auto;
  display: inline-block;
  position: relative;
  padding-top: 1.6em !important;
  padding-bottom: 0px !important;
  padding-left: 0px !important;
  margin-top: auto;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  border-bottom: 0 !important;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 15px;
  color: var(--thad-accent-color);
  font-weight: bold;
}
a.thad-link.thbutton:before { 
  content: "$" !important;
  font-family: ETmodules !important;
  line-height: inherit;
  opacity: 1;
  right: auto;
  display: inline-block;
  font-weight: 400 !important;
  font-size: 3em !important;
  top: 0;
  left: -5px;
  letter-spacing: 0;
  margin-left: 0 !important;
  padding: 0;
  position: absolute;
  -webkit-transition: all .2s;
  transition: all .2s;
  text-transform: none;
  -webkit-font-feature-settings: "kern" off;
  font-feature-settings: "kern" off;
  font-variant: none;
  font-style: normal;
  text-shadow: none;
  color: var(--thad-accent-color-dark);
}
.thad-body{padding:16px 20px;display: flex;flex-direction: column;flex: auto;align-items: flex-start;justify-content: flex-start;align-self: stretch;z-index: 2;position: relative;}

@media (min-width: 1200px) {
  .thad-grid {
    grid-template-columns: repeat(3, minmax(var(--thad-col-min), 1fr));
  }
}
@media (max-width:640px){.thad-body{padding:12px 14px}}

.thad-id{font-size:15px;letter-spacing:.08em;color:var(--thad-select-text-color);margin:0 0 6px; font-weight: bold;}
.thad-title{margin:0 0 10px;font-size:26px;line-height:1.25;}
@media (max-width:640px){
    .thad-badge{ top:10px; right:10px; font-size:16px; padding:8px 12px; letter-spacing:2px; }

  
  .thad-title{font-size:22px}}

.thad-grid ul.thad-meta{margin: 0 0 1.75em;padding:0;list-style:none !important;}

.thad-arrow{display:inline-flex}

.thad-empty{padding:20px;background:#fff7ea;border:1px dashed #e6d2b2;border-radius:6px;text-align:center}
.thad-pager{
  border-top: 3px solid var(--thad-line-color);
    padding-top: 2em;
  text-align:center;margin-top:30px}
.thad-loading #thad-results{opacity:.5;pointer-events:none}


/* ===== Mobile layout ===== */
@media (max-width: 900px){
 /* .thad-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)); // 1 column on small screens
  } */
  .thad-toolbar{flex-direction:column;gap:14px;align-items:stretch}
  .thad-filters{justify-content:center}
  .thad-chip select.thad-input{min-width:100%}
  .thad-actions .thad-btn{width:100%}
  .thad-search{flex:1}
  .thad-search-input{width:100%;font-size:17px;padding:18px 50px}
}
