@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.basia-lokale-list-wrapper {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-900: #0f172a;
  --blue-600: #2563eb;
  --indigo-50: #eef2ff;
  --indigo-600: #4f46e5;

  font-family: 'Inter', sans-serif;
  color: #1e293b;
}

.basia-lokale-list-wrapper .card-table {
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background: #fff;
}

.basia-lokale-list-wrapper .basia-lokale-list {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  vertical-align: middle;
}

.basia-lokale-list-wrapper .basia-lokale-list__head-row th {
  background-color: var(--slate-50);
  color: var(--slate-500);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--slate-200);
  padding: 1rem;
  border-top: none;
}

.basia-lokale-list-wrapper .basia-lokale-list td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.basia-lokale-list-wrapper .hover-effect {
  transition: all 0.2s ease;
}

.basia-lokale-list-wrapper .hover-effect:hover td {
  background-color: #001f3f;
  color: #fff;
  cursor: pointer;
}

.basia-lokale-list-wrapper .hover-effect:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  position: relative;
  z-index: 1;
}

.basia-lokale-list-wrapper .badge-pill-custom {
  padding: 0.35em 0.8em;
  font-weight: 600;
  border-radius: 9999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.basia-lokale-list-wrapper .basia-lokale-list__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.basia-lokale-list-wrapper .basia-lokale-list__symbol {
  font-weight: 600;
  color: var(--blue-600);
}

.basia-lokale-list-wrapper .basia-lokale-list__subline {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--slate-500);
}

.basia-lokale-list-wrapper .basia-lokale-list__highlight-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
}

.basia-lokale-list-wrapper .basia-lokale-list__highlight-trigger {
  border: 0;
  background: transparent;
}

.basia-lokale-list-wrapper .basia-lokale-list__highlight-trigger:focus-visible .basia-lokale-list__highlight-pill,
.basia-lokale-list-wrapper .basia-lokale-list__highlight-trigger:hover .basia-lokale-list__highlight-pill {
  filter: brightness(1.08);
}

.basia-lokale-list-wrapper .basia-lokale-list__calc {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.basia-lokale-list-wrapper .basia-lokale-list__history-btn {
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 50%;
  color: #94a3b8;
  transition: all 0.2s;
}

.basia-lokale-list-wrapper .basia-lokale-list__history-btn:hover {
  color: var(--blue-600);
  background-color: #eff6ff;
}

.basia-lokale-list-wrapper .basia-lokale-list__row--sold td {
  background-color: #f8fafc;
  color: #94a3b8;
}

.basia-lokale-list-wrapper .basia-lokale-list__history-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #94a3b8;
}

.basia-lokale-list-wrapper .basia-lokale-list__history-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.basia-lokale-list-wrapper .basia-lokale-list__otodom-logo {
  height: 1.0rem;
  width: auto;
  display: inline-block;
}

.basia-lokale-list-wrapper .basia-lokale-list__otodom-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.basia-lokale-list-wrapper .basia-lokale-list__otodom-link:hover {
  background-color: #f1f5f9;
}

.basia-lokale-list-wrapper .hover-effect:hover .basia-lokale-list__otodom-link {
  background-color: #f1f5f9;
}

.basia-lokale-list-wrapper .basia-lokale-list__external-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.basia-lokale-list-wrapper .basia-lokale-list__video-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Ensure modal is above backdrop even if template tweaks z-index */
.modal {
  z-index: 1060 !important;
}

.modal-backdrop {
  z-index: 1050 !important;
}
.basia-lokale-list-wrapper .basia-lokale-list__history-body {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.basia-lokale-list-wrapper .basia-lokale-list__history-loading,
.basia-lokale-list-wrapper .basia-lokale-list__history-empty {
  color: var(--slate-500);
  padding: 8px 0;
}

.basia-lokale-list-wrapper .basia-lokale-list__history-table {
  width: 100%;
  border-collapse: collapse;
}

.basia-lokale-list-wrapper .basia-lokale-list__history-table th {
  background-color: var(--slate-50);
  color: var(--slate-500);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.75rem;
  border-bottom: 1px solid var(--slate-200);
}

.basia-lokale-list-wrapper .basia-lokale-list__history-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--slate-100);
}
.basia-lokale-list-wrapper .basia-lokale-list__filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.basia-lokale-list-wrapper .basia-lokale-list__filter-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.basia-lokale-list-wrapper .basia-lokale-list__filter-label {
  font-size: 0.72rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0;
}

.basia-lokale-list-wrapper .basia-lokale-list__filter-select {
  width: 220px;
  max-width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem !important;
  font-weight: 500;
  line-height: 1.2;
  background: #fff;
  color: var(--slate-900);
}

.basia-lokale-list-wrapper .basia-lokale-list__filter-select option {
  font-size: 0.78rem;
}

/* Video modal tweaks */
#basia-lokale-video-modal .modal-dialog {
  margin: 1rem auto;
}

@media (max-width: 767.98px) {
  #basia-lokale-video-modal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto;
    padding: 0;
  }

  #basia-lokale-video-modal .modal-content {
    border-radius: 8px;
  }

  #basia-lokale-video-modal .modal-header {
    padding: 0.5rem 0.75rem;
  }

  #basia-lokale-video-modal .modal-body {
    padding: 0.5rem;
  }

  #basia-lokale-video-modal .modal-body .ratio {
    border-radius: 6px;
    overflow: hidden;
  }
}
