/* ===== eSIM PAKIETY – e-SimTravel.pl ===== */

/* --- Hero --- */
.esim-hero {
  background: linear-gradient(135deg, #064e5e 0%, #065f6c 100%);
  color: #fff;
  padding: 48px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.esim-hero.esim-hero-compact {
  padding: 28px 20px 22px;
  min-height: auto;
}
.esim-hero-compact h1 { font-size: 1.6rem; margin-bottom: 4px; }
.esim-hero-compact p { font-size: .93rem; margin-bottom: 10px; opacity: .85; }
.esim-hero-search {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.esim-hero-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: .6;
  pointer-events: none;
}
.esim-hero-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50px;
  background: rgba(255,255,255,.15);
  font-size: .9rem;
  color: #fff;
  outline: none;
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.esim-hero-search input:focus {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.22);
}
.esim-hero-search input::placeholder {
  color: rgba(255,255,255,.6);
}
.esim-hero-flags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-flag {
  position: absolute;
  border-radius: 3px;
  opacity: 0;
  animation: flagFloat 6s ease-in-out infinite;
  filter: blur(0.5px);
}
@keyframes flagFloat {
  0%   { opacity: 0; transform: translateY(8px) scale(.9); }
  15%  { opacity: .15; }
  50%  { opacity: .12; transform: translateY(-6px) scale(1); }
  85%  { opacity: .15; }
  100% { opacity: 0; transform: translateY(8px) scale(.9); }
}
.esim-hero-content {
  position: relative;
  z-index: 1;
}
.esim-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 10px;
}
.esim-hero p {
  font-size: 1.05rem;
  opacity: .88;
  margin: 0 0 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Stats Bar --- */
.esim-stats-bar {
  background: #065f6c;
  color: #fff;
  padding: 0;
}
.esim-stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  padding: 18px 20px;
  gap: 12px;
}
.esim-stat {
  text-align: center;
  flex: 1;
}
.esim-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.5px;
}
.esim-stat-label {
  display: block;
  font-size: .78rem;
  opacity: .75;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* --- Search --- */
.esim-search-box,
.esim-hero-search {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.esim-search-box input,
.esim-hero-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50px;
  background: rgba(255,255,255,.15);
  font-size: .9rem;
  color: #fff;
  outline: none;
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.esim-search-box input:focus,
.esim-hero-search input:focus {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.22);
}
.esim-search-box input::placeholder,
.esim-hero-search input::placeholder {
  color: rgba(255,255,255,.6);
}
.esim-search-box .search-icon,
.esim-hero-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: .6;
  pointer-events: none;
}
.esim-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.esim-search-results.active {
  display: block;
}
.esim-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background .15s;
  color: #1e293b;
  text-decoration: none;
}
.esim-search-item:hover {
  background: #f0fdfa;
}
.esim-search-item img {
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #e2e8f0;
}
.esim-search-item span {
  font-size: .95rem;
  font-weight: 500;
}

/* --- Region Filters --- */
.esim-region-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}
.region-btn {
  padding: 8px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all .2s;
}
.region-btn:hover {
  border-color: #0891b2;
  color: #0891b2;
}
.region-btn.active {
  background: #0891b2;
  color: #fff;
  border-color: #0891b2;
}

/* --- Section --- */
.esim-section {
  max-width: 100%;
  margin: 0;
  padding: 32px 20px;
}
.esim-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #0f172a;
}
.esim-section h2 .accent {
  color: #0891b2;
}

