.flash-page {
  --flash-ink: #141b2b;
  --flash-muted: #3d4658;
  --flash-line: #c4c6d1;
  --flash-canvas: #f6f7fb;
  --flash-card: #fff;
  --flash-navy: #0b2f6b;
  --flash-red: #ba1a1a;
  --flash-gold: #8a6408;
  background: var(--flash-canvas);
  color: var(--flash-ink);
  font-family: "Plus Jakarta Sans", Manrope, sans-serif;
  padding: 28px 0 72px;
  caret-color: var(--flash-navy);
}

.flash-page ::selection {
  background: #ffe08a;
  color: #1a1200;
}

.flash-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--flash-muted);
  font-size: 13px;
  line-height: 20px;
}

.flash-crumb a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.flash-crumb a:hover { color: var(--flash-navy); text-decoration: underline; }

.flash-head {
  margin-bottom: 22px;
}

.flash-head h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--flash-navy);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.flash-head h1 i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffdad6;
  color: var(--flash-red);
  font-size: 1.15rem;
}

.flash-head p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--flash-muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.flash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.flash-tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.flash-tabs::-webkit-scrollbar { display: none; }

.flash-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--flash-line);
  border-radius: 999px;
  background: var(--flash-card);
  color: var(--flash-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.flash-tab b {
  min-width: 1.5em;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e7ebf5;
  color: var(--flash-navy);
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.flash-tab[aria-selected="true"] {
  border-color: var(--flash-navy);
  background: var(--flash-navy);
  color: #fff;
}

.flash-tab[aria-selected="true"] b {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.flash-tab:hover:not([aria-selected="true"]) {
  border-color: var(--flash-navy);
  color: var(--flash-navy);
}

.flash-tab:focus-visible,
.flash-search input:focus-visible,
.flash-sort select:focus-visible,
.flash-card a:focus-visible,
.flash-wish:focus-visible,
.flash-retry:focus-visible {
  outline: 2px solid var(--flash-navy);
  outline-offset: 2px;
}

.flash-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.flash-search,
.flash-sort {
  position: relative;
  display: block;
  margin: 0;
}

.flash-search i {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--flash-muted);
  font-size: 0.85rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.flash-search input,
.flash-sort select {
  height: 42px;
  border: 1px solid var(--flash-line);
  border-radius: 999px;
  background: var(--flash-card);
  color: var(--flash-ink);
  font: inherit;
  font-size: 0.92rem;
}

.flash-search input {
  width: min(280px, 46vw);
  padding: 0 14px 0 34px;
}

.flash-search input::placeholder { color: #5c6578; }

.flash-sort select {
  padding: 0 32px 0 14px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--flash-navy) 50%), linear-gradient(135deg, var(--flash-navy) 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.flash-status {
  min-height: 1.4em;
  margin: 0 0 16px;
  color: var(--flash-muted);
  font-size: 0.92rem;
}

.flash-status[hidden] { display: none; }

.flash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flash-grid[hidden] { display: none; }

.flash-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(196, 198, 209, 0.7);
  border-radius: 16px;
  background: var(--flash-card);
  box-shadow: 0 8px 20px rgba(11, 47, 107, 0.06);
  overflow: hidden;
}

.flash-card:hover {
  box-shadow: 0 14px 28px rgba(11, 47, 107, 0.12);
}

.flash-shot {
  position: relative;
  display: block;
  height: 188px;
  background: #e7ebf5;
  color: inherit;
  text-decoration: none;
}

.flash-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flash-ribbon,
.flash-off,
.flash-kind {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.flash-ribbon {
  top: 12px;
  left: 12px;
  padding: 6px 8px;
  background: var(--flash-red);
  color: #fff;
}

.flash-off {
  top: 12px;
  right: 52px;
  padding: 6px 8px;
  background: #fff4cc;
  color: #6a4b00;
}

.flash-kind {
  left: 12px;
  bottom: 12px;
  padding: 5px 8px;
  background: rgba(7, 21, 47, 0.82);
  color: #fff;
}

.flash-kind.is-otel { background: rgba(11, 47, 107, 0.92); }
.flash-kind.is-tur { background: rgba(122, 89, 0, 0.92); }
.flash-kind.is-bungalov { background: rgba(15, 107, 62, 0.92); }

.flash-wish {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--flash-ink);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.12);
  cursor: pointer;
}

.flash-wish.is-on,
.flash-wish[aria-pressed="true"] { color: #e11d48; }

.flash-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 14px 14px 16px;
}

.flash-title {
  margin: 0;
  color: var(--flash-navy);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-decoration: none;
}

a.flash-title:hover { text-decoration: underline; text-underline-offset: 3px; }

.flash-place,
.flash-agency {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--flash-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.flash-place span,
.flash-agency span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flash-logo {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  overflow: hidden;
  border-radius: 50%;
  background: #e7ebf5;
  color: var(--flash-navy);
  font-size: 0.62rem;
  font-weight: 800;
}

.flash-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flash-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.flash-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  min-width: 0;
}

.flash-price s {
  color: var(--flash-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.flash-price strong {
  color: var(--flash-navy);
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.flash-clock {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff1f0;
  color: var(--flash-red);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: right;
}

.flash-empty,
.flash-error {
  grid-column: 1 / -1;
  padding: 36px 20px;
  border: 1px dashed var(--flash-line);
  border-radius: 16px;
  background: var(--flash-card);
  text-align: center;
}

.flash-empty h2,
.flash-error h2 {
  margin: 0 0 8px;
  color: var(--flash-navy);
  font-size: 1.2rem;
}

.flash-empty p,
.flash-error p {
  margin: 0;
  color: var(--flash-muted);
}

.flash-retry {
  margin-top: 14px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--flash-navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.flash-retry:hover { background: #143e86; }

.flash-skel {
  height: 340px;
  border-radius: 16px;
  background: linear-gradient(100deg, #e7ebf5 20%, #f6f7fb 40%, #e7ebf5 60%);
  background-size: 200% 100%;
  animation: flash-skel 1.2s ease-in-out infinite;
}

@keyframes flash-skel {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 1100px) {
  .flash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .flash-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .flash-tools { width: 100%; }

  .flash-search { flex: 1; }

  .flash-search input { width: 100%; }
}

@media (max-width: 640px) {
  .flash-page { padding-top: 18px; }
  .flash-grid { grid-template-columns: 1fr; }
  .flash-shot { height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  .flash-skel { animation: none; }
  .flash-card { transition: none; }
}

html[data-theme="dark"] .flash-page {
  --flash-ink: #e8edf5;
  --flash-muted: #b7c2d6;
  --flash-line: #314056;
  --flash-canvas: #0c1220;
  --flash-card: #141c2d;
  --flash-navy: #d5e2ff;
  --flash-red: #ffb4ab;
  --flash-gold: #ffd15a;
}

html[data-theme="dark"] .flash-head h1 i { background: #3b1714; color: #ffb4ab; }
html[data-theme="dark"] .flash-tab b { background: #243044; color: #d5e2ff; }
html[data-theme="dark"] .flash-tab[aria-selected="true"] {
  background: #d5e2ff;
  border-color: #d5e2ff;
  color: #0c1220;
}
html[data-theme="dark"] .flash-tab[aria-selected="true"] b {
  background: rgba(12, 18, 32, 0.12);
  color: #0c1220;
}
html[data-theme="dark"] .flash-clock { background: #3b1714; color: #ffb4ab; }
html[data-theme="dark"] .flash-off { background: #3d320c; color: #ffe08a; }
html[data-theme="dark"] .flash-tab:focus-visible,
html[data-theme="dark"] .flash-search input:focus-visible,
html[data-theme="dark"] .flash-sort select:focus-visible,
html[data-theme="dark"] .flash-card a:focus-visible,
html[data-theme="dark"] .flash-wish:focus-visible,
html[data-theme="dark"] .flash-retry:focus-visible {
  outline-color: #ffe08a;
}
