/* ============================================================
 * Hotel Apartments — أنماط الواجهة (ستايل Monte، RTL, Mobile-first)
 * ============================================================ */

.apbk-container {
	width: 100%;
	max-width: var(--apbk-maxw);
	margin-inline: auto;
	padding-inline: 18px;
}

.apbk-site-content { min-height: 60vh; padding-bottom: 24px; }

/* ----- الأزرار ----- */
.apbk-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px 9px 20px;
	border-radius: var(--apbk-pill);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform .06s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
	white-space: nowrap;
	line-height: 1;
}
.apbk-btn:active { transform: translateY(1px); }

/* أيقونة دائرية داخل الزر (شكل Monte) */
.apbk-btn .apbk-btn-ico {
	width: 34px; height: 34px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 auto;
	font-size: 1rem;
}

.apbk-btn-dark { background: var(--apbk-ink); color: #fff; }
.apbk-btn-dark .apbk-btn-ico { background: rgba(255,255,255,.14); }
.apbk-btn-dark:hover { background: #000; color: #fff; box-shadow: var(--apbk-shadow-sm); }

.apbk-btn-light { background: var(--apbk-surface); color: var(--apbk-ink); border-color: var(--apbk-line); padding-inline: 18px; }
.apbk-btn-light .apbk-btn-ico { background: var(--apbk-surface-2); }
.apbk-btn-light:hover { background: var(--apbk-surface-2); }

.apbk-btn-plain { padding: 11px 20px; border-radius: var(--apbk-pill); }

/* ============================================================
 * الترويسة — شريط أبيض دائري عائم على الخلفية الرمادية
 * ============================================================ */
.apbk-site-header { position: sticky; top: 0; z-index: 50; padding: 16px 18px 0; }

.apbk-header-inner {
	max-width: var(--apbk-maxw);
	margin-inline: auto;
	background: var(--apbk-surface);
	border-radius: var(--apbk-pill);
	box-shadow: var(--apbk-shadow-sm);
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
}

.apbk-branding { display: flex; align-items: center; gap: 10px; padding-inline-start: 8px; flex: 0 0 auto; }
.apbk-site-title { font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; color: var(--apbk-ink); }
.apbk-branding img { max-height: 40px; width: auto; }

/* الحاوية القابلة للطي (تضم القائمة + الأزرار) */
.apbk-collapse { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.apbk-nav .apbk-menu {
	display: flex; align-items: center; gap: 4px;
	list-style: none; margin: 0; padding: 0;
}
.apbk-menu a {
	display: block; padding: 9px 16px; border-radius: var(--apbk-pill);
	color: var(--apbk-ink-2); font-weight: 600; font-size: .95rem;
}
.apbk-menu a:hover,
.apbk-menu .current-menu-item > a { background: var(--apbk-surface-2); color: var(--apbk-ink); }

.apbk-header-actions { display: flex; align-items: center; gap: 14px; }
.apbk-header-phone { font-weight: 700; color: var(--apbk-ink); white-space: nowrap; }

/* زر الهامبرغر (يظهر على الموبايل فقط) */
.apbk-nav-toggle {
	display: none; width: 44px; height: 44px; flex: 0 0 auto;
	align-items: center; justify-content: center;
	border-radius: 50%; border: 1px solid var(--apbk-line);
	background: var(--apbk-surface); cursor: pointer; margin-inline-start: auto;
}
.apbk-burger, .apbk-burger::before, .apbk-burger::after {
	content: ""; display: block; width: 18px; height: 2px;
	background: var(--apbk-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.apbk-burger { position: relative; }
.apbk-burger::before { position: absolute; inset-inline: 0; top: -6px; }
.apbk-burger::after  { position: absolute; inset-inline: 0; top: 6px; }
.apbk-nav-toggle.is-open .apbk-burger { background: transparent; }
.apbk-nav-toggle.is-open .apbk-burger::before { transform: translateY(6px) rotate(45deg); }
.apbk-nav-toggle.is-open .apbk-burger::after  { transform: translateY(-6px) rotate(-45deg); }

/* ===== الموبايل: قائمة منسدلة ===== */
@media (max-width: 900px) {
	.apbk-header-inner { flex-wrap: wrap; border-radius: 26px; }
	.apbk-nav-toggle { display: inline-flex; }
	.apbk-collapse {
		flex-basis: 100%; flex-direction: column; align-items: stretch;
		gap: 6px; display: none; padding-top: 8px;
	}
	.apbk-collapse.is-open { display: flex; }
	.apbk-nav .apbk-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.apbk-menu a { padding: 12px 14px; border-radius: 12px; }
	.apbk-header-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 4px; }
	.apbk-header-actions .apbk-btn { justify-content: center; }
	.apbk-header-phone { text-align: center; }
}

/* ============================================================
 * Hero (ودجت Elementor: apbk_hero) — ستايل Monte
 * ============================================================ */
.apbk-hero {
	position: relative;
	margin-top: 18px;
	border-radius: var(--apbk-radius);
	overflow: hidden;
	min-height: 520px;
	display: flex;
	align-items: flex-end;
	padding: clamp(28px, 5vw, 70px);
	background-color: #1a1d24;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}
.apbk-hero::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient( 180deg, rgba(20,22,28,.05) 0%, rgba(20,22,28,.45) 55%, rgba(20,22,28,.82) 100% );
}
.apbk-hero-content { position: relative; z-index: 1; color: #fff; max-width: 680px; }
.apbk-hero.is-center { align-items: center; justify-content: center; text-align: center; }
.apbk-hero.is-center .apbk-hero-content { margin-inline: auto; }
.apbk-hero .apbk-eyebrow { color: rgba(255,255,255,.82); }
.apbk-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4rem); margin-bottom: .3em; }
.apbk-hero p { color: rgba(255,255,255,.92); font-size: 1.12rem; max-width: 46ch; margin: 0 0 24px; }
.apbk-hero.is-center p { margin-inline: auto; }
.apbk-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.apbk-hero.is-center .apbk-hero-actions { justify-content: center; }

/* زر مفرّغ على خلفية داكنة */
.apbk-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.apbk-btn-outline-light .apbk-btn-ico { background: rgba(255,255,255,.16); }
.apbk-btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ============================================================
 * أقسام الصفحة الرئيسية (ودجتات apbk_*)
 * ============================================================ */
.apbk-sec { max-width: var(--apbk-maxw); margin-inline: auto; padding: 44px 18px; }
.apbk-sec-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.apbk-sec-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0; }

/* مميزات */
.apbk-feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.apbk-feature { background: var(--apbk-surface); border: 1px solid var(--apbk-line); border-radius: var(--apbk-radius); padding: 26px 20px; box-shadow: var(--apbk-shadow-sm); text-align: center; transition: box-shadow .18s ease, transform .18s ease; }
.apbk-feature:hover { box-shadow: var(--apbk-shadow); transform: translateY(-3px); }
.apbk-feature-ico { font-size: 1.7rem; display: inline-flex; width: 62px; height: 62px; border-radius: 50%; background: var(--apbk-surface-2); align-items: center; justify-content: center; margin-bottom: 14px; }
.apbk-feature h3 { font-size: 1.1rem; margin: 0 0 6px; }
.apbk-feature p { color: var(--apbk-muted); margin: 0; font-size: .92rem; line-height: 1.7; }

/* خطوات */
.apbk-steps { display: grid; grid-template-columns: 1fr; gap: 22px; }
.apbk-step { text-align: center; padding: 6px; }
.apbk-step-num { width: 54px; height: 54px; border-radius: 50%; background: var(--apbk-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; }
.apbk-step h3 { font-size: 1.1rem; margin: 0 0 6px; }
.apbk-step p { color: var(--apbk-muted); margin: 0 auto; font-size: .92rem; line-height: 1.7; max-width: 34ch; }

/* وجهات / مناطق */
.apbk-loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.apbk-loc-card { position: relative; aspect-ratio: 4 / 3; border-radius: var(--apbk-radius-md); overflow: hidden; background: var(--apbk-surface-2); background-size: cover; background-position: center; display: flex; align-items: flex-end; box-shadow: var(--apbk-shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.apbk-loc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,28,0) 30%, rgba(20,22,28,.78) 100%); }
.apbk-loc-card:hover { transform: translateY(-3px); box-shadow: var(--apbk-shadow); }
.apbk-loc-info { position: relative; z-index: 1; padding: 16px; color: #fff; }
.apbk-loc-info strong { display: block; font-size: 1.15rem; font-weight: 700; }
.apbk-loc-info small { opacity: .85; font-size: .85rem; }

/* شريط CTA */
.apbk-cta-band { background: var(--apbk-ink); color: #fff; border-radius: var(--apbk-radius); padding: clamp(30px, 5vw, 56px); text-align: center; }
.apbk-cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 10px; }
.apbk-cta-band p { color: rgba(255,255,255,.85); margin: 0 auto 22px; max-width: 48ch; }

@media (min-width: 640px) {
	.apbk-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 780px) {
	.apbk-steps { grid-template-columns: repeat(3, 1fr); }
	.apbk-loc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
	.apbk-feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
 * الأرشيف
 * ============================================================ */
.apbk-archive { padding-top: 8px; }

.apbk-archive-head { margin: 26px 4px 18px; }
.apbk-archive-title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: .15em; }
.apbk-archive-sub { color: var(--apbk-muted); margin: 0; font-size: 1.05rem; }

/* شريط الفلاتر (شرائح pill) */
.apbk-filters {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	background: var(--apbk-surface);
	border-radius: var(--apbk-pill);
	box-shadow: var(--apbk-shadow-sm);
	padding: 10px 12px;
	margin-bottom: 22px;
}
.apbk-filter { display: flex; flex-direction: column; }
.apbk-filter select {
	appearance: none;
	padding: 10px 16px; border: 1px solid var(--apbk-line);
	border-radius: var(--apbk-pill); background: var(--apbk-surface);
	font: inherit; font-weight: 600; color: var(--apbk-ink); cursor: pointer;
}
.apbk-filters .apbk-btn { margin-inline-start: auto; }
.apbk-filter-clear { color: var(--apbk-muted); font-weight: 600; padding: 10px 14px; }

/* شبكة الكروت */
.apbk-grid-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }

.apbk-card {
	background: var(--apbk-surface);
	border-radius: var(--apbk-radius);
	box-shadow: var(--apbk-shadow-sm);
	overflow: hidden;
	display: flex; flex-direction: column;
	padding: 10px;
	transition: box-shadow .18s ease, transform .18s ease;
}
.apbk-card:hover { box-shadow: var(--apbk-shadow); transform: translateY(-3px); }

.apbk-card-media {
	position: relative; display: block;
	aspect-ratio: 4 / 3; border-radius: var(--apbk-radius-md);
	overflow: hidden; background: var(--apbk-surface-2);
}
.apbk-card-img { width: 100%; height: 100%; object-fit: cover; }
.apbk-card-noimg {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	color: var(--apbk-muted); font-size: .9rem;
}
.apbk-card-badge {
	position: absolute; top: 12px; inset-inline-start: 12px;
	background: var(--apbk-surface); color: var(--apbk-ink);
	padding: 6px 12px 6px 10px; border-radius: var(--apbk-pill);
	font-size: .82rem; font-weight: 700;
	display: inline-flex; align-items: center; gap: 6px;
	box-shadow: var(--apbk-shadow-sm);
}
.apbk-card-status {
	position: absolute; bottom: 12px; inset-inline-end: 12px;
	background: rgba(20,22,28,.62); color: #fff; backdrop-filter: blur(6px);
	padding: 5px 12px; border-radius: var(--apbk-pill); font-size: .78rem; font-weight: 600;
}

.apbk-card-body { padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.apbk-card-title { font-size: 1.18rem; margin: 0; line-height: 1.3; }
.apbk-card-title a { color: var(--apbk-ink); }
.apbk-card-title a:hover { opacity: .7; }

.apbk-card-meta {
	display: flex; flex-wrap: wrap; gap: 8px 16px;
	list-style: none; margin: 0; padding: 0;
	color: var(--apbk-muted); font-size: .9rem; font-weight: 500;
}
.apbk-card-meta li { display: inline-flex; align-items: center; gap: 6px; }

.apbk-card-foot {
	margin-top: auto; display: flex; align-items: center; justify-content: space-between;
	gap: 10px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--apbk-line);
}
.apbk-card-price strong { font-size: 1.15rem; font-weight: 800; }
.apbk-card-price small { color: var(--apbk-muted); font-weight: 500; }

.apbk-pagination { margin: 30px 0 10px; text-align: center; }
.apbk-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px; margin: 3px;
	border: 1px solid var(--apbk-line); border-radius: var(--apbk-pill);
	background: var(--apbk-surface); color: var(--apbk-ink); font-weight: 600;
}
.apbk-pagination .page-numbers.current { background: var(--apbk-ink); color: #fff; border-color: var(--apbk-ink); }

.apbk-empty {
	text-align: center; color: var(--apbk-muted);
	background: var(--apbk-surface); border-radius: var(--apbk-radius);
	padding: 60px 20px; box-shadow: var(--apbk-shadow-sm);
}

/* ============================================================
 * الصفحة المفردة (ستايل Monte)
 * ============================================================ */
.apbk-single { padding-top: 8px; }

.apbk-single-panel {
	background: var(--apbk-surface);
	border-radius: var(--apbk-radius);
	box-shadow: var(--apbk-shadow-sm);
	padding: clamp(20px, 3vw, 38px);
	margin-top: 18px;
}

.apbk-breadcrumb {
	display: flex; gap: 8px; align-items: center;
	color: var(--apbk-muted); font-size: .9rem; margin-bottom: 22px; flex-wrap: wrap;
}
.apbk-breadcrumb a { color: var(--apbk-muted); }
.apbk-breadcrumb a:hover { color: var(--apbk-ink); }
.apbk-breadcrumb .sep { opacity: .5; }

/* تخطيط الرأس: عمود معلومات + الصورة الكبيرة + كارت السعر */
.apbk-single-hero {
	display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start;
}
.apbk-single-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 22px; }
.apbk-single-loc { color: var(--apbk-muted); margin: 0 0 18px; display: inline-flex; gap: 6px; }

.apbk-hero-photo {
	border-radius: var(--apbk-radius-md); overflow: hidden; position: relative;
	aspect-ratio: 4 / 3; background: var(--apbk-surface-2);
}
.apbk-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* سلايدر الصور */
.apbk-slides { position: absolute; inset: 0; }
.apbk-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.apbk-slide.is-active { opacity: 1; }
.apbk-slide-nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
	background: rgba(255,255,255,.92); color: var(--apbk-ink);
	font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center;
	box-shadow: var(--apbk-shadow-sm); transition: background .15s ease;
}
.apbk-slide-nav:hover { background: #fff; }
.apbk-prev { inset-inline-end: 12px; }
.apbk-next { inset-inline-start: 12px; }
.apbk-slide-dots { position: absolute; bottom: 14px; inset-inline-end: 16px; z-index: 2; display: flex; gap: 6px; }
.apbk-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s ease, background .2s ease; }
.apbk-dot.is-active { width: 22px; border-radius: 5px; background: #fff; }

.apbk-single-lead { color: var(--apbk-muted); font-size: 1.05rem; margin: 0; max-width: 42ch; }
.apbk-hero-photo .apbk-map-pill {
	position: absolute; bottom: 14px; inset-inline-start: 14px;
	background: var(--apbk-surface); padding: 8px 16px; border-radius: var(--apbk-pill);
	font-weight: 700; font-size: .85rem; box-shadow: var(--apbk-shadow-sm);
	display: inline-flex; gap: 6px; align-items: center;
}

/* كارت السعر / المعلومات الجانبي */
.apbk-info-card {
	background: var(--apbk-surface-2); border-radius: var(--apbk-radius-md);
	padding: 22px;
}
.apbk-info-tag {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--apbk-surface); border: 1px solid var(--apbk-line);
	padding: 5px 12px; border-radius: var(--apbk-pill); font-size: .8rem; font-weight: 600;
	color: var(--apbk-muted); margin-bottom: 12px;
}
.apbk-info-price { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 12px; }
.apbk-info-price small { font-size: .9rem; color: var(--apbk-muted); font-weight: 500; }