/* --- Country Grid (popular) --- */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: #1e293b;
}
.country-card:hover {
  border-color: #0891b2;
  box-shadow: 0 4px 16px rgba(8,145,178,.12);
  transform: translateY(-2px);
}
.country-card img {
  width: 56px;
  height: 38px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.country-card .country-name {
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
}
.country-card .country-from {
  font-size: .75rem;
  color: #0891b2;
  font-weight: 600;
}

/* --- Active country header --- */
.active-country-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.active-country-header img {
  width: 72px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.active-country-header h2 {
  margin: 0;
  font-size: 1.5rem;
}
.active-country-header .back-btn {
  margin-left: auto;
  padding: 9px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: .85rem;
  color: #475569;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.active-country-header .back-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* --- Products Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* --- Product Card --- */
.esim-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.esim-card:hover {
  border-color: #0891b2;
  box-shadow: 0 8px 28px rgba(8,145,178,.13);
  transform: translateY(-3px);
}
.esim-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}
.esim-card-header img {
  width: 48px;
  height: 33px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.esim-card-header .card-country {
  font-size: .88rem;
  font-weight: 700;
  color: #334155;
}
.esim-card-header .card-provider {
  font-size: .72rem;
  color: #94a3b8;
  margin-top: 2px;
}
.esim-card-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.esim-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
.esim-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.esim-spec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #f0fdfa;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: #0891b2;
}
.esim-spec.data-spec {
  background: #ecfdf5;
  color: #059669;
}
.esim-spec.time-spec {
  background: #fef3c7;
  color: #d97706;
}
.esim-spec.unlimited-spec {
  background: #ede9fe;
  color: #7c3aed;
}
.esim-card-footer {
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfc;
}
.esim-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0891b2;
}
.esim-price .currency {
  font-size: .82rem;
  font-weight: 600;
  vertical-align: super;
}
.esim-price .period {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 1px;
}
.esim-btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  background: linear-gradient(135deg, #065f6c 0%, #064e5e 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(14,116,144,.25);
}
.esim-btn-cart:hover {
  background: linear-gradient(135deg, #065f6c 0%, #064e5e 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14,116,144,.35);
}
.esim-btn-cart.added {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16,185,129,.25);
  pointer-events: none;
}

/* --- Cart Floating Badge --- */
.esim-cart-float {
  /* przesuniety nad czat widget */
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 999;
  display: none;
}
.esim-cart-float.visible {
  display: block;
}
.esim-cart-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0e7490;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(14,116,144,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
  position: relative;
}
.esim-cart-float-btn:hover {
  transform: scale(1.08);
}
.esim-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* --- Cart Drawer --- */
.esim-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.esim-cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.esim-cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  box-shadow: -4px 0 30px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  transition: right .3s ease;
}
.esim-cart-drawer.open {
  right: 0;
}
.esim-cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.esim-cart-drawer-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.esim-cart-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}
.esim-cart-close:hover {
  background: #e2e8f0;
}
.esim-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.esim-cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
}
.esim-cart-empty i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}
.esim-cart-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
  align-items: center;
}
.esim-cart-item img {
  width: 40px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}
.esim-cart-item-info {
  flex: 1;
  min-width: 0;
}
.esim-cart-item-title {
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.esim-cart-item-meta {
  font-size: .72rem;
  color: #64748b;
}
.esim-cart-item-price {
  font-weight: 800;
  color: #0891b2;
  font-size: .9rem;
  white-space: nowrap;
}
.esim-cart-item-remove {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: .9rem;
  padding: 4px;
}
.esim-cart-item-remove:hover {
  color: #ef4444;
}
.esim-cart-footer {
  padding: 18px 20px;
  border-top: 1px solid #e2e8f0;
}
.esim-cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 1.1rem;
  font-weight: 800;
}
.esim-cart-total .total-price {
  color: #0891b2;
}
.esim-cart-checkout {
  display: block;
  width: 100%;
  padding: 14px;
  background: #0e7490;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background .15s;
}
.esim-cart-checkout:hover {
  background: #ea580c;
}
.esim-cart-continue {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: .85rem;
  color: #64748b;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
}
.esim-cart-continue:hover {
  color: #0891b2;
}

/* --- Loading --- */
.esim-loading {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.esim-loading .spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #0891b2;
  border-radius: 50%;
  animation: esim-spin .8s linear infinite;
  margin-bottom: 12px;
}
@keyframes esim-spin {
  to { transform: rotate(360deg); }
}

/* --- No results --- */
.esim-no-results {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: .95rem;
}

/* --- Toast --- */
.esim-toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: #10b981;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(16,185,129,.3);
  z-index: 1100;
  transform: translateY(20px);
  opacity: 0;
  transition: all .25s;
  pointer-events: none;
}
.esim-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .esim-hero { padding: 32px 16px 28px; min-height: 180px; }
  .esim-hero h1 { font-size: 1.5rem; }
  .esim-stats-inner { flex-wrap: wrap; padding: 14px 16px; gap: 8px; }
  .esim-stat { min-width: 40%; }
  .esim-stat-num { font-size: 1.2rem; }
  .esim-stat-label { font-size: .7rem; }
  .esim-hero p { font-size: .92rem; }
  .countries-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .country-card { padding: 14px 8px; }
  .country-card img { width: 44px; height: 30px; }
  .products-grid { grid-template-columns: 1fr; }
  .esim-section { padding: 20px 14px; }
  .active-country-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .active-country-header .back-btn { margin-left: 0; }
  .region-btn { padding: 6px 14px; font-size: .78rem; }
  .esim-region-filters { gap: 6px; }
}
@media (max-width: 480px) {
  .countries-grid { grid-template-columns: repeat(3, 1fr); }
  .esim-cart-drawer { width: 100vw; max-width: 100vw; }
}

