/* Version C, "Mix": blocks from the current rewize.com (header, hero search, area guide)
   next to the concept's blocks. Loaded after styles.css and only by mix.html. */

.mix { --hl: #25767C; --hl-ink: #25767C; --old-ink: #1D1D1F; }
.mix .hl { color: var(--hl-ink); }

/* ---------- Header and hero: rewize.com 1:1 ----------
   The markup keeps rewize.com's Tailwind classes; their rules are in rewize-old.css (scoped to .rwold).
   Only what rewize.com sets outside that CSS is here: its variable Geologica (100-900, the same
   files as rewize.com, so "font-thin" renders as on the live site), body colour and the map behind
   the hero. */

@font-face { font-family: "Geologica RW"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/GeologicaVar-greek.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF; }
@font-face { font-family: "Geologica RW"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/GeologicaVar-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geologica RW"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/GeologicaVar-latin.woff2") format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.rwold {
  --font-geologica: "Geologica RW";
  color: #000; background: #FFFFFF; font-size: 16px;
  -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto;
}
/* On rewize.com the body inherits line-height 1.5 from html; rewize-old.css maps body to
   .rwold with line-height: inherit, so restore the html value here (higher specificity). */
body .rwold { line-height: 1.5; }
/* Popups are kept in the DOM and toggled with [hidden]; utilities like .block must not reopen them. */
.rwold [hidden] { display: none !important; }

/* Results sit under the hero in this version. */
.mix .results { padding-top: 72px; }

/* ---------- Concept blocks, tuned for this page ---------- */

.mix .best { padding: 96px 0 72px; }
.mix .best h2 { color: #14292A; }
/* The owners panel sits inside the content width here, as in the template. */
.mix .wrap-panel { max-width: 1240px; margin: 48px auto 0; }
.mix .about { padding: 120px 0 96px; }

/* The hero and the footer share their side edges: rewize.com pads its hero with px-2, sm:px-6, lg:px-10.
   The blocks between them keep the concept's widths. */
.mix { --edge: 8px; }
@media (min-width: 640px) { .mix { --edge: 24px; } }
@media (min-width: 1024px) { .mix { --edge: 40px; } }
.mix .frame--footer { max-width: none; padding-left: var(--edge); padding-right: var(--edge); }

/* Featured listings: every photo in the first card's proportion. */
.mix .best .card:nth-child(n) .card__media { aspect-ratio: 4 / 3.3; }

/* ---------- Hero and search: the concept's design (Version A) with rewize.com's copy ---------- */

/* Same side edges as every block. No tabs are cut into it here, so it needs less room on top. */
.mix .hero { margin: 0 var(--edge); padding: 64px 24px 104px; min-height: calc(100svh - 96px); }
.mix .hero h1 { font-size: clamp(38px, 5.6vw, 84px); line-height: 1.02; text-wrap: balance; }
.mix .hero__lead { max-width: 560px; }
.mix .modes span { white-space: nowrap; }
.mix .modes label[hidden] { display: none; }   /* the AI tab while the AI search is off (RWSearch.AI_SEARCH) */
.mix .search__bar[hidden] { display: none; }
.mix .field select:disabled { opacity: 0.45; cursor: not-allowed; }
/* The sentence bar: one wide field and the button. */
.mix .search__bar--ai { grid-template-columns: 1fr auto; }
.mix .search__bar--ai .field { border-right: 0; }
.mix .search__bar--ai .btn--search { grid-column: auto; }

.mix .search__hint {
  margin: 0; padding: 10px 16px; border-radius: 14px; font-size: 14px; color: #FFFFFF;
  background: rgba(9, 32, 34, 0.72); backdrop-filter: blur(10px);
}
.mix .search__hint[hidden] { display: none; }

/* What the AI search understood, examples and the demo notice, on dark glass under the bar. */
.mix .ai-panel {
  width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; border-radius: 22px; text-align: left;
  background: rgba(9, 32, 34, 0.6); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}
.mix .ai-panel[hidden] { display: none; }
.mix .ai-panel__read { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.mix .ai-panel__read:empty { display: none; }
.mix .ai-panel__k { font-weight: 500; }
.mix .ai-panel__tag { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #FFFFFF; font-weight: 500; }
.mix .ai-panel__n { margin-left: 4px; font-weight: 600; color: #25767C; }
.mix .ai-panel__hint { color: rgba(255, 255, 255, 0.75); }
.mix .ai-panel__examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.mix .ai-panel__examples button {
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent;
  font-size: 12px; color: #FFFFFF; cursor: pointer; transition: background .2s ease;
}
.mix .ai-panel__examples button:hover { background: rgba(255, 255, 255, 0.14); }
.mix .ai-panel__note { margin: 0; font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
/* The area field's panel (mix.js renderPlacePanel): the AI panel's glass, its label and round buttons. Each
   button: the name, what it is (muted) and how many listings (the light green, as on dark panels). */
.mix #rw-filters { position: relative; }
.mix .place-panel { position: absolute; left: 0; right: 0; z-index: 30; max-height: min(320px, 50vh); overflow: auto; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.5); }
.mix .place-panel__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.mix .place-pill {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; font: inherit; font-size: 13px; color: #FFFFFF;
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.mix .place-pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mix .place-pill em { flex: none; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.mix .place-pill b { flex: none; font-size: 12px; font-weight: 600; color: #39ABB4; }
.mix .place-pill:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }
.mix .place-pill:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.mix .ai-panel__note b {
  display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px;
  background: #FFFFFF; color: #14292A; font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
}
@media (max-width: 760px) {
  .mix .hero { padding: 48px 12px 96px; }
  .mix .search__bar--ai { grid-template-columns: 1fr; }
  .mix .search__bar--ai .btn--search { grid-column: 1 / -1; }
  .mix .modes span { padding: 9px 16px; }
}

/* ---------- Area guide ---------- */

.areas {
  position: relative; padding: 24px 24px 96px; text-align: center;
  background: url("assets/img/map-pattern.webp") center top / 1600px auto repeat-y;
}
.areas::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--page) 0%, rgba(252, 252, 252, 0.6) 20%, rgba(252, 252, 252, 0.6) 80%, var(--page) 100%);
}
.areas > * { position: relative; }
.areas__head h2 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.01em; color: var(--old-ink); }
.areas__head p { margin: 16px auto 56px; max-width: 760px; font-size: 14px; line-height: 1.6; color: #2B2B2F; font-weight: 300; }
.areas__grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 11; box-shadow: 0 14px 30px -20px rgba(20, 41, 42, 0.5); }
.area:focus-visible { outline: 3px solid var(--hl); outline-offset: 3px; }
.area img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.area:hover img { transform: scale(1.05); }
.area__name {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  padding: 6px 16px; border-radius: 999px; background: #FFFFFF; color: var(--old-ink);
  font-size: 12px; font-weight: 500; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45);
}
/* Listing count, shown on hover / focus so the cards stay close to the original. */
.area__count {
  position: absolute; left: 50%; bottom: 52px; transform: translate(-50%, 6px);
  padding: 4px 10px; border-radius: 999px; background: rgba(20, 41, 42, 0.82); color: #FFFFFF;
  font-size: 11px; white-space: nowrap; opacity: 0; transition: opacity .25s ease, transform .25s ease;
}
.area:hover .area__count, .area:focus-visible .area__count { opacity: 1; transform: translate(-50%, 0); }
.area__count:empty { display: none; }
.areas__all {
  display: inline-block; margin-top: 56px; padding: 14px 24px; border-radius: 6px;
  background: linear-gradient(124deg, #39ABB4, #25767C); color: #FFFFFF; font-size: 14px; font-weight: 500;
  transition: filter .2s ease;
}
.areas__all:hover { filter: brightness(1.08); }

/* Back to top (current rewize.com) */
.toTop {
  position: fixed; right: 24px; bottom: 84px; z-index: 45;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #25767C; color: #FFFFFF; box-shadow: 0 10px 24px -10px rgba(14, 41, 43, 0.6);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.toTop.is-on { opacity: 1; pointer-events: auto; }
.toTop svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .areas__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .mix .wrap-panel { margin-top: 24px; }
  .mix .about { padding: 72px 0 56px; }
  .areas { padding: 8px 16px 72px; }
  .areas__head p { margin-bottom: 32px; }
  .areas__grid { gap: 10px; }
  .area__name { bottom: 10px; font-size: 11px; padding: 5px 12px; }
  .toTop { right: 16px; bottom: 76px; }
}

/* ---------- Who ReWize is for (#paths): three cards, each a link ----------
   A photo under the brand's dark green (#0E292B, stronger at the bottom), white text, a glass button. Three columns,
   one under the other below 900px. */
/* Side edges as the other blocks in .wrap (none of their own: the rail, the panel and these cards line up). */
.mix .paths { padding: 24px 0 48px; }
.mix .paths.wrap { max-width: 1240px; }   /* as wide as #join and the owners panel */
.mix .paths__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.mix .paths__head h2 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; }
.mix .paths__head p { margin: 18px auto 0; max-width: 620px; font-size: 17px; line-height: 1.6; font-weight: 300; color: var(--ink-soft, #3A4148); }
.mix .paths__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mix .path {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; padding: 32px; border-radius: 28px; color: #FFFFFF; text-decoration: none;
  background: var(--panel, #0E292B); box-shadow: 0 30px 60px -36px rgba(14, 41, 43, 0.6);
}
.mix .path img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mix .path::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 41, 43, 0.4) 0%, rgba(14, 41, 43, 0.8) 42%, rgba(14, 41, 43, 0.95) 100%);
}
.mix .path__eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #39ABB4; }
.mix .path h3 { margin: 10px 0 0; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.mix .path p { margin: 12px 0 28px; min-height: 6.4em; font-size: 15px; line-height: 1.6; font-weight: 300; color: rgba(255, 255, 255, 0.86); }   /* 4 lines: the titles line up */
.mix .path__btn {
  display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(8px);
  font-size: 15px; font-weight: 500; transition: background .2s ease, color .2s ease;
}
.mix .path:hover img { transform: scale(1.04); }
.mix .path:hover .path__btn { background: #FFFFFF; color: #14292A; }
.mix .path:focus-visible { outline: 3px solid #25767C; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .mix .path img { transition: none; } .mix .path:hover img { transform: none; } }
@media (max-width: 900px) {
  .mix .paths__grid { grid-template-columns: 1fr; gap: 16px; }
  .mix .path { min-height: 340px; padding: 26px; border-radius: 24px; }
  .mix .path p { min-height: 0; }
  .mix .paths__head { margin-bottom: 32px; }
  .mix .paths__head p { font-size: 16px; }
  .mix .paths { padding-bottom: 40px; }
}

/* ---------- What an account gives (#join on the homepage, #pp-joinb on the property page) ----------
   Signed out only on the property page; on the homepage a signed-in visitor gets a link to the account instead.
   A light brand tint, the copy and its buttons on the left, four benefits in a 2×2 grid of white tiles. */
.joinb { padding: 48px 0; }
/* On the homepage as wide as the owners panel under it (.wrap-panel, 1240px), not the 1180px of .wrap; #paths too. */
.mix .joinb.wrap { max-width: 1240px; }
.joinb__box {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
  padding: 56px; border-radius: 32px; background: color-mix(in srgb, var(--accent) 7%, var(--surface, #FFFFFF));
}
.joinb__eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); }
.joinb h2 { margin: 0; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.joinb__lead { margin: 18px 0 0; max-width: 440px; font-size: 16px; line-height: 1.6; font-weight: 300; color: var(--ink-soft); }
.joinb__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.joinb__acts[hidden] { display: none; }
.joinb__acts .btn { height: 52px; padding: 0 28px; font-size: 16px; font-weight: 600; }
.joinb__in { padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.joinb__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.joinb__list li { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 22px; background: var(--surface, #FFFFFF); box-shadow: 0 18px 40px -32px rgba(14, 41, 43, 0.45); }
.joinb__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: #FFFFFF; }
.joinb__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.joinb__list b { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.joinb__list span:not(.joinb__icon) { font-size: 14px; line-height: 1.55; font-weight: 300; color: var(--ink-soft); }
/* Inside the property page's column: one column of copy over the tiles. */
.joinb--compact { padding: 0; }
.joinb--compact .joinb__box { grid-template-columns: 1fr; gap: 28px; padding: 36px; border-radius: 28px; }
.joinb--compact h2 { font-size: clamp(26px, 2.6vw, 34px); }
@media (max-width: 1080px) {
  .joinb__box { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
}
@media (max-width: 760px) {
  .joinb { padding: 24px 0 40px; }
  .joinb__box, .joinb--compact .joinb__box { padding: 28px 20px; border-radius: 24px; }
  .joinb__list { grid-template-columns: 1fr; gap: 10px; }
  .joinb__list li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 18px; border-radius: 18px; }
  .joinb__icon { width: 40px; height: 40px; margin: 0; }
  .joinb__list b { flex: 1; min-width: 0; font-size: 16px; }
  .joinb__list span:not(.joinb__icon) { flex-basis: 100%; }
  .joinb__acts .btn { flex: 1 1 100%; justify-content: center; }
  .joinb__in { margin: 0 auto; }
}


/* ---------- Popular searches (#searches): the staggered strip, scrolling sideways ----------
   The strip's tiles (photo, a dark fade at the bottom, the name and "N ακίνητα" in white; the dark "Νέες καταχωρήσεις"
   tile) in a row that scrolls (snap; arrows on desktop, swipe on phones), as rewize.com's category carousel does.
   Heights and offsets repeat every five tiles; the row runs on to both edges of the screen, its first tile in line
   with the column. */
.mix .searches { padding: 24px 0 0; --bleed: max(0px, calc((100vw - 1240px) / 2 - 16px)); }
.mix .searches.wrap { max-width: 1240px; }   /* as wide as #paths, #join and the owners panel */
.mix .searches__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.mix .searches__head h2 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: #14292A; }
.mix .searches__head p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; font-weight: 300; color: var(--ink-soft, #2C484A); }
.mix .strip--search {
  display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; padding: 0 var(--bleed) 120px; margin: 0 calc(-1 * var(--bleed)) -40px; scroll-padding-left: var(--bleed);
}
.mix .strip--search::-webkit-scrollbar { display: none; }
.mix .strip--search .tile { flex: 0 0 auto; width: 234px; scroll-snap-align: start; }
.mix .strip--search .tile:nth-child(5n+1) { height: 380px; margin-top: 0; }
.mix .strip--search .tile:nth-child(5n+2) { height: 320px; margin-top: 60px; width: 210px; }
.mix .strip--search .tile:nth-child(5n+3) { height: 300px; margin-top: 110px; width: 200px; }
.mix .strip--search .tile:nth-child(5n+4) { height: 360px; margin-top: 20px; }
.mix .strip--search .tile:nth-child(5n+5) { height: 330px; margin-top: 80px; width: 210px; }
.tile--search::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 41, 43, 0) 45%, rgba(14, 41, 43, 0.82) 100%);
}
.tile__search { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; gap: 4px; color: #FFFFFF; }
.tile__search b { font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.tile__search small { min-height: 1.4em; font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.tile--search:focus-visible { outline: 3px solid #25767C; outline-offset: 4px; }
.mix .strip--search .tile:nth-child(n) { display: block; }   /* the plain strip hides tiles on smaller screens */
.mix .strip--search .tile--feature:nth-child(n) { display: flex; }
.mix .strip--search .tile--feature h3 { margin-top: 44px; }   /* under the arrow: "καταχωρήσεις" is too long to sit beside it */
/* Desktop (a mouse or trackpad, ≥1024px): scrolling down moves the row sideways (mix.js, pinSearches). The section
   gets the height of that sideways distance; .searches__pin stays on screen meanwhile, the row follows the page. */
.mix .searches.is-pinned .searches__pin { position: sticky; top: var(--pin-top, 96px); }
.mix .searches.is-pinned .strip--search { overflow: hidden; scroll-snap-type: none; }
@media (max-width: 760px) {
  .mix .searches__head { margin-bottom: 20px; }
  .mix .searches__head .best__nav { display: none; }   /* swipe */
  .mix .searches__head p { font-size: 16px; }
  .mix .strip--search { gap: 10px; padding: 0 10px 72px 0; margin-right: -10px; }
  .mix .strip--search .tile:nth-child(n) { width: 64vw; height: 260px; margin-top: 0; }
  .mix .strip--search .tile:nth-child(even) { margin-top: 36px; }
  .tile__search { left: 14px; right: 14px; bottom: 14px; }
  .tile__search b { font-size: 17px; }
}
