
/* =========================================================
   BETTERHOME DAILY LISTINGS V1.1
   Persian: Vazirmatn
   English: Poppins
========================================================= */

.bh-projects,
.bh-projects *,
.bhdl-property-shell,
.bhdl-property-shell * {
  box-sizing: border-box;
}

.bh-projects,
.bhdl-property-shell {
  --bh-project-gold: #c8a65a;
  --bh-project-light: #f0d58e;
  --bh-black: #000;
  --bh-panel: #0c0c0b;
  --bh-panel-2: #151410;
  --bh-border: rgba(200,166,90,.32);
  --bh-muted: rgba(255,255,255,.66);
}

/* =========================================================
   HOMEPAGE / SHORTCODE CARDS
   Mirrors the BetterHome reference card design
========================================================= */

.bh-projects {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
}

.bh-projects h1,
.bh-projects h2,
.bh-projects h3,
.bh-projects h4,
.bh-projects h5,
.bh-projects h6,
.bh-projects p,
.bh-projects dl,
.bh-projects dt,
.bh-projects dd,
.bh-projects a,
.bh-projects button {
  font-family: "Vazirmatn", sans-serif;
}

.bh-projects-heading {
  position: relative;
  width: min(900px, calc(100% - 48px));
  margin: 0 auto 26px;
  padding: 18px 42px;
  overflow: hidden;
  border: 1px solid rgba(201,164,92,.3);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: #fff;
  text-align: center;
}

.bh-projects-heading > span {
  display: inline-block;
  margin: 0 0 8px;
  padding: 7px 14px;
  border: 1px solid rgba(201,164,92,.48);
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  color: #d7b66f;
  direction: ltr;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 2.5px;
}

.bh-projects-heading h2 {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-shadow: 0 16px 48px rgba(0,0,0,.55);
}

.bh-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  align-items: stretch;
  gap: 20px;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.bh-project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(200,166,90,.4);
  border-radius: 26px;
  background: linear-gradient(145deg, #20201b, #0c0c0b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  transition: border-color .25s ease, transform .25s ease;
}

.bh-project-card:hover {
  border-color: var(--bh-project-light);
  transform: translateY(-4px);
}

.bh-project-picture {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #242219;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(200,166,90,.22);
  text-decoration: none !important;
}

.bh-project-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 45%);
}

.bhdl-no-image {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,.32);
  font-family: "Poppins", Arial, sans-serif;
  letter-spacing: 2px;
}

.bhdl-card-type {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  padding: 6px 11px;
  border: 1px solid rgba(240,213,142,.6);
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

.bh-project-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 20px;
  font-family: "Vazirmatn", sans-serif;
  text-align: center;
}

.bh-project-details h3 {
  margin: 0 0 8px;
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.bh-project-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 16px;
  color: rgba(255,255,255,.7);
  font-family: "Vazirmatn", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
}

.bh-project-location span {
  font-family: "Vazirmatn", sans-serif;
}

.bh-project-location svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--bh-project-gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bh-project-info {
  display: block;
  margin: auto 0 14px;
  padding: 4px 12px;
  border: 1px solid rgba(200,166,90,.3);
  border-radius: 15px;
  background: rgba(0,0,0,.24);
  font-family: "Vazirmatn", sans-serif;
  text-align: right;
}

.bh-project-info > div {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 11px 0;
}

.bh-project-info > div + div {
  border-top: 1px solid rgba(200,166,90,.13);
}

.bh-project-info dt {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-family: "Vazirmatn", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  white-space: nowrap;
}

.bh-project-info dd {
  min-width: 0;
  margin: 0;
  color: var(--bh-project-light);
  font-family: "Vazirmatn", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  text-align: left;
  overflow-wrap: anywhere;
}

.bh-projects .bh-project-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(200,166,90,.5);
  border-radius: 13px;
  background: rgba(200,166,90,.08);
  color: var(--bh-project-light) !important;
  font-family: "Vazirmatn", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: background .25s ease, color .25s ease;
}

.bh-projects .bh-project-button:visited {
  color: var(--bh-project-light) !important;
}

