.property-details-page {
  background: #fff;
  font-family: var(--font-ui);
}

.property-details-page svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.property-details-top {
  padding: 30px 0 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(239, 63, 63, 0.05), transparent 30%),
    linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
}

.property-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.property-breadcrumb a {
  color: var(--pf-purple);
  text-decoration: none;
  font-weight: 500;
}

.property-breadcrumb a:hover {
  color: var(--pf-red);
}

.property-breadcrumb span {
  color: var(--muted);
}

.property-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(340px, 0.68fr);
  gap: 24px;
  align-items: start;
}

.property-gallery-card,
.property-summary-card,
.property-details-panel,
.property-contact-card,
.property-contact-note {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.property-gallery-card {
  overflow: hidden;
  border-radius: 30px;
}

.property-gallery-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 10px;
  padding: 10px;
  background: #fff;
}

.property-main-image {
  position: relative;
  min-height: clamp(430px, 52vw, 650px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--pf-purple-pale);
}

.property-main-image__button {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.property-main-image img,
.property-gallery-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-main-image img {
  display: block;
  transition: transform 0.35s ease;
}

.property-main-image__button:hover img {
  transform: scale(1.025);
}

.property-main-image__placeholder {
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  color: var(--pf-purple);
  font-weight: 600;
  background:
    radial-gradient(circle at top right, rgba(239, 63, 63, 0.10), transparent 34%),
    var(--pf-purple-pale);
}

.property-gallery-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.property-gallery-side button {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--surface-soft);
  cursor: zoom-in;
}

.property-gallery-side button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.22));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.property-gallery-side button:hover::after {
  opacity: 1;
}

.property-gallery-side span {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.property-gallery-badges {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.property-gallery-badges span,
.property-photo-counter {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.property-photo-counter {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  gap: 7px;
  border: 0;
  cursor: zoom-in;
}

.property-photo-counter svg {
  width: 16px;
  height: 16px;
}

.property-photo-counter span {
  font-weight: 700;
}

.property-photo-counter small {
  font-size: 12px;
  font-weight: 400;
}

.property-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 12px;
  background: #fff;
  scrollbar-width: thin;
}

.property-thumbnails button {
  width: 92px;
  height: 68px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--surface-soft);
  cursor: pointer;
}

.property-thumbnails button.active {
  border-color: var(--pf-purple);
}

.property-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-summary-card {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 24px;
  border-radius: 30px;
}

.property-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.property-summary-actions button,
.property-summary-action-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--pf-purple);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.property-summary-actions button svg,
.property-summary-action-link svg {
  width: 15px;
  height: 15px;
}

.property-summary-actions button:hover,
.property-summary-action-link:hover,
.property-summary-actions button.is-saved {
  background: var(--pf-purple-pale);
}

.property-summary-actions button.is-saved {
  border-color: rgba(50, 36, 111, 0.22);
}

.property-summary-actions button.is-saved svg {
  fill: currentColor;
}

.property-price-block {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.property-price-block span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.property-price-block strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.property-summary-card h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.property-summary-location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
  font-weight: 400;
}

.inline-icon {
  display: inline-flex;
  color: var(--pf-purple);
}

.inline-icon svg {
  width: 16px;
  height: 16px;
}

.property-summary-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 20px;
}

.property-summary-specs div {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-soft);
  text-align: center;
}

.property-summary-spec-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--pf-purple);
  box-shadow: 0 8px 18px rgba(30, 20, 70, 0.07);
}

.property-summary-spec-icon svg {
  width: 16px;
  height: 16px;
}

.property-summary-specs strong {
  color: var(--text);
  font-size: 21px;
  line-height: 1;
  font-weight: 600;
}

.property-summary-specs small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

.property-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.property-summary-meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--pf-purple-pale);
  color: var(--pf-purple);
  font-size: 13px;
  font-weight: 500;
}

.property-summary-cta {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
}

.btn-icon svg {
  width: 17px;
  height: 17px;
}

.property-details-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.property-details-nav__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}

.property-details-nav__inner::-webkit-scrollbar {
  display: none;
}

.property-details-nav a {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}

.property-details-nav a:hover,
.property-details-nav a.active {
  color: var(--pf-purple);
  border-bottom-color: var(--pf-purple);
}

.property-content-section {
  padding: 34px 0 52px;
  background: #fff;
}

.property-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.36fr);
  gap: 24px;
  align-items: start;
}

.property-content-main {
  display: grid;
  gap: 24px;
}

.property-details-panel {
  padding: 30px;
  border-radius: 30px;
}