.apbk-info-facts {
	display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0 0 6px; padding: 14px 0;
	border-top: 1px solid var(--apbk-line); color: var(--apbk-ink-2); font-weight: 600; font-size: .92rem;
}
.apbk-info-facts li { display: inline-flex; align-items: center; gap: 6px; }

/* شرائح المميزات (✓) */
.apbk-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.apbk-chip-feature {
	display: inline-flex; align-items: center; gap: 7px;
	background: var(--apbk-surface); border: 1px solid var(--apbk-line);
	padding: 8px 14px 8px 12px; border-radius: var(--apbk-pill);
	font-size: .9rem; font-weight: 600;
}
.apbk-chip-feature .apbk-check {
	width: 18px; height: 18px; border-radius: 50%; background: var(--apbk-ink); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; font-size: .65rem;
}
.apbk-chip-green {
	background: var(--apbk-green-bg); color: var(--apbk-green); border: none;
	display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 14px; border-radius: var(--apbk-pill); font-size: .9rem; font-weight: 700;
}

/* صف معلومات سفلي */
.apbk-single-body { margin-top: 30px; display: grid; grid-template-columns: 1fr; gap: 30px; }
.apbk-section-block + .apbk-section-block { border-top: 1px solid var(--apbk-line); padding-top: 26px; }
.apbk-section-h { font-size: 1.5rem; margin: 0 0 14px; }
.apbk-prose { color: var(--apbk-ink-2); }