.bh-projects .bh-project-button > span {
  color: inherit !important;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.bh-projects .bh-project-button:hover,
.bh-projects .bh-project-button:focus,
.bh-projects .bh-project-button:active {
  background: linear-gradient(135deg, #f0d58e, #b58c42) !important;
  color: #090909 !important;
}

.bh-projects .bh-project-button:hover > span,
.bh-projects .bh-project-button:focus > span,
.bh-projects .bh-project-button:active > span {
  color: #090909 !important;
}

.bhdl-empty {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(200,166,90,.3);
  border-radius: 18px;
  background: #0c0c0b;
  color: #fff;
  text-align: center;
  font-family: "Vazirmatn", sans-serif;
}

/* =========================================================
   SINGLE PROPERTY PAGE
========================================================= */

body.bhdl-property-page {
  background: #000 !important;
}

body.bhdl-property-page #content,
body.bhdl-property-page .site-content,
body.bhdl-property-page .content-area,
body.bhdl-property-page .site-main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bhdl-property-shell {
  width: 100%;
  margin: 0;
  padding: 36px 0 70px;
  background:
    radial-gradient(circle at 20% 0%, rgba(200,166,90,.08), transparent 30%),
    #000;
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
}

.bhdl-property-wrap {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.bhdl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.48);
  font-size: 12px;
}

.bhdl-breadcrumb a {
  color: var(--bh-project-light);
  text-decoration: none;
  font-family: "Poppins", Arial, sans-serif;
}

.bhdl-property-hero {
  margin: 0 0 18px;
}

.bhdl-property-hero-image {
  position: relative;
  min-height: clamp(420px, 58vw, 720px);
  overflow: hidden;
  border: 1px solid rgba(200,166,90,.42);
  border-radius: 32px;
  background: #151410 center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.bhdl-property-hero-image > span:not(.bhdl-property-chip) {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.22);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 28px;
  letter-spacing: 4px;
}

.bhdl-property-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.28) 48%, rgba(0,0,0,.08) 100%),
    linear-gradient(to left, rgba(0,0,0,.25), transparent 55%);
}

.bhdl-property-hero-copy {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 5vw, 64px);
  bottom: clamp(26px, 5vw, 60px);
  max-width: 760px;
}

.bhdl-property-chip {
  display: inline-flex;
  padding: 7px 14px;
  margin: 0 0 12px;
  border: 1px solid rgba(240,213,142,.62);
  border-radius: 999px;
  background: rgba(0,0,0,.48);
  color: var(--bh-project-light);
  font-size: 12px;
}

.bhdl-property-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
  font-size: clamp(30px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.35;
}

.bhdl-property-hero-copy p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 16px;
}

.bhdl-property-price {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 4vw, 48px);
  bottom: clamp(28px, 5vw, 58px);
  min-width: 180px;
  padding: 14px 18px;
  border: 1px solid rgba(240,213,142,.52);
  border-radius: 18px;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
}

.bhdl-property-price small {
  display: block;
  margin-bottom: 3px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  text-align: right;
}

.bhdl-property-price strong {
  display: block;
  color: var(--bh-project-light);
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
}

.bhdl-quick-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.bhdl-quick-facts > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(200,166,90,.25);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}

.bhdl-quick-facts span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,.48);
  font-size: 11px;
}

.bhdl-quick-facts strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.bhdl-property-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  gap: 22px;
  align-items: start;
}

.bhdl-property-main {
  min-width: 0;
}

.bhdl-panel {
  margin: 0 0 20px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(200,166,90,.25);
  border-radius: 26px;
  background: linear-gradient(145deg, #151410, #090909);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}

.bhdl-section-head {
  margin-bottom: 20px;
}

.bhdl-section-head > span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--bh-project-gold);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 2.2px;
}

.bhdl-section-head h2 {
  margin: 0;
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 700;
}

.bhdl-description-copy {
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 2.15;
}

.bhdl-description-copy p:first-child {
  margin-top: 0;
}

.bhdl-description-copy p:last-child {
  margin-bottom: 0;
}

.bhdl-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.bhdl-detail-item {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(200,166,90,.18);
  border-radius: 14px;
  background: rgba(0,0,0,.24);
}

.bhdl-detail-item span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,.44);
  font-size: 11px;
}