/* === Hotspot / 5G / Speed / Calls / SMS badges === */
.esim-spec.net-spec {
  background: #e0f2fe;
  color: #0369a1;
}
.esim-spec.hotspot-spec {
  background: #dcfce7;
  color: #166534;
}
.esim-spec.speed-ok-spec {
  background: #fef3c7;
  color: #92400e;
}
.esim-spec.speed-spec {
  background: #fef3c7;
  color: #92400e;
  cursor: help;
}
.esim-spec.calls-spec {
  background: #ede9fe;
  color: #5b21b6;
}
.esim-spec.sms-spec {
  background: #fce7f3;
  color: #9d174d;
}
.esim-spec.topup-spec {
  background: #e0e7ff;
  color: #3730a3;
}

/* ============================================
   PAKIETY PAGE – karty z dużą flagą
============================================ */

/* --- Filtry kaskadowe --- */
.pkg-filters {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.pkg-filter-group {
  margin-bottom: 0;
}
.pkg-filter-group:first-child {
  grid-column: 1 / -1;
}
#filterCountryWrap {
  grid-column: 1 / -1;
}
.pkg-filter-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
@media (max-width: 640px) {
  .pkg-filters { grid-template-columns: 1fr; }
}
.pkg-search-inline {
  position: relative;
  max-width: 420px;
}
.pkg-search-inline .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: .5;
  pointer-events: none;
}
.pkg-search-inline input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: .9rem;
  color: #334155;
  outline: none;
  transition: border-color .2s;
}
.pkg-search-inline input:focus {
  border-color: #0891b2;
}
.pkg-search-inline input::placeholder {
  color: #94a3b8;
}

