/* Illustrated courtyard components; page composition lives in landing.css. */
.souk-courtyard {
  --stall-accent: #4a6b53;
  position: relative;
  border: 1px solid #d5ccb9;
  border-radius: 18px;
  background: #f1ecdf;
  box-shadow: 0 20px 55px -40px #61553d66;
  isolation: isolate;
}
.souk-courtyard[data-category="meat"] {
  --stall-accent: #995b45;
}
.souk-courtyard[data-category="poultry"] {
  --stall-accent: #8a6a2b;
}
.courtyard-topline,
.courtyard-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 25px;
  color: #625e4b;
  font-size: 9px;
  letter-spacing: 1.4px;
  line-height: 1.5;
}
.courtyard-topline {
  border-bottom: 1px solid #ded5c2;
}
.courtyard-topline > span:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 500;
}
.courtyard-topline [lang="ar"] {
  font-size: 16px;
  letter-spacing: 0;
  color: #4a6b53;
}
.courtyard-bottomline {
  border-top: 1px solid #ded5c2;
  letter-spacing: 0;
  padding-block: 13px;
  min-height: 45px;
}
.courtyard-bottomline > span:last-child {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #736b58;
}
.courtyard-scene {
  position: relative;
  height: 650px;
  isolation: isolate;
  overflow: hidden;
  touch-action: pan-y;
  border-radius: 0;
}
.courtyard-ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}
.courtyard-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.courtyard-route path {
  fill: none;
  stroke: var(--stall-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 3 8;
  opacity: 0.5;
}
.courtyard-stall {
  position: absolute;
  width: 23%;
  max-width: 215px;
  margin: 0;
  padding: 0 8px 10px;
  border: 0;
  background: transparent;
  z-index: 3;
  border-radius: 16px;
  touch-action: manipulation;
  transition: filter 0.25s;
}
.courtyard-stall--left-top {
  left: 4%;
  top: 7%;
}
.courtyard-stall--left-bottom {
  left: 4%;
  bottom: 9%;
}
.courtyard-stall--right-top {
  right: 4%;
  top: 7%;
}
.courtyard-stall--right-bottom {
  right: 4%;
  bottom: 9%;
}
.courtyard-stall__art {
  position: relative;
  display: block;
  transform-origin: 50% 90%;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.4s;
  filter: saturate(0.85);
  pointer-events: none;
}
.courtyard-stall__halo {
  position: absolute;
  left: 3%;
  right: 3%;
  height: 20%;
  bottom: 17%;
  border-radius: 50%;
  background: var(--stall-accent);
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.6);
  transition:
    opacity 0.35s,
    transform 0.45s;
}
.courtyard-stall__label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 45px;
  max-width: 170px;
  margin: -2px auto 0;
  padding: 5px 15px;
  border: 1px solid #c6b99a;
  border-radius: 6px;
  background: #f9f5e9;
  box-shadow: 0 3px 0 #c3b39455;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}
