

:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #667370;
  --line: #dce6e2;
  --paper: #ffffff;
  --mist: #f4f8f6;
  --teal: #0f766e;
  --teal-dark: #0a504b;
  --olive: #637a32;
  --amber: #b86b24;
  --rose: #a94b57;
  --shadow: 0 16px 36px rgba(19, 38, 34, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Tajawal", "IBM Plex Sans Arabic", "Cairo", "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 3.2rem;
}

label {
  display: grid;
  color: #344440;
  font-weight: 700;
}

label span {
  font-size: .9rem;
}

input,
select,
textarea {
  inline-size: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: .64rem .78rem;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .24);
  outline-offset: 2px;
}

body[data-page="home"] {
  background: #f7f8f6;
}


/* =========================================================
   02 - الأدوات العامة والمكونات المشتركة
   ========================================================= */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.pagination a {
  min-width: 36px;
  height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  text-align: center;
  font-weight: 700;
}

.pagination a.active {
  background: #0f766e;
  color: #fff;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--teal-dark);
  color: white;
  padding: .7rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 .45rem;
  color: var(--amber);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ffd7a3;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: .62rem 1rem;
  background: var(--paper);
  color: var(--teal-dark);
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  color: white;
}

.button.secondary {
  background: #edf7f4;
  color: var(--teal-dark);
  border-color: #cde4dd;
}

.button.ghost {
  background: rgba(255, 255, 255, .12);
  color: white;
  border-color: rgba(255, 255, 255, .44);
}

.button.small {
  min-height: 38px;
  padding: .45rem .75rem;
  font-size: .92rem;
}

.icon-button {
  inline-size: 48px;
  block-size: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--teal-dark);
  cursor: pointer;
}

.icon-button svg {
  inline-size: 21px;
  block-size: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section {
  padding-block: 4.2rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.section-heading.compact {
  margin-bottom: .9rem;
}

.section-heading h2,
.split-layout h2 {
  font-size: 2rem;
}

.section-heading p:not(.eyebrow),
.split-layout p {
  margin: .65rem 0 0;
  color: var(--muted);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: var(--muted);
  background: var(--mist);
}

.owner-cta-inner p:not(.eyebrow) {
  margin: .45rem 0 0;
  color: var(--muted);
}

.split-layout > *,
.detail-layout > *,
.dashboard-shell > *,
.dashboard-main > *,
.dashboard-main,
.stats-grid > *,
.table-wrap {
  min-width: 0;
}

.gallery button {
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: #dce6e2;
}

.full-gallery-grid button {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #dce6e2;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}

.notice {
  border-inline-start: 4px solid var(--amber);
  background: #fff8ef;
  border-radius: 7px;
  padding: .85rem 1rem;
  color: #684321;
}

.notice:empty {
  display: none;
}

.flash {
  margin-top: 1rem;
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-weight: 800;
}

.flash.success {
  background: #ecf8f3;
  color: var(--teal-dark);
  border: 1px solid #c9e4da;
}

.flash.error {
  background: #fff1f2;
  color: #8a2632;
  border: 1px solid #f3c6ce;
}

.auth-layout > .flash {
  grid-column: 1 / -1;
  margin-top: 0;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.review-actions .inline-form,
.review-actions .button {
  width: 100%;
}

.admin-tab-layout.dashboard-shell {
  grid-template-columns: 1fr;
}

.admin-actions button,
.inline-form button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--teal-dark);
  font-weight: 800;
  cursor: pointer;
}

.lightbox button {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 7px;
  background: rgba(255, 255, 255, .14);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .footer-inner,
    .owner-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 520px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .filters,
    .listing-grid,
    .public-content--home_between_listings .public-content-inner,
    .public-content--home_bottom .public-content-inner,
    .public-content--area_top .public-content-inner,
    .split-layout,
    .detail-layout,
    .dashboard-shell,
    .review-layout,
    .report-grid,
    .stats-grid,
    .auth-layout {
    grid-template-columns: 1fr;
  }

  .side-panel,
    .dashboard-nav,
    .review-sidebar {
    position: static;
  }

  .dashboard-nav {
    display: flex;
    overflow-x: auto;
  }

  .dashboard-nav a {
    white-space: nowrap;
  }

  .filters.advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-block {
    grid-template-columns: 1fr;
  }

  .public-content--global_top .public-block-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .site-header.header-hidden {
    transform: translateY(-100%);
  }

  .header-inner {
    min-height: 58px;
    gap: .6rem;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-mark,
    .brand-logo {
    inline-size: 36px;
    block-size: 36px;
  }

  .brand strong {
    font-size: .95rem;
  }

  .brand small {
    font-size: .72rem;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding-block: 3rem 2.4rem;
  }

  h1,
    .sub-hero h1 {
    font-size: 2rem;
  }

  .section-heading h2,
    .split-layout h2 {
    font-size: 1.55rem;
  }

  .section {
    padding-block: 3rem;
  }

  .filters {
    gap: .65rem;
  }

  .filters.advanced {
    grid-template-columns: 1fr;
  }

  .filter-actions .button {
    inline-size: 100%;
  }

  .public-content {
    padding-block: 1rem;
  }

  .public-block-body {
    padding: .9rem;
  }

  .public-content-preview {
    grid-template-columns: 1fr;
  }

  .gallery {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .35rem;
  }

  .gallery button {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  .gallery .featured {
    grid-row: auto;
    flex-basis: 92%;
  }

  .gallery img {
    min-height: 220px;
  }

  .full-gallery-grid {
    display: flex;
    gap: .65rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .35rem;
  }

  .full-gallery-grid button {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }

  .owner-gallery-grid {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .35rem;
  }

  .owner-gallery-item {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .detail-grid,
    .comparison-grid,
    .form-grid,
    .review-form,
    .checkbox-grid,
    .upload-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow: visible;
  }

  .table-wrap table,
    .table-wrap thead,
    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    border-bottom: 1px solid var(--line);
    padding: .65rem 0;
  }

  .table-wrap tr:last-child {
    border-bottom: 0;
  }

  .table-wrap td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    border-bottom: 0;
    padding: .42rem .2rem;
    color: var(--ink);
  }

  .table-wrap td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: var(--muted);
    font-weight: 800;
  }

  .card-actions .button,
    .hero-actions .button,
    .form-actions .button {
    flex: 1 1 150px;
  }
}

.refined-listing-card .card-actions .button {
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: .84rem;
}

.bh-home-section {
  padding: 18px 0;
}

.bh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: var(--bh-primary);
  font-size: .82rem;
  font-weight: 900;
}

