/* ============================================================
   ala84.com – Design System
   Bitter (serif) + Cairo (Arabic) · Bootstrap 5.3 dark mode
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Cairo:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ------ Custom Properties ------ */
:root {
    --site-accent: #b5541e;
    --site-accent-hover: #8e3f14;
    --site-accent-subtle: rgba(181, 84, 30, .12);
    --font-serif: 'Bitter', Georgia, serif;
    --font-arabic: 'Cairo', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --bg-body: #faf9f7;
    --bg-surface: #ffffff;
    --bg-surface-2: #f4f2ef;
    --border-color: #e4e0da;
    --text-body: #1a1814;
    --text-muted: #6b6560;
    --text-heading: #0d0c0a;
    --radius-sm: .375rem;
    --radius-md: .625rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .10), 0 4px 8px rgba(0, 0, 0, .06);
    --t: 150ms ease;
}

[data-bs-theme="dark"] {
    --bg-body: #111210;
    --bg-surface: #1c1b19;
    --bg-surface-2: #252421;
    --border-color: #333230;
    --text-body: #e8e5e0;
    --text-muted: #9a958e;
    --text-heading: #f5f2ed;
    --site-accent: #d4713a;
    --site-accent-hover: #e88a55;
    --site-accent-subtle: rgba(212, 113, 58, .15);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .25);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .35);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .45);
}

/* ------ Base ------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.75;
    background-color: var(--bg-body);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--t), color var(--t);
    margin: 0;
}

[dir="rtl"] body {
    font-family: var(--font-arabic);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.25;
    letter-spacing: -.01em;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

a {
    color: var(--site-accent);
    text-decoration: none;
    transition: color var(--t);
}

a:hover {
    color: var(--site-accent-hover);
}

p {
    margin-bottom: 1rem;
}

code,
kbd,
pre {
    font-family: var(--font-mono);
    font-size: .875em;
}

/* ------ Layout ------ */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.site-main {
    flex: 1 1 auto;
}

/* ------ Navbar ------ */
.site-navbar {
    background-color: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border-color);
    padding: .75rem 0;
    transition: background-color var(--t), border-color var(--t);
}

.site-navbar .navbar-brand {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-heading) !important;
    letter-spacing: -.03em;
}

[dir="rtl"] .site-navbar .navbar-brand {
    font-family: var(--font-arabic);
}

.site-navbar .navbar-brand span {
    color: var(--site-accent);
}

.site-navbar .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: .9375rem;
    padding: .375rem .625rem !important;
    border-radius: var(--radius-sm);
    transition: color var(--t), background-color var(--t);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--text-heading) !important;
    background-color: var(--bg-surface-2);
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.btn-ctrl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--t), color var(--t), border-color var(--t);
    padding: 0;
    line-height: 1;
}

.btn-ctrl:hover {
    background-color: var(--bg-surface-2);
    color: var(--text-heading);
}

.btn-ctrl.active {
    background-color: var(--site-accent-subtle);
    color: var(--site-accent);
    border-color: var(--site-accent);
}

.btn-lang {
    font-size: .8rem;
    font-weight: 600;
    width: auto;
    padding: 0 .625rem;
    min-width: 2.5rem;
}

[dir="rtl"] .btn-lang {
    font-family: var(--font-arabic);
}

/* ------ Hero ------ */
.site-hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-body) 100%);
    border-bottom: 1px solid var(--border-color);
}

.site-hero__eyebrow {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--site-accent);
    margin-bottom: 1rem;
}

.site-hero__title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.site-hero__sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.6;
}

.page-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 0;
}

/* ------ Cards ------ */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--site-accent);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--bg-surface-2) !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-weight: 600;
    color: var(--text-heading);
}

.card-body {
    padding: 1.25rem;
}

