:root {
  --bg: #071a30;
  --bg-soft: #f4f9ff;
  --ink: #0f2438;
  --ink-dim: #415d78;
  --teal: #0e8fa7;
  --teal-dark: #0a7288;
  --line: #aac4df;
  --shadow: 0 14px 30px rgba(5, 20, 40, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Segoe UI",
    "Trebuchet MS",
    "Lucida Sans Unicode",
    sans-serif;
  background: linear-gradient(
    180deg,
    #041427 0%,
    #0a2547 18%,
    #2e6fab 55%,
    #87cefa 100%
  );
  position: relative;
}

.activity-sun {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 138px;
  height: 138px;
  border: none;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  z-index: 2147483647;
  transform-origin: 50% 50%;
  overflow: visible;
}

.activity-sun::before,
.activity-sun::after,
.activity-sun-label {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.activity-sun::before {
  inset: -14px;
  background: repeating-conic-gradient(
    from 0deg,
    #ffd000 0deg 12deg,
    transparent 12deg 22deg
  );
  filter: drop-shadow(0 0 10px rgba(255, 218, 72, 0.85));
}

.activity-sun::after {
  inset: 0;
  background: radial-gradient(
    circle at 50% 56%,
    #c98100 0%,
    #df9c10 28%,
    #f2be30 52%,
    #ffd85a 72%,
    #ffec9c 100%
  );
  box-shadow:
    inset 0 0 0 8px rgba(255, 221, 108, 0.76),
    inset 0 18px 24px rgba(255, 251, 210, 0.5),
    inset 0 -20px 24px rgba(167, 97, 0, 0.42),
    inset 0 0 28px rgba(133, 72, 0, 0.36),
    0 0 22px rgba(255, 208, 44, 0.72),
    0 0 36px rgba(255, 190, 24, 0.6);
  z-index: 2;
}

.activity-sun-label {
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  color: #7d4400;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  padding: 28px;
  background: radial-gradient(
    circle at 50% 58%,
    #c57900 0%,
    #d99100 26%,
    #f0bc34 52%,
    #ffd965 76%,
    #fff0ad 100%
  );
  box-shadow:
    inset 0 0 0 9px rgba(255, 220, 112, 0.72),
    inset 0 17px 22px rgba(255, 250, 206, 0.5),
    inset 0 -20px 24px rgba(153, 88, 0, 0.46),
    inset 0 0 26px rgba(120, 66, 0, 0.34);
  text-shadow: 0 1px 0 rgba(255, 250, 180, 0.46);
  pointer-events: none;
}

.activity-sun.is-refreshing .activity-sun-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 12px;
}

.activity-sun-count {
  display: block;
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.activity-sun-phase {
  display: block;
  max-width: 98px;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  text-align: center;
}

.activity-sun-meta {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  display: none;
  min-width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(4, 20, 39, 0.78);
  border: 1px solid rgba(190, 218, 246, 0.48);
  color: #ecf7ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 4;
}

.activity-sun.is-refreshing .activity-sun-meta {
  display: block;
}

.activity-sun.is-active {
  animation: none;
}

.activity-sun.is-active::before {
  animation: sun-rays-spin 1.6s linear infinite;
}

@keyframes sun-rays-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 18px 40px;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 18px 20px 8px;
  color: #f2f8ff;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(188, 220, 255, 0.55);
  background: rgba(8, 29, 56, 0.45);
  color: #e7f3ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.2;
}

.subtitle {
  margin: 0;
  color: #ffffff;
  max-width: none;
  white-space: nowrap;
  font-family: "Segoe Script", "Lucida Handwriting", "Brush Script MT", cursive;
  font-size: 1.16rem;
  font-weight: 600;
}

.country-filter-strip {
  margin: 6px 0 10px;
}

.country-filter-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 4px;
}

.country-filter-item {
  flex: 1 1 0;
  min-width: 92px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #0e3b5d;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 140ms ease, transform 140ms ease;
}

.country-filter-item:hover {
  transform: translateY(-1px);
}

.country-filter-item:focus-visible {
  outline: 3px solid #ffd85a;
  outline-offset: 2px;
}

.country-filter-orb {
  position: relative;
  overflow: hidden;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.32),
    inset 0 -10px 16px rgba(0, 0, 0, 0.34),
    inset 0 10px 12px rgba(255, 255, 255, 0.22);
}