.bh-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.bh-hero-copy .bh-eyebrow {
  color: hsl(230.37deg 77.78% 17.65%);
}

.bh-hero-actions .button {
  min-height: auto;
  padding: 10px 15px;
  border-radius: 12px;
}

.bh-search-grid .button,
  .bh-filter-bar .button {
  justify-content: center;
  min-height: 40px;
  border-radius: 12px;
  padding: 9px 14px;
}

.bh-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.bh-section-head h2 {
  margin: 0 0 5px;
  color: var(--bh-text);
  font-size: clamp(1.22rem, 2vw, 1.62rem);
}

.bh-section-head p {
  margin: 0;
  color: var(--bh-muted);
  line-height: 1.7;
  font-size: .92rem;
}

.bh-owner-cta .button {
  min-height: auto;
  border-radius: 12px;
  padding: 10px 15px;
}

@media (max-width: 680px) {
  .bh-home-section {
    padding: 12px 0;
  }

  .bh-hero {
    min-height: auto;
    border-radius: 18px;
  }

  .bh-hero-inner {
    min-height: auto;
    padding: 18px;
    gap: 14px;
  }

  .bh-hero-copy h1 {
    font-size: 1.48rem;
  }

  .bh-hero-copy p {
    font-size: .9rem;
    line-height: 1.75;
  }

  .bh-hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .bh-search-grid,
      .bh-filter-bar {
    grid-template-columns: 1fr;
  }

  .bh-section-head {
    display: block;
  }

  .bh-area-strip,
      .bh-area-links {
    gap: 7px;
  }

  .bh-area-strip a,
      .bh-area-links a {
    font-size: .8rem;
    padding: 7px 10px;
  }

  .bh-ad-slot {
    align-items: flex-start;
    flex-direction: column;
  }

  .bh-owner-cta {
    padding: 16px;
  }

  .bh-owner-cta .button {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================================
   03 - الهيدر والهوية
   ========================================================= */

.brand-mark,
.brand-logo {
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.site-header {
  transition: transform .22s ease;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(226,232,240,.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #102033;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: contain;
  background: linear-gradient(135deg,#0f172a,#0f766e);
  padding: 5px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg,#0f172a,#0f766e);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
}

.brand strong {
  display: block;
  line-height: 1.2;
  font-size: 1rem;
  color: #102033;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #6b7a8f;
  font-size: .78rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #26364a;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 800;
}

.site-nav a:hover {
  background: #f1f5f9;
}

.site-nav .nav-primary {
  background: #0f766e;
  color: #fff;
}

.site-nav .nav-primary:hover {
  background: #0c5f59;
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 62px;
  }

  .brand small {
    display: none;
  }

  .site-nav a:not(.nav-primary):not(.nav-dashboard) {
    display: none;
  }

  .site-nav a {
    min-height: 34px;
    padding: 7px 10px;
    font-size: .82rem;
  }

  .brand-logo,
        .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
}


/* =========================================================
   04 - الهيرو القديم والعناصر العامة للواجهة
   ========================================================= */

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero picture,
.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-overlay {
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 24, 22, .82), rgba(8, 24, 22, .52), rgba(8, 24, 22, .16));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding-block: 5rem 4.2rem;
}

.hero-copy {
  max-width: 720px;
  margin: 1rem 0 1.4rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .9);
}

.hero-actions,
.card-actions,
.form-actions,
.toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.sub-hero {
  padding-block: 3.4rem;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.sub-hero h1 {
  color: var(--ink);
  font-size: 2.5rem;
}

.sub-hero p {
  max-width: 760px;
  margin: .7rem 0 0;
  color: var(--muted);
}


/* =========================================================
   05 - البحث والفلاتر العامة
   ========================================================= */

.compact-filter {
  margin-bottom: 18px;
  align-items: end;
}

.search-band {
  background: var(--mist);
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
}

.filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(170px, .7fr) minmax(170px, .7fr) 48px;
  gap: .8rem;
  align-items: end;
}

.filters.advanced {
  grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(130px, .6fr));
}

