/* FasilKiray public marketplace — full-page Fasil Ghebbi photography treatment.
   Kept isolated to index.html; role workspaces retain their own dashboards. */
html:has(body.public-marketplace-page) {
  min-height: 100%;
  background: #102a22;
}
body.public-marketplace-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: transparent !important;
  color: #f7faf7;
}
.marketplace-castle-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #17382d;
}
.marketplace-castle-backdrop > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  filter: saturate(.86) contrast(1.04) brightness(.84);
  transform: scale(1.015);
  animation: bfCastleAtmosphere 28s ease-in-out infinite alternate;
}
.marketplace-castle-shade {
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(180deg, rgba(7, 27, 21, .52) 0%, rgba(9, 31, 24, .42) 24%, rgba(10, 34, 26, .61) 62%, rgba(8, 27, 21, .72) 100%),
    linear-gradient(90deg, rgba(8, 28, 22, .34) 0%, rgba(8, 28, 22, .10) 55%, rgba(8, 28, 22, .25) 100%);
}
.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1680px;
  min-height: 100vh;
  overflow: clip;
  background: transparent !important;
  box-shadow: none !important;
}
/* A quiet glass navigation bar floats above the continuous photograph. */
.public-marketplace-page .topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(250, 252, 249, .91) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .48) !important;
  box-shadow: 0 8px 28px rgba(5, 24, 17, .12) !important;
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}
/* Hero copy is now placed directly on the full-page Fasil Ghebbi photograph. */
.public-marketplace-page .hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-height: clamp(570px, 78vh, 790px);
  padding: clamp(76px, 10vh, 126px) clamp(22px, 7vw, 112px) 82px;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  isolation: auto;
}
.public-marketplace-page .hero::before,
.public-marketplace-page .hero::after { display: none !important; content: none !important; }
.public-marketplace-page .hero-copy {
  z-index: 2;
  width: min(820px, 100%);
  max-width: 820px;
  padding: 0;
}
.public-marketplace-page .hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f2dfbd;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .19em;
  text-shadow: 0 2px 15px rgba(0,0,0,.35);
}
.public-marketplace-page .hero h1 {
  max-width: 850px;
  margin: 21px 0 18px;
  color: #fff;
  font-size: clamp(52px, 7.1vw, 96px);
  line-height: .99;
  letter-spacing: -.065em;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0,0,0,.33);
}
.public-marketplace-page .hero h1 em {
  color: #f0c88f;
  font-style: normal;
  text-shadow: 0 3px 22px rgba(0,0,0,.3);
}
.public-marketplace-page .hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: rgba(250, 253, 250, .94);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.85;
  text-shadow: 0 2px 16px rgba(0,0,0,.32);
}
.public-marketplace-page .hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin-top: 28px;
  color: rgba(250, 253, 250, .94);
  font-size: 13px;
  font-weight: 750;
  text-shadow: 0 2px 12px rgba(0,0,0,.32);
}
.public-marketplace-page .hero-trust .bf-icon { color: #f0c88f; }
/* Search is a bright, tactile panel anchored in front of the photo. */
.public-marketplace-page .hero .search-panel {
  position: relative;
  inset: auto;
  z-index: 4;
  display: grid;
  width: min(1190px, 100%);
  max-width: 1190px;
  margin: clamp(34px, 4.5vw, 56px) 0 0 !important;
  padding: 12px;
  grid-template-columns: minmax(220px, 1.35fr) minmax(160px, .9fr) minmax(160px, .9fr) auto;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 23px;
  background: rgba(252, 254, 251, .96);
  color: #21392d;
  box-shadow: 0 25px 72px rgba(3, 20, 13, .34), 0 3px 12px rgba(3,20,13,.13);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}
.public-marketplace-page .search-field { min-height: 66px; border-right-color: #e7eee7; }
.public-marketplace-page .search-button { min-height: 56px; border-radius: 15px; }
/* The content sections are translucent glass panels so the castle remains
   visibly present behind the full length of the marketplace. */
.public-marketplace-page .content-section,
.public-marketplace-page .how-section {
  width: calc(100% - clamp(28px, 6vw, 96px));
  max-width: 1500px;
  margin: 30px auto;
  padding: clamp(34px, 5vw, 70px) clamp(18px, 5vw, 76px);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 30px;
  background: rgba(249, 252, 248, .91) !important;
  box-shadow: 0 24px 70px rgba(5, 24, 17, .16), inset 0 1px 0 rgba(255,255,255,.68);
  backdrop-filter: blur(17px) saturate(128%);
  -webkit-backdrop-filter: blur(17px) saturate(128%);
}
.public-marketplace-page .content-section { padding-top: clamp(38px, 5vw, 72px); }
.public-marketplace-page .how-section { padding-top: clamp(35px, 4vw, 58px); padding-bottom: clamp(38px, 5vw, 68px); }
.public-marketplace-page .section-heading .eyebrow { color: #648270; }
.public-marketplace-page .property-card,
.public-marketplace-page .steps article,
.public-marketplace-page .browse-toolbar,
.public-marketplace-page .advanced-filter-row {
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 30px rgba(24, 54, 38, .07);
}
.public-marketplace-page .property-card { border-color: rgba(217,228,218,.94); }
.public-marketplace-page .owner-cta {
  position: relative;
  width: calc(100% - clamp(28px, 6vw, 96px));
  max-width: 1500px;
  margin: 30px auto;
  padding: clamp(28px, 4.2vw, 48px) clamp(24px, 5vw, 70px);
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 28px;
  background: rgba(12, 55, 40, .91) !important;
  box-shadow: 0 24px 65px rgba(3, 23, 15, .24);
  backdrop-filter: blur(16px);
}
.public-marketplace-page .footer {
  width: calc(100% - clamp(28px, 6vw, 96px));
  max-width: 1500px;
  margin: 30px auto 0;
  padding: 28px clamp(20px, 5vw, 72px) 42px;
  border: 1px solid rgba(255,255,255,.48);
  border-bottom: 0;
  border-radius: 25px 25px 0 0;
  background: rgba(249, 252, 248, .92);
  box-shadow: 0 -8px 35px rgba(5, 24, 17, .10);
  backdrop-filter: blur(18px);
}
.public-marketplace-page .mobile-nav {
  background: rgba(249, 252, 248, .94) !important;
  border-top: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 -8px 30px rgba(4, 22, 15, .18);
  backdrop-filter: blur(20px) saturate(140%);
}
/* Dialogs stay opaque enough for forms and secure authentication. */
.public-marketplace-page dialog.modal { background: #fbfdfb; color: #20382d; }
.public-marketplace-page .modal-heading h2 { color: #183d30; }
/* Dark theme keeps the background dramatic and uses deep translucent panels. */
html[data-theme="dark"] body.public-marketplace-page .marketplace-castle-backdrop > img {
  filter: saturate(.72) contrast(1.05) brightness(.58);
}
html[data-theme="dark"] body.public-marketplace-page .marketplace-castle-shade {
  background: linear-gradient(180deg, rgba(3,13,10,.62), rgba(4,18,13,.67) 55%, rgba(3,13,10,.78));
}
html[data-theme="dark"] body.public-marketplace-page .content-section,
html[data-theme="dark"] body.public-marketplace-page .how-section,
html[data-theme="dark"] body.public-marketplace-page .footer {
  border-color: rgba(164,198,174,.16);
  background: rgba(17, 32, 24, .91) !important;
  color: #eef6ef;
}
html[data-theme="dark"] body.public-marketplace-page .section-heading h2,
html[data-theme="dark"] body.public-marketplace-page .steps h3 { color: #f0f6f1; }
html[data-theme="dark"] body.public-marketplace-page .section-heading p,
html[data-theme="dark"] body.public-marketplace-page .steps p { color: #b8c9bd; }
html[data-theme="dark"] body.public-marketplace-page .property-card,
html[data-theme="dark"] body.public-marketplace-page .steps article,
html[data-theme="dark"] body.public-marketplace-page .browse-toolbar,
html[data-theme="dark"] body.public-marketplace-page .advanced-filter-row {
  background: rgba(27, 43, 33, .98);
  border-color: #344c3b;
  color: #edf5ee;
}
html[data-theme="dark"] body.public-marketplace-page .footer { color: #c1d0c5; }
html[data-theme="dark"] body.public-marketplace-page .brand { color: #e9f3ea; }
/* Tablet and phone: retain the entire-page image without compromising readability. */
@media (max-width: 900px) {
  .public-marketplace-page .hero {
    min-height: 680px;
    padding: 85px 28px 76px;
  }
  .public-marketplace-page .hero .search-panel {
    grid-template-columns: repeat(2, minmax(0,1fr));
    width: 100%;
  }
  .public-marketplace-page .search-button { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .marketplace-castle-backdrop > img { object-position: 55% center; }
  .marketplace-castle-shade {
    background: linear-gradient(180deg, rgba(7,27,21,.60), rgba(8,28,22,.57) 38%, rgba(8,28,22,.74));
  }
  .public-marketplace-page .topbar { min-height: 66px; }
  .public-marketplace-page .hero {
    min-height: 710px;
    justify-content: flex-start;
    padding: 76px 18px 65px;
  }
  .public-marketplace-page .hero h1 {
    font-size: clamp(43px, 11.5vw, 61px);
    line-height: 1.04;
  }
  .public-marketplace-page .hero-copy > p { font-size: 14px; line-height: 1.75; }
  .public-marketplace-page .hero-trust { gap: 10px 15px; font-size: 11px; }
  .public-marketplace-page .hero .search-panel {
    grid-template-columns: minmax(0,1fr);
    margin-top: 32px !important;
    padding: 9px;
    border-radius: 19px;
  }
  .public-marketplace-page .search-field { min-height: 55px; }
  .public-marketplace-page .content-section,
  .public-marketplace-page .how-section {
    width: calc(100% - 20px);
    margin: 14px auto;
    padding: 30px 14px 34px;
    border-radius: 22px;
    background: rgba(249,252,248,.94) !important;
  }
  .public-marketplace-page .owner-cta,
  .public-marketplace-page .footer {
    width: calc(100% - 20px);
    margin: 14px auto;
    border-radius: 22px;
  }
  .public-marketplace-page .footer { padding: 22px 16px 32px; }
  html[data-theme="dark"] body.public-marketplace-page .content-section,
  html[data-theme="dark"] body.public-marketplace-page .how-section,
  html[data-theme="dark"] body.public-marketplace-page .footer { background: rgba(17,32,24,.95) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .marketplace-castle-backdrop > img { animation: none !important; transform: none !important; }
}
@keyframes bfCastleAtmosphere {
  from { transform: scale(1.015) translate3d(0,0,0); }
  to { transform: scale(1.07) translate3d(-.5%, -.3%, 0); }
}
