/* Vienna Corner — ركن فيينا
   Warm cream / olive-walnut / soft gold hospitality theme. No remote dependencies. */

:root {
  --cream: #f7f2e7;
  --cream-deep: #efe4cd;
  --paper: #fffdf8;
  --olive: #454f38;
  --olive-dark: #2f3626;
  --walnut: #4a362a;
  --walnut-dark: #352620;
  --gold: #c7a24c;
  --gold-soft: #e4d2a0;
  --ink: #2a2420;
  --ink-soft: #655c50;
  --line: rgba(42, 36, 32, 0.14);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 24px 48px -28px rgba(42, 36, 32, 0.35);
  --shadow-card: 0 18px 40px -24px rgba(42, 36, 32, 0.28);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html:lang(en) body { font-family: Georgia, "Times New Roman", serif; }
html:lang(en) .language,
html:lang(en) button,
html:lang(en) select,
html:lang(en) input,
html:lang(en) .brand-mark { font-family: Georgia, "Times New Roman", serif; }
html:lang(ar) body,
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) h3 { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }

h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); }
html:lang(en) h1, html:lang(en) h2, html:lang(en) h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
select, input, button { font-family: inherit; }

[data-ar], [data-en], .hero-intro, .location-name, h1, #message-preview {
  white-space: pre-line;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.skip {
  position: absolute; inset-inline-start: -999px; top: 0;
  background: var(--olive-dark); color: #fff; padding: 12px 18px; z-index: 200;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip:focus { inset-inline-start: 12px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 28px;
  background: rgba(247, 242, 231, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--olive-dark); font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  font-family: Georgia, serif;
}
.brand-mark span { color: var(--gold); }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong { font-size: 17px; letter-spacing: 0.01em; }
.brand-name small { font-size: 10px; letter-spacing: 0.14em; color: var(--ink-soft); }

.desktop-nav { display: flex; gap: 28px; font-size: 14px; }
.desktop-nav a { color: var(--ink-soft); transition: color 0.2s var(--ease); }
.desktop-nav a:hover { color: var(--olive-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.language {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.language:hover { border-color: var(--gold); background: var(--paper); }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--olive-dark); color: #fff;
  padding: 13px 22px; border-radius: 999px; border: none;
  font-size: 14px; letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: var(--shadow-card);
}
.button:hover { background: var(--olive); transform: translateY(-1px); }
.button.light { background: var(--gold); color: var(--olive-dark); }
.button.light:hover { background: var(--gold-soft); }
.button.small { padding: 9px 16px; font-size: 13px; }
.button.full { width: 100%; justify-content: center; }
.direction-arrow { transition: transform 0.2s var(--ease); }
html[dir="rtl"] .direction-arrow { display: inline-block; transform: scaleX(-1); }
.button:hover .direction-arrow { transform: translateX(2px); }
html[dir="rtl"] .button:hover .direction-arrow { transform: scaleX(-1) translateX(2px); }

.text-link { font-size: 14px; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.text-link:hover { color: var(--olive-dark); border-color: var(--gold); }

.header-book { display: none; }
@media (min-width: 640px) { .header-book { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding: 64px 28px 80px;
}
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.08em; color: var(--olive); text-transform: uppercase;
  margin-bottom: 18px;
}
.little-star { color: var(--gold); font-size: 15px; }
#hero-title {
  font-size: clamp(38px, 5vw, 58px); line-height: 1.12; letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-intro { max-width: 46ch; color: var(--ink-soft); font-size: 17px; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-bottom: 44px; flex-wrap: wrap; }
.hero-bottom { display: flex; align-items: flex-start; gap: 18px; }
.hero-bottom .line { width: 1px; align-self: stretch; background: var(--line); margin-top: 4px; }
.hero-bottom p { font-size: 14px; color: var(--ink-soft); }

.hero-photos { position: relative; display: grid; }
.hero-main {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
  position: relative; margin: 0;
}
.hero-main img { aspect-ratio: 3 / 4; width: 100%; height: 100%; object-fit: cover; }
.hero-main figcaption {
  position: absolute; inset-inline: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 22px; color: #fff; font-size: 13px;
  background: linear-gradient(to top, rgba(26, 22, 17, 0.72), transparent);
}
.hero-inset {
  position: absolute; inset-inline-start: -56px; bottom: -48px; width: 44%;
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft);
  border: 6px solid var(--paper); margin: 0;
}
.hero-inset img { aspect-ratio: 3 / 4; width: 100%; height: 100%; object-fit: cover; }
.hero-inset figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 10px 12px; font-size: 11px; color: #fff;
  background: linear-gradient(to top, rgba(26, 22, 17, 0.75), transparent);
}
.photo-note {
  position: absolute; top: -18px; inset-inline-end: 12px;
  font-size: 11px; letter-spacing: 0.1em; color: var(--olive-dark);
  background: var(--gold-soft); padding: 7px 14px; border-radius: 999px;
  transform: rotate(-3deg);
}