.amenity-filter {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .8rem;
  margin: 0;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.amenity-filter legend {
  padding-inline: .35rem;
  color: var(--teal-dark);
  font-weight: 900;
}

.amenity-filter label,
.cover-choice {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 38px;
  font-weight: 800;
}

.amenity-filter input,
.cover-choice input {
  inline-size: auto;
  min-height: auto;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

@media (max-width: 980px) {
  .bh-hero-inner {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .bh-search-card {
    max-width: 520px;
  }

  .bh-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .bh-filter-bar .filter-actions {
    grid-column: 1 / -1;
  }
}


/* =========================================================
   06 - بطاقات المنشآت والقوائم
   ========================================================= */

.listing-card,
.dashboard-card,
.table-wrap,
.form-surface,
.detail-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(22, 45, 40, .07);
}

.listing-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dce6e2;
}

.card-media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.listing-card:hover .card-media img {
  transform: scale(1.035);
}

.card-media .status {
  position: absolute;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
}

.card-body {
  padding: 1rem;
  display: flow;
  flex-direction: column;
  gap: .9rem;
}

.card-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .75rem;
}

.card-title-row h3 {
  font-size: 1.15rem;
}

.card-title-row > span {
  flex: 0 0 auto;
  border: 1px solid #d1ded9;
  border-radius: 6px;
  padding: .15rem .45rem;
  color: var(--teal-dark);
  font-size: .8rem;
  font-weight: 800;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  align-self: flex-start;
  border-radius: 999px;
  background: #fff8ec;
  color: #7a4414;
  padding: .24rem .62rem;
  font-size: .84rem;
  font-weight: 800;
}

.rating-pill strong {
  color: var(--amber);
}

.card-body p {
  margin: 0;
  color: var(--muted);
}

.fact-list {
  display: grid;
  gap: .5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  border-bottom: 1px solid #eef3f1;
  padding-bottom: .45rem;
}

.fact-list strong {
  color: #344440;
}

.fact-list span {
  color: var(--muted);
  text-align: end;
}

.tag-row,
.area-list,
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.tag-row span,
.area-list a,
.area-list span,
.status-row span {
  border-radius: 999px;
  background: #eef6f2;
  color: var(--teal-dark);
  padding: .28rem .62rem;
  font-size: .84rem;
  font-weight: 800;
}

.refined-listing-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15,23,42,.055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.refined-listing-card:hover {
  transform: translateY(-2px);
  border-color: #d5dee9;
  box-shadow: 0 16px 36px rgba(15,23,42,.085);
}

.refined-listing-card .card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f7;
  text-decoration: none;
}

.refined-listing-card .card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}

.refined-listing-card:hover .card-media img {
  transform: scale(1.025);
}

.refined-listing-card .status {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15,118,110,.94);
  color: #fff;
  font-size: .74rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.refined-listing-card .card-body {
  padding: 13px;
}

.refined-listing-card .card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.refined-listing-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.refined-listing-card h3 a {
  color: #102033;
  text-decoration: none;
}

.refined-listing-card .type-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: .76rem;
  font-weight: 800;
}

.refined-listing-card .listing-location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #607086;
  font-size: .86rem;
  font-weight: 700;
}

.refined-listing-card .listing-location::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #0f766e;
}

.refined-listing-card .card-summary {
  margin: 0 0 10px;
  min-height: 48px;
  color: #607086;
  line-height: 1.7;
  font-size: .86rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.refined-listing-card .rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a5b12;
  font-size: .78rem;
  font-weight: 800;
}

.refined-listing-card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.refined-listing-card .tag-row span {
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f7f9fb;
  border: 1px solid #e7edf4;
  color: #44556b;
  font-size: .76rem;
  font-weight: 800;
}