.property-section-head {
  margin-bottom: 22px;
}

.property-section-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.property-section-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.property-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.property-info-item {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-soft);
}

.property-info-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #fff;
  color: var(--pf-purple);
  box-shadow: 0 10px 22px rgba(30, 20, 70, 0.07);
}

.property-info-icon svg {
  width: 18px;
  height: 18px;
}

.property-info-item small {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 400;
}

.property-info-item strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.property-description {
  max-height: 190px;
  overflow: hidden;
  position: relative;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 2.05;
  font-weight: 400;
}

.property-description::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, transparent, #fff);
  pointer-events: none;
}

.property-description.is-open {
  max-height: none;
}

.property-description.is-open::after {
  display: none;
}

.property-description p {
  margin: 0;
  white-space: pre-line;
}

.property-description-toggle {
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid var(--pf-purple);
  border-radius: 14px;
  background: #fff;
  color: var(--pf-purple);
  font-weight: 600;
  cursor: pointer;
}

.property-description-toggle:hover {
  background: var(--pf-purple-pale);
}

.property-amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.property-amenity-item {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-soft);
}

.property-amenity-item span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--pf-purple);
  color: #fff;
}

.property-amenity-item span svg {
  width: 15px;
  height: 15px;
}

.property-amenity-item strong {
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
}

.property-details-empty {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 400;
}

.property-contact-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 86px);
  display: grid;
  gap: 16px;
}

.property-contact-card,
.property-contact-note {
  padding: 24px;
  border-radius: 28px;
}

.property-contact-card h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 28px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.property-contact-card p:not(.eyebrow),
.property-contact-note p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
  font-weight: 400;
}

.property-contact-card .btn {
  width: 100%;
  margin-top: 12px;
}

.property-contact-note {
  display: flex;
  gap: 12px;
  background: var(--pf-purple-pale);
}

.property-contact-note__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #fff;
  color: var(--pf-purple);
}

.property-contact-note__icon svg {
  width: 18px;
  height: 18px;
}

.property-contact-note strong {
  color: var(--pf-purple);
  font-weight: 600;
}

.property-similar-section {
  padding: 16px 0 90px;
  background:
    radial-gradient(circle at 10% 0%, rgba(50, 36, 111, 0.06), transparent 30%),
    linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
}

.property-similar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.property-similar-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 700;
}

.property-similar-head a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--pf-purple);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
}

.property-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.property-similar-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.property-similar-card__image {
  position: relative;
  height: 230px;
  display: block;
  overflow: hidden;
  background: var(--pf-purple-pale);
  text-decoration: none;
}

.property-similar-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.property-similar-card:hover .property-similar-card__image img {
  transform: scale(1.035);
}

.property-similar-card__image div {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--pf-purple);
  font-weight: 600;
}

.property-similar-card__image b {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.property-similar-card__body {
  padding: 18px;
}

.property-similar-card__body > strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.property-similar-card__body p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.property-similar-card__body p svg {
  width: 15px;
  height: 15px;
  color: var(--pf-purple);
}

.property-similar-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.property-similar-card__specs span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 500;
}

.property-similar-card__specs svg {
  width: 14px;
  height: 14px;
  color: var(--pf-purple);
}

.property-similar-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.property-similar-card__footer em {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.property-similar-card__footer a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--pf-purple-pale);
  color: var(--pf-purple);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.property-mobile-sticky-cta {
  display: none;
}

.property-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
}

.property-lightbox.is-open {
  display: block;
}

.property-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 18, 0.84);
  backdrop-filter: blur(12px);
}

.property-lightbox__dialog {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 48px));
  margin: 24px auto;
  display: grid;
  place-items: center;
}

.property-lightbox figure {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  margin: 0;
}

.property-lightbox img {
  max-width: 100%;
  max-height: calc(100% - 46px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.property-lightbox figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
}

.property-lightbox__close,
.property-lightbox__nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.property-lightbox__close {
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
}

.property-lightbox__nav {
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
}

.property-lightbox__nav--prev {
  right: 0;
}

.property-lightbox__nav--next {
  left: 0;
}

.property-lightbox__nav--next svg {
  transform: rotate(180deg);
}

.property-lightbox__close:hover,
.property-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 1180px) {
  .property-gallery-layout,
  .property-content-layout {
    grid-template-columns: 1fr;
  }

  .property-summary-card,
  .property-contact-sidebar {
    position: static;
  }

  .property-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .property-gallery-showcase {
    grid-template-columns: 1fr;
  }

  .property-gallery-side {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 92px;
  }

  .property-main-image {
    min-height: 390px;
  }
}