.post-card__meta {
    font-size: .8125rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.post-card__title {
    font-size: 1.1875rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.post-card__title a {
    color: var(--text-heading);
}

.post-card__title a:hover {
    color: var(--site-accent);
}

.book-card__cover {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: block;
}

.book-card__cover-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, var(--bg-surface-2), var(--bg-body));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

/* ------ Stars ------ */
.star-fill {
    color: #e8a838;
}

.star-empty {
    color: var(--border-color);
}

/* ------ Tags ------ */
.tag-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    padding: .2em .6em;
    border-radius: 100px;
    background-color: var(--bg-surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    transition: background-color var(--t), color var(--t);
    text-decoration: none;
}

.tag-badge:hover {
    background-color: var(--site-accent-subtle);
    color: var(--site-accent);
    border-color: var(--site-accent);
}

.tag-badge.active {
    background-color: var(--site-accent);
    color: #fff;
    border-color: var(--site-accent);
}

/* ------ Buttons ------ */
.btn-primary-site {
    background-color: var(--site-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: .5rem 1.25rem;
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    transition: background-color var(--t), transform var(--t);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-site:hover {
    background-color: var(--site-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: .375rem 1rem;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--t);
    text-decoration: none;
    display: inline-block;
}

.btn-ghost:hover {
    border-color: var(--site-accent);
    color: var(--site-accent);
    background-color: var(--site-accent-subtle);
}

/* ------ Prose ------ */
.prose {
    max-width: 68ch;
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: .75rem;
    padding-bottom: .375rem;
    border-bottom: 2px solid var(--border-color);
}

.prose p {
    line-height: 1.8;
}

.prose ul,
.prose ol {
    line-height: 1.8;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: .375rem;
}

[dir="rtl"] .prose ul,
[dir="rtl"] .prose ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

.back-link {
    font-size: .9rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: var(--site-accent);
}

/* ------ Section label ------ */
.section-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

[dir="rtl"] .section-label {
    flex-direction: row-reverse;
}

[dir="rtl"] .section-label::after {
    display: none;
}

[dir="rtl"] .section-label::before {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ------ Footer ------ */
.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: .875rem;
}

.site-footer a {
    color: var(--text-muted);
}

.site-footer a:hover {
    color: var(--site-accent);
}

/* ------ Resume ------ */
.resume-section {
    margin-bottom: 2.5rem;
}

.resume-section-title {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--site-accent);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.resume-entry {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.resume-entry__date {
    min-width: 120px;
    font-size: .8125rem;
    color: var(--text-muted);
    padding-top: .125rem;
    white-space: nowrap;
}

[dir="rtl"] .resume-entry {
    flex-direction: row-reverse;
}

@media (max-width: 576px) {

    .resume-entry,
    [dir="rtl"] .resume-entry {
        flex-direction: column;
        gap: .25rem;
    }
}

.resume-entry__title {
    font-weight: 700;
    margin-bottom: .125rem;
}

.resume-entry__company {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: .375rem;
}

.resume-entry__desc {
    font-size: .9375rem;
    color: var(--text-body);
}

/* ------ Stat cards (admin) ------ */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-card__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--site-accent);
    line-height: 1;
    margin-bottom: .5rem;
}

.stat-card__label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ------ Tables ------ */
.table {
    --bs-table-color: var(--text-body);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-color);
    font-size: .9375rem;
}

/* ------ Forms ------ */
.form-control,
.form-select {
    background-color: var(--bg-surface) !important;
    border-color: var(--border-color) !important;
    color: var(--text-body) !important;
    border-radius: var(--radius-sm) !important;
    font-family: inherit;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--site-accent) !important;
    box-shadow: 0 0 0 3px var(--site-accent-subtle) !important;
}

.form-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-heading);
}

/* ------ Filter bar ------ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

/* ------ Analytics ------ */
.analytics-page .card:hover {
    transform: none;
}

.analytics-subtitle {
    color: var(--text-muted);
    font-size: .92rem;
}

.analytics-granularity {
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 600;
    padding: .45rem .75rem;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: 999px;
}

.analytics-filter-card {
    background:
        radial-gradient(circle at top right, var(--site-accent-subtle), transparent 40%),
        var(--bg-surface);
}

.analytics-filters-grid .form-control,
.analytics-filters-grid .form-select {
    min-height: 2.7rem;
}

.analytics-stat-card {
    height: 100%;
    background: linear-gradient(180deg, var(--bg-surface), var(--bg-surface-2));
}

.analytics-chart-shell {
    width: 100%;
    overflow-x: auto;
}

.analytics-chart {
    width: 100%;
    min-width: 720px;
    height: auto;
    display: block;
}

.analytics-xlabels {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .5rem;
    color: var(--text-muted);
    font-size: .72rem;
    font-family: var(--font-mono);
}

.analytics-xlabels span {
    white-space: nowrap;
}

.analytics-grid-line {
    stroke: var(--border-color);
    stroke-width: 1;
}

.analytics-axis-label {
    fill: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-mono);
    text-anchor: end;
}

.analytics-axis-label--x {
    text-anchor: middle;
}