.refined-listing-card .card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 620px) {
  .refined-listing-card .card-body {
    padding: 12px;
  }

  .refined-listing-card .card-actions {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   07 - المحتوى العام والبلوكات
   ========================================================= */

.public-content {
  padding-block: 1.4rem;
}

.public-content--global_top {
  padding-block: .75rem;
  background: #f9fbfa;
  border-bottom: 1px solid var(--line);
}

.public-content--home_after_search,
.public-content--area_top {
  background: #fffdf8;
  border-bottom: 1px solid #efe2cf;
}

.public-content--home_between_listings,
.public-content--home_bottom {
  background: #f7faf8;
}

.public-content-inner {
  display: grid;
  gap: .85rem;
}

.public-content--home_between_listings .public-content-inner,
.public-content--home_bottom .public-content-inner,
.public-content--area_top .public-content-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(22, 45, 40, .07);
}

.public-block--accent {
  border-color: #e6c9a8;
  background: #fffaf2;
}

.public-block--dark {
  border-color: #243532;
  background: #172522;
  color: white;
}

.public-block-media {
  min-height: 150px;
  background: #dce6e2;
}

.public-block-media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.public-block-body {
  display: grid;
  align-content: center;
  gap: .45rem;
  padding: 1rem;
}

.public-block-kind {
  width: fit-content;
  border-radius: 999px;
  background: #edf7f4;
  color: var(--teal-dark);
  padding: .18rem .52rem;
  font-size: .78rem;
  font-weight: 900;
}

.public-block--alert .public-block-kind {
  background: #fff3df;
  color: #7a4414;
}

.public-block--offer .public-block-kind {
  background: #fce7eb;
  color: #8a2632;
}

.public-block--dark .public-block-kind {
  background: rgba(255, 255, 255, .12);
  color: white;
}

.public-block h2 {
  font-size: 1.22rem;
}

.public-block p {
  margin: 0;
  color: var(--muted);
}

.public-block--dark p {
  color: rgba(255, 255, 255, .78);
}

.public-content--global_top .public-block,
.public-content--listing_sidebar .public-block,
.public-content--listing_after_gallery .public-block {
  grid-template-columns: 1fr;
}

.public-content--global_top .public-block {
  box-shadow: none;
}

.public-content--global_top .public-block-body {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding-block: .75rem;
}

.public-content--global_top .public-block h2,
.public-content--global_top .public-block p {
  margin: 0;
}

.public-content--global_top .public-block h2 {
  font-size: 1rem;
}

.public-content--listing_sidebar {
  padding-block: 0;
  margin-bottom: 1rem;
}

.public-content--listing_sidebar .public-block {
  box-shadow: none;
}

.public-content--listing_sidebar .public-block-media {
  min-height: 190px;
}

.public-content-preview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem;
  background: #fbfdfc;
}

.public-content-preview img {
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
}

.admin-public-content-table {
  margin-top: 1rem;
}


/* =========================================================
   08 - الفوتر
   ========================================================= */

.footer-inner a {
  color: rgba(255, 255, 255, .84);
}



.footer-inner {
  justify-content: space-between;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding-top: 22px;
  padding-bottom: 22px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 5px;
  color: #102033;
  font-size: 1rem;
}

.footer-inner p {
  color: rgba(255, 255, 255, .72);
  margin: 0;
  max-width: 62ch;
  line-height: 1.75;
  font-size: .9rem;
}

.footer-contact {
  color: rgba(255, 255, 255, .72);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: .86rem;
}

.footer-contact span {
  color: #102033;
  font-weight: 800;
}

.footer-contact a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 800;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.footer-inner nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f7f9fb;
  color: #26364a;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;
}

.footer-inner nav a:hover {
  background: #eef2f7;
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}


/* =========================================================
   09 - صفحات التفاصيل والمعرض
   ========================================================= */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--teal-dark);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 1.4rem;
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: .8rem;
  margin-bottom: 1rem;
}

.gallery img {
  inline-size: 100%;
  block-size: 100%;
  min-height: 170px;
  object-fit: cover;
}

.gallery .featured {
  grid-row: span 2;
}

.gallery .featured img {
  min-height: 430px;
}

.detail-box {
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.detail-box h2,
.detail-box h3 {
  font-size: 1.35rem;
  margin-bottom: .8rem;
}

.box-title-row,
.gallery-manager-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.box-title-row span,
.gallery-manager-head span {
  color: var(--muted);
  font-weight: 800;
}

.full-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}