.country-filter-orb::before,
.country-filter-orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.country-filter-orb::before {
  inset: 0;
  background: radial-gradient(
    circle at 30% 26%,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.34) 26%,
    rgba(255, 255, 255, 0) 52%
  );
}

.country-filter-orb::after {
  inset: 0;
  background:
    radial-gradient(circle at 72% 78%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.35) 100%),
    radial-gradient(circle at 75% 24%, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 45%);
}

.country-filter-count {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  color: #ffd85a;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.country-filter-info {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.country-filter-name {
  font-size: 0.62rem;
  line-height: 1.1;
  color: #ffd85a;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.country-filter-item.is-disabled .country-filter-orb {
  opacity: 0.3;
}

.country-filter-item.is-disabled .country-filter-count {
  opacity: 0.55;
}

.country-filter-item.is-disabled .country-filter-name {
  opacity: 0.55;
}

.toolbar {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.control-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.control-row--primary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.control-row--secondary {
  grid-template-columns: minmax(460px, 1.45fr) minmax(300px, 1fr) minmax(280px, 1fr);
}

.control-row--secondary .type-control {
  grid-column: span 1;
}

.control-row--secondary .transaction-control {
  grid-column: span 1;
}

.control-row--secondary .sort-control {
  grid-column: span 1;
}

.control-row--secondary .control {
  min-height: 66px;
  height: auto;
  max-height: none;
}

.control-row--secondary .type-control,
.control-row--secondary .transaction-control {
  gap: 6px;
}

.control-row--secondary .type-options,
.control-row--secondary .transaction-options {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.control-row--secondary .type-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(108px, 1fr));
  width: 100%;
  gap: 6px;
  overflow: hidden;
}

.control-row--secondary .transaction-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 6px;
  overflow: visible;
}

.control-row--secondary .check-item {
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: inherit;
  white-space: nowrap;
}

.control-row--secondary .type-options .check-item {
  width: 100%;
  justify-content: center;
  padding: 6px 6px;
}

.control-row--secondary .transaction-options .check-item {
  width: 100%;
  justify-content: center;
  padding: 6px 4px;
}

.control-row--secondary .sort-control select {
  height: 40px;
  padding: 7px 38px 7px 10px;
}

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

  .control-row--secondary .type-control,
  .control-row--secondary .transaction-control,
  .control-row--secondary .sort-control {
    grid-column: span 1;
  }

  .control-row--secondary .control {
    min-height: 66px;
    height: auto;
    max-height: none;
  }

  .control-row--secondary .type-options,
  .control-row--secondary .transaction-options {
    display: grid;
    overflow-x: visible;
    gap: 6px;
  }

  .control-row--secondary .type-options {
    grid-template-columns: repeat(4, minmax(108px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .control-row--secondary .check-item {
    min-height: 40px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: inherit;
    white-space: normal;
  }

  .control-row--secondary .check-item input[type="checkbox"] {
    transform: none;
  }

  .control-row--secondary .sort-control select {
    height: 40px;
    padding: 7px 38px 7px 10px;
  }

  .country-filter-item {
    min-width: 84px;
    padding: 5px 8px;
  }

  .country-filter-name {
    font-size: 0.56rem;
  }
}

.control {
  background: linear-gradient(180deg, rgba(210, 224, 240, 0.96) 0%, rgba(191, 210, 231, 0.96) 100%);
  border: 1px solid rgba(124, 153, 183, 0.86);
  border-radius: 8px;
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.62),
    inset 0 16px 24px rgba(9, 37, 67, 0.2),
    inset 0 -18px 28px rgba(15, 52, 88, 0.34),
    inset 0 0 0 1px rgba(105, 136, 167, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 9px 12px;
  min-height: 66px;
  display: grid;
  align-content: start;
  gap: 5px;
}

.control label {
  display: block;
  font-size: 0.87rem;
  color: var(--ink-dim);
  margin-bottom: 2px;
}

.control input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.control select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin-top: 0;
  padding: 7px 38px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%230e8fa7' d='M1.41.59 6 5.17 10.59.59 12 2l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  color: var(--ink);
  font: inherit;
  height: 40px;
}

.control output {
  display: block;
  margin-top: 2px;
  font-weight: 700;
  color: var(--teal-dark);
}

.type-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.type-control-label {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.87rem;
}

.type-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(108px, 1fr));
  gap: 6px;
}

.transaction-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  min-height: 40px;
}

.check-item input[type="checkbox"] {
  margin: 0;
  accent-color: var(--teal);
}

.benefits-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 0 18px;
}

