/* Awards-Vote: Hotelauswahl je Kategorie (content/awards.php, js/awards-vote.js)
   Desktop: Fancybox-Overlay mit Bildkacheln, Handy (bis 768px): Liste als Bottom-Sheet */

/* Kartenraster: Flex statt Float, damit unterschiedlich hohe Karten (zweizeiliger Hotelname) nicht verhaken */
.vote-list.vote-list-neu {
  display: flex;
  flex-wrap: wrap;
}
.vote-list.vote-list-neu > li {
  float: none;
  display: flex;
}
.vote-list.vote-list-neu > li > .cont {
  width: 100%;
}
.vote-list.vote-list-neu > li.align-center {
  display: block;
}

/* Auswahlfeld in der Karte */
.vote-pick,
.vote-picker,
.vote-picker *,
.vote-sheet {
  box-sizing: border-box;
}
.vote-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 6px 44px 6px 20px;
  position: relative;
  border: 0;
  border-radius: 44px;
  background: #f3f6f8;
  color: #6f7477;
  font-family: 'MyriadSetPro-Thin', sans-serif;
  font-size: 18px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.vote-pick:after {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  content: "\e614";
  font-family: 'icomoon';
  color: #3eaadf;
  font-size: 13px;
}
.vote-pick:hover {
  background: #eaf0f4;
}
.vote-pick:focus-visible {
  outline: 3px solid #3eaadf;
  outline-offset: 2px;
}
.vote-pick-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.vote-pick-img {
  flex: none;
  width: 46px;
  height: 34px;
  margin-left: -6px;
  border-radius: 8px;
  overflow: hidden;
  background: #dfe6eb;
}
.vote-pick-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vote-pick-wrap {
  position: relative;
}
/* Gewählt: Pfeil weicht dem Entfernen-Kreuz */
.awardsVotePick.is-chosen .vote-pick:after {
  display: none;
}
.vote-pick-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3eaadf;
  cursor: pointer;
}
.vote-pick-clear[hidden] {
  display: none;
}
.vote-pick-clear svg,
.vote-picker-close svg {
  display: block;
  flex: none;
}
.vote-pick-clear:hover {
  background: #fff;
  color: #333;
}
.vote-pick-clear:focus-visible {
  outline: 3px solid #3eaadf;
  outline-offset: 1px;
}
.awardsVotePick.is-chosen .vote-pick {
  border-radius: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: #e4f3fb;
  color: #333;
  font-family: 'MyriadSetPro-Text', sans-serif;
  font-size: 17px;
}

/* Ablage: Auswahlfenster liegen versteckt in der Karte, bis Fancybox bzw. das Bottom-Sheet sie holt */
.vote-picker-store {
  display: none;
}

