/* Black Friday (black-friday.html): the price-tag hero, the three tiles, filters and the drop cards.
   On the site's tokens (styles.css) and the prices page's tiles and method (prices.css). #39ABB4 only on the dark hero. */

/* ---------- Hero: a dark box, the tag on the right, the property's photo faint behind ---------- */
.bfh { position: relative; margin: 0 var(--edge, 12px); border-radius: 28px; overflow: hidden; background: #0B0D0E; color: #FFFFFF; isolation: isolate; }
.bfh__in { max-width: 1180px; margin: 0 auto; padding: 72px 24px; min-height: min(700px, calc(100svh - 110px)); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.bfh__eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: rgba(255,255,255,0.7); }
.bfh h1 { margin: 18px 0 22px; font-size: clamp(52px, 7.4vw, 112px); line-height: 0.94; font-weight: 700; letter-spacing: -0.045em; }
.bfh h1 .soft { display: block; color: var(--accent-hi); font-weight: 300; letter-spacing: -0.035em; font-size: 0.62em; margin-top: 10px; }
.bfh__lead { max-width: 480px; margin: 0; font-size: 17px; line-height: 1.6; font-weight: 300; color: rgba(255,255,255,0.82); }
.bfh__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.bfh__cta .btn { background: var(--accent-hi); color: #0B2123; }
.bfh__cta a.link { font-size: 15px; color: rgba(255,255,255,0.86); text-decoration: underline; text-underline-offset: 4px; }

.bfh__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s ease; transform: scale(1.04); }
.bfh__bg.on { opacity: 0.28; animation: bfDrift 9s ease-out forwards; }
@keyframes bfDrift { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.bfh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,13,14,0.92) 0%, rgba(11,13,14,0.72) 45%, rgba(11,13,14,0.35) 100%); }