.benefit-item {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
}

.benefit-icon-wrap {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 28%, #fff8cb 0%, #ffe565 40%, #ffc515 74%, #e69b00 100%);
  box-shadow:
    inset -5px -6px 10px rgba(179, 104, 0, 0.36),
    inset 3px 4px 7px rgba(255, 255, 255, 0.52),
    0 0 14px rgba(255, 212, 52, 0.5);
  transition: transform 170ms ease;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #8a4d00;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-text {
  margin: 0;
  color: #ffe27a;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(255, 208, 32, 0.24);
  transition: transform 170ms ease;
}

.benefit-text--primary {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.benefit-text--primary strong {
  font-size: 1.9rem;
  line-height: 1;
  color: #ffdf57;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(255, 215, 73, 0.35);
  transition: transform 170ms ease;
}

.benefit-item:hover .benefit-icon-wrap,
.benefit-item:focus-visible .benefit-icon-wrap {
  transform: scale(1.18);
}

.benefit-item:hover .benefit-text,
.benefit-item:focus-visible .benefit-text {
  transform: scale(1.06);
}

.benefit-item:hover .benefit-text--primary strong,
.benefit-item:focus-visible .benefit-text--primary strong {
  transform: scale(1.08);
}

.source-hub {
  margin: 8px 0 18px;
  padding: 10px 4px 2px;
}

.source-hub-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.source-hub-note {
  margin: 4px 0 12px;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
}

.source-card {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 7px;
  box-shadow: var(--shadow);
}

.source-card-country {
  margin: 0;
  width: fit-content;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 999px;
  color: #5d4022;
  border: 1px solid #efc79e;
  background: #ffedd9;
}

.source-card-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.source-card-domain {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-dim);
}

.source-card-mode {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
}

.source-card-detail {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-dim);
}

.source-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-card-link {
  justify-self: start;
  padding: 6px 9px;
  font-size: 0.82rem;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  background: rgba(250, 253, 255, 0.98);
  border: none;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
  box-shadow:
    0 26px 44px rgba(5, 20, 40, 0.34),
    0 10px 18px rgba(8, 30, 60, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -18px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.42) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 34px 52px rgba(5, 20, 40, 0.4),
    0 14px 22px rgba(8, 30, 60, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.card--sold {
  opacity: 0.5;
}

.card--sold:hover {
  transform: none;
  box-shadow:
    0 26px 44px rgba(5, 20, 40, 0.34),
    0 10px 18px rgba(8, 30, 60, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.card-media {
  position: relative;
}

.card-media-static {
  display: block;
}

.new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 240, 184, 0.95);
  background: radial-gradient(circle at 30% 30%, #fff6b8 0%, #ffd84a 45%, #f1b800 100%);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  z-index: 2;
}

.new-badge svg {
  width: 20px;
  height: 20px;
  fill: #8a5b00;
}

.sold-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #c19300;
  background: linear-gradient(180deg, #ffe27f 0%, #ffc928 100%);
  color: #6d4c00;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-media-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: inherit;
}

.card-media-button:focus-visible,
.title-button:focus-visible,
.detail-close:focus-visible,
.detail-gallery-arrow:focus-visible,
.detail-thumb:focus-visible {
  outline: 3px solid #ffd85a;
  outline-offset: 3px;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #ece4d4;
}

.country-orb {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.3),
    inset 0 -8px 14px rgba(0, 0, 0, 0.24);
}

.country-orb::before,
.country-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.country-orb::before {
  background: radial-gradient(
    circle at 30% 24%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.42) 24%,
    rgba(255, 255, 255, 0) 47%
  );
}

.country-orb::after {
  background:
    radial-gradient(circle at 72% 78%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.38) 100%),
    radial-gradient(circle at 75% 24%, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 44%);
}

.country-orb--es {
  background: linear-gradient(
    180deg,
    #c61f2b 0%,
    #c61f2b 25%,
    #f6c90e 25%,
    #f6c90e 75%,
    #c61f2b 75%,
    #c61f2b 100%
  );
}

.country-orb--it {
  background: linear-gradient(
    90deg,
    #0c8b4a 0%,
    #0c8b4a 33.34%,
    #ffffff 33.34%,
    #ffffff 66.67%,
    #d63232 66.67%,
    #d63232 100%
  );
}

.country-orb--ro {
  background: linear-gradient(
    90deg,
    #0b4ea2 0%,
    #0b4ea2 33.34%,
    #f4c51a 33.34%,
    #f4c51a 66.67%,
    #cf2f3f 66.67%,
    #cf2f3f 100%
  );
}