/* Auswahlfenster (gemeinsam) */
.vote-picker {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #333;
  font-family: 'MyriadSetPro-Text', sans-serif;
  text-align: left;
}
.vote-picker-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 6px 24px;
}
.vote-picker-head h4 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: 'MyriadSetPro-Semibold', sans-serif;
  font-size: 20px;
  font-weight: normal;
  color: #333;
}
.vote-picker-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f6f8;
  color: #333;
  cursor: pointer;
}
.vote-picker-close:hover {
  background: #e4f3fb;
}
.vote-picker-search {
  position: relative;
  padding: 8px 20px 4px;
}
.vote-picker-search:before {
  content: "";
  position: absolute;
  left: 36px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='6' fill='none' stroke='%238e9091' stroke-width='1.8'/%3E%3Cpath d='M13 13l5 5' stroke='%238e9091' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.vote-picker-search input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 16px 0 46px;
  border: 1.5px solid #e3e8ec;
  border-radius: 30px;
  background: #f3f6f8;
  color: #333;
  font-family: 'MyriadSetPro-Text', sans-serif;
  font-size: 17px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.vote-picker-search input:focus {
  border-color: #3eaadf;
  background: #fff;
}
.vote-picker-count {
  margin: 0;
  padding: 6px 24px 8px;
  font-size: 13px;
  color: #8e9091;
}
.vote-picker-list {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0 20px 24px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.vote-picker-list > li {
  margin: 0;
  padding: 0;
}
.vote-picker-list > li:before {
  display: none;
}
.vote-picker-empty {
  margin: 0;
  padding: 10px 24px 24px;
  font-size: 15px;
  color: #8e9091;
}
.vote-opt {
  position: relative;
  display: grid;
  color: #333;
  text-decoration: none;
  cursor: pointer;
}
.vote-opt:hover,
.vote-opt:focus {
  color: #333;
  text-decoration: none;
}
.vote-opt:focus-visible {
  outline: 3px solid #3eaadf;
  outline-offset: 2px;
}
.vote-opt-img {
  display: block;
  overflow: hidden;
  background: #e9eef2;
}
.vote-opt-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vote-opt-text {
  display: block;
  min-width: 0;
}
.vote-opt-name {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}
.vote-opt-name mark {
  background: #fff1b8;
  color: inherit;
  padding: 0 1px;
  border-radius: 3px;
}
.vote-opt-meta {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  color: #8e9091;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vote-opt-check {
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3eaadf;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}
.vote-opt[aria-selected="true"] .vote-opt-check {
  display: grid;
}
.vote-opt[aria-selected="true"] .vote-opt-name {
  font-family: 'MyriadSetPro-Semibold', sans-serif;
}

/* Desktop: Bildkacheln */
.vote-mode-grid .vote-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  align-content: start;
  gap: 14px;
}
.vote-mode-grid .vote-opt {
  height: 100%;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #f3f6f8;
  overflow: hidden;
  align-content: start;
}
.vote-mode-grid .vote-opt:hover,
.vote-mode-grid .vote-opt.is-kb {
  border-color: #cfe3ef;
}
.vote-mode-grid .vote-opt[aria-selected="true"] {
  border-color: #3eaadf;
}
.vote-mode-grid .vote-opt-img {
  aspect-ratio: 36 / 25;
}
.vote-mode-grid .vote-opt-text {
  padding: 9px 11px 11px;
}
.vote-mode-grid .vote-opt-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  font-size: 16px;
}

/* Handy: Liste */
.vote-mode-list .vote-picker-list {
  padding: 0 10px 16px;
}
.vote-mode-list .vote-opt {
  grid-template-columns: 72px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 6px;
  border-radius: 12px;
}
.vote-mode-list .vote-opt:hover,
.vote-mode-list .vote-opt.is-kb {
  background: #f3f6f8;
}
.vote-mode-list .vote-opt-img {
  width: 72px;
  height: 50px;
  border-radius: 9px;
}
.vote-mode-list .vote-opt-check {
  visibility: hidden;
}
.vote-mode-list .vote-opt[aria-selected="true"] .vote-opt-check {
  visibility: visible;
}

/* Fancybox-Rahmen (Desktop) – Hintergrund-Blur kommt aus main.css (.has-html) */
.vote-fancybox .fancybox__content.vote-picker,
.vote-fancybox .vote-picker {
  width: 960px;
  max-width: calc(100vw - 48px);
  height: 820px;
  max-height: calc(100vh - 64px);
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Bottom-Sheet (Handy) */
html.vote-sheet-open,
html.vote-sheet-open body {
  overflow: hidden;
}
.vote-sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(24, 24, 27, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.2s;
}
.vote-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11001;
  height: 86vh;
  height: 86dvh;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(100%);
  transition: transform 0.25s ease-out;
  display: flex;
}
.vote-sheet .vote-picker {
  flex: 1;
  min-width: 0;
  border-radius: 22px 22px 0 0;
}
.vote-sheet.is-open {
  transform: none;
}
.vote-sheet-scrim.is-open {
  opacity: 1;
}

/* Fortschritt und Vote-Button */
#VoteGewinnspiel .vote-progress {
  margin: 24px 0 0;
  letter-spacing: 0;
  font-size: 14px;
  color: #8e9091;
  line-height: 1.4;
  text-align: center;
}
.vote-progress-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
}
.vote-progress-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dde4e9;
}
.vote-progress-dots i.on {
  background: #3eaadf;
}
#VoteGewinnspiel .vote-progress.is-warn {
  color: #c0392b;
}
#VoteGewinnspiel .vote-list .btn-blue-full.vote-btn-off {
  opacity: 0.45;
  cursor: default;
}
#VoteGewinnspiel .vote-list .btn-blue-full.vote-btn-off:hover {
  color: #fff;
  background: #3eaadf;
}

@media (prefers-reduced-motion: reduce) {
  .vote-sheet,
  .vote-sheet-scrim {
    transition: none;
  }
}