/* المعرض */
.apbk-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.apbk-gallery-item { margin: 0; border-radius: var(--apbk-radius-md); overflow: hidden; aspect-ratio: 4/3; background: var(--apbk-surface-2); }
.apbk-gallery-item.is-main { grid-column: 1 / -1; aspect-ratio: 16/9; }
.apbk-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* كارت المستشار */
.apbk-agent {
	display: flex; align-items: center; gap: 14px;
	background: var(--apbk-surface); border: 1px solid var(--apbk-line);
	border-radius: var(--apbk-pill); padding: 10px 16px 10px 10px; width: fit-content;
}
.apbk-agent img, .apbk-agent .apbk-agent-ph {
	width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--apbk-surface-2);
}
.apbk-agent b { display: block; font-size: .95rem; }
.apbk-agent span { color: var(--apbk-muted); font-size: .82rem; }

/* وحدة الحجز */
.apbk-booking { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.apbk-book-field label { display: block; font-weight: 600; font-size: .88rem; color: var(--apbk-muted); margin-bottom: 6px; }
.apbk-book-dates {
	width: 100%; padding: 12px 14px; border: 1px solid var(--apbk-line); border-radius: var(--apbk-radius-sm);
	background: var(--apbk-surface); font: inherit; cursor: pointer;
}
.apbk-stepper { display: flex; align-items: center; gap: 10px; }
.apbk-stepper button {
	width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--apbk-line);
	background: var(--apbk-surface); font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--apbk-ink);
}
.apbk-stepper button:hover { background: var(--apbk-bg); }
.apbk-book-guests {
	width: 70px; text-align: center; padding: 10px; border: 1px solid var(--apbk-line);
	border-radius: var(--apbk-radius-sm); font: inherit;
}
.apbk-book-summary {
	display: flex; flex-direction: column; gap: 8px; padding: 14px 0;
	border-top: 1px solid var(--apbk-line); border-bottom: 1px solid var(--apbk-line);
}
.apbk-book-summary > div { display: flex; justify-content: space-between; align-items: center; }
.apbk-book-summary span { color: var(--apbk-muted); }
.apbk-book-summary b { font-size: 1.05rem; }
.apbk-book-note { color: #c0392b; font-size: .85rem; margin: 0; }
.apbk-book-submit { width: 100%; justify-content: center; }

/* اختيار نوع الإقامة (segmented) */
.apbk-segmented { display: flex; gap: 4px; background: var(--apbk-surface-2); padding: 4px; border-radius: var(--apbk-pill); }
.apbk-seg { flex: 1; padding: 9px 6px; border: none; background: transparent; border-radius: var(--apbk-pill); font: inherit; font-weight: 600; font-size: .85rem; color: var(--apbk-ink-2); cursor: pointer; transition: background .15s ease, color .15s ease; }
.apbk-seg.is-active { background: var(--apbk-ink); color: #fff; box-shadow: var(--apbk-shadow-sm); }
.apbk-seg:hover:not(.is-active) { color: var(--apbk-ink); }

/* ============================================================
 * صفحة عرض الشقة — إعادة بناء UX/UI
 * ============================================================ */

/* رأس الصفحة */
.apbk-detail-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.apbk-detail-head-main { flex: 1 1 320px; }
.apbk-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.apbk-tag-soft { background: var(--apbk-surface-2); color: var(--apbk-ink-2); font-weight: 600; font-size: .8rem; padding: 6px 12px; border-radius: var(--apbk-pill); }
.apbk-tag-avail { display: inline-flex; align-items: center; gap: 7px; background: var(--apbk-green-bg); color: var(--apbk-green); font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: var(--apbk-pill); }
.apbk-dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--apbk-green); box-shadow: 0 0 0 3px rgba(47,143,86,.2); }
.apbk-tag-out { display: inline-flex; align-items: center; gap: 6px; background: #fdecea; color: #b3261e; font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: var(--apbk-pill); }

/* شقة غير متاحة */
.apbk-card-status.is-out { background: rgba(179,38,30,.85); }
.apbk-card.is-unavailable .apbk-card-img { filter: grayscale(.35); }
.apbk-unavailable-box { text-align: center; padding: 6px 2px; }
.apbk-unavailable-msg { font-size: 1.05rem; margin: 4px 0; }
.apbk-unavailable-sub { color: var(--apbk-muted); font-size: .9rem; margin: 0 0 14px; }
.apbk-unavailable-box .apbk-btn { width: 100%; justify-content: center; }
.apbk-quickmeta { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; color: var(--apbk-muted); font-weight: 600; font-size: .95rem; }
.apbk-quickmeta li { display: inline-flex; align-items: center; gap: 6px; }
.apbk-detail-head-price { text-align: end; flex: 0 0 auto; }
.apbk-detail-head-price strong { display: block; font-size: 1.7rem; font-weight: 800; }

/* المعرض */
.apbk-gallery2 { margin-bottom: 30px; }
.apbk-gallery-main { position: relative; border-radius: var(--apbk-radius-md); overflow: hidden; aspect-ratio: 16 / 10; background: var(--apbk-surface-2); }
.apbk-gallery-main .apbk-slide img { width: 100%; height: 100%; object-fit: cover; }
.apbk-gallery-count { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; background: rgba(20,22,28,.6); color: #fff; backdrop-filter: blur(6px); padding: 5px 12px; border-radius: var(--apbk-pill); font-size: .82rem; font-weight: 600; }
.apbk-gallery-expand { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.92); color: var(--apbk-ink); font-size: 1.1rem; box-shadow: var(--apbk-shadow-sm); }
.apbk-gallery-expand:hover { background: #fff; }
.apbk-map-pill { position: absolute; bottom: 14px; inset-inline-start: 14px; z-index: 2; background: var(--apbk-surface); padding: 8px 16px; border-radius: var(--apbk-pill); font-weight: 700; font-size: .85rem; box-shadow: var(--apbk-shadow-sm); display: inline-flex; gap: 6px; align-items: center; }
.apbk-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.apbk-thumb { flex: 0 0 auto; width: 94px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--apbk-surface-2); opacity: .65; transition: opacity .15s ease, border-color .15s ease; }
.apbk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.apbk-thumb.is-active { opacity: 1; border-color: var(--apbk-ink); }
.apbk-thumb:hover { opacity: 1; }

/* Lightbox */
.apbk-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; gap: 8px; padding: 20px; background: rgba(15,16,20,.92); }
.apbk-lightbox.is-open { display: flex; }
.apbk-lb-stage { margin: 0; position: relative; max-width: 92vw; max-height: 84vh; display: flex; align-items: center; justify-content: center; }
.apbk-lb-img { max-width: 92vw; max-height: 84vh; border-radius: 12px; object-fit: contain; }
.apbk-lb-count { position: absolute; bottom: -30px; inset-inline: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }
.apbk-lb-nav, .apbk-lb-close { border: none; cursor: pointer; color: #fff; background: rgba(255,255,255,.14); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.apbk-lb-nav { width: 50px; height: 50px; font-size: 1.8rem; flex: 0 0 auto; }
.apbk-lb-nav:hover, .apbk-lb-close:hover { background: rgba(255,255,255,.28); }
.apbk-lb-close { position: absolute; top: 18px; inset-inline-end: 18px; width: 44px; height: 44px; font-size: 1.2rem; }

/* شبكة الجسم */
.apbk-detail-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.apbk-detail-main { min-width: 0; }
.apbk-detail-side { min-width: 0; }

/* حقائق سريعة */
.apbk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.apbk-facts li { background: var(--apbk-surface-2); border-radius: var(--apbk-radius-sm); padding: 16px 12px; text-align: center; }
.apbk-fact-ico { font-size: 1.5rem; display: block; }
.apbk-facts b { display: block; font-size: 1.3rem; margin: 4px 0 2px; }
.apbk-fact-label { color: var(--apbk-muted); font-size: .82rem; }

/* سياسات الحجز */
.apbk-policy { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.apbk-policy li { display: flex; gap: 10px; align-items: flex-start; color: var(--apbk-ink-2); }
.apbk-map-btn { width: fit-content; }

/* كارت الحجز */
.apbk-price-card { background: var(--apbk-surface); border: 1px solid var(--apbk-line); border-radius: var(--apbk-radius-md); box-shadow: var(--apbk-shadow); padding: 22px; scroll-margin-top: 90px; }
.apbk-price-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.apbk-price-amount { font-size: 1.7rem; font-weight: 800; }
.apbk-price-unit { color: var(--apbk-muted); font-size: .9rem; }
.apbk-book-total-row b { color: var(--apbk-ink); font-size: 1.2rem; }
.apbk-book-trust { margin: 14px 0 0; color: var(--apbk-muted); font-size: .8rem; text-align: center; line-height: 1.6; }
.apbk-price-note { margin: -6px 0 14px; padding: 10px 12px; background: var(--apbk-surface-2); border-radius: var(--apbk-radius-sm); color: var(--apbk-ink-2); font-size: .82rem; line-height: 1.6; }

/* أيام محجوزة في تقويم العميل: أحمر + مشطوب */
.flatpickr-day.apbk-booked,
.flatpickr-day.apbk-booked:hover {
	color: #b3261e !important;
	background: #fdecea !important;
	border-color: #f6d4d2 !important;
	text-decoration: line-through;
	text-decoration-thickness: 2px;
	opacity: 1;
	cursor: not-allowed;
}
.apbk-book-legend { display: flex; align-items: center; gap: 7px; margin: 8px 2px 0; font-size: .8rem; color: var(--apbk-muted); }
.apbk-legend-dot { width: 16px; height: 16px; border-radius: 5px; background: #fdecea; border: 1px solid #f3c7ca; flex: 0 0 auto; position: relative; }
.apbk-legend-dot::after { content: ""; position: absolute; inset-inline: 2px; top: 50%; height: 2px; background: #b3261e; transform: translateY(-50%); }
.apbk-legend-strike { text-decoration: line-through; text-decoration-color: #b3261e; color: var(--apbk-ink-2); font-weight: 600; }

/* شقق مشابهة */
.apbk-similar { margin-top: 36px; }
.apbk-similar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.apbk-similar-head .apbk-section-h { margin: 0; }

/* شريط الحجز الثابت (موبايل) */
.apbk-mobile-cta { display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 55; background: var(--apbk-surface); border-top: 1px solid var(--apbk-line); box-shadow: 0 -6px 20px rgba(20,22,28,.08); padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; }
.apbk-mobile-cta-price strong { font-size: 1.15rem; font-weight: 800; }
.apbk-mobile-cta-price span { color: var(--apbk-muted); font-size: .85rem; }
.apbk-mobile-cta .apbk-btn { flex: 0 0 auto; }

/* ============================================================
 * التذييل + زر واتساب العائم
 * ============================================================ */
.apbk-site-footer {
	margin-top: 30px;
	background: var(--apbk-ink); color: #fff;
	border-radius: var(--apbk-radius) var(--apbk-radius) 0 0;
	padding: 40px 0;
	text-align: center;
}
.apbk-site-footer a { color: #fff; }
.apbk-copy { color: rgba(255,255,255,.7); margin: 0; font-size: .95rem; }

.apbk-wa-float {
	position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 60;
	width: 58px; height: 58px; border-radius: 50%; background: var(--apbk-wa); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 22px rgba(37, 211, 102, .45);
	transition: transform .15s ease;
}
.apbk-wa-float:hover { color: #fff; transform: scale(1.07); }

/* ============================================================
 * نقاط التجاوب
 * ============================================================ */
@media (min-width: 640px) {
	.apbk-grid-cards { grid-template-columns: repeat(2, 1fr); }
	.apbk-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
	.apbk-grid-cards { grid-template-columns: repeat(3, 1fr); }
	.apbk-grid-cards.apbk-cols-2 { grid-template-columns: repeat(2, 1fr); }
	.apbk-grid-cards.apbk-cols-4 { grid-template-columns: repeat(4, 1fr); }
	.apbk-detail-grid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
	.apbk-price-card { position: sticky; top: 90px; }
}

/* شريط الحجز الثابت + إخفاء زر الواتساب العائم على صفحة الشقة (موبايل) */
@media (max-width: 900px) {
	.apbk-mobile-cta { display: flex; }
	body.single-apartment { padding-bottom: 72px; }
	.single-apartment .apbk-wa-float { display: none; }
}

/* ===== شاشات صغيرة: فلاتر + hero + هوامش ===== */
@media (max-width: 600px) {
	.apbk-container { padding-inline: 14px; }

	/* الفلاتر تتكدّس بعرض كامل */
	.apbk-filters { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 12px; }
	.apbk-filter, .apbk-filter select { width: 100%; }
	.apbk-filters .apbk-btn { width: 100%; margin-inline-start: 0; justify-content: center; }
	.apbk-filter-clear { text-align: center; }

	/* hero أقصر */
	.apbk-hero { min-height: 420px; padding: 26px; }
	.apbk-hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }

	/* الصفحة المفردة + اللوحات */
	.apbk-single-panel { padding: 18px; }
	.apbk-single-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }

	/* بطاقة السعر لا تلتصق عند التمرير على الموبايل */
	.apbk-price-card { position: static; }
}