.bhdl-detail-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.bhdl-facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.bhdl-facility-grid > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(200,166,90,.18);
  border-radius: 14px;
  background: rgba(0,0,0,.22);
}

.bhdl-facility-grid > div > span {
  color: var(--bh-project-light);
  font-size: 15px;
}

.bhdl-facility-grid strong {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
}

.bhdl-property-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.bhdl-property-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(200,166,90,.18);
  background: #111;
}

.bhdl-property-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease;
}

.bhdl-property-gallery a:hover img {
  transform: scale(1.025);
}

.bhdl-property-sidebar {
  position: sticky;
  top: 28px;
}

.bhdl-contact-box {
  padding: 24px;
  border: 1px solid rgba(200,166,90,.38);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    #0b0b0a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.bhdl-contact-kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--bh-project-gold);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 2.2px;
}

.bhdl-contact-box h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
  font-size: 23px;
}

.bhdl-contact-box p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.95;
}

.bhdl-contact-main,
.bhdl-contact-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  border-radius: 13px;
  font-family: "Vazirmatn", sans-serif;
  font-size: 13px;
  text-decoration: none !important;
}

.bhdl-contact-main {
  background: linear-gradient(135deg, #f0d58e, #b58c42);
  color: #090909 !important;
}

.bhdl-contact-alt {
  border: 1px solid rgba(200,166,90,.35);
  background: rgba(200,166,90,.06);
  color: #fff !important;
}

.bhdl-contact-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(200,166,90,.18);
}

.bhdl-contact-code span {
  color: rgba(255,255,255,.44);
  font-size: 11px;
}

.bhdl-contact-code strong {
  color: var(--bh-project-light);
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 500;
}

.bhdl-related {
  padding-top: 34px;
}

