/* ==========================================================================
   شقق الليلة الذهبية المخدومة
   المواد من المبنى نفسه: سماء الليل، حجر الواجهة، إضاءة الأعمدة، خشب الاستقبال، رخام الأرضية.
   كل الاتجاهات بخصائص منطقية لأن الصفحة عربي وإنجليزي.
   ========================================================================== */

@font-face {
	font-family: "Noto Kufi";
	src: url("../fonts/kufi-arabic.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Noto Kufi";
	src: url("../fonts/kufi-latin.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
	--night: #100d17;
	--night-2: #1c1724;
	--stone: #4a4250;
	--stone-lit: #8f8593;
	--lamp: #f0be62;
	--lamp-soft: #f8dfae;
	--walnut: #33211f;
	--walnut-dark: #27181a;
	--marble: #efece8;
	--marble-2: #dcd6ce;
	--ink: #241a1b;
	--ink-2: #5d5052;
	--gold-ink: #7d5210;
	--on-dark: #f3eee8;
	--on-dark-2: #c6bcc4;
	--error: #a3201a;

	--gutter: clamp(18px, 4vw, 40px);
	--head-h: 76px;
	--bar-h: 0px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--marble); color: var(--ink);
	font-family: "Noto Kufi", "Segoe UI", Tahoma, sans-serif; font-size: 1rem; line-height: 1.9;
	padding-bottom: var(--bar-h); overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.55; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
.section :focus-visible { outline-color: var(--gold-ink); }
.location :focus-visible, .amenities :focus-visible { outline-color: var(--lamp); }

.container { width: 100%; max-width: calc(1180px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 108px); }
.muted { color: var(--on-dark-2); }
.note { font-size: .92rem; color: var(--ink-2); margin: 14px 0 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 300; background: #fff; color: var(--ink); padding: 8px 16px; }
.skip-link:focus { top: 12px; }

/* ---------- الأزرار ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .72em 1.4em; border: 2px solid transparent; border-radius: 6px; background: none;
	font-weight: 600; line-height: 1.3; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s;
}
.btn-gold { background: var(--lamp); color: var(--walnut-dark); }
.btn-gold:hover { background: var(--lamp-soft); }
.btn-line { border-color: rgba(243, 238, 232, .45); color: var(--on-dark); }
.btn-line:hover { border-color: var(--lamp); color: var(--lamp-soft); }
.btn-line-dark { border-color: var(--ink-2); color: var(--ink); }
.btn-line-dark:hover { border-color: var(--ink); background: var(--marble-2); }
.btn-sm { padding: .5em 1.1em; font-size: .96rem; }
.btn-lg { padding: .82em 1.8em; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ---------- الهيدر ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--night); color: var(--on-dark); transition: background-color .25s; }
.site-header.over-hero { position: fixed; inset-inline: 0; background: var(--night); }
.js .site-header.over-hero:not(.is-stuck) { background: transparent; }
.header-row { height: var(--head-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); flex-shrink: 0; }
.brand .mark { color: var(--lamp); }
.brand-logo { height: 52px; width: auto; }
.brand-text { display: grid; line-height: 1.35; }
.brand-text strong { font-size: 1.05rem; font-weight: 700; }
.brand-text small { font-size: .82rem; color: var(--on-dark-2); }
.nav-main { margin-inline: auto; }
.nav-main ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav-main a { text-decoration: none; padding: 8px 2px; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav-main a:hover, .nav-main a.is-active { color: var(--lamp-soft); border-color: var(--lamp); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-link { text-decoration: none; padding: 8px 2px; }
.lang-link:hover { color: var(--lamp-soft); }
.nav-toggle, .mobile-nav-close { display: none; width: 46px; height: 46px; place-items: center; background: none; border: 0; color: var(--on-dark); }

.mobile-nav { position: fixed; inset: 0; z-index: 200; background: var(--night); color: var(--on-dark); padding: 16px var(--gutter) 28px; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-nav-close { display: grid; margin-inline-start: auto; }
.mobile-nav ul { margin-block: 10px 24px; }
.mobile-nav li a { display: block; padding: 13px 0; font-size: 1.25rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--night-2); }

/* ---------- الواجهة ---------- */
.hero { background: var(--night); color: var(--on-dark); padding-top: var(--head-h); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 76px); min-height: max(620px, calc(100svh - var(--head-h))); }
.hero-copy { align-self: center; padding-block: 40px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3.3rem); line-height: 1.5; font-weight: 800; margin-bottom: 22px; }
html[lang^="en"] .hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.4; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--on-dark-2); max-width: 33em; margin-bottom: 30px; }
.hero-rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; text-decoration: none; color: var(--on-dark); }
.hero-rating .ico { color: var(--lamp); flex-shrink: 0; }
.hero-rating:hover span { text-decoration: underline; text-underline-offset: 5px; }