.pkg-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pkg-pill {
  padding: 4px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  background: #fff;
  font-size: .72rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.pkg-pill:hover {
  border-color: #0891b2;
  color: #0891b2;
}
.pkg-pill.active {
  background: #0891b2;
  color: #fff;
  border-color: #0891b2;
}

/* --- Siatka --- */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* --- Karta pakietu --- */
.pcard {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  position: relative;
}
.pcard:hover {
  border-color: #0891b2;
  box-shadow: 0 8px 28px rgba(8,145,178,.14);
  transform: translateY(-3px);
}

/* --- Flaga jako tło nagłówka --- */
.pcard-flag {
  position: relative;
  height: 130px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}
/* Gradienty per kontynent */
.pcard-flag-europa  { background: linear-gradient(135deg, #003399 0%, #0055a4 50%, #003399 100%) !important; }
.pcard-flag-global  { background: linear-gradient(135deg, #1e3a5f 0%, #0891b2 100%) !important; }
.pcard-flag-azja    { background: linear-gradient(135deg, #b91c1c 0%, #ef4444 50%, #fbbf24 100%) !important; }
.pcard-flag-afryka  { background: linear-gradient(135deg, #15803d 0%, #f59e0b 50%, #dc2626 100%) !important; }
.pcard-flag-ameryka { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #ef4444 100%) !important; }
.pcard-flag-oceania { background: linear-gradient(135deg, #064e5e 0%, #065f6c 50%, #0e7490 100%) !important; }
.pcard-flag-bliski-wschod { background: linear-gradient(135deg, #92400e 0%, #d97706 50%, #fbbf24 100%) !important; }
.pcard-flag-mixed   { background: linear-gradient(135deg, #4338ca 0%, #7c3aed 50%, #a78bfa 100%) !important; }
/* Etykieta nazwy regionu na srodku flagi */
.pcard-region-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,.25);
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.pcard-5g {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0891b2;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.pcard-regional {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #7c3aed;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  cursor: help;
  z-index: 2;
}
.pcard-regional .pcard-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: .72rem;
  font-weight: 400;
  padding: 10px 14px;
  border-radius: 8px;
  min-width: 200px;
  max-width: 300px;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 10;
  white-space: normal;
}
.pcard-regional:hover .pcard-tooltip {
  display: block;
}
.pcard-overlay {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 100%);
}
.pcard-country {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.pcard-provider {
  color: rgba(255,255,255,.85);
  font-size: .72rem;
  font-weight: 600;
  background: rgba(255,255,255,.15);
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* --- Body --- */
.pcard-body {
  padding: 14px 16px 10px;
  flex: 1;
}
.pcard-title {
  font-size: .92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.3;
}
.pcard-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pcard-spec {
  font-size: .75rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* --- Footer --- */
.pcard-footer {
  padding: 10px 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pcard-points {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
}
.pcard-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pcard-price {
  font-size: .88rem;
  color: #334155;
}
.pcard-price strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}
.pcard-currency {
  font-size: .72rem;
  font-weight: 600;
  color: #64748b;
}
.pcard-btn {
  padding: 7px 14px;
  background: #0891b2;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.pcard-btn:hover {
  background: #0e7490;
  transform: translateY(-1px);
}
.pcard-btn.added {
  background: #10b981;
  pointer-events: none;
}

.pcard-spec-warn {
  background: #fef3c7 !important;
  color: #92400e !important;
  cursor: help;
  position: relative;
}
.pcard-spec-warn .pcard-spec-tip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #1e293b;
  color: #f1f5f9;
  font-size: .75rem;
  font-weight: 400;
  padding: 10px 14px;
  border-radius: 8px;
  min-width: 220px;
  max-width: 300px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 100;
  white-space: normal;
  text-align: left;
}
.pcard-spec-warn .pcard-spec-tip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 24px;
  border: 6px solid transparent;
  border-bottom-color: #1e293b;
}
.pcard-spec-warn:hover .pcard-spec-tip {
  display: block;
}

.pkg-no-results {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: .95rem;
}

/* --- Prod-card (format 1:1 z oceniamy.to – hotele/wycieczki) --- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.prod-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.prod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.prod-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f1f5f9;
}
.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.prod-card:hover .prod-card-img img {
  transform: scale(1.04);
}
.prod-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2.5rem;
  color: #cbd5e1;
  background: #f1f5f9;
}
.prod-card-stars {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0,0,0,.55);
  color: #ffc107;
  font-size: .78rem;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}
.prod-card-body {
  padding: 10px 12px 12px;
  flex: 1;
}
.prod-card-body h3 {
  font-size: .86rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-card-location {
  font-size: .74rem;
  color: #64748b;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.prod-card-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0891b2;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 28px;
}
.prod-card-votes {
  font-size: .75rem;
  color: #64748b;
}
.prod-card-no-rating .prod-card-votes {
  color: #94a3b8;
  font-style: italic;
}
@media (max-width: 600px) {
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .prod-card-body h3 { font-size: .8rem; }
}

/* --- Opinie (format oceniamy.to) --- */
.opinie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.opinia-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 16px;
  transition: transform .2s, box-shadow .2s;
}
.opinia-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.opinia-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.opinia-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: #f0fdfa;
  padding: 4px;
}
.opinia-meta { flex: 1; }
.opinia-title {
  font-size: .88rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}
.opinia-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}
.opinia-star {
  font-size: .9rem;
  color: #d1d5db;
}
.opinia-star-active {
  color: #0891b2;
}
.opinia-stars strong {
  font-size: .82rem;
  color: #0891b2;
  margin-left: 6px;
}
.opinia-text {
  font-size: .84rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 8px;
}
.opinia-link {
  font-size: .8rem;
  color: #0891b2;
  font-weight: 600;
  text-decoration: none;
}
.opinia-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .opinie-grid { grid-template-columns: 1fr; }
}

/* --- Country Hero (flaga w tle) --- */
.country-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.country-hero-flag {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(.7);
}
.country-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.country-hero-content {
  position: relative;
  z-index: 1;
  padding: 24px 32px;
  width: 100%;
}
.country-hero-content h1 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.country-hero-back {
  display: inline-block;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color .2s;
}
.country-hero-back:hover { color: #fff; }

/* --- Country Tabs --- */
.country-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e2e8f0;
  background: #fff;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.country-tab {
  padding: 14px 24px;
  border: none;
  background: none;
  font-size: .92rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  white-space: nowrap;
}
.country-tab:hover {
  color: #0891b2;
}
.country-tab.active {
  color: #0891b2;
  border-bottom-color: #0891b2;
}
.country-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0891b2;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.country-tab-content {
  display: none;
}
.country-tab-content.active {
  display: block;
}
.country-tab-empty {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.country-tab-empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}
.country-tab-empty h3 {
  color: #475569;
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.country-tab-empty p {
  font-size: .9rem;
  margin: 0;
}

/* --- Wycieczki (produkty) --- */
.esim-hero.wyc-hero-white {
  background: #fff !important;
  color: #1e293b !important;
  min-height: auto;
  padding: 32px 20px 20px;
}
.esim-hero.wyc-hero-white h1 { color: #0e7490; }
.esim-hero.wyc-hero-white p  { color: #64748b; opacity: 1 !important; }

.wyc-filters-section { padding-top: 12px !important; padding-bottom: 0 !important; }
.wyc-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px !important;
  padding-bottom: 4px !important;
}

/* Paginacja */
.wyc-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.wyc-pagination-bottom {
  justify-content: center;
  padding: 20px 0 8px;
}
.wyc-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: #0891b2;
  background: #f0f9ff;
  text-decoration: none;
  transition: all .15s;
  border: 1px solid #e0f2fe;
}
.wyc-page-btn:hover {
  background: #0891b2;
  color: #fff;
  border-color: #0891b2;
}
.wyc-page-active {
  background: #0891b2 !important;
  color: #fff !important;
  border-color: #0891b2 !important;
  cursor: default;
}

.wyc-count {
  font-size: .88rem;
  color: #64748b;
  margin-bottom: 16px;
}
.wyc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.wyc-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
}
.wyc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.wyc-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wyc-card-photo {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #e2e8f0;
}
.wyc-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.wyc-card:hover .wyc-card-photo img {
  transform: scale(1.05);
}
.wyc-card-nophoto {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
  color: #cbd5e1;
}
.wyc-card-country {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.wyc-card-body {
  padding: 14px 16px 8px;
  flex: 1;
}
.wyc-card-title {
  font-size: .92rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wyc-card-type {
  font-size: .78rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}
.wyc-card-footer {
  padding: 0 16px 14px;
}
.wyc-card-btn {
  display: inline-block;
  color: #0891b2;
  font-size: .84rem;
  font-weight: 600;
  transition: color .2s;
}
.wyc-card:hover .wyc-card-btn {
  color: #065f6c;
}
.wyc-no-results {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: .95rem;
}

/* ============ EMBED MODE — kompaktowe kafelki (jak leasing) ============ */
body.embed-mode .pcard-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
body.embed-mode .pcard {
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
body.embed-mode .pcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(8,145,178,.12);
}
body.embed-mode .pcard-flag {
  height: 85px;
  border-radius: 10px 10px 0 0;
}
body.embed-mode .pcard-overlay {
  padding: 5px 10px;
}
body.embed-mode .pcard-country {
  font-size: .78rem;
}
body.embed-mode .pcard-provider {
  font-size: .62rem;
  padding: 2px 6px;
}
body.embed-mode .pcard-5g {
  font-size: .6rem;
  padding: 2px 7px;
  top: 6px;
  right: 6px;
}
body.embed-mode .pcard-regional {
  font-size: .58rem;
  padding: 2px 7px;
  top: 6px;
  left: 6px;
}
body.embed-mode .pcard-body {
  padding: 8px 10px 6px;
}
body.embed-mode .pcard-title {
  font-size: .78rem;
  margin-bottom: 6px;
}
body.embed-mode .pcard-specs {
  gap: 4px;
}
body.embed-mode .pcard-spec {
  font-size: .62rem;
  padding: 2px 7px;
  border-radius: 4px;
}
body.embed-mode .pcard-footer {
  padding: 6px 10px;
}
body.embed-mode .pcard-points {
  font-size: .6rem;
  padding: 2px 7px;
  border-radius: 4px;
}
body.embed-mode .pcard-price strong {
  font-size: .9rem;
}
body.embed-mode .pcard-currency {
  font-size: .62rem;
}
body.embed-mode .pcard-btn {
  font-size: .62rem;
  padding: 5px 10px;
  border-radius: 5px;
}
body.embed-mode .pkg-filters {
  gap: 6px 12px;
  margin-bottom: 10px;
}
body.embed-mode .pkg-pill {
  font-size: .62rem;
  padding: 3px 9px;
}
body.embed-mode .pkg-filter-label {
  font-size: .6rem;
}
body.embed-mode .pcard-region-label {
  font-size: 1rem;
}

/* --- Responsive pakiety --- */
@media (max-width: 768px) {
  .pcard-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
  .pcard-flag { height: 110px; }
  .pcard-title { font-size: .85rem; }
  .pkg-pill {
    padding: 3px 10px;
    font-size: .68rem;
  }
  .pkg-filter-label {
    font-size: .65rem;
  }
}
@media (max-width: 480px) {
  .pcard-grid {
    grid-template-columns: 1fr;
  }
  .wyc-grid {
    grid-template-columns: 1fr;
  }
  .wyc-card-photo { height: 150px; }
  .country-hero { height: 160px; }
  .country-hero-content h1 { font-size: 1.5rem; }
  .country-hero-content { padding: 16px 18px; }
  .country-tabs { padding: 0 12px; }
  .country-tab { padding: 12px 16px; font-size: .84rem; }
}