.full-gallery-grid img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.detail-box p {
  margin: 0;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.metric {
  border: 1px solid #e7efec;
  border-radius: 7px;
  padding: .8rem;
  background: #fbfdfc;
}

.metric strong {
  display: block;
  font-size: 1.12rem;
}

.metric span {
  color: var(--muted);
  font-size: .88rem;
}

.side-panel {
  position: sticky;
  top: 92px;
}

.contact-list {
  display: grid;
  gap: .65rem;
  margin-top: .9rem;
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .68rem .78rem;
  color: var(--teal-dark);
  font-weight: 800;
}

.map-frame {
  inline-size: 100%;
  min-height: 260px;
  border: 0;
  border-radius: var(--radius);
  background: var(--mist);
}

.gallery-manager {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  padding: 1rem;
}

.gallery-manager-head {
  margin-bottom: 1rem;
}

.gallery-manager-head strong {
  font-size: 1.08rem;
}

.owner-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.owner-gallery-item {
  display: grid;
  gap: .65rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .75rem;
  background: white;
  cursor: grab;
}

.owner-gallery-item.dragging {
  opacity: .55;
  border-color: var(--teal);
}

.owner-gallery-item img {
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #dce6e2;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  background: rgba(8, 24, 22, .86);
  padding: 1rem;
}

.lightbox[aria-hidden="false"] {
  display: grid;
}

.lightbox img {
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


/* =========================================================
   10 - لوحات التحكم والنماذج
   ========================================================= */

.dashboard-nav a.active {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-weight: 800;
  border-inline-start: 4px solid #0f766e;
}

.dashboard-nav hr {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin: 8px 0;
}

.auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.review-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.review-sidebar {
  position: sticky;
  top: 92px;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  margin-top: 1rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.comparison-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 1rem;
  background: #fbfdfc;
}

.comparison-card.proposed {
  background: #f1faf7;
}

.comparison-card h3 {
  margin-bottom: .85rem;
  font-size: 1.05rem;
}

.notification-list,
.activity-list {
  display: grid;
  gap: .65rem;
}

.notification-item,
.activity-item {
  display: grid;
  gap: .18rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .8rem;
  background: #fbfdfc;
}

.notification-item.unread {
  border-color: #b7ddd3;
  background: #f0faf7;
}

.notification-item span,
.activity-item span,
.notification-item small,
.activity-item small {
  color: var(--muted);
}

.front-text-form {
  display: grid;
  gap: 1rem;
}

.mail-template-form {
  display: grid;
  gap: 1rem;
}

.text-settings-group {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.text-settings-group legend {
  padding-inline: .4rem;
  color: var(--teal-dark);
  font-weight: 900;
}

.text-settings-group textarea {
  min-height: 74px;
}

.dashboard-nav {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: .65rem;
}

.dashboard-nav a {
  display: block;
  border-radius: 7px;
  padding: .7rem .8rem;
  color: #344440;
  font-weight: 800;
}

.dashboard-nav a:hover,
.dashboard-nav a:focus-visible {
  background: var(--mist);
}

.dashboard-nav a.active,
.dashboard-nav a[aria-current="page"] {
  background: var(--teal);
  color: white;
}

.admin-tab-layout .dashboard-nav {
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.admin-tab-layout .dashboard-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .45rem .72rem;
}

.dashboard-main {
  display: grid;
  gap: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.report-stats {
  margin-block: .7rem 1rem;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.report-grid h3 {
  margin: 0 0 .65rem;
  padding: .75rem .9rem 0;
  font-size: 1rem;
}

.dashboard-card {
  padding: 1rem;
}

.dashboard-card strong {
  display: block;
  font-size: 1.6rem;
}

.dashboard-card span {
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.form-surface {
  padding: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .55rem .65rem;
  background: #fbfdfc;
  font-weight: 700;
}

.checkbox-grid input {
  inline-size: auto;
  min-height: auto;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .62rem .78rem;
  background: #fbfdfc;
}

.toggle-row input {
  inline-size: auto;
  min-height: auto;
}

.rating-summary .stars,
.review-card .stars {
  color: var(--amber);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.review-list {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .85rem;
  background: #fbfdfc;
}

.review-card div {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}

.review-card span {
  color: var(--amber);
  font-weight: 900;
}

.review-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}

.review-form .full {
  grid-column: 1 / -1;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.upload-tile {
  min-height: 120px;
  border: 1px dashed #b8cac5;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fbfdfc;
  text-align: center;
  padding: .8rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.inline-form {
  display: inline;
}

.completion-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  border-radius: 999px;
  background: #edf7f4;
  color: var(--teal-dark);
  padding: .25rem .55rem;
  font-weight: 900;
}


/* =========================================================
   11 - الصفحة الرئيسية الجديدة BahaStays
   ========================================================= */

.bh-home {
  --bh-text: #102033;
  --bh-muted: #607086;
  --bh-line: #e2e8f0;
  --bh-surface: #ffffff;
  --bh-primary: #0f766e;
  --bh-primary-dark: #0c5f59;
  --bh-gold: #c89b49;
  --bh-shadow: 0 14px 40px rgba(15, 23, 42, .07);
  --bh-shadow-soft: 0 8px 24px rgba(15, 23, 42, .045);
  color: var(--bh-text);
}

.bh-hero {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 22px;
  background: #142334;
  box-shadow: var(--bh-shadow);
}

.bh-hero picture,
  .bh-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 17, 28, .84) 0%, rgba(6, 17, 28, .66) 44%, rgba(6, 17, 28, .18) 78%),
      linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .32));
}

.bh-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 22px;
  padding: 26px;
}

.bh-hero-copy {
  max-width: 720px;
  color: #fff;
}

.bh-hero-copy h1 {
  margin: 0 0 10px;
  max-width: 760px;
  color: #fff;
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  line-height: 1.22;
  letter-spacing: -.02em;
}

.bh-hero-copy p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255,255,255,.88);
  line-height: 1.85;
  font-size: .98rem;
}

.bh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.bh-area-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.bh-area-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.bh-search-card {
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 20px 50px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
  padding: 14px;
}

.bh-search-card h2 {
  margin: 0 0 5px;
  color: var(--bh-text);
  font-size: 1rem;
}

.bh-search-card p {
  margin: 0 0 12px;
  color: var(--bh-muted);
  font-size: .86rem;
  line-height: 1.6;
}

.bh-search-grid,
  .bh-filter-bar {
  display: grid;
  gap: 9px;
}

.bh-search-grid {
  grid-template-columns: 1fr 1fr;
}

.bh-search-grid .full {
  grid-column: 1 / -1;
}

.bh-search-grid label,
  .bh-filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bh-search-grid span,
  .bh-filter-bar span,
  .bh-filter-amenities legend {
  color: var(--bh-text);
  font-size: .8rem;
  font-weight: 900;
}

.bh-search-grid input,
  .bh-search-grid select,
  .bh-filter-bar input,
  .bh-filter-bar select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--bh-line);
  border-radius: 12px;
  background: #fff;
  color: var(--bh-text);
  padding: 0 11px;
  font: inherit;
  font-size: .9rem;
}