.country-orb--pt {
  background: linear-gradient(
    90deg,
    #0b8b4a 0%,
    #0b8b4a 40%,
    #d13a3a 40%,
    #d13a3a 100%
  );
}

.country-orb--gr {
  background: repeating-linear-gradient(
    180deg,
    #1d4fa3 0px,
    #1d4fa3 9px,
    #ffffff 9px,
    #ffffff 18px
  );
}

.country-orb--al {
  background: radial-gradient(
      circle at 50% 50%,
      rgba(20, 20, 20, 0.88) 0%,
      rgba(20, 20, 20, 0.88) 17%,
      rgba(20, 20, 20, 0) 18%
    ),
    linear-gradient(180deg, #cf1228 0%, #bd0f23 100%);
}

.country-orb--me {
  background: linear-gradient(
    180deg,
    #c8102e 0%,
    #c8102e 18%,
    #d7a928 18%,
    #d7a928 27%,
    #204b9b 27%,
    #204b9b 73%,
    #d7a928 73%,
    #d7a928 82%,
    #c8102e 82%,
    #c8102e 100%
  );
}

.country-orb--pl {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #dc143c 50%, #dc143c 100%);
}

.country-orb--unknown {
  background: linear-gradient(145deg, #d9e0e6 0%, #a8b7c4 100%);
}

.card-body {
  padding: 12px;
  display: grid;
  gap: 9px;
}

.source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 12px;
  color: #0c4568;
  background: #dff2ff;
  border: 1px solid #9fcee8;
  border-radius: 999px;
  padding: 3px 10px;
}

.title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #072a56;
}

.title-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.title-static {
  display: inline;
}