.bhdl-back-home {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.bhdl-back-home a {
  padding: 11px 18px;
  border: 1px solid rgba(200,166,90,.32);
  border-radius: 999px;
  color: var(--bh-project-light);
  text-decoration: none;
  font-family: "Vazirmatn", sans-serif;
  font-size: 13px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:1100px) {
  .bhdl-property-layout {
    grid-template-columns: minmax(0,1fr) 290px;
  }

  .bhdl-detail-grid,
  .bhdl-facility-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .bhdl-quick-facts {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width:900px) {
  .bh-projects-heading {
    width: calc(100% - 32px);
    padding: 16px 25px;
    border-radius: 26px;
  }

  .bhdl-property-layout {
    grid-template-columns: 1fr;
  }

  .bhdl-property-sidebar {
    position: static;
  }

  .bhdl-property-price {
    left: 24px;
  }
}

/* iPad / tablet: keep 3 cards */
@media (min-width:768px) and (max-width:1100px) {
  .bh-projects-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
  }

  .bh-project-card {
    border-radius: 20px;
  }

  .bh-project-details {
    padding: 15px 10px;
  }

  .bh-project-info {
    padding: 3px 8px;
  }

  .bh-project-info > div {
    gap: 6px;
  }

  .bh-project-info dt {
    font-size: 10px;
  }

  .bh-project-info dd {
    font-size: 11px;
  }

  .bh-project-button {
    padding: 10px;
    font-size: 11px;
  }
}

@media (max-width:767px) {
  .bh-projects-heading {
    margin-bottom: 20px;
  }

  .bh-projects-heading > span {
    font-size: 8px;
    letter-spacing: 1.8px;
  }

  .bh-projects-grid {
    width: calc(100% - 20px);
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }

  .bh-project-card {
    border-radius: 18px;
  }

  .bh-project-details {
    padding: 14px 10px;
  }

  .bh-project-details h3 {
    font-size: 18px;
  }

  .bh-project-location {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .bh-project-location svg {
    width: 15px;
    height: 15px;
  }

  .bh-project-info {
    padding: 3px 8px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .bh-project-info > div {
    gap: 6px;
    padding: 9px 0;
  }

  .bh-project-info dt {
    font-size: 10px;
  }

  .bh-project-info dd {
    font-size: 11px;
  }

  .bh-projects .bh-project-button {
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 11px;
    font-size: 11px;
  }

  .bhdl-property-shell {
    padding: 20px 0 50px;
  }

  .bhdl-property-wrap {
    width: calc(100% - 20px);
  }

  .bhdl-property-hero-image {
    min-height: 520px;
    border-radius: 22px;
  }

  .bhdl-property-hero-copy {
    right: 18px;
    left: 18px;
    bottom: 105px;
  }

  .bhdl-property-hero-copy h1 {
    font-size: 30px;
  }

  .bhdl-property-price {
    left: 18px;
    right: 18px;
    bottom: 18px;
    min-width: 0;
  }

  .bhdl-quick-facts {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .bhdl-panel {
    padding: 20px 15px;
    border-radius: 20px;
  }

  .bhdl-detail-grid,
  .bhdl-facility-grid {
    grid-template-columns: 1fr;
  }

  .bhdl-property-gallery {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width:620px) {
  .bh-projects-heading {
    padding: 14px 16px;
    border-radius: 23px;
  }

  .bh-projects-heading > span {
    padding: 6px 12px;
    margin-bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-project-card,
  .bh-project-button,
  .bhdl-property-gallery img {
    transition: none;
  }

  .bh-project-card:hover {
    transform: none;
  }
}


/* =========================================================
   V1.2 — FINAL CONTACT ACTIONS
========================================================= */

.bhdl-contact-action {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(200,166,90,.35);
  border-radius: 14px;
  background: rgba(200,166,90,.06);
  color: #fff !important;
  text-decoration: none !important;
  font-family: "Vazirmatn", sans-serif;
  transition: border-color .2s ease, background .2s ease;
}

.bhdl-contact-action:hover {
  border-color: rgba(240,213,142,.75);
  background: rgba(200,166,90,.11);
}

.bhdl-contact-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--bh-project-light);
}

.bhdl-contact-action-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bhdl-contact-action-whatsapp .bhdl-contact-action-icon svg {
  fill: none;
  stroke-width: 1.35;
}

.bhdl-contact-action-text {
  min-width: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.65;
  text-align: right;
}

.bhdl-contact-action-number {
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--bh-project-light);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

/* =========================================================
   V1.2 — GALLERY LIGHTBOX
========================================================= */

html.bhdl-lightbox-lock,
body.bhdl-lightbox-lock {
  overflow: hidden !important;
}

.bhdl-lightbox {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .18s ease, visibility .18s ease;
}

.bhdl-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.bhdl-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.bhdl-lightbox-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1180px, calc(100vw - 150px));
  height: min(820px, calc(100vh - 80px));
  pointer-events: none;
}

.bhdl-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
  pointer-events: auto;
}

.bhdl-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(0,0,0,.54);
  color: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .8px;
}

.bhdl-lightbox-close,
.bhdl-lightbox-arrow {
  position: fixed;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.48);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bhdl-lightbox-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 31px;
  font-weight: 200;
  line-height: 1;
}

.bhdl-lightbox-arrow {
  top: 50%;
  width: 52px;
  height: 70px;
  transform: translateY(-50%);
  border-radius: 16px;
  font-family: Arial, sans-serif;
  font-size: 45px;
  font-weight: 200;
  line-height: 1;
}

.bhdl-lightbox-prev {
  left: 24px;
}

.bhdl-lightbox-next {
  right: 24px;
}

.bhdl-lightbox-close:hover,
.bhdl-lightbox-arrow:hover {
  border-color: rgba(240,213,142,.8);
  color: var(--bh-project-light);
}

/* =========================================================
   V1.2 — ALL ITEMS BUTTON
========================================================= */

.bhdl-all-items-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 24px auto 0;
}

.bhdl-all-items-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 180px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid rgba(200,166,90,.48);
  border-radius: 999px;
  background: rgba(200,166,90,.07);
  color: var(--bh-project-light) !important;
  font-family: "Vazirmatn", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease;
}

.bhdl-all-items-button span {
  font-family: Arial, sans-serif;
  font-size: 21px;
}

