/* Shared styles for villa detail pages and language pages (ru/, zh/).
   Colours and fonts mirror the homepage tokens in index.html. */
:root {
  --midnight: #1E2D3D; --navy: #16232F; --navy-2: #243444;
  --gold: #4A85B0; --gold-dark: #2E6A94; --gold-light: #6BA3C4; --gold-pale: #E2EEF5;
  --pearl: #F4F1EC; --pearl-2: #E8E3DA; --white: #FFFFFF;
  --text: #3C4550; --muted: #7A8A96; --border: rgba(74,133,176,.2);
  --sh-md: 0 8px 40px rgba(30,45,61,.14);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--pearl); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px,4vw,48px); }
section { padding: clamp(56px,8vw,96px) 0; }

/* Nav */
.pnav { position: sticky; top: 0; z-index: 900; background: rgba(249,249,249,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.pnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.pnav-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pnav-logo img { height: 38px; width: auto; }
.pnav-logo strong { display: block; font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.05rem; letter-spacing: .1em; color: var(--midnight); line-height: 1.1; }
.pnav-logo span { display: block; font-size: .56rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-dark); }
.pnav-links { display: flex; align-items: center; gap: clamp(10px,2vw,26px); }
.pnav-links a { white-space: nowrap; font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.pnav-links a:hover, .pnav-links a[aria-current] { color: var(--gold); }
.pnav-book { background: var(--gold); color: var(--white) !important; font-weight: 700 !important; padding: 9px 18px; white-space: nowrap; }
.pnav-book:hover { background: var(--gold-light); }
@media (max-width: 760px) {
  .pnav-links .hide-sm { display: none; }
  .pnav-logo span { display: none; }
}

/* Hero */
.phero { position: relative; min-height: clamp(380px,62vh,620px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.phero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,35,47,.88) 0%, rgba(22,35,47,.35) 55%, rgba(22,35,47,.15) 100%); }
.phero .wrap { position: relative; z-index: 1; padding-bottom: clamp(32px,6vw,64px); }
.crumbs { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.crumbs a:hover { color: var(--white); }
.phero h1 { font-family: 'Cormorant Garamond', 'Noto Serif SC', serif; font-weight: 300; font-size: clamp(2.2rem,5.6vw,4.2rem); line-height: 1.08; margin-bottom: 14px; }
.phero p { max-width: 640px; font-weight: 300; font-size: clamp(.9rem,1.6vw,1.05rem); color: rgba(255,255,255,.88); }
.phero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Buttons & type */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 14px 28px; transition: background .3s, color .3s, border-color .3s; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-dark { border: 1px solid var(--midnight); color: var(--midnight); }
.btn-dark:hover { background: var(--midnight); color: var(--white); }
.eyebrow { font-size: .66rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
h2 { font-family: 'Cormorant Garamond', 'Noto Serif SC', serif; font-weight: 300; font-size: clamp(1.8rem,3.6vw,2.7rem); color: var(--midnight); line-height: 1.15; margin-bottom: 18px; }
h3 { font-family: 'Cormorant Garamond', 'Noto Serif SC', serif; font-weight: 400; font-size: 1.35rem; color: var(--midnight); line-height: 1.25; margin-bottom: 8px; }
.lead { font-size: 1rem; font-weight: 300; max-width: 760px; }
.prose p { font-weight: 300; margin-bottom: 14px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4,1fr); background: var(--white); box-shadow: var(--sh-md); margin-top: -40px; position: relative; z-index: 2; }
.fact { padding: 22px 16px; text-align: center; border-right: 1px solid var(--border); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 400; color: var(--gold-dark); line-height: 1.1; }
.fact span { font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2,1fr); } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }

/* Two-column layout */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px,5vw,64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { display: grid; gap: 10px; margin-top: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: .9rem; font-weight: 300; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* Direct-booking box */
.perks { background: var(--navy); color: rgba(255,255,255,.85); padding: clamp(24px,3vw,36px); }
.perks h3 { color: var(--white); }
.perks .eyebrow { color: var(--gold-light); }
.perks .ticks li { font-size: .85rem; }
.perks .ticks li::before { border-color: var(--gold-light); }
.code { display: inline-block; font-family: monospace; font-size: .92rem; letter-spacing: .12em; background: rgba(107,163,196,.18); border: 1px dashed var(--gold-light); color: var(--white); padding: 2px 8px; }
.perks .btn { width: 100%; margin-top: 22px; }
.perks small { display: block; margin-top: 12px; font-size: .72rem; color: rgba(255,255,255,.55); }

/* Gallery */
.pgallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.pgallery a { aspect-ratio: 4/3; overflow: hidden; background: var(--pearl-2); }
.pgallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.pgallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pgallery a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .pgallery { grid-template-columns: repeat(2,1fr); } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 20px; }
.card { background: var(--white); box-shadow: 0 2px 16px rgba(30,45,61,.08); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.card p { font-size: .85rem; font-weight: 300; margin-bottom: 14px; }
.card .more { margin-top: auto; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }

/* Facilities grid */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
.feat { background: var(--white); padding: 22px; border-top: 2px solid var(--gold); }
.feat p { font-size: .85rem; font-weight: 300; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; color: var(--midnight); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; font-weight: 300; font-size: .9rem; }

/* Contact / CTA band */
.band { background: var(--midnight); color: rgba(255,255,255,.85); text-align: center; }
.band h2 { color: var(--white); }
.band .lead { margin: 0 auto 26px; }
.band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 26px; font-size: .85rem; }
.contact-list a { color: var(--gold-light); }
.bg-white { background: var(--white); }

/* Footer */
.pfoot { background: var(--navy); color: rgba(255,255,255,.6); font-size: .78rem; padding: 36px 0 90px; }
.pfoot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.pfoot a { color: rgba(255,255,255,.8); }
.pfoot a:hover { color: var(--gold-light); }
.pfoot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Phone numbers, emails and promo codes always read left-to-right */
a[href^="tel:"], a[href^="mailto:"], .code { direction: ltr; unicode-bidi: isolate; }

/* Arabic (right-to-left) */
[dir="rtl"] body { font-family: 'Tajawal', 'Montserrat', sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .phero h1 { font-family: 'Tajawal', serif; font-weight: 500; }
[dir="rtl"] .phero h1 { font-weight: 700; }
/* Letter-spacing and capitals break Arabic letter joining */
[dir="rtl"] .eyebrow, [dir="rtl"] .btn, [dir="rtl"] .pnav-links a, [dir="rtl"] .crumbs,
[dir="rtl"] .card-meta, [dir="rtl"] .card .more, [dir="rtl"] .fact span { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .btn, [dir="rtl"] .pnav-links a { font-size: .85rem; }
[dir="rtl"] .eyebrow { font-size: .85rem; }
[dir="rtl"] .ticks li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .ticks li::before { left: auto; right: 0; }
[dir="rtl"] .fact { border-right: 0; border-left: 1px solid var(--border); }
[dir="rtl"] .fact:last-child { border-left: 0; }

/* ── Brand colours for this hotel ── */
:root {
  --midnight: #2A2319; --navy: #2A2319; --navy-2: #3A3125;
  --gold: #8B6F47; --gold-dark: #6B5234; --gold-light: #B8966A; --gold-pale: #EDE3D1;
  --pearl: #F5EFE4; --pearl-2: #E8DCC6;
  --border: color-mix(in srgb, #8B6F47 25%, transparent);
}
.btn-gold, .pnav-book { color: #FFFFFF !important; }
.pnav-logo img { border-radius: 4px; }