.title-button:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.location {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.metrics {
  display: grid;
  gap: 6px;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.94rem;
}

.metric strong {
  color: var(--teal-dark);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.price-eur {
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.open-link {
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #13a6c0 0%, #0c87a0 100%);
  border-radius: 8px;
  padding: 7px 10px;
}

.open-link:hover {
  background: linear-gradient(180deg, #1097b0 0%, #0b7890 100%);
}

.open-link--disabled {
  background: linear-gradient(180deg, #9aa8b3 0%, #81909c 100%);
  color: rgba(255, 255, 255, 0.95);
  cursor: not-allowed;
}

.empty {
  padding: 20px;
  border-radius: 8px;
  background: #f5fbff;
  border: 1px dashed var(--line);
  color: #24435f;
}

.detail-modal-open {
  overflow: hidden;
}

.detail-modal-open .activity-sun {
  display: none;
}

.detail-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2147483000;
}

.detail-modal.is-open {
  display: block;
}

.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 13, 26, 0.68);
  backdrop-filter: blur(4px);
}

.detail-card {
  position: absolute;
  inset: 18px;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #f8fcff;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.detail-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #c7dbea;
  background: #ffffff;
}

.detail-source {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-title {
  margin: 0;
  color: #072a56;
  font-size: 1.35rem;
  line-height: 1.25;
}

.detail-location {
  margin: 7px 0 0;
  color: var(--ink-dim);
}

.detail-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #bed5e8;
  border-radius: 50%;
  background: #eef8ff;
  color: #16344d;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.detail-content {
  overflow: auto;
  padding: 18px 20px 24px;
}

.detail-gallery {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-main-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #dce7f0;
}

.detail-main-photo {
  display: block;
  width: 100%;
  max-height: 62vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0b1826;
}

.detail-main-photo--empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: #24435f;
  background: #e8f3fb;
}

.detail-gallery-arrow {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(7, 26, 48, 0.72);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.detail-gallery-arrow--prev {
  left: 12px;
}

.detail-gallery-arrow--next {
  right: 12px;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.detail-thumb {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #e9f2f8;
  cursor: pointer;
}

.detail-thumb.is-active {
  border-color: var(--teal);
}

.detail-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-section {
  padding: 16px 0;
  border-top: 1px solid #d6e4ef;
}

.detail-section h3 {
  margin: 0 0 11px;
  color: #0d3557;
  font-size: 1.05rem;
}

.detail-section p {
  margin: 0 0 10px;
  color: #1d354a;
  line-height: 1.55;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.detail-fact {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid #e0edf5;
}

.detail-fact dt {
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.detail-fact dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #1d354a;
}

.detail-muted,
.detail-empty {
  color: var(--ink-dim);
}

.detail-source-link {
  display: inline-block;
  margin-top: 14px;
}

.detail-map-tile {
  overflow: hidden;
  border: 1px solid #d1e3ef;
  border-radius: 8px;
  background: #f6fbff;
}

.detail-map-frame {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

.detail-map-actions {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  border-top: 1px solid #dbe9f3;
  background: #eef7fd;
}

.detail-map-link {
  font-size: 0.9rem;
}

.detail-map-note {
  margin-top: 10px;
}

.detail-weather {
  border: 1px solid #d1e3ef;
  border-radius: 8px;
  background: #f6fbff;
  padding: 12px;
}

.detail-weather-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 12px;
}

.detail-weather-current {
  border: 1px solid #c7dff0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #ecf5fc 100%);
  padding: 12px;
}

.detail-weather-current-head {
  margin: 0;
  font-size: 0.86rem;
  color: #415d78;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.detail-weather-current-status {
  margin: 6px 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0d3557;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.detail-weather-current-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.detail-weather-current-facts div {
  padding: 6px 0;
  border-bottom: 1px solid #e2edf6;
}

.detail-weather-current-facts dt {
  font-size: 0.78rem;
  color: #54708a;
}

.detail-weather-current-facts dd {
  margin: 2px 0 0;
  color: #0f2438;
  font-weight: 700;
}

.detail-weather-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}

.detail-weather-day {
  border: 1px solid #d4e5f1;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.detail-weather-day-date {
  margin: 0;
  font-size: 0.82rem;
  color: #546f88;
}

.detail-weather-day-status {
  margin: 6px 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-weather-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.detail-weather-current-status .detail-weather-icon {
  width: 28px;
  height: 28px;
}

.detail-weather-day-status .detail-weather-icon {
  width: 20px;
  height: 20px;
}

.detail-weather-day-facts {
  margin: 0;
  display: grid;
  gap: 6px;
}

.detail-weather-day-facts dt {
  font-size: 0.72rem;
  color: #5c7892;
}

.detail-weather-day-facts dd {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: #143a5d;
  font-weight: 700;
}

.detail-weather-note,
.detail-weather-source {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #4c6781;
}

.weather-status--clear {
  color: #0d5f89;
}

.weather-status--partly-cloudy {
  color: #24668c;
}

.weather-status--cloudy {
  color: #355a76;
}

.weather-status--fog {
  color: #5a6f81;
}

.weather-status--drizzle {
  color: #2f5f8a;
}

.weather-status--rain {
  color: #1f4f83;
}

.weather-status--snow {
  color: #4d5f85;
}

.weather-status--storm {
  color: #7a2f2f;
}

.weather-status--mixed {
  color: #3b5470;
}

@media (max-width: 880px) {
  .activity-sun {
    top: 8px;
    right: 8px;
    width: 104px;
    height: 104px;
  }

  .activity-sun-label {
    inset: 0;
    font-size: 10px;
    padding: 22px;
  }

  .activity-sun.is-refreshing .activity-sun-label {
    gap: 3px;
    padding: 13px 10px;
  }

  .activity-sun-count {
    font-size: 1.25rem;
  }

  .activity-sun-phase {
    max-width: 76px;
    font-size: 0.49rem;
    line-height: 1.03;
  }

  .activity-sun-meta {
    top: calc(100% + 5px);
    font-size: 10px;
    padding: 2px 7px;
  }

  .control-row--primary,
  .control-row--secondary {
    grid-template-columns: 1fr;
  }

  .control-row--secondary .type-control,
  .control-row--secondary .transaction-control,
  .control-row--secondary .sort-control {
    grid-column: span 1;
  }

  .type-options {
    grid-template-columns: repeat(4, minmax(108px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .transaction-options {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 14px 12px 28px;
  }

  .benefits-strip {
    grid-template-columns: 1fr;
  }

  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-card {
    inset: 8px;
  }

  .detail-card-head {
    padding: 14px;
  }

  .detail-title {
    font-size: 1.1rem;
  }

  .detail-content {
    padding: 12px 14px 18px;
  }

  .detail-main-photo {
    max-height: 50vh;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-map-frame {
    min-height: 240px;
  }

  .detail-weather-grid {
    grid-template-columns: 1fr;
  }

  .detail-weather-current-facts {
    grid-template-columns: 1fr 1fr;
  }

  .detail-weather-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .activity-sun.is-active::before {
    animation-duration: 5s;
  }
}