.bhdl-all-items-button:hover {
  background: linear-gradient(135deg, #f0d58e, #b58c42);
  color: #090909 !important;
}

/* =========================================================
   V1.2 — ALL LISTINGS ARCHIVE
========================================================= */

body.bhdl-listings-archive-page {
  background: #000 !important;
}

.bhdl-archive-shell {
  min-height: 70vh;
  padding: 36px 0 70px;
  background:
    radial-gradient(circle at 20% 0%, rgba(200,166,90,.08), transparent 30%),
    #000;
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
}

.bhdl-archive-wrap {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.bhdl-archive-projects .bh-projects-grid {
  width: 100%;
}

.bhdl-archive-wrap .bh-projects-heading h1 {
  margin: 0;
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.5;
}

/* =========================================================
   V1.2 — DESKTOP HOME: 9 CARDS
   MOBILE HOME: 6 CARDS, 2×3
========================================================= */

@media (max-width:767px) {

  .bhdl-shortcode-section .bh-projects-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .bhdl-shortcode-section .bh-project-card:nth-child(n+4) {
    display: none;
  }

  .bhdl-shortcode-section .bh-project-card {
    border-radius: 18px;
  }

  .bhdl-shortcode-section .bh-project-picture {
    aspect-ratio: 4 / 5;
  }

  .bhdl-shortcode-section .bh-project-details {
    padding: 16px 14px;
  }

  .bhdl-shortcode-section .bh-project-details h3 {
    min-height: 0;
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.55;
  }

  .bhdl-shortcode-section .bh-project-location {
    min-height: 0;
    margin-bottom: 12px;
    font-size: 11px;
  }

  .bhdl-shortcode-section .bh-project-info {
    padding: 3px 9px;
    margin-bottom: 12px;
  }

  .bhdl-shortcode-section .bh-project-info > div {
    gap: 6px;
    padding: 9px 0;
  }

  .bhdl-shortcode-section .bh-project-info dt {
    font-size: 10px;
  }

  .bhdl-shortcode-section .bh-project-info dd {
    font-size: 11px;
  }

  .bhdl-shortcode-section .bh-project-button {
    min-height: 44px !important;
    padding: 9px 10px !important;
    font-size: 11px !important;
  }

  .bhdl-shortcode-section .bh-project-button > span {
    font-size: 19px !important;
  }

  .bhdl-card-type {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 8px;
  }

  .bhdl-lightbox-stage {
    width: calc(100vw - 28px);
    height: calc(100vh - 90px);
  }

  .bhdl-lightbox-stage img {
    border-radius: 12px;
  }

  .bhdl-lightbox-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .bhdl-lightbox-arrow {
    width: 42px;
    height: 58px;
    font-size: 37px;
    background: rgba(0,0,0,.56);
  }

  .bhdl-lightbox-prev {
    left: 8px;
  }

  .bhdl-lightbox-next {
    right: 8px;
  }

  .bhdl-contact-action {
    grid-template-columns: 32px minmax(0,1fr);
  }

  .bhdl-contact-action-number {
    grid-column: 1 / -1;
    justify-self: end;
    padding-right: 42px;
  }

  .bhdl-archive-projects .bh-projects-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
  }

  .bhdl-archive-projects .bh-project-details {
    padding: 11px 8px;
  }

  .bhdl-archive-projects .bh-project-details h3 {
    font-size: 14px;
  }

  .bhdl-archive-projects .bh-project-location {
    font-size: 9px;
  }

  .bhdl-archive-projects .bh-project-info dt {
    font-size: 8px;
  }

  .bhdl-archive-projects .bh-project-info dd {
    font-size: 9px;
  }

  .bhdl-archive-projects .bh-project-button {
    font-size: 9px !important;
  }
}


/* =========================================================
   V1.4 — ADAPTIVE HOMEPAGE GRID
========================================================= */
@media (min-width: 768px) {
  .bhdl-shortcode-section .bh-projects-grid {
    grid-template-columns: repeat(6, minmax(0,1fr)) !important;
    gap: 20px;
  }
  .bhdl-shortcode-section .bh-project-card { grid-column: span 2; }

  .bhdl-shortcode-section .bh-project-card.bhdl-remainder-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(330px,42%) minmax(0,1fr);
    direction: rtl;
    min-height: 350px;
  }
  .bhdl-shortcode-section .bhdl-remainder-wide .bh-project-picture {
    grid-column: 1;
    width: 100%; height: 100%; min-height: 350px;
    aspect-ratio: auto;
    border-bottom: 0;
    border-left: 1px solid rgba(200,166,90,.22);
  }
  .bhdl-shortcode-section .bhdl-remainder-wide .bh-project-details {
    grid-column: 2;
    justify-content: center;
    padding: clamp(26px,4vw,54px);
    text-align: right;
  }
  .bhdl-shortcode-section .bhdl-remainder-wide .bh-project-details h3 {
    margin-bottom: 10px;
    font-size: clamp(24px,2.5vw,34px);
    text-align: right;
  }
  .bhdl-shortcode-section .bhdl-remainder-wide .bh-project-location {
    justify-content: flex-start;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: right;
  }
  .bhdl-shortcode-section .bhdl-remainder-wide .bh-project-info {
    width: 100%; margin: 0 0 18px;
  }

  .bhdl-shortcode-section .bh-project-card.bhdl-remainder-half {
    grid-column: span 3;
    display: grid;
    grid-template-columns: minmax(170px,40%) minmax(0,1fr);
    direction: rtl;
    min-height: 285px;
  }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-picture {
    grid-column: 1;
    width: 100%; height: 100%; min-height: 285px;
    aspect-ratio: auto;
    border-bottom: 0;
    border-left: 1px solid rgba(200,166,90,.22);
  }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-details {
    grid-column: 2;
    justify-content: center;
    padding: 22px 18px;
    text-align: right;
  }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-details h3 {
    margin-bottom: 7px;
    font-size: clamp(18px,1.8vw,24px);
    text-align: right;
  }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-location {
    justify-content: flex-start;
    margin-bottom: 12px;
    font-size: 12px;
    text-align: right;
  }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-info { margin:0 0 12px; padding:3px 10px; }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-info > div { padding:8px 0; }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-info dt { font-size:10px; }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-info dd { font-size:11px; }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-button { min-height:42px; padding:8px 11px; font-size:11px; }
}