.analytics-series {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.analytics-series--sessions {
    stroke: var(--site-accent);
}

.analytics-series--views {
    stroke: #2b7a78;
}

[data-bs-theme="dark"] .analytics-series--views {
    stroke: #72d5d2;
}

.analytics-dot {
    stroke: var(--bg-surface);
    stroke-width: 2;
}

.analytics-dot--sessions {
    fill: var(--site-accent);
}

.analytics-dot--views {
    fill: #2b7a78;
}

[data-bs-theme="dark"] .analytics-dot--views {
    fill: #72d5d2;
}

.analytics-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: .85rem;
    color: var(--text-muted);
}

.analytics-legend span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.analytics-legend__swatch {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    display: inline-block;
}

.analytics-legend__swatch--sessions {
    background: var(--site-accent);
}

.analytics-legend__swatch--views {
    background: #2b7a78;
}

[data-bs-theme="dark"] .analytics-legend__swatch--views {
    background: #72d5d2;
}

/* ------ Login ------ */
.login-card {
    max-width: 420px;
    margin: 6rem auto 0;
    padding: 2.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ------ Validation ------ */
.valid.modified:not([type=checkbox]) {
    outline: 2px solid #16a34a;
}

.invalid {
    outline: 2px solid #dc2626;
}

.validation-message {
    color: #dc2626;
    font-size: .8125rem;
}

/* ------ Blazor error ------ */
#blazor-error-ui {
    background: #b91c1c;
    bottom: 0;
    color: white;
    display: none;
    left: 0;
    padding: .75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

/* ------ Responsive ------ */
@media (max-width: 767px) {
    .site-hero {
        padding: 3rem 0 2.5rem;
    }

    .page-header {
        padding: 2rem 0 1.5rem;
    }

    .analytics-granularity {
        width: 100%;
        text-align: center;
    }
}

/* ------ Print (Resume PDF) ------ */
@media print {

    .site-navbar,
    .site-footer,
    .no-print,
    #blazor-error-ui {
        display: none !important;
    }

    .site-main {
        margin: 0;
        padding: 0;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 10pt;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .page-header {
        border: none;
        padding: 0 0 1rem 0;
        margin-bottom: 1.5rem;
    }

    .page-header h1 {
        font-size: 20pt;
    }

    .resume-section {
        margin-bottom: 1.5rem;
        page-break-inside: avoid;
    }

    .resume-section-title {
        font-size: 8pt;
        color: #555 !important;
        border-color: #ccc !important;
    }

    .resume-entry {
        gap: .75rem;
        margin-bottom: 1rem;
    }

    .resume-entry__date {
        min-width: 90px;
        font-size: 8pt;
    }

    .resume-entry__title {
        font-size: 10pt;
    }

    .resume-entry__company {
        font-size: 9pt;
    }

    .resume-entry__desc {
        font-size: 9pt;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}

/* ============================================================
   ALA84 — Desert Portfolio Home Page Design
   ============================================================ */

:root {
  --ala84-sand-0:  #0f0b07;
  --ala84-sand-1:  #1a130c;
  --ala84-sand-2:  #2a1e13;
  --ala84-sand-3:  #6b5232;
  --ala84-sand-4:  #c9a871;
  --ala84-sand-5:  #f3e6c8;
  --ala84-terra:   #d97a3a;
  --ala84-rule:    rgba(243,230,200,0.14);
  --ala84-rule-2:  rgba(243,230,200,0.06);
}

.ala84-home {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  background: var(--ala84-sand-0);
  color: var(--ala84-sand-5);
  z-index: -1;
}

[dir="rtl"] .ala84-home {
  font-family: var(--font-arabic);
}

.ala84-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 70% 85%, rgba(217,122,58,0.10), transparent 65%),
              radial-gradient(ellipse 60% 50% at 78% 38%, rgba(217,122,58,0.18), transparent 55%),
              linear-gradient(180deg, #0a0705 0%, #0f0b07 45%, #1a130c 100%);
  overflow: hidden;
}

.ala84-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.90  0 0 0 0 0.78  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: screen;
}

.ala84-dunes { position: absolute; inset: 0; width: 100%; height: 100%; }

.ala84-sun {
  position: absolute;
  right: 14%;
  top: 22%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, #e89a55 0%, #c46c2b 55%, rgba(196,108,43,0) 72%);
  filter: blur(1px);
  opacity: 0.85;
}

@media (max-width: 720px) {
  .ala84-sun { width: 150px; height: 150px; right: 8%; top: 18%; }
}

.ala84-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ala84-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ala84-sand-4);
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .ala84-topbar { padding: 28px 48px; }
}