.courtyard-stall__label strong {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
}
.courtyard-stall__label [lang="ar"] {
  font-size: 12px;
  line-height: 1.5;
  color: #746d5b;
}
.courtyard-stall:hover .courtyard-stall__art,
.courtyard-stall:focus-visible .courtyard-stall__art {
  transform: translateY(-5px) rotate(-1deg);
  filter: saturate(1.05);
}
.courtyard-stall.is-active .courtyard-stall__art {
  transform: translateY(-4px) scale(1.035);
  filter: saturate(1.08) drop-shadow(0 5px 5px #443d2e18);
}
.courtyard-stall.is-active .courtyard-stall__halo {
  opacity: 0.18;
  transform: scale(1);
}
.courtyard-stall.is-active .courtyard-stall__label {
  background: var(--stall-accent);
  border-color: var(--stall-accent);
  color: #fffaf0;
  box-shadow: 0 3px 0 #32452c22;
}
.courtyard-stall.is-active .courtyard-stall__label [lang="ar"] {
  color: #fffaf0;
}
.courtyard-stall:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.courtyard-centre {
  position: absolute;
  inset: 17% 28% 14%;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 4;
}
.courtyard-idle {
  text-align: center;
  pointer-events: auto;
  max-width: 100%;
  padding: 20px 0;
}
.courtyard-logo {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 21px;
  border-radius: 24px;
  box-shadow: 0 12px 18px -12px #384c3699;
}
.courtyard-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.courtyard-scan {
  position: absolute;
  inset: -10px;
  border: 1px solid #83957566;
  border-radius: 32px;
  pointer-events: none;
}
.courtyard-scan:before,
.courtyard-scan:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #637c59;
  border-right: 0;
  border-bottom: 0;
  top: -1px;
  left: -1px;
  border-radius: 7px 0 0;
}
.courtyard-scan:after {
  inset: auto -1px -1px auto;
  transform: rotate(180deg);
}
.courtyard-idle .eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #586d4e;
  margin: 0 0 12px;
}
.courtyard-idle h3 {
  font: 400 clamp(23px, 2.4vw, 34px) / 1.15 var(--serif);
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}
.courtyard-idle__hint {
  font-size: 11px;
  color: #6c6553;
  line-height: 1.8;
  margin: 0;
}
.courtyard-idle__compass {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #647b54;
  font-size: 24px;
  margin-top: 20px;
}
.courtyard-idle__compass span {
  font-size: 7px;
  letter-spacing: 1.2px;
}
.courtyard-stock {
  width: 100%;
  pointer-events: auto;
  position: relative;
  max-width: 460px;
  text-align: center;
}
.courtyard-stock[hidden],
.courtyard-idle[hidden] {
  display: none;
}
.courtyard-stock__heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: var(--stall-accent);
}
.courtyard-stock__heading h3 {
  font: 400 29px/1.2 var(--serif);
  letter-spacing: -0.7px;
  margin: 5px 0 3px;
}
.courtyard-stock__heading > p {
  margin: 0;
  color: #706751;
  font-size: 10px;
}
.courtyard-stock__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 16px 0 14px;
  position: relative;
}
.courtyard-product {
  position: relative;
  min-width: 0;
  transform-origin: center bottom;
  isolation: isolate;
}
.courtyard-product__name {
  font-size: 12px;
  line-height: 1.4;
  margin: 7px 0 1px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.courtyard-product__arabic {
  font-size: 12px;
  line-height: 1.5;
  color: #6c6656;
  display: block;
}
.courtyard-product__price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 5px;
  margin: 3px 0 0;
  line-height: 1.25;
  white-space: nowrap;
}
.courtyard-product__price strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.courtyard-product__price span {
  font-size: 9px;
  color: #665e4c;
}
.stock-crate {
  position: relative;
  height: 87px;
  max-width: 165px;
  margin: auto;
  isolation: isolate;
}
.stock-crate__shadow {
  position: absolute;
  left: 0;
  right: -4px;
  bottom: -4px;
  height: 16px;
  border-radius: 50%;
  background: #6a563e25;
  filter: blur(4px);
  z-index: -1;
}
.stock-crate__back {
  position: absolute;
  inset: 25% 8% 3%;
  border: 3px solid #9a7e54;
  border-radius: 3px;
  background: linear-gradient(#af9468, #8b7047);
}
.stock-crate__produce {
  position: absolute;
  inset: 8% 10% 12%;
  overflow: hidden;
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
  z-index: 1;
}
.stock-crate__front {
  position: absolute;
  inset: 53% 3% 0;
  z-index: 2;
  border: 2px solid #aa8959;
  border-radius: 2px;
  background: repeating-linear-gradient(
    0deg,
    #c2a377 0px,
    #c2a377 10px,
    #a88a60 11px,
    #a88a60 12px
  );
  box-shadow: 0 3px 3px #5e482e15;
  display: grid;
  place-items: center;
}
.stock-crate__front:before,
.stock-crate__front:after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 7px;
  background: linear-gradient(90deg, #b4976b, #dac095, #bda175);
  border-inline: 1px solid #a88a5b;
}
.stock-crate__front:before {
  left: 4px;
}
.stock-crate__front:after {
  right: 4px;
}
.courtyard-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #c9bea6;
  border-radius: 20px;
  background: #f6f0e2;
  color: #595f49;
  font-size: 10px;
  line-height: 1.5;
  min-height: 32px;
}
.courtyard-reset:hover {
  background: #e7e8d7;
}
.courtyard-idle__compass svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.3;
  fill: none;
}
.courtyard-bottomline > span:last-child {
  color: #5c5848;
  font-size: 8px;
  letter-spacing: 1px;
}
.courtyard-reset svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
@media (min-width: 1100px) {
  .courtyard-stall--left-top {
    left: 5%;
    top: 4%;
  }
  .courtyard-stall--left-bottom {
    left: 4%;
    bottom: 5%;
  }
  .courtyard-stall--right-top {
    right: 5%;
    top: 4%;
  }
  .courtyard-stall--right-bottom {
    right: 4%;
    bottom: 5%;
  }
}
@media (max-width: 1050px) {
  .courtyard-scene {
    height: 620px;
  }
  .courtyard-stall {
    width: 24%;
    padding-inline: 0;
  }
  .courtyard-stall--left-top,
  .courtyard-stall--left-bottom {
    left: 3%;
  }
  .courtyard-stall--right-top,
  .courtyard-stall--right-bottom {
    right: 3%;
  }
  .courtyard-centre {
    inset: 17% 28% 14%;
  }
  .courtyard-stall__label {
    max-width: 145px;
  }
  .courtyard-stock__grid {
    column-gap: 8px;
  }
  .courtyard-product__name {
    font-size: 11px;
  }
  .stock-crate {
    height: 77px;
  }
  .courtyard-product__price strong {
    font-size: 21px;
  }
  .courtyard-stock__heading h3 {
    font-size: 27px;
  }
}
@media (max-width: 760px) {
  .souk-courtyard {
    border-radius: 12px;
  }
  .courtyard-topline,
  .courtyard-bottomline {
    padding-inline: 13px;
    gap: 7px;
  }
  .courtyard-topline {
    padding-block: 10px;
    letter-spacing: 0.8px;
    font-size: 7px;
  }
  .courtyard-topline .live-dot {
    width: 4px;
    height: 4px;
  }
  .courtyard-topline [lang="ar"] {
    font-size: 13px;
  }
  .courtyard-bottomline {
    font-size: 9px;
  }
  .courtyard-bottomline > span:last-child {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .courtyard-scene {
    height: 570px;
  }
  .courtyard-stall {
    width: 25%;
    padding: 0 0 7px;
  }
  .courtyard-stall--left-top {
    left: 2%;
    top: 11%;
  }
  .courtyard-stall--left-bottom {
    left: 2%;
    bottom: 17%;
  }
  .courtyard-stall--right-top {
    right: 2%;
    top: 11%;
  }
  .courtyard-stall--right-bottom {
    right: 2%;
    bottom: 17%;
  }
  .courtyard-stall__label {
    padding: 6px 2px;
    min-height: 44px;
    max-width: none;
    margin-top: 3px;
  }
  .courtyard-stall__label strong {
    font-size: clamp(9px, 1.75vw, 12px);
    white-space: normal;
  }
  .courtyard-stall__label [lang="ar"] {
    font-size: 11px;
  }
  .courtyard-centre {
    inset: 17% 27.5% 15%;
  }
  .courtyard-logo {
    width: 83px;
    height: 83px;
    border-radius: 18px;
    margin-bottom: 24px;
  }
  .courtyard-idle .eyebrow {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .courtyard-idle h3 {
    font-size: 25px;
    letter-spacing: -0.7px;
  }
  .courtyard-idle__hint {
    font-size: 10px;
    line-height: 1.7;
    max-width: 170px;
    margin: auto;
  }
  .courtyard-idle__hint br {
    display: none;
  }
  .courtyard-idle__compass {
    gap: 8px;
    font-size: 19px;
  }
  .courtyard-idle__compass span {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
  .courtyard-stock__heading .eyebrow {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .courtyard-stock__heading h3 {
    font-size: 23px;
    line-height: 1.15;
    margin-top: 7px;
  }
  .courtyard-stock__heading > p {
    font-size: 9px;
    margin-top: 6px;
  }
  .courtyard-stock__grid {
    gap: 16px 7px;
    margin: 18px 0;
  }
  .stock-crate {
    height: 63px;
  }
  .stock-crate__back {
    border-width: 2px;
    inset-inline: 5%;
  }
  .stock-crate__produce {
    inset-inline: 7%;
    inset-block-start: 14%;
  }
  .stock-crate__front {
    border-width: 1px;
    inset-inline: 1%;
    inset-block-start: 57%;
  }
  .stock-crate__front:before,
  .stock-crate__front:after {
    width: 5px;
    top: -1px;
    bottom: -1px;
  }
  .stock-crate__front:before {
    left: 2px;
  }
  .stock-crate__front:after {
    right: 2px;
  }
  .courtyard-product__name {
    font-size: 10px;
    line-height: 1.35;
    margin-top: 8px;
    min-height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .courtyard-product__arabic {
    font-size: 11px;
  }
  .courtyard-product__price {
    flex-direction: column;
    gap: 1px;
    align-items: center;
    margin-top: 4px;
  }
  .courtyard-product__price strong {
    font-size: 20px;
    letter-spacing: -0.6px;
  }
  .courtyard-product__price span {
    font-size: 9px;
  }
  .courtyard-reset {
    font-size: 9px;
    padding: 7px 8px;
    min-height: 34px;
    gap: 4px;
    white-space: nowrap;
  }
}
@media (max-width: 370px) {
  .courtyard-scene {
    height: 590px;
  }
  .courtyard-stock__heading h3 {
    font-size: 21px;
  }
  .courtyard-idle h3 {
    font-size: 22px;
  }
  .courtyard-product__price strong {
    font-size: 18px;
  }
  .stock-crate {
    height: 55px;
  }
  .courtyard-stall__label strong {
    font-size: 9px;
  }
  .courtyard-stall__label [lang="ar"] {
    font-size: 10px;
  }
  .courtyard-logo {
    width: 72px;
    height: 72px;
  }
  .courtyard-bottomline > span:last-child {
    display: none;
  }
  .courtyard-topline {
    font-size: 6px;
    letter-spacing: 0.6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .souk-courtyard *,
  .souk-courtyard *:before,
  .souk-courtyard *:after {
    transition: none !important;
    animation: none !important;
  }
  .courtyard-stall:hover .courtyard-stall__art {
    transform: none;
  }
}
@media (max-width: 760px) {
  .courtyard-stock__grid {
    gap: 12px 7px;
    margin: 12px 0;
  }
  .stock-crate {
    height: 52px;
  }
  .courtyard-product__name {
    margin-top: 4px;
    min-height: 26px;
    font-size: 10px;
  }
  .courtyard-product__arabic {
    font-size: 10px;
    line-height: 1.4;
  }
  .courtyard-product__price {
    margin-top: 2px;
  }
  .courtyard-product__price strong {
    font-size: 18px;
  }
  .courtyard-product__price span {
    font-size: 8px;
  }
  .courtyard-reset {
    min-height: 34px;
  }
  .courtyard-idle__compass {
    gap: 5px;
  }
  .courtyard-idle__compass svg {
    width: 14px;
    height: 14px;
  }
}