.bh-search-grid input:focus,
  .bh-search-grid select:focus,
  .bh-filter-bar input:focus,
  .bh-filter-bar select:focus {
  outline: none;
  border-color: #74b9b1;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

.bh-filter-panel,
  .bh-area-card {
  border: 1px solid var(--bh-line);
  border-radius: 18px;
  background: var(--bh-surface);
  box-shadow: var(--bh-shadow-soft);
  padding: 14px;
}

.bh-filter-bar {
  grid-template-columns: minmax(220px, 1.35fr) minmax(150px, .8fr) minmax(150px, .8fr) auto;
  align-items: end;
}

.bh-filter-amenities {
  margin: 12px 0 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--bh-line);
}

.bh-filter-amenities legend {
  padding: 0;
  margin-bottom: 6px;
}

.bh-filter-amenities .amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bh-filter-amenities label {
  display: inline-flex;
  align-items: center;
  background: #fbfcfd;
  color: var(--bh-text);
  font-size: .84rem;
  cursor: pointer;
}

.bh-filter-amenities input {
  width: 14px;
  height: 14px;
  accent-color: var(--bh-primary);
}

.bh-results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 16px;
  color: var(--bh-muted);
  font-size: .9rem;
}

.bh-result-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-inline-end: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f4f2;
  color: var(--bh-primary-dark);
  font-weight: 900;
  font-size: .82rem;
}

.bh-clear-link {
  color: var(--bh-primary-dark);
  text-decoration: none;
  font-weight: 900;
}

.bh-ad-row {
  margin: 16px 0;
}

.bh-ad-slot {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed #cbd7e4;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f9fbfc);
  padding: 12px 14px;
  color: var(--bh-muted);
  box-shadow: var(--bh-shadow-soft);
}

.bh-ad-slot strong {
  display: block;
  margin-bottom: 3px;
  color: var(--bh-text);
  font-size: .9rem;
}

.bh-ad-slot span {
  font-size: .82rem;
}

.bh-ad-label {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #edf2f7;
  color: #536175;
  padding: 6px 9px;
  font-size: .74rem;
  font-weight: 900;
}

.bh-area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bh-area-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--bh-line);
  color: var(--bh-text);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .86rem;
}

.bh-owner-cta {
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #0f766e);
  padding: 20px;
  color: #fff;
  box-shadow: var(--bh-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.bh-owner-cta h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.35rem;
}

.bh-owner-cta p {
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.7;
  font-size: .92rem;
}

.bh-hero-amenities {
  grid-column: 1 / -1;
  border: 1px solid var(--bh-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.bh-hero-amenities summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px;
  color: var(--bh-text);
  font-size: .84rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.bh-hero-amenities summary::-webkit-details-marker {
  display: none;
}

.bh-hero-amenities summary::after {
  content: "⌄";
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef5f5;
  color: var(--bh-primary-dark);
  font-size: .9rem;
  transition: transform .2s ease;
}

.bh-hero-amenities[open] summary::after {
  transform: rotate(180deg);
}

.bh-hero-amenities summary span {
  margin-inline-start: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f4f2;
  color: var(--bh-primary-dark);
  font-size: .72rem;
  font-weight: 900;
}

.bh-hero-amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 10px 10px;
  border-top: 1px solid var(--bh-line);
}

.bh-hero-amenity-list label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  background: #fbfcfd;
  color: var(--bh-text);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
}

.bh-hero-amenity-list input {
  width: 14px;
  height: 14px;
  accent-color: var(--bh-primary);
}


/* =========================================================
   13 - إضافات أخرى
   ========================================================= */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: .25rem .55rem;
  color: white;
  font-weight: 800;
  font-size: .78rem;
}

.status.approved {
  background: #52a17d;
}

.status.pending {
  background: var(--amber);
}

.status.draft {
  background: var(--muted);
}

.status.rejected,
.status.suspended {
  background: var(--rose);
}

.area-list a:hover,
.area-list a:focus-visible {
  background: #edf7f4;
  color: var(--teal-dark);
}

.info-band {
  padding-block: 3.2rem;
  background: #f9fbfa;
  border-block: 1px solid var(--line);
}

.owner-cta-band {
  padding-block: 2.4rem;
  background: #f4f8f6;
  border-top: 1px solid var(--line);
}

.owner-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.owner-cta-inner h2 {
  font-size: 1.65rem;
}

.muted-inline {
  display: block;
  color: var(--muted);
  font-size: .84rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 2rem;
  align-items: center;
}

.area-list {
  align-content: start;
}

.box-title-row h2 {
  margin-bottom: 0;
}

.image-chip {
  position: absolute;
  inset-block-start: .45rem;
  inset-inline-start: .45rem;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  padding: .18rem .5rem;
  font-size: .75rem;
  font-weight: 900;
}

.muted-note {
  color: var(--muted);
  margin: .85rem 0 0;
}

th,
td {
  text-align: start;
  padding: .85rem .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: #344440;
  background: #f9fbfa;
  font-size: .9rem;
}

td {
  color: var(--muted);
}

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #d7e7e1;
  border-radius: var(--radius);
  background: #f1faf6;
  padding: .85rem 1rem;
  margin-bottom: .9rem;
}

.rating-summary strong {
  font-size: 1.35rem;
  color: var(--teal-dark);
}