.ala84-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  min-width: 0;
}

.ala84-mark {
  color: var(--ala84-sand-5);
  font-weight: 500;
  letter-spacing: 0.32em;
}

.ala84-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ala84-terra);
  box-shadow: 0 0 8px var(--ala84-terra);
  vertical-align: middle;
  margin-right: 8px;
}

.ala84-hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.ala84-hero-section h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(56px, 13vw, 168px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ala84-sand-5);
}

[dir="rtl"] .ala84-hero-section h1 {
  font-family: var(--font-arabic);
}

.ala84-hero-section h1 em {
  font-style: italic;
  color: var(--ala84-sand-4);
}

.ala84-under {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  color: var(--ala84-sand-4);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.ala84-line {
  flex: 1;
  height: 1px;
  background: var(--ala84-rule);
  min-width: 40px;
}

nav.ala84-rooms {
  border-top: 1px solid var(--ala84-rule);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: rgba(15,11,7,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  nav.ala84-rooms { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  nav.ala84-rooms { grid-template-columns: repeat(7, 1fr); }
}

nav.ala84-rooms a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 18px 20px;
  color: var(--ala84-sand-5);
  text-decoration: none;
  border-right: 1px solid var(--ala84-rule);
  border-bottom: 1px solid var(--ala84-rule);
  transition: background 0.25s ease, color 0.25s ease;
  min-height: 120px;
}

@media (min-width: 960px) {
  nav.ala84-rooms a { min-height: 140px; padding: 26px 22px 22px; border-bottom: 0; }
}

nav.ala84-rooms a:last-child { border-right: 0; }
nav.ala84-rooms a:hover { background: rgba(217,122,58,0.08); color: #fff; }
nav.ala84-rooms a:hover .ala84-num { color: var(--ala84-terra); }
nav.ala84-rooms a:hover .ala84-arr { color: var(--ala84-terra); transform: translateX(4px); }
nav.ala84-rooms a:focus-visible { outline: 1px solid var(--ala84-terra); outline-offset: -2px; }

.ala84-num {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ala84-sand-3);
  transition: color 0.25s;
}

.ala84-label {
  font-family: var(--font-serif);
  font-size: 26px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  color: var(--ala84-sand-5);
  margin-top: auto;
}

[dir="rtl"] .ala84-label {
  font-family: var(--font-arabic);
}

@media (min-width: 960px) {
  .ala84-label { font-size: 30px; }
}

.ala84-room-dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ala84-rule);
  border-bottom: 1px solid var(--ala84-rule);
}

@media (min-width: 960px) {
  .ala84-room-dropdown { border-bottom: 0; }
}

.ala84-room-toggle {
  background: transparent;
  border: none;
  color: var(--ala84-sand-5);
  cursor: pointer;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
  position: relative;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
}

@media (min-width: 960px) {
  .ala84-room-toggle { min-height: 140px; padding: 26px 22px 22px; }
}

.ala84-room-toggle:hover {
  background: rgba(217,122,58,0.08);
  color: #fff;
}

.ala84-room-toggle:hover .ala84-num {
  color: var(--ala84-terra);
}

.ala84-room-toggle:hover .ala84-arr {
  color: var(--ala84-terra);
  transform: translateX(4px);
}

.ala84-room-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15,11,7,0.95);
  border: 1px solid var(--ala84-rule);
  border-top: none;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  max-height: 40vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.ala84-room-item {
  padding: 12px 18px;
  color: var(--ala84-sand-5);
  text-decoration: none;
  border-bottom: 1px solid var(--ala84-rule);
  transition: background 0.2s, color 0.2s;
  display: block;
  font-size: 14px;
  white-space: nowrap;
}

.ala84-room-item:last-child {
  border-bottom: none;
}

.ala84-room-item:hover {
  background: rgba(217,122,58,0.12);
  color: var(--ala84-terra);
}

.ala84-arr {
  position: absolute;
  top: 20px;
  right: 18px;
  color: var(--ala84-sand-3);
  font-size: 14px;
  transition: color 0.25s, transform 0.25s;
}

.ala84-footstrip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ala84-sand-3);
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
  border-top: 1px solid var(--ala84-rule);
}

@media (min-width: 720px) {
  .ala84-footstrip { padding: 22px 48px; }
}

.ala84-footstrip a {
  color: var(--ala84-sand-4);
  text-decoration: none;
}

.ala84-footstrip a:hover {
  color: var(--ala84-sand-5);
}