@media (max-width: 760px) {
  .property-details-page {
    padding-bottom: 82px;
  }

  .property-details-top {
    padding-top: 18px;
  }

  .property-breadcrumb {
    font-size: 13px;
  }

  .property-gallery-card {
    border-radius: 24px;
  }

  .property-gallery-showcase {
    padding: 8px;
  }

  .property-main-image {
    min-height: 320px;
    border-radius: 20px;
  }

  .property-gallery-side {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    grid-auto-flow: column;
    overflow-x: auto;
    grid-template-rows: 78px;
  }

  .property-gallery-side button {
    border-radius: 16px;
  }

  .property-thumbnails {
    padding: 0 10px 10px;
  }

  .property-thumbnails button {
    width: 78px;
    height: 58px;
  }

  .property-summary-card,
  .property-details-panel,
  .property-contact-card,
  .property-contact-note {
    padding: 20px;
    border-radius: 24px;
  }

  .property-summary-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-details-nav {
    top: var(--header-height);
  }

  .property-details-nav__inner {
    gap: 24px;
  }

  .property-details-nav a {
    min-height: 54px;
    font-size: 14px;
  }

  .property-info-grid,
  .property-amenities-grid,
  .property-similar-grid {
    grid-template-columns: 1fr;
  }

  .property-description {
    font-size: 16px;
  }

  .property-similar-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .property-similar-head a {
    width: 100%;
    justify-content: center;
  }

  .property-mobile-sticky-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 250;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -16px 38px rgba(30, 20, 70, 0.12);
    backdrop-filter: blur(16px);
  }

  .property-mobile-sticky-cta .btn {
    width: 100%;
    min-height: 48px;
  }

  .property-lightbox__dialog {
    width: calc(100vw - 20px);
    height: calc(100vh - 34px);
    margin: 17px auto;
  }

  .property-lightbox__close {
    top: 4px;
    left: 4px;
  }

  .property-lightbox__nav {
    width: 42px;
    height: 42px;
  }

  .property-lightbox__nav--prev {
    right: 4px;
  }

  .property-lightbox__nav--next {
    left: 4px;
  }
}

@media (max-width: 440px) {
  .property-main-image {
    min-height: 280px;
  }

  .property-summary-specs {
    grid-template-columns: 1fr;
  }

  .property-mobile-sticky-cta {
    grid-template-columns: 1fr 104px;
    padding-inline: 10px;
  }
}
/* =========================================================
   PROPERTY DETAILS GALLERY FIX V2
   إصلاح فتح الصورة المختارة + جعل الصور الجانبية مربعة
   ضع هذا آخر public/css/property-details.css
========================================================= */

.property-gallery-showcase {
  grid-template-columns: minmax(0, 1fr) 282px !important;
  align-items: start !important;
}

.property-gallery-side {
  align-self: start !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  gap: 10px !important;
}

.property-gallery-side button {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 22px !important;
}

.property-gallery-side button img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.property-gallery-side span {
  font-size: 24px !important;
  border-radius: inherit !important;
}

.property-main-image {
  min-height: clamp(430px, 50vw, 610px) !important;
}

@media (max-width: 900px) {
  .property-gallery-showcase {
    grid-template-columns: 1fr !important;
  }

  .property-gallery-side {
    grid-template-columns: repeat(4, minmax(74px, 1fr)) !important;
    grid-auto-flow: column !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }

  .property-gallery-side button {
    width: 82px !important;
    flex: 0 0 82px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 17px !important;
  }
}

@media (max-width: 760px) {
  .property-main-image {
    min-height: 320px !important;
  }

  .property-gallery-side {
    grid-template-columns: repeat(4, minmax(68px, 1fr)) !important;
  }

  .property-gallery-side button {
    width: 76px !important;
    flex-basis: 76px !important;
  }
}

@media (max-width: 440px) {
  .property-main-image {
    min-height: 280px !important;
  }

  .property-gallery-side button {
    width: 70px !important;
    flex-basis: 70px !important;
    border-radius: 15px !important;
  }
}
/* =========================================================
   PROPERTY LIGHTBOX ZOOM
   زوم للصورة المكبرة بدون تغيير مصدر الصورة
   ضع هذا آخر public/css/property-details.css
========================================================= */

body.property-lightbox-open {
  overflow: hidden !important;
}

.property-lightbox__dialog {
  overflow: hidden !important;
}