.rating-summary span {
  color: var(--muted);
  font-weight: 800;
}

.delete-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--rose);
}

.cover-choice {
  color: var(--teal-dark);
}

.delete-check input,
.cover-choice input {
  inline-size: auto;
  min-height: auto;
}

.nearby-area-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
}

.nearby-area-hint span {
    font-weight: 700;
}

.nearby-area-hint a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: transform .2s ease, background .2s ease;
}

.nearby-area-hint a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.22);
}

.section-muted {
    background: #f8fafc;
}

.nearby-area-group {
    margin-top: 28px;
}

.nearby-area-group + .nearby-area-group {
    padding-top: 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.nearby-area-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 18px;
}

.nearby-area-heading h3 {
    margin: 4px 0 6px;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.nearby-area-heading p {
    margin: 0;
    color: #64748b;
}

@media (max-width: 700px) {
    .nearby-area-heading {
        display: block;
    }

    .nearby-area-heading .button {
        margin-top: 14px;
    }
}

.review-rating-field {
    display: block;
}

.review-rating-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: #0f172a;
}

.star-rating {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    direction: ltr;
}

.star-rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating label {
    width: 52px;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.star-rating label span {
    font-size: 1.35rem;
    line-height: 1;
}

.star-rating label small {
    font-size: .72rem;
    font-weight: 900;
}

.star-rating label:hover,
.star-rating input:focus-visible + label {
    transform: translateY(-1px);
    border-color: #f59e0b;
    box-shadow: 0 10px 22px rgba(245, 158, 11, .16);
}

.star-rating input:checked + label {
    background: #fff7ed;
    border-color: #f59e0b;
    color: #d97706;
    box-shadow: 0 10px 22px rgba(245, 158, 11, .18);
}

@media (max-width: 520px) {
    .star-rating {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px;
    }

    .star-rating label {
        width: 100%;
        min-height: 50px;
        border-radius: 14px;
    }

    .star-rating label span {
        font-size: 1.2rem;
    }
}
/* =========================================================
   إصلاح نهائي لصفحة تفاصيل المنشأة - منع التمدد الأفقي
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body[data-page="detail"] {
  overflow-x: hidden;
}

body[data-page="detail"] .shell,
body[data-page="detail"] .section,
body[data-page="detail"] .sub-hero,
body[data-page="detail"] .detail-layout,
body[data-page="detail"] .detail-layout > *,
body[data-page="detail"] .detail-box,
body[data-page="detail"] .side-panel,
body[data-page="detail"] .listing-main-photo,
body[data-page="detail"] .listing-photo-grid,
body[data-page="detail"] .review-form,
body[data-page="detail"] .listing-star-rating {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body[data-page="detail"] img,
body[data-page="detail"] button,
body[data-page="detail"] input,
body[data-page="detail"] textarea,
body[data-page="detail"] select {
  max-width: 100%;
}

/* تخطيط صفحة التفاصيل */
body[data-page="detail"] .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  gap: 1.4rem;
  align-items: start;
}

body[data-page="detail"] .detail-layout > div,
body[data-page="detail"] .detail-layout > aside {
  min-width: 0;
}

/* الصورة الرئيسية */
body[data-page="detail"] .listing-main-photo {
  width: 100%;
  margin-bottom: 1rem;
  overflow: hidden;
}

body[data-page="detail"] .listing-main-photo button {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #dce6e2;
  cursor: zoom-in;
  aspect-ratio: 16 / 9;
}

body[data-page="detail"] .listing-main-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* معرض الصور الجديد باسم خاص لا يتأثر بـ full-gallery-grid */
body[data-page="detail"] .listing-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  width: 100%;
  overflow: hidden;
}

body[data-page="detail"] .listing-photo-grid button {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #dce6e2;
  cursor: zoom-in;
}

body[data-page="detail"] .listing-photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* النجوم باسم خاص لا يتأثر بـ star-rating القديمة */
body[data-page="detail"] .review-rating-field.full {
  grid-column: 1 / -1;
  width: 100%;
}

body[data-page="detail"] .listing-star-rating {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  direction: ltr;
}

body[data-page="detail"] .listing-star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body[data-page="detail"] .listing-star-rating label {
  min-width: 0;
  min-height: 58px;
  padding: 8px 4px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  line-height: 1.2;
}

body[data-page="detail"] .listing-star-rating label span {
  font-size: 1.45rem;
  line-height: 1;
}

body[data-page="detail"] .listing-star-rating label small {
  display: block;
  max-width: 100%;
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="detail"] .listing-star-rating input:checked + label {
  background: #fff7ed;
  border-color: #f59e0b;
  color: #d97706;
  box-shadow: 0 10px 22px rgba(245, 158, 11, .16);
}