/* واجهة المبنى: أعمدة مضلّعة بإضاءة من الأسفل، وثلاثة شبابيك مقوّسة. */
.facade { --pil: clamp(16px, 2.1vw, 30px); --gap: clamp(26px, 3.2vw, 46px); align-self: end; position: relative; padding: 34px 0 0; }
.facade::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 34px; background: linear-gradient(var(--stone-lit) 0 6px, var(--stone) 6px 20px, #2f2935 20px 24px, var(--stone) 24px); }
.facade-bays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: 26px calc(var(--gap) + 2px) 0; background: linear-gradient(#262030, #332b3b); }
.bay { position: relative; margin: 0; }
.bay::before, .bay:last-child::after {
	content: ""; position: absolute; top: -26px; bottom: 0; width: var(--pil); inset-inline-start: calc((var(--gap) + var(--pil)) / -2);
	background:
		linear-gradient(to top, rgba(248, 214, 146, .95), rgba(240, 190, 98, 0) 72%) bottom / 100% 46% no-repeat,
		linear-gradient(var(--stone-lit), var(--stone-lit)) 0 54% / 100% 12px no-repeat,
		linear-gradient(to top, rgba(248, 214, 146, .8), rgba(240, 190, 98, 0) 80%) 0 31% / 100% 32% no-repeat,
		linear-gradient(var(--stone-lit), var(--stone-lit)) 0 0 / 100% 14px no-repeat,
		repeating-linear-gradient(90deg, rgba(16, 13, 23, .38) 0 2px, transparent 2px 6px),
		var(--stone);
}
.bay:last-child::after { inset-inline: auto calc((var(--gap) + var(--pil)) / -2); }
.bay-glass { position: relative; display: block; height: clamp(320px, calc(100svh - var(--head-h) - 168px), 660px); border-radius: 400px 400px 0 0; overflow: hidden; background: #08060c; border: 5px solid var(--stone-lit); border-bottom: 0; }
.bay-glass img { width: 100%; height: 100%; object-fit: cover; }
.bay-glass::after { content: ""; position: absolute; inset: 0; background: #08060c; opacity: 0; animation: aln-light 1.1s var(--ease) both; animation-delay: calc(.25s + var(--n) * .55s); }
@keyframes aln-light { from { opacity: .9; } 40% { opacity: .35; } 55% { opacity: .55; } to { opacity: 0; } }
.bay figcaption { position: relative; z-index: 1; min-height: 62px; display: grid; place-items: center; text-align: center; font-size: .95rem; line-height: 1.5; padding: 8px 4px; margin-inline: calc(var(--gap) / -2); background: var(--night-2); border-top: 4px solid var(--lamp); }
.bay:first-child figcaption { margin-inline-start: calc((var(--gap) + 2px) * -1); }
.bay:last-child figcaption { margin-inline-end: calc((var(--gap) + 2px) * -1); }

/* ---------- عن المكان ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about h2 { margin-bottom: 18px; }
.about-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.times { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 26px; padding-top: 22px; border-top: 2px solid var(--marble-2); }
.times dt { font-size: .92rem; color: var(--ink-2); }
.times dd { font-weight: 700; font-size: 1.12rem; }

/* ---------- الوحدات ---------- */
.units { background: #fff; }
.sec-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { margin: 10px 0 0; color: var(--ink-2); }
.units-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(24px, 3.5vw, 48px); }
.unit-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 18px; }
.unit-facts { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 10px 0 12px; }
.unit-facts li { padding: 1px 12px; background: var(--marble); font-size: .95rem; font-weight: 600; }
.unit p { margin: 0; color: var(--ink-2); }
.unit .unit-links { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 12px; }
.unit-links a { font-weight: 600; color: var(--gold-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; padding-block: 6px; }
.unit-links a:hover { color: var(--ink); }

/* ---------- المرافق: ألواح الخشب وشريط الإضاءة ---------- */
.amenities {
	color: var(--on-dark);
	background:
		linear-gradient(var(--lamp-soft), var(--lamp-soft)) 0 0 / 100% 4px no-repeat,
		linear-gradient(rgba(240, 190, 98, .42), rgba(240, 190, 98, 0)) 0 4px / 100% 130px no-repeat,
		repeating-linear-gradient(90deg, var(--walnut) 0 34px, #2d1c1b 34px 36px, var(--walnut-dark) 36px 42px, #2d1c1b 42px 44px);
}
.amenity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(28px, 5vw, 80px); margin-top: clamp(28px, 4vw, 48px); }
.amenity-list li { display: flex; gap: 18px; align-items: flex-start; }
.amenity-list .ico { color: var(--lamp); flex-shrink: 0; margin-top: 2px; }
.amenity-list strong { display: block; font-size: 1.12rem; }
.amenity-list span { color: #dccfc6; }

/* ---------- الصور ---------- */
.gallery h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.gallery-grid { columns: 4; column-gap: 12px; }
.gallery-grid a { display: block; overflow: hidden; break-inside: avoid; margin-bottom: 12px; }
.gallery-grid img { width: 100%; transition: transform .5s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.04); }

/* ---------- الموقع ---------- */
.location { background: var(--night); color: var(--on-dark); }
.location-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.location h2 { margin-bottom: 14px; }
.location h3 { margin: 26px 0 6px; }
.location .note { color: var(--on-dark-2); margin-bottom: 26px; }
.nearby div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--stone); }
.nearby dd { color: var(--lamp-soft); font-weight: 600; white-space: nowrap; }
.map { width: 100%; height: 100%; min-height: 420px; border: 0; background: var(--night-2); }

/* ---------- الحجز ---------- */
.booking-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.booking-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.booking-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 24px; }
.field { margin: 0; display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }
.field > label { font-weight: 600; margin-bottom: 4px; }
.field small { color: var(--ink-2); font-weight: 400; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 52px; padding: 10px 14px; background: #fff; border: 2px solid #8f8487; border-radius: 6px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-ink); outline: 2px solid var(--gold-ink); outline-offset: 0; }
.field [dir="ltr"] { text-align: start; }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-size: .94rem; font-weight: 600; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; }
.consent input { width: 22px; height: 22px; margin-top: 5px; flex-shrink: 0; accent-color: var(--gold-ink); }
.consent a { color: var(--gold-ink); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.form-msg { margin: 14px 0 0; padding: 12px 16px; background: #f7e1df; color: var(--error); font-weight: 600; }
.booking-success { padding: 36px 0; }
.booking-success .ico { color: var(--gold-ink); margin-bottom: 12px; }
.booking-success p:first-of-type { font-size: 1.2rem; font-weight: 600; }

/* ---------- الأسئلة ---------- */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); }
.faq details { border-bottom: 2px solid var(--marble-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex-shrink: 0; color: var(--gold-ink); transition: transform .25s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); margin-bottom: 18px; max-width: 62ch; }

/* ---------- صفحات عادية ---------- */
.entry { max-width: 820px; padding-block: clamp(40px, 6vw, 80px); min-height: 60vh; }
.entry h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 24px; }
.entry h2 { font-size: 1.35rem; margin: 28px 0 8px; }
.entry ul { list-style: disc; padding-inline-start: 1.4em; margin-bottom: 1em; }
.entry .btn-row { margin-top: 28px; }