.property-lightbox figure {
  overflow: hidden !important;
  user-select: none !important;
}

.property-lightbox img[data-lightbox-image] {
  max-width: min(100%, 1180px) !important;
  max-height: calc(100% - 58px) !important;
  object-fit: contain !important;
  transform-origin: center center !important;
  transition: transform 120ms ease !important;
  will-change: transform !important;
  cursor: zoom-in !important;
  touch-action: none !important;
}

.property-lightbox img[data-lightbox-image].is-zoomed {
  cursor: grab !important;
}

.property-lightbox img[data-lightbox-image].is-dragging {
  cursor: grabbing !important;
  transition: none !important;
}

.property-lightbox__zoom-controls {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(14px);
}

.property-lightbox__zoom-controls button,
.property-lightbox__zoom-controls span {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.property-lightbox__zoom-controls button {
  cursor: pointer;
}

.property-lightbox__zoom-controls button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.property-lightbox__zoom-controls [data-lightbox-zoom-label] {
  min-width: 58px;
  padding: 0 10px;
  font-size: 13px;
}

.property-lightbox__zoom-controls [data-lightbox-zoom-reset] {
  min-width: 64px;
  padding: 0 12px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .property-lightbox__zoom-controls {
    top: auto;
    right: 50%;
    bottom: 10px;
    transform: translateX(50%);
    padding: 7px;
  }

  .property-lightbox__zoom-controls button,
  .property-lightbox__zoom-controls span {
    min-width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .property-lightbox__zoom-controls [data-lightbox-zoom-label] {
    min-width: 54px;
    font-size: 12px;
  }

  .property-lightbox__zoom-controls [data-lightbox-zoom-reset] {
    min-width: 58px;
    font-size: 11px;
  }

  .property-lightbox figcaption {
    margin-bottom: 54px !important;
  }
}
/* =========================================================
   PROPERTY DETAILS MAIN GALLERY CLEAN V3
   إلغاء الصور الجانبية + صورة كبيرة كاملة + أسهم تنقل
   ضع هذا آخر public/css/property-details.css
========================================================= */

.property-gallery-showcase {
  display: block !important;
  padding: 10px !important;
}

.property-gallery-side {
  display: none !important;
}

.property-main-image {
  width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 26px !important;
  background: var(--pf-purple-pale) !important;
}

.property-main-image__button {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: block !important;
}

.property-main-image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.property-main-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 14, 45, 0.48);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(20, 14, 45, 0.18);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.property-main-gallery-arrow:hover {
  background: rgba(20, 14, 45, 0.68);
  transform: translateY(-50%) scale(1.04);
}

.property-main-gallery-arrow svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.property-main-gallery-arrow--prev {
  right: 18px;
}

.property-main-gallery-arrow--prev svg {
  transform: rotate(180deg);
}

.property-main-gallery-arrow--next {
  left: 18px;
}

.property-photo-counter {
  left: 18px !important;
  bottom: 18px !important;
}

.property-gallery-badges {
  right: 18px !important;
  bottom: 18px !important;
}

.property-thumbnails {
  padding-top: 12px !important;
  justify-content: center !important;
}

.property-thumbnails button {
  width: 96px !important;
  height: 72px !important;
  border-radius: 16px !important;
}

@media (max-width: 900px) {
  .property-main-image {
    aspect-ratio: 4 / 3 !important;
  }

  .property-main-gallery-arrow {
    width: 48px;
    height: 48px;
  }

  .property-main-gallery-arrow--prev {
    right: 12px;
  }

  .property-main-gallery-arrow--next {
    left: 12px;
  }
}

@media (max-width: 760px) {
  .property-gallery-showcase {
    padding: 8px !important;
  }

  .property-main-image {
    aspect-ratio: 4 / 3 !important;
    border-radius: 20px !important;
  }

  .property-main-gallery-arrow {
    width: 42px;
    height: 42px;
  }

  .property-main-gallery-arrow svg {
    width: 20px;
    height: 20px;
  }

  .property-thumbnails {
    justify-content: flex-start !important;
  }

  .property-thumbnails button {
    width: 78px !important;
    height: 58px !important;
    border-radius: 13px !important;
  }
}

@media (max-width: 440px) {
  .property-main-image {
    aspect-ratio: 1 / 1 !important;
  }

  .property-main-gallery-arrow {
    width: 38px;
    height: 38px;
  }

  .property-main-gallery-arrow--prev {
    right: 9px;
  }

  .property-main-gallery-arrow--next {
    left: 9px;
  }
}