@media (min-width:768px) and (max-width:1100px) {
  .bhdl-shortcode-section .bh-projects-grid { gap:12px !important; }
  .bhdl-shortcode-section .bhdl-remainder-wide { grid-template-columns:minmax(280px,42%) minmax(0,1fr); min-height:300px; }
  .bhdl-shortcode-section .bhdl-remainder-wide .bh-project-picture { min-height:300px; }
  .bhdl-shortcode-section .bhdl-remainder-wide .bh-project-details { padding:28px 24px; }
  .bhdl-shortcode-section .bhdl-remainder-half { grid-template-columns:minmax(145px,39%) minmax(0,1fr); min-height:250px; }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-picture { min-height:250px; }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-details { padding:16px 12px; }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-details h3 { font-size:17px; }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-location { font-size:10px; }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-info dt { font-size:9px; }
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-info dd { font-size:10px; }
}

@media (max-width:767px) {
  .bhdl-shortcode-section .bh-project-card,
  .bhdl-shortcode-section .bh-project-card.bhdl-remainder-wide,
  .bhdl-shortcode-section .bh-project-card.bhdl-remainder-half {
    grid-column:auto !important;
    display:flex !important;
    flex-direction:column !important;
    min-height:0 !important;
  }
  .bhdl-shortcode-section .bhdl-remainder-wide .bh-project-picture,
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-picture {
    width:100% !important; height:auto !important; min-height:0 !important;
    aspect-ratio:4/5 !important;
    border-left:0 !important;
    border-bottom:1px solid rgba(200,166,90,.22) !important;
  }
  .bhdl-shortcode-section .bhdl-remainder-wide .bh-project-details,
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-details {
    padding:16px 14px !important; text-align:center !important;
  }
  .bhdl-shortcode-section .bhdl-remainder-wide .bh-project-details h3,
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-details h3 {
    font-size:18px !important; text-align:center !important;
  }
  .bhdl-shortcode-section .bhdl-remainder-wide .bh-project-location,
  .bhdl-shortcode-section .bhdl-remainder-half .bh-project-location {
    justify-content:center !important; font-size:11px !important; text-align:center !important;
  }
}