/* ---------- التذييل ---------- */
.site-footer { background: var(--night); color: var(--on-dark-2); padding-top: clamp(44px, 6vw, 72px); border-top: 4px solid var(--lamp); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, .8fr); gap: 36px clamp(28px, 5vw, 72px); }
.footer-name { font-size: 1.3rem; font-weight: 700; color: var(--on-dark); }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.footer-list .ico { color: var(--lamp); flex-shrink: 0; margin-top: 6px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--lamp-soft); text-decoration: underline; text-underline-offset: 5px; }
.footer-social { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin-top: 36px; padding-block: 20px; border-top: 1px solid var(--night-2); font-size: .92rem; }
.footer-bottom p { margin: 0; }

/* ---------- عناصر ثابتة ---------- */
.float-wa { position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #11753f; color: #fff; }
.float-wa:hover { background: #0d5e32; }
.to-top { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--lamp); background: var(--night); color: var(--lamp); display: grid; place-items: center; }
.mobile-bar { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(8, 6, 12, .96); color: var(--on-dark); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 60px 12px 24px; }
.lightbox figure { margin: 0; min-width: 0; text-align: center; }
.lightbox img { max-height: calc(100svh - 150px); margin-inline: auto; width: auto; }
.lightbox figcaption { margin-top: 12px; }
.lightbox button { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 2px solid var(--stone); border-radius: 50%; color: inherit; }
.lightbox button:hover { border-color: var(--lamp); color: var(--lamp); }
.lb-close { position: absolute; top: 12px; inset-inline-end: 12px; }

/* ---------- الشاشات الأصغر ---------- */
@media (max-width: 1080px) {
	.gallery-grid { columns: 3; }
	.nav-main { display: none; }
	.header-actions { margin-inline-start: auto; }
	.nav-toggle { display: grid; }
}

@media (max-width: 900px) {
	.hero-grid, .about-grid, .location-grid, .booking-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
	.hero-grid { min-height: 0; gap: 8px; }
	.hero-copy { padding-block: 28px 16px; }
	.facade { margin-inline: calc(var(--gutter) * -1); }
	.bay-glass { height: clamp(220px, 62vw, 420px); }
	.booking-img { aspect-ratio: 16 / 10; height: auto; }
	.footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.footer-grid > :first-child { grid-column: 1 / -1; }
	.map { min-height: 340px; }
}

@media (max-width: 760px) {
	:root { --bar-h: 64px; --head-h: 68px; }
	.units-grid, .amenity-list { grid-template-columns: minmax(0, 1fr); }
	.gallery-grid { columns: 2; }
	.float-wa { display: none; }
	.to-top { bottom: calc(var(--bar-h) + 14px); }
	.mobile-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 95; height: var(--bar-h); display: grid; grid-template-columns: 1fr 1fr 1.6fr; background: var(--night); color: var(--on-dark); border-top: 1px solid var(--stone); }
	.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: .9rem; }
	.mobile-bar .is-primary { background: var(--lamp); color: var(--walnut-dark); }
}

@media (max-width: 560px) {
	.header-actions .btn { display: none; }
	.header-row { gap: 12px; }
	.brand-text strong { font-size: .98rem; }
	.booking-form { grid-template-columns: minmax(0, 1fr); }
	.bay figcaption { font-size: .8rem; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.lightbox { grid-template-columns: 1fr 1fr; }
	.lightbox figure { grid-column: 1 / -1; grid-row: 1; }
	.lightbox .lb-prev { justify-self: start; }
	.lightbox .lb-next { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
