.ea-comparator {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  box-sizing: border-box;
}

.ea-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.ea-own-row {
  margin-top: 15px;
}

select {
  width: 100%;
  padding: 8px;
  font-size: 15px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .ea-row {
    flex-direction: column;
  }

  .ea-tile {
    flex: 1 1 auto !important;
    max-width: 100% !important;
  }
}


.ea-tile {
  flex: 1 1 300px;
  max-width: 100%;
  background: #f4f4f4;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  box-sizing: border-box;
  position: relative;
}

.ea-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
  padding: 5px 10px;
  background: #aee7af;
  color: #000000;
  border-radius: 4px;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
}

.ea-own .ea-title {
  background: transparent;
  color: #000;
}

.ea-specs {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  font-size: 14px;
}

.ea-specs li {
  padding: 4px 0;
  border-bottom: 1px solid #ddd;
}

.ea-own .ea-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 14px;
  padding: 0;
  margin-top: 8px;
  line-height: 1.1;
}

.ea-own .ea-specs li {
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.ea-db-count {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
  color: #ffffff;
}

.ea-own input[type="number"] {
  width: 100%;
  padding: 4px;
  font-size: 14px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  background-color: #ffffff;
}

#conversionResult {
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.4;
  font-weight: normal !important;
  color: inherit;
}

#conversionResult .bold-number {
  font-weight: bold !important;
}

.ea-own-garage {
  background: #dbdbdb;
}

.ea-own-garage .ea-title {
  background: #f3f1ac;
  color: #000;
}

.ea-calc-logo {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  border-radius: 4px;
}

.ea-type-filters {
  display: block;
  margin-bottom: 15px;
  padding: 0;
}

.ea-type-filters label {
  margin-right: 15px;
  font-size: 14px;
  background: none;
  padding: 0;
}

.ea-type-filters input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #4CAF50;
}

.ea-type-filters label:hover {
  background: #dcdcdc;
}

/* Szabad szavas kereső találatok */
.ea-search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    background: none;
    border-radius: 0;
    margin: 0;
    line-height: 1.2;
}

#eaSearchResults .ea-search-result strong {
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.ea-search-result strong {
  font-weight: normal;
  font-size: 14px;
}

/* + ikon gomb */
.ea-set-own-button {
  background: none;
  border: none;
  font-size: 26px;
  font-weight: bold;
  color: #89dc83;
  cursor: pointer;
  outline: none;
}

.ea-set-own-button:hover,
.ea-set-own-button:focus {
  color: #9b9b9c;
  background: none;
  box-shadow: none;
  text-decoration: none;
  outline: none;
  border: none;
}

/* Garázs és kereső közötti térköz */
.ea-comparator .ea-row:nth-of-type(4) {
  margin-top: 20px;
}

#eaFreeSearch {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.ea-tile {
    min-height: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Specifikusan mobil nézetre optimalizálva */
@media (max-width: 768px) {
    .ea-tile {
        padding: 1rem;
    }

    .ea-specs:empty,
    .ea-tile select:empty {
        margin: 0;
        padding: 0;
        min-height: 0;
    }

    .ea-tile:has(select:empty) {
        min-height: auto;
    }
}

.ea-tile.ea-empty {
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: unset;
    background-color: #f9f9f9;
}

.ea-empty .ea-title,
.ea-empty select {
    margin-bottom: 0;
}

/* Üres csempe megjelenítés optimalizálva */
.ea-tile.ea-empty {
  min-height: auto !important;
  height: auto !important;
  padding: 0.5rem 1rem !important;
  background: #f9f9f9;
  box-shadow: none;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ea-empty .ea-title {
  margin-bottom: 0;
}

.ea-empty .ea-specs {
  display: none !important;
}

.ea-empty select {
  padding: 6px 8px;
  font-size: 14px;
  margin-top: 5px;
}
@media (max-width: 600px) {
  .ea-empty select {
    font-size: 14px;
    padding: 8px;
  }

  .ea-empty {
    margin-bottom: 10px;
  }
}