/* The tag, hanging from the hero's top edge */
.tag-wrap { position: relative; justify-self: center; width: min(340px, 100%); padding-top: 92px; }
.tag-string { position: absolute; left: 50%; top: -80px; width: 2px; height: 196px; background: linear-gradient(#5E6A6C, #9AA5A7); transform-origin: top center; }
.tag { position: relative; transform-origin: 50% 0; animation: tagSway 6s ease-in-out infinite; }
.tag__card {
  position: relative; background: #FFFFFF; color: var(--ink); padding: 64px 30px 30px; border-radius: 6px 6px 22px 22px;
  clip-path: polygon(50% 0, 100% 15%, 100% 100%, 0 100%, 0 15%); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}
.tag__hole { position: absolute; left: 50%; top: 26px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #0B0D0E; box-shadow: inset 0 0 0 3px #D9DEDF; }
.tag__brand { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tag__brand img { height: 16px; width: auto; }
.tag__link { display: block; color: inherit; border-radius: 8px; }
.tag__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tag__body { margin-top: 22px; transition: opacity .35s ease, transform .35s ease; }
.tag__body.out { opacity: 0; transform: translateY(8px); }
.tag__what { font-size: 16px; font-weight: 500; color: var(--ink-soft); }
.tag__where { font-size: 14px; font-weight: 300; color: var(--muted); margin-top: 2px; }
.tag__was { margin-top: 26px; font-size: 22px; font-weight: 300; color: var(--faint); position: relative; display: inline-block; font-variant-numeric: tabular-nums; }
.tag__was::after { content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 3px; border-radius: 2px; background: var(--accent); transform: rotate(-4deg); }
.tag__now { font-size: clamp(36px, 4.2vw, 52px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tag__cut { display: inline-block; margin-top: 14px; padding: 7px 12px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: 14px; font-weight: 600; }
.tag__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.tag__next { border: 0; background: none; font: inherit; color: var(--accent-ink); font-weight: 500; cursor: pointer; padding: 12px 0; }
@keyframes tagSway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
.tag.flip { animation: tagFlip .7s ease-in-out; }
@keyframes tagFlip { 0% { transform: rotate(0); } 30% { transform: rotate(7deg); } 65% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }

/* After the campaign: a short note in the tag's place */
.bfh__ended { justify-self: center; width: min(380px, 100%); padding: 32px; border-radius: 24px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.bfh__ended h2 { margin: 0 0 10px; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.bfh__ended p { margin: 0 0 22px; font-size: 15px; line-height: 1.6; font-weight: 300; color: rgba(255,255,255,0.8); }
.bfh__ended .btn { background: #FFFFFF; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .tag, .tag.flip { animation: none; }
  .bfh__bg { transition: none; }
  .bfh__bg.on { animation: none; }
  .tag__body { transition: none; }
}
@media (max-width: 860px) {
  .bfh { border-radius: 24px; }
  .bfh__in { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px 40px; min-height: 0; }
  .bfh__eyebrow { font-size: 11px; letter-spacing: 0.12em; }
  .bfh::after { background: linear-gradient(180deg, rgba(11,13,14,0.9) 0%, rgba(11,13,14,0.7) 55%, rgba(11,13,14,0.45) 100%); }
  .tag-wrap { width: 86%; padding-top: 56px; }
  .tag-string { top: 0; height: 84px; }
}

/* ---------- The three tiles (prices.css .pr-top) in one row ---------- */
.bf-tops { padding-block: 40px 32px; }
.bf-tops .pr-tops { grid-template-columns: 1fr 1fr 1.5fr; }
.bf-tops .pr-top--dear { grid-column: auto; }
.bf-tops .pr-top__value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bf-tops .pr-top--dear .pr-top__value s { font-size: 0.42em; font-weight: 300; color: var(--panel-muted); margin-left: 8px; }
@media (max-width: 860px) { .bf-tops .pr-tops { grid-template-columns: 1fr 1fr; } .bf-tops .pr-top--dear { grid-column: 1 / -1; } }
@media (max-width: 560px) { .bf-tops .pr-top__value { font-size: 26px; } }

/* ---------- Filters, sort, notes ---------- */
.bf-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0 20px; }
.bf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-pills button {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 14px; color: var(--ink-soft); cursor: pointer; transition: border-color .2s ease;
}
.bf-pills button:hover { border-color: var(--accent); }
.bf-pills button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
/* The sort reads as a line of text, as in the mockup («Ταξινόμηση: Μεγαλύτερη μείωση»); the value is a native select. */
.bf-sort { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.bf-sort select {
  height: 40px; padding: 0 18px 0 0; border: 0; border-radius: 6px; background-color: transparent;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314292A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 12px;
}
.bf-sort[hidden] { display: none; }
.bf-sort select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bf-sample { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; font-size: 13px; color: var(--muted); }
.bf-sample::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.bf-sample[hidden] { display: none; }

/* ---------- Cards (the list's card, with the drop) ---------- */
.bf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.bf-grid .card { position: relative; }
.bf-grid .card:nth-child(n) .card__media { aspect-ratio: 4 / 3.3; }
.bf-grid .card__link { display: block; border-radius: 22px; }
.bf-grid .card__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.bf-grid .card__fav {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(14, 41, 43, 0.42); color: #FFFFFF; cursor: pointer; backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.2s ease;
}
.bf-grid .card__fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bf-grid .card__fav:hover { transform: scale(1.06); background: rgba(14, 41, 43, 0.6); }
.bf-grid .card__fav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bf-grid .card__fav[aria-pressed="true"] { color: #FF8796; }
.bf-grid .card__fav[aria-pressed="true"] svg { fill: currentColor; }
.bf-badge {
  position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: #FFFFFF; color: var(--accent-ink);
  box-shadow: 0 6px 16px -8px rgba(14, 41, 43, 0.45);
}
.bf-was { margin-left: 6px; font-size: 13px; font-weight: 300; color: var(--faint); text-decoration-thickness: 1px; }
.bf-same { margin-top: 2px; font-size: 13px; color: var(--muted); }
.bf-date { margin-top: 10px; font-size: 13px; color: var(--muted); }
.bf-date[title] { text-decoration: underline dotted; text-underline-offset: 3px; }
.bf-error, .bf-empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; font-size: 16px; color: var(--muted); }
.bf-empty .btn { margin-top: 18px; }
@media (max-width: 1100px) { .bf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bf-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- How we measure (prices.css .pr-method) ---------- */
.bf-method { padding-bottom: 96px; }
.bf-method .pr-method__list > div { grid-template-columns: 170px minmax(0, 1fr); }
.bf-updated { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .bf-method { padding-bottom: 64px; } .bf-method .pr-method__list > div { grid-template-columns: 1fr; } }