/* الجوال */
@media (max-width: 820px) {
  body[data-page="detail"] .detail-layout {
    display: block;
  }

  body[data-page="detail"] .listing-main-photo button {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  body[data-page="detail"] .listing-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: hidden;
  }

  body[data-page="detail"] .listing-photo-grid button {
    width: 100%;
    flex: none;
    border-radius: 14px;
  }

  body[data-page="detail"] .side-panel {
    margin-top: 18px;
  }

  body[data-page="detail"] .review-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="detail"] .review-form label,
  body[data-page="detail"] .review-form .full,
  body[data-page="detail"] .review-form .review-rating-field.full {
    grid-column: 1 / -1;
    width: 100%;
  }

  body[data-page="detail"] .listing-star-rating {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-page="detail"] .listing-star-rating label {
    min-height: 54px;
    padding: 7px 2px;
    border-radius: 14px;
  }

  body[data-page="detail"] .listing-star-rating label span {
    font-size: 1.25rem;
  }

  body[data-page="detail"] .listing-star-rating label small {
    font-size: .6rem;
  }
}

@media (max-width: 380px) {
  body[data-page="detail"] .listing-star-rating {
    gap: 4px;
  }

  body[data-page="detail"] .listing-star-rating label {
    min-height: 48px;
    padding-inline: 2px;
  }

  body[data-page="detail"] .listing-star-rating label small {
    display: none;
  }

  body[data-page="detail"] .listing-photo-grid {
    gap: 6px;
  }
}

/* =========================================================
   إصلاح عرض صفحة تفاصيل الاستراحة على الجوال - BahaStays
   هذا الإصلاح مخصص للتصميم الجديد الذي يستخدم bd-*
   ========================================================= */

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body[data-page="detail"],
body.body-page-detail {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative;
}

body[data-page="detail"] *,
body[data-page="detail"] *::before,
body[data-page="detail"] *::after,
body.body-page-detail *,
body.body-page-detail *::before,
body.body-page-detail *::after {
  box-sizing: border-box;
}

body[data-page="detail"] .bd-detail-page,
body.body-page-detail .bd-detail-page,
body[data-page="detail"] main,
body.body-page-detail main {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body[data-page="detail"] .bd-shell,
body.body-page-detail .bd-shell {
  width: min(100% - 24px, 1180px) !important;
  max-width: calc(100vw - 24px) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  overflow: visible;
}

body[data-page="detail"] .bd-hero,
body[data-page="detail"] .bd-hero-card,
body[data-page="detail"] .bd-hero-media,
body[data-page="detail"] .bd-main,
body[data-page="detail"] .bd-layout,
body[data-page="detail"] .bd-content,
body[data-page="detail"] .bd-sidebar,
body[data-page="detail"] .bd-card,
body.body-page-detail .bd-hero,
body.body-page-detail .bd-hero-card,
body.body-page-detail .bd-hero-media,
body.body-page-detail .bd-main,
body.body-page-detail .bd-layout,
body.body-page-detail .bd-content,
body.body-page-detail .bd-sidebar,
body.body-page-detail .bd-card {
  min-width: 0 !important;
  max-width: 100% !important;
}

body[data-page="detail"] img,
body[data-page="detail"] iframe,
body[data-page="detail"] video,
body[data-page="detail"] table,
body.body-page-detail img,
body.body-page-detail iframe,
body.body-page-detail video,
body.body-page-detail table {
  max-width: 100% !important;
}

body[data-page="detail"] .bd-hero-media button,
body[data-page="detail"] .bd-gallery-grid button,
body.body-page-detail .bd-hero-media button,
body.body-page-detail .bd-gallery-grid button {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body[data-page="detail"] .bd-hero-media img,
body[data-page="detail"] .bd-gallery-grid img,
body.body-page-detail .bd-hero-media img,
body.body-page-detail .bd-gallery-grid img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body[data-page="detail"] .bd-gallery-grid,
body.body-page-detail .bd-gallery-grid {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

body[data-page="detail"] .bd-mobile-actions,
body.body-page-detail .bd-mobile-actions {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow: hidden !important;
}

body[data-page="detail"] .site-footer,
body.body-page-detail .site-footer {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  margin-inline: 0 !important;
}

@media (max-width: 979px) {
  body[data-page="detail"] .bd-layout,
  body.body-page-detail .bd-layout {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  body[data-page="detail"] .bd-sidebar,
  body.body-page-detail .bd-sidebar {
    position: static !important;
    width: 100% !important;
    margin-top: 14px !important;
  }
}

@media (max-width: 700px) {
  body[data-page="detail"] .bd-shell,
  body.body-page-detail .bd-shell {
    width: calc(100% - 22px) !important;
    max-width: calc(100vw - 22px) !important;
  }

  body[data-page="detail"] .bd-hero-card,
  body.body-page-detail .bd-hero-card {
    border-radius: 18px !important;
  }

  body[data-page="detail"] .bd-hero-media,
  body.body-page-detail .bd-hero-media {
    aspect-ratio: 4 / 3 !important;
  }

  body[data-page="detail"] .bd-card,
  body.body-page-detail .bd-card {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  body[data-page="detail"] .bd-gallery-grid,
  body.body-page-detail .bd-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-page="detail"] .bd-facts-grid,
  body.body-page-detail .bd-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-page="detail"] .bd-review-form,
  body.body-page-detail .bd-review-form {
    grid-template-columns: 1fr !important;
  }

  body[data-page="detail"] .bd-star-rating,
  body.body-page-detail .bd-star-rating {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  body[data-page="detail"] .bd-star-rating label,
  body.body-page-detail .bd-star-rating label {
    min-width: 0 !important;
    padding-inline: 2px !important;
  }
}
