/* =========================================================
   eSIM Finder — destination pages & /esim widget
   Ladené do témy: žltá #FECE2E, čierna, glass-morphism.
   ========================================================= */

/* ---------- Inputs / selects (widget + currency switcher) ---------- */
.esim-widget .form-control,
.esim-widget .form-select,
.currency-switcher .form-select {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 0.85rem;
  padding: 0.7rem 1rem;
  backdrop-filter: blur(2.5rem);
  -webkit-backdrop-filter: blur(2.5rem);
}

.esim-widget .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.esim-widget .form-control:focus,
.esim-widget .form-select:focus,
.currency-switcher .form-select:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #FECE2E;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(254, 206, 46, 0.25);
  outline: none;
}

/* biela šípka selectu */
.esim-widget .form-select,
.currency-switcher .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}

/* natívny zoznam options je renderovaný OS — drž text čitateľný */
.esim-widget .form-select option,
.currency-switcher .form-select option {
  color: #000;
}

.esim-widget .form-label {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* H1 widgetu — main-title má max-width pre hero, tu chceme plne vycentrovať */
.esim-finder-widget .main-title {
  max-width: 100%;
  text-align: center;
  margin: 0 auto 0.5rem;
}

/* ---------- Vyhľadávací dropdown destinácií ---------- */
.esim-widget #esimLocationList {
  background: #15151a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.85rem;
  margin-top: 0.35rem;
  padding: 0.3rem;
}

.esim-widget .esim-loc-item {
  background: transparent;
  border: 0;
  color: #fff;
  border-radius: 0.55rem;
  padding: 0.6rem 0.85rem;
  transition: background 0.12s ease, color 0.12s ease;
}

.esim-widget .esim-loc-item:hover {
  background: rgba(254, 206, 46, 0.12);
  color: #FECE2E;
}

/* Vyhľadávací zoznam: žltú fajočku ponechaj, ale zarovnaj vľavo s odstupom od textu */
.esim-widget #esimLocationList li {
  padding-left: 2.6rem;            /* miesto pre fajočku + medzeru k textu */
}
.esim-widget #esimLocationList li::before {
  left: 0.9rem;                    /* fajočka vľavo s marginom od okraja */
  top: 50%;
  transform: translateY(-50%);     /* vertikálne vycentrovaná */
}

/* Jemné oddeľovače medzi položkami pre čitateľnosť */
.esim-widget .esim-loc-item + .esim-loc-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========================= Destination page ========================= */
.destination-hero .flag-emoji,
.destination-related .flag-emoji {
  font-size: 0.95em;
}

.plan-group-title {
  color: #FECE2E;
  font-weight: 600;
  font-size: 1.25rem;
}

/* Currency switcher */
.currency-switcher label {
  color: rgba(255, 255, 255, 0.7);
}

/* Plán tabuľka — tmavá */
.plan-table {
  color: #fff;
  --bs-table-bg: transparent;
  --bs-table-color: #fff;
  margin-bottom: 0;
}

.plan-table thead th {
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

.plan-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #fff;
  vertical-align: middle;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.plan-table .price .amount {
  font-weight: 700;
  color: #FECE2E;
  font-size: 1.1rem;
}

.plan-table .price .cur {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.plan-table .buy {
  padding: 0.4rem 1.4rem;
  white-space: nowrap;
}

/* ---------- Inštalačné kroky ---------- */
.destination-how .step {
  text-align: center;
  padding: 1rem;
}

.destination-how .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #FECE2E;
  color: #000;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.destination-how .step p {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Súvisiace destinácie ---------- */
.related-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;                    /* konzistentný odstup vlajka ↔ text (1 aj 2 riadky) */
  min-height: 64px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.85rem;
  padding: 0.9rem 0.75rem;
  text-align: center;
  color: #fff;
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.related-card .flag-emoji {
  flex: 0 0 auto;                  /* vlajka sa nezmršťuje ani nelepí na text */
}

.related-card:hover {
  background: rgba(254, 206, 46, 0.12);
  border-color: #FECE2E;
  color: #FECE2E;
}

/* ---------- Interné linky (§7.1) — chip štýl ---------- */
.links-group-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.esim-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.esim-chip:hover {
  background: rgba(254, 206, 46, 0.12);
  border-color: #FECE2E;
  color: #FECE2E;
}

/* ---------- Detaily plánu (payment / data / speeds) ---------- */
.destination-details .details-card {
  max-width: 760px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1.75rem 1.9rem;
}

.destination-details .details-block + .details-block {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.destination-details .details-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.destination-details p,
.destination-details dd {
  color: rgba(255, 255, 255, 0.8);
}

.destination-details code {
  background: rgba(254, 206, 46, 0.12);
  color: #FECE2E;
  border-radius: 0.3rem;
  padding: 0.05rem 0.35rem;
  font-size: 0.9em;
}

/* Zoznam s vlastnosťami plánu — žltá fajočka */
.destination-details .details-check {
  list-style: none;
  margin: 0;
  padding: 0;
}

.destination-details .details-check li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.destination-details .details-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23FECE2E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Rýchlosti — názov tučný žltý, popis pod ním */
.destination-details .details-speeds {
  margin: 0;
}

.destination-details .details-speeds dt {
  color: #FECE2E;
  font-weight: 700;
  margin-top: 0.9rem;
}

.destination-details .details-speeds dt:first-child {
  margin-top: 0;
}

.destination-details .details-speeds dd {
  margin: 0.2rem 0 0;
}

/* ---------- Pokrytie / intro / extra ---------- */
.destination-coverage,
.destination-intro,
.destination-extra .accordion-body {
  color: rgba(255, 255, 255, 0.85);
}

.connectivity-tip {
  color: rgba(255, 255, 255, 0.7);
}

/* "Plans are being updated" stav */
.destination-plans .text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
}
