/* --- Základní layout --- */
.alx-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.alx-sidebar {
  width: 300px;
  min-width: 260px;
  max-width: 320px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border: none;
  padding: 0;
}

.alx-airline {
  width: 120px; /* Pevná šířka pro kontejner loga */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Skupiny filtrů --- */
.alx-filter-group {
  border-bottom: 1px solid #f1f3f5;
  padding: 1rem 0;
  margin: 0;
}
.alx-filter-group:first-child {
  padding-top: 0rem;
}
.alx-filter-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.alx-filter-group summary {
  font-weight: 700;
  font-size: 1.2rem;
  color: #035079;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  box-shadow: none !important;
  border: none !important;
  background-color: transparent !important;
}
.alx-filter-group summary::-webkit-details-marker {
  display: none;
}
.alx-filter-group summary::after {
  content: '\2212'; 
  font-size: 1rem;
  font-weight: 600; 
  color: #00aced;
}
.alx-filter-group:not([open]) > summary::after {
  content: '\002B';
}
.alx-filter-group .details-wrapper, 
.alx-filter-group .details-content {
  margin-top: 1rem;
}
details .form-details-wrapper {
  background-color: #ffffff;
  padding: 0rem !important;
}

/* --- Checkboxy a jejich položky --- */
.alx-sidebar .form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.alx-sidebar .form-item {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 277px;
  min-width: 277px;
  margin: 0;
  overflow: hidden;
}
.alx-sidebar .form-item label {
  display: flex !important;
  align-items: center;
  width: 100%;
  font-weight: 400;
  font-size: 0.7rem;
  margin: 0;
  cursor: pointer;
  padding: 0.2rem 0;
  gap: 0.5rem;
}

.alx-sidebar .form-item label:hover {
  color: #0056b3;
}

/* Levá část – název destinace/státu */
.alx-option-label {
  display: inline-block;
  max-width: 170px;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #495057;
}

/* Počet v závorce */
.alx-option-count {
  color: #adb5bd;
  font-size: 0.7em;
}

/* Pravá část – cena */
.alx-option-price {
  font-weight: 400;
  color: #035079;
  font-size: 0.6rem;
  min-width: 90px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Inputy ve formuláři --- */
.alx-sidebar input[type="text"],
.alx-sidebar input[type="number"] {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 0px;
  border: 1px solid #ced4da;
  box-sizing: border-box;
  font-size: 0.9rem;
  margin-top: 0rem;
}
.alx-sidebar input[type="text"]:focus,
.alx-sidebar input[type="number"]:focus {
  border-color: #035079;
  outline: none;
  box-shadow: 0 0 0 2px rgba(3, 80, 121, 0.15);
}
.alx-sidebar .form-item-price_min {
  margin-bottom: 0.75rem;
}

/* Skrytí nulových položek */
.form-item.option-disabled {
  display: none !important;
}

/* Odkaz pro vymazání filtrů */
.alx-clear-all-link {
  text-align: right;
  display: block;
  margin-top: 1rem;
  font-size: 0.8em;
  color: #007bff;
  text-decoration: none;
}
.alx-clear-all-link:hover {
  text-decoration: underline;
}

/* --- Pravý obsah --- */
.alx-content {
  flex: 1 1 auto;
  min-width: 0;
}
.alx-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.alx-ticket-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  box-shadow: 0 4px 12px 0 rgba(0,0,0,0.05);
  padding: 0rem 0rem;
  padding-right: 1rem;
  border: 1px solid #e9ecef;
}
.alx-ticket-image img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  background: #eee;
}
.alx-ticket-info {
  flex: 1 1 auto;
  width: 100%;
}
.alx-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.alx-ticket-route {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0;
  color: #1a2b48;
}
.alx-arrow {
  margin: 0 10px;
  color: #bbb;
  font-size: 1.25rem;
}
.alx-ticket-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.alx-price {
  font-weight: 700;
  text-align: right;
  font-size: 1.6em;
  color: #005486;
}
.alx-btn {
  display: inline-block;
  padding: 0.2rem 1.25rem;
  background: #00aced;
  color: #fff !important;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.18s;
  outline: none;
}
.alx-btn:hover,
.alx-btn:focus {
  background: #1873bb;
  color: #fff !important;
  text-decoration: none !important;
}
.promo-tickets-no-results {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: #888;
  text-align: center;
  background: #fff;
  padding: 3rem;
}

/* --- NOVĚ přidaný wrapper kolem názvu + ceny --- */
.alx-sidebar .form-item input[type="checkbox"] {
  flex-shrink: 0;
  flex-grow: 0;
  margin-right: 0.5rem;
}

.alx-option-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
  width: 100%;
  gap: 0.5rem;
}

.alx-airline img {
  max-width: 50% !important;  
  height: auto !important;     
  object-fit: contain !important;       
}

#block-levneletenky-theme-page-title {text-align:center;}

/* --- Kód pro rozbalovací seznamy filtrů --- */

/* Kontejner, který obaluje checkboxy, bude mít omezenou výšku */
.alx-checkboxes-wrapper {
  /* Výška odpovídající cca 6 položkám */
  max-height: 180px; 
  overflow: hidden;
  /* Animace pro plynulé rozbalení a zabalení */
  transition: max-height 0.4s ease-in-out;
}

/* Když JavaScript přidá třídu 'expanded', výška se zvětší */
.alx-checkboxes-wrapper.expanded {
  /* Dostatečně velká výška, aby se vešly všechny položky */
  max-height: 20000px; 
}

/* Styl pro samotný odkaz "Více" */
.alx-show-more-link {
  display: block;
  padding: 8px 0;
  color: #00aced;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}
.alx-show-more-link:hover {
  text-decoration: underline;
}

/* Šipka u odkazu (používáme CSS content) */
.alx-show-more-link::after {
  content: ' ▼';
  font-size: 0.8em;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.4s ease-in-out;
}

/* Když má odkaz třídu 'expanded', šipka se otočí */
.alx-show-more-link.expanded::after {
  transform: rotate(180deg);
}
/* --- Konec kódu pro rozbalovací seznamy --- */

/* --- Styly pro zamčené filtry --- */
.form-item.locked > label {
  cursor: not-allowed;
  opacity: 0.7;
}

.alx-disabled label, .alx-disabled {
  opacity: 0.5 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

@media (max-width: 992px) {
  .alx-sidebar {
    display: none;
  }
}


/* === OPRAVA RESPONZIVITY PRO MOBILY (metoda zmenšení - vynucená) === */
@media (max-width: 767px) {
  .alx-ticket-card {
    gap: 0.75rem !important;
    padding-right: 0.75rem !important;
    align-items: center !important;
  }

  .alx-ticket-image img {
    width: 80px !important;
    height: 80px !important;
  }

  .alx-ticket-route {
    font-size: 0.8rem !important;
    max-width: 50px;
  }

  .alx-arrow {
    font-size: 0.8rem !important;
  }

  .alx-ticket-actions {
    max-width: 170px !important;
  }

  .alx-airline img {
    max-width: 35% !important;  
    height: auto !important;     
    object-fit: contain !important;                      
  }

  .alx-price {
    font-size: 0.9rem !important;
    white-space: nowrap !important;
  }

  .alx-btn {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
  }
}