/* ---------- Amenities strip ---------- */
.amenities-strip { background: var(--olive-dark); color: var(--cream); padding: 16px 0; }
.strip-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.strip-inner > span { letter-spacing: 0.08em; color: var(--gold-soft); text-transform: uppercase; font-size: 11px; }
.strip-inner ul { display: flex; gap: 22px; flex-wrap: wrap; }
.strip-inner li { position: relative; padding-inline-start: 14px; }
.strip-inner li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}

/* ---------- Sections (shared) ---------- */
.section { padding: 88px 28px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-intro { max-width: 36ch; color: var(--ink-soft); font-size: 15px; }

/* ---------- Apartments ---------- */
.apartments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.apartment {
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.apartment:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.apartment-visual { position: relative; aspect-ratio: 4 / 3; background: var(--cream-deep); }
.apartment-visual img { width: 100%; height: 100%; object-fit: cover; }
.apartment-visual.no-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.apartment-visual .room-number { position: absolute; top: 14px; inset-inline-start: 16px; font-size: 12px; color: var(--ink-soft); letter-spacing: 0.08em; }
.photo-pending { font-size: 13px; color: var(--ink-soft); background: var(--paper); padding: 6px 14px; border-radius: 999px; border: 1px dashed var(--line); }
.apartment-visual .tag {
  position: absolute; bottom: 14px; inset-inline-start: 16px; font-size: 11px; letter-spacing: 0.08em;
  background: var(--olive-dark); color: var(--cream); padding: 6px 12px; border-radius: 999px; text-transform: uppercase;
}
.apartment-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.apartment-body h3 { font-size: 20px; }
.room-description { color: var(--ink-soft); font-size: 14px; }
.room-specs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.room-specs li { font-size: 12px; color: var(--olive-dark); background: var(--cream-deep); padding: 5px 10px; border-radius: 999px; }
.price { font-size: 22px; margin-top: auto; display: flex; align-items: baseline; gap: 6px; }
.price span { font-size: 13px; color: var(--ink-soft); }
.price-secondary { font-size: 13px; color: var(--ink-soft); margin-top: -4px; }
.room-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 6px; padding: 12px 16px; border-radius: 999px; background: var(--cream-deep);
  font-size: 14px; color: var(--olive-dark); transition: background 0.2s var(--ease);
}
.room-link:hover { background: var(--gold-soft); }
.apartment.featured { border-color: var(--gold); }
.apartment.featured .apartment-visual .tag { background: var(--gold); color: var(--olive-dark); }
.fine-print { margin-top: 28px; font-size: 13px; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Monthly banner ---------- */
.monthly-section { background: var(--olive-dark); color: var(--cream); padding: 64px 0; }
.monthly-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.monthly-inner h2 { color: var(--cream); font-size: clamp(26px, 3vw, 34px); }
.monthly-inner p { color: rgba(247, 242, 231, 0.78); max-width: 48ch; margin-top: 10px; }
.monthly-inner .eyebrow { color: var(--gold-soft); }
.monthly-options { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.monthly-price { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.monthly-price > span { font-size: 12px; letter-spacing: 0.1em; color: var(--gold-soft); text-transform: uppercase; }
.monthly-price p { font-size: 30px; }
.monthly-price p span { font-size: 14px; color: rgba(247, 242, 231, 0.7); }

/* ---------- Gallery ---------- */
.gallery-group + .gallery-group { margin-top: 44px; }
.gallery-group h3 { margin-bottom: 20px; font-size: 22px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 18px; }
.gallery-tall { grid-row: span 2; }
.gallery-item {
  position: relative; border: none; padding: 0; border-radius: var(--radius-md); overflow: hidden;
  background: var(--cream-deep); box-shadow: var(--shadow-card);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item > span {
  position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; color: #fff; font-size: 13px;
  background: linear-gradient(to top, rgba(26, 22, 17, 0.7), transparent);
}
.service-note {
  margin-top: 48px; display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 28px; box-shadow: var(--shadow-card);
}
.service-note .little-star { font-size: 20px; margin-top: 2px; }
.service-note h3 { font-size: 17px; margin-bottom: 6px; }
.service-note p { color: var(--ink-soft); font-size: 14px; max-width: 64ch; }

/* ---------- Location ---------- */
.location-section { background: var(--cream-deep); padding: 88px 0; }
.location-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.building-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); position: relative; }
.building-photo img { aspect-ratio: 3 / 4; width: 100%; height: 100%; object-fit: cover; }
.building-photo figcaption {
  position: absolute; top: 18px; inset-inline-start: 18px; font-size: 11px; letter-spacing: 0.1em;
  color: var(--olive-dark); background: var(--gold-soft); padding: 7px 14px; border-radius: 999px; text-transform: uppercase;
}
.location-name { font-size: 18px; margin: 14px 0 18px; color: var(--ink); }
.location-copy p { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.location-copy .button { margin-top: 6px; }
.location-contact { margin-top: 26px; display: flex; flex-direction: column; gap: 4px; }
.location-contact span { font-size: 12px; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; }
.location-contact a { font-size: 17px; color: var(--olive-dark); font-weight: 600; }
.location-contact a:hover { color: var(--gold); }

/* ---------- Booking ---------- */
.booking-section { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
.booking-copy .eyebrow { margin-bottom: 18px; }
#booking-title { font-size: clamp(30px, 3.6vw, 40px); margin-bottom: 18px; }
.booking-copy > p { color: var(--ink-soft); font-size: 15px; max-width: 46ch; margin-bottom: 26px; }
.booking-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.booking-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); counter-increment: step; }
.booking-steps { counter-reset: step; }
.booking-steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--olive-dark); color: var(--cream); font-size: 12px; flex-shrink: 0;
}
.direct-contact {
  display: inline-flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 16px 20px; background: var(--paper);
}
.direct-contact span { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }
.direct-contact b { font-size: 17px; color: var(--olive-dark); }
.direct-contact:hover b { color: var(--gold); }

.booking-panel {
  background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft); padding: 32px;
}
.form-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.form-top h3 { font-size: 18px; }
.form-top span { font-size: 12px; color: var(--ink-soft); background: var(--cream-deep); padding: 5px 10px; border-radius: 999px; }
#booking-form label { display: block; font-size: 13px; color: var(--ink-soft); margin: 16px 0 6px; }
#booking-form label:first-of-type { margin-top: 0; }
#booking-form select, #booking-form input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--cream); color: var(--ink); font-size: 14px;
}
#booking-form select:focus, #booking-form input:focus { border-color: var(--gold); }
.date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-help { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.rate-summary { margin-top: 16px; font-size: 14px; color: var(--olive-dark); background: var(--cream-deep); padding: 12px 14px; border-radius: var(--radius-sm); min-height: 20px; }
.rate-summary:empty { padding: 0; min-height: 0; background: transparent; }
.form-error { margin-top: 14px; font-size: 13px; color: #8a2c22; background: #f6e3df; padding: 10px 14px; border-radius: var(--radius-sm); }
#prepare-enquiry { margin-top: 22px; }
.privacy-note { margin-top: 14px; }

.enquiry-preview { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.enquiry-preview h3 { font-size: 16px; margin-bottom: 10px; }
#message-preview {
  font-size: 13px; color: var(--ink-soft); background: var(--cream-deep); padding: 14px; border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

/* ---------- Footer ---------- */
footer { background: var(--olive-dark); color: var(--cream); padding: 48px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand { font-size: 19px; font-weight: 600; color: var(--cream); }
.footer-inner p { color: rgba(247, 242, 231, 0.7); font-size: 13px; margin-top: 8px; max-width: 32ch; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.footer-links a { color: rgba(247, 242, 231, 0.82); }
.footer-links a:hover { color: var(--gold); }
.footer-caption { font-size: 11px; letter-spacing: 0.1em; color: var(--gold-soft); text-transform: uppercase; align-self: flex-end; }

/* ---------- Photo dialog ---------- */
dialog#photo-dialog {
  border: none; border-radius: var(--radius-lg); padding: 0; max-width: min(90vw, 760px); background: var(--paper);
  box-shadow: var(--shadow-soft);
}
dialog#photo-dialog::backdrop { background: rgba(26, 22, 17, 0.72); }
dialog#photo-dialog figure { margin: 0; position: relative; }
dialog#photo-dialog img { width: 100%; max-height: 80vh; object-fit: contain; background: var(--ink); }
dialog#photo-dialog figcaption { padding: 16px 20px; font-size: 14px; color: var(--ink-soft); }
#close-photo {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(26, 22, 17, 0.6); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
#close-photo:hover { background: rgba(26, 22, 17, 0.85); }

.noscript-note { background: var(--gold-soft); color: var(--olive-dark); padding: 14px 20px; text-align: center; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 64px; padding-top: 48px; }
  .hero-photos { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero-inset { inset-inline-start: -28px; bottom: -32px; }
  .location-inner { grid-template-columns: 1fr; }
  .booking-section { grid-template-columns: 1fr; }
  .apartments { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-tall { grid-row: span 2; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .header { padding: 14px 20px; }
  .section { padding: 64px 20px; }
  .hero { padding: 40px 20px 72px; }
  .wrap { padding-inline: 20px; }
  .apartments { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .monthly-inner { flex-direction: column; align-items: flex-start; text-align: start; }
  .monthly-options { flex-direction: column; align-items: flex-start; }
  .monthly-price { align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-inset { width: 50%; inset-inline-start: 12px; bottom: -28px; }
  .footer-inner { flex-direction: column; }
  .footer-caption { align-self: flex-start; }
}

@media (max-width: 480px) {
  .wrap, .section, .hero { padding-inline: 16px; }
  .header { padding: 12px 16px; }
  .header-actions { gap: 8px; }
  .brand-name small { display: none; }
  #hero-title { font-size: clamp(30px, 8vw, 38px); }
  .hero-bottom { flex-direction: column; gap: 8px; }
  .hero-bottom .line { display: none; }
  .hero-photos { max-width: 280px; }
  .hero-inset { width: 58%; inset-inline-start: 8px; bottom: -22px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-tall { grid-row: span 1; }
  .booking-panel { padding: 22px; }
  .date-fields { grid-template-columns: 1fr; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
