:root {
  --navy: #16324a;
  --navy-dark: #0d1f30;
  --navy-light: #2c4a66;
  --gold: #c8a765;
  --gold-light: #e2cd9c;
  --gold-dark: #a9853f;
  --sand: #f7f3ec;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; width: 100%; }

body {
  margin: 0;
  font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
  color: #1c2b3a;
  background: #fff;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.brand { font-size: 20px; font-weight: 800; color: var(--navy); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 600; color: #555; transition: color .2s; }
.main-nav a.active, .main-nav a:hover { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  border: 1px solid #ccc; border-radius: 0; padding: 6px 14px; font-size: 12px; font-weight: 700; color: #555;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-login {
  background: var(--navy); color: #fff; border: none; border-radius: 0;
  padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-login:hover { background: var(--navy-light); }
.menu-toggle {
  display: none; background: none; border: 1px solid #ddd; width: 38px; height: 38px;
  align-items: center; justify-content: center; font-size: 18px; color: var(--navy); cursor: pointer;
}

/* Mobile slide-in nav drawer */
.mobile-nav-backdrop {
  position: fixed; inset: 0; background: rgba(13,31,48,.55); z-index: 59;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.mobile-nav-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-nav {
  position: fixed; top: 0; inset-inline-end: 0; height: 100vh; width: 80%; max-width: 300px;
  background: #fff; z-index: 60; padding: 80px 26px 26px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: -12px 0 40px rgba(0,0,0,.18); transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
html[dir="rtl"] .mobile-nav { transform: translateX(100%); }
html[dir="ltr"] .mobile-nav { inset-inline-end: 0; transform: translateX(100%); }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  padding: 14px 4px; border-bottom: 1px solid #f0f0f0; font-weight: 700; color: var(--navy); font-size: 15px;
}
.mobile-nav-close {
  position: absolute; top: 22px; inset-inline-end: 22px; background: var(--sand); border: none;
  width: 36px; height: 36px; font-size: 20px; line-height: 1; color: var(--navy); cursor: pointer;
}

/* Hard safety net: the drawer must never be able to render on desktop widths,
   regardless of any leftover .open class state (e.g. after resizing the window). */
@media (min-width: 881px) {
  .mobile-nav, .mobile-nav-backdrop { display: none !important; }
}

@media (max-width: 880px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions { gap: 6px; }
  .lang-switch, .btn-login {
    font-size: 11px; padding: 7px 12px; height: 34px; display: flex; align-items: center; justify-content: center;
    white-space: nowrap;
  }
  .shape-divider { display: none; }
}

/* Hero + gradient sections */
.brand-gradient {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, var(--navy-light));
  color: #fff;
}
.hero { text-align: center; padding: 110px 20px; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: heroKenBurns 18s ease-in-out infinite alternate; z-index: 0;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,31,48,.92), rgba(22,50,74,.82) 55%, rgba(44,74,102,.7));
}
.hero > .container { position: relative; z-index: 1; }
@keyframes heroKenBurns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(-1%, -1%); }
}

/* Project contact info cards */
.contact-info-card { background: #fff; padding: 26px 20px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.contact-info-icon {
  width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-info-title { font-weight: 800; color: var(--navy); font-size: 14px; margin-bottom: 10px; }
.contact-info-value { font-size: 13px; color: #555; margin-top: 3px; }

/* Project stats / features / distances */
.project-stat-box { text-align: center; padding: 26px 20px; border: 1px solid #f0f0f0; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.project-stat-icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--gold); color: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.project-stat-value { font-size: 24px; font-weight: 800; color: var(--navy); }
.project-stat-value span { font-size: 13px; font-weight: 600; color: #6b7280; }
.project-stat-label { margin-top: 6px; font-size: 13px; color: #6b7280; font-weight: 600; }

.features-strip { background: var(--navy-dark); padding: 30px 20px; }
.features-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.feature-chip { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 700; max-width: 100px; text-align: center; }
.feature-chip-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold);
  color: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-size: 20px;
}

.distances-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; justify-content: center; }
.distance-chip { text-align: center; min-width: 90px; }
.distance-chip-icon {
  width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.distance-chip-minutes { font-weight: 800; color: var(--navy); font-size: 14px; }
.distance-chip-label { font-size: 11px; color: #6b7280; margin-top: 2px; }

/* Project intro: video + colored caption box */
.video-intro { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 420px; direction: ltr; }
.video-intro-media { position: relative; background: #000; }
.video-intro-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-intro-text {
  display: flex; flex-direction: column; justify-content: center; padding: 50px; color: #fff;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold) 65%, var(--gold-light));
}
.video-intro-icon {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(13,31,48,.85); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 18px;
}
.video-intro-text h2 { font-size: 24px; font-weight: 800; margin: 0 0 14px; color: var(--navy-dark); }
.video-intro-text p { color: rgba(13,31,48,.8); line-height: 1.85; font-size: 14px; }
@media (max-width: 900px) {
  .video-intro { grid-template-columns: 1fr; min-height: auto; }
  .video-intro-media { height: 260px; }
}

/* Project slider (full-bleed, right-to-left auto slide) */
.project-slider {
  position: relative; width: 100%; height: 560px; overflow: hidden; border-radius: 0;
}
.slider-track { display: flex; height: 100%; transition: transform 1s cubic-bezier(.65,0,.35,1); direction: ltr; }
.slide {
  min-width: 100%; width: 100%; height: 100%; position: relative; overflow: hidden;
  background-color: var(--navy-dark);
}
.slide-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: heroKenBurns 12s ease-in-out infinite alternate;
}
.slide-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,31,48,.92) 10%, rgba(13,31,48,.35) 55%, rgba(13,31,48,.05) 100%);
  display: flex; align-items: flex-end; justify-content: flex-start;
  box-sizing: border-box;
}
.slide-info {
  color: #fff; max-width: 640px; width: 100%; box-sizing: border-box; padding: 50px;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.slide-info .badge { display: inline-block; background: var(--gold); color: var(--navy-dark); font-weight: 800; font-size: 12px; padding: 6px 16px; border-radius: 0; margin-bottom: 16px; text-shadow: none; }
.slide-info h3 { font-size: 34px; font-weight: 800; margin: 0 0 10px; line-height: 1.3; }
.slide-info .loc { opacity: .9; font-size: 15px; margin-bottom: 22px; }
.slide-info a.btn-gold { padding: 12px 28px; text-shadow: none; }
.progress-wrap { max-width: 320px; margin-bottom: 22px; }
.progress-labels { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.85); margin-bottom: 6px; }
.progress-bar { height: 6px; background: rgba(255,255,255,.2); width: 100%; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); transition: width 1.2s ease; }
.slider-dots { position: absolute; bottom: 22px; inset-inline-end: 40px; display: flex; gap: 8px; z-index: 2; }
.slider-dots button { width: 10px; height: 10px; border-radius: 0; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.slider-dots button.active { background: var(--gold); width: 26px; }
@media (max-width: 700px) {
  .project-slider { height: 460px; }
  .slide-info { padding: 30px; }
  .slide-info h3 { font-size: 24px; }
}
.hero .eyebrow {
  display: inline-block; border: 1px solid rgba(255,255,255,.25); border-radius: 0;
  padding: 5px 16px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--gold-light); margin-bottom: 16px; text-transform: uppercase;
}
.hero h1 { font-size: 40px; font-weight: 800; max-width: 760px; margin: 0 auto; line-height: 1.3; }
.hero p { max-width: 620px; margin: 20px auto 0; color: rgba(255,255,255,.8); font-size: 17px; }
.hero .actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-gold {
  background: var(--gold); color: var(--navy-dark); border-radius: 0; padding: 13px 32px;
  font-weight: 800; font-size: 14px; transition: transform .2s, background .2s; display: inline-block;
}
.btn-gold:hover { background: var(--gold-light); transform: scale(1.04); }
.btn-outline {
  border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 0; padding: 13px 32px;
  font-weight: 700; font-size: 14px; transition: background .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* Page hero (subpages) */
.page-hero { text-align: center; padding: 80px 20px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: 32px; font-weight: 800; margin: 0; position: relative; z-index: 1; }
.page-hero p { margin-top: 14px; color: rgba(255,255,255,.75); position: relative; z-index: 1; }
.page-hero-media { padding: 130px 20px; }
.page-hero-xl { padding: 170px 20px 150px; }
.page-hero-logo { max-height: 80px; width: auto; margin: 0 auto 22px; position: relative; z-index: 1; }
@media (max-width: 700px) {
  .page-hero-xl { padding: 120px 20px 100px; }
  .page-hero-logo { max-height: 56px; }
}
.page-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: heroKenBurns 18s ease-in-out infinite alternate;
}
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,31,48,.88), rgba(22,50,74,.75) 55%, rgba(44,74,102,.6));
}
.page-hero > .container { position: relative; z-index: 1; }

/* Stats */
.stats-strip { background: var(--sand); padding: 50px 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; max-width: 800px; margin: 0 auto; }
.stats-grid > div { border-inline-start: 1px solid rgba(22,50,74,.15); }
.stats-grid > div:first-child { border-inline-start: none; }
.stat-value { font-size: 34px; font-weight: 800; color: var(--navy); }
.stat-label { margin-top: 6px; font-size: 14px; color: #6b7280; font-weight: 600; }

/* Sections */
.section { padding: 80px 20px; }
.section-title { text-align: center; font-size: 26px; font-weight: 800; color: var(--navy); }
.section-subtitle { text-align: center; color: #6b7280; margin-top: 10px; }
.gold-underline { position: relative; display: inline-block; padding-bottom: 12px; }
.gold-underline::after {
  content: ""; position: absolute; bottom: 0; height: 3px; width: 56px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  left: 50%; transform: translateX(-50%);
}

/* Cards grid */
.grid { display: grid; gap: 30px; margin-top: 50px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stats-grid > div { border-inline-start: none; border-top: 1px solid rgba(22,50,74,.15); padding-top: 20px; }
  .stats-grid > div:first-child { border-top: none; padding-top: 0; }
}

.card {
  background: #fff; border-radius: 0; overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.card-media { height: 220px; position: relative; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; top: 16px; inset-inline-start: 16px; background: rgba(255,255,255,.92);
  color: var(--navy); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 0;
}
.card-body { padding: 24px; }
.card-body h3 { margin: 0; color: var(--navy); font-size: 18px; font-weight: 800; }
.card-body .loc { color: #6b7280; font-size: 14px; margin-top: 4px; }
.card-body .units { color: var(--gold-dark); font-weight: 700; font-size: 14px; margin-top: 12px; }

.feature-box {
  border: 1px solid #f0f0f0; border-radius: 0; padding: 32px; text-align: center; box-shadow: 0 1px 6px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.feature-box:hover { box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 0; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 20px;
}
.feature-box h3 { color: var(--navy); font-size: 17px; margin: 0 0 10px; }
.feature-box p { color: #6b7280; font-size: 14px; line-height: 1.7; margin: 0; }

/* Unit model cards */
.unit-card .card-media {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, var(--navy-light));
  position: relative;
}
.unit-card .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.unit-card .model-badge {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2;
  background: var(--gold); color: var(--navy-dark); font-weight: 800; font-size: 15px;
  padding: 6px 14px;
}
.unit-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; font-size: 12px; color: #555; }
.unit-specs b { color: var(--navy); }
.bed-badge { background: var(--sand); color: var(--navy); font-size: 12px; font-weight: 700; border-radius: 0; padding: 4px 10px; }

/* Guarantees */
.guarantees-section { background: var(--navy-dark); color: #fff; padding: 70px 20px; }
.guarantee-box { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); border-radius: 0; padding: 24px; text-align: center; }
.guarantee-box .years { font-size: 30px; font-weight: 800; color: var(--gold); }
.guarantee-box .label { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 6px; }

/* About / values */
.value-chip { background: var(--sand); border-radius: 0; padding: 20px; text-align: center; font-weight: 700; color: var(--navy); }
.info-card { border-top: 4px solid var(--gold); background: #fff; border-radius: 0; padding: 30px; box-shadow: 0 2px 14px rgba(0,0,0,.05); }
.info-card.navy { border-top-color: var(--navy); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 90px 20px; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info h1 { font-size: 32px; font-weight: 800; margin: 0 0 30px; }
.contact-info .block { margin-bottom: 22px; }
.contact-info .block h4 { color: var(--gold-light); font-size: 14px; margin: 0 0 4px; }
.contact-info .block p { margin: 0; color: rgba(255,255,255,.85); font-size: 14px; }

.contact-form-card {
  background: var(--sand); border-radius: 0; padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.contact-form-card h2 { color: var(--navy); font-size: 20px; margin: 0; }
.contact-form-card > p { color: #6b7280; font-size: 14px; margin-top: 10px; line-height: 1.7; }
.form-group { margin-top: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #444; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: none; border-bottom: 1px solid #b9b9b9; background: transparent; padding: 10px 2px; font-size: 15px; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold-dark); }
.btn-submit {
  width: 100%; margin-top: 24px; background: var(--navy); color: #fff; border: none; border-radius: 0;
  padding: 14px; font-weight: 700; font-size: 15px; cursor: pointer;
}
.btn-submit:hover { background: var(--navy-light); }
.alert-success { color: #15803d; font-weight: 600; margin-top: 14px; }
.alert-error { color: #dc2626; font-weight: 600; margin-top: 14px; }

/* Footer */
.site-footer { padding: 50px 20px 0; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 40px;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-grid-4 { grid-template-columns: repeat(3, 1fr) 1.3fr; }
@media (max-width: 900px) { .footer-grid, .footer-grid-4 { grid-template-columns: 1fr; } }
.footer-grid h3 { margin: 0 0 12px; font-size: 18px; }
.footer-grid h4 { color: var(--gold-light); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 16px; }
.footer-grid p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { color: rgba(255,255,255,.8); font-size: 14px; }
.footer-grid ul a:hover { color: #fff; }
.footer-newsletter h3 { color: #fff; font-size: 19px; font-weight: 800; line-height: 1.5; margin: 0 0 10px; }
.newsletter-form { display: flex; margin-top: 16px; }
.newsletter-form input {
  flex: 1; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff;
  padding: 12px 14px; font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button {
  background: var(--gold); color: var(--navy-dark); border: none; padding: 0 22px; font-weight: 800; cursor: pointer;
}
.newsletter-form button:hover { background: var(--gold-light); }
.footer-bottom { margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 12px; color: rgba(255,255,255,.55); }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-icon {
  width: 34px; height: 34px; border-radius: 0; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s, transform .2s;
}
.social-icon:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-2px); }

/* Partners logos strip */
.partners-strip { background: #fff; padding: 60px 20px; }
.partners-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; margin-top: 40px; }
.partners-row a, .partners-row span {
  display: flex; align-items: center; justify-content: center; width: 160px; height: 90px;
  filter: grayscale(100%); opacity: .7; transition: filter .3s, opacity .3s;
}
.partners-row a:hover { filter: grayscale(0%); opacity: 1; }
.partners-row img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Fixed-background lead section */
.fixed-bg-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 90px 20px;
  display: flex;
  justify-content: center;
}
.fixed-bg-section::before {
  content: ""; position: absolute; inset: 0; background: rgba(13,31,48,.55);
}
@media (max-width: 900px) {
  .fixed-bg-section { background-attachment: scroll; }
}
.lead-card {
  position: relative; z-index: 1; background: var(--sand); max-width: 460px; width: 100%; padding: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.lead-card .form-group { margin-top: 12px; }
.lead-card .form-group label { margin-bottom: 4px; font-size: 13px; }
.lead-card .form-group input, .lead-card .form-group select { padding: 8px 2px; }

/* Decorative shapes (sharp/angular, matches brand identity — no circles) */
.shape-divider {
  height: 60px; background: var(--sand);
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
  margin-top: -1px;
}
.shape-divider.navy { background: var(--navy-dark); }
.accent-stripes {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background: repeating-linear-gradient(45deg, var(--gold) 0 2px, transparent 2px 40px);
}
.corner-accent {
  position: absolute; width: 90px; height: 90px; border-top: 4px solid var(--gold); border-inline-start: 4px solid var(--gold);
  top: 24px; inset-inline-start: 24px;
}

/* News cards reuse .card; nothing extra needed */

/* Login modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; padding: 24px; width: 100%; max-width: 420px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  box-sizing: border-box;
}
.modal-box .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-box .modal-head h2 { margin: 0; font-size: 17px; color: var(--navy); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #999; line-height: 1; }

/* Unit details modal: portrait/stacked on mobile, landscape/side-by-side on desktop */
.modal-box-wide { max-width: 640px; padding: 20px; }
.unit-modal-body { display: flex; flex-direction: column; gap: 16px; }
#unitModalGallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#unitModalGallery img { width: 100%; height: 90px; object-fit: cover; }
#unitModalDetails { font-size: 13px; line-height: 1.6; color: #666; margin: 8px 0; }
.unit-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: #555; }
@media (min-width: 700px) {
  .unit-modal-body { flex-direction: row; }
  .unit-modal-media { flex: 0 0 220px; }
  .unit-modal-info { flex: 1; min-width: 0; }
  #unitModalGallery { grid-template-columns: repeat(2, 1fr); }
}

.unit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.unit-action-btn {
  font-size: 12px; padding: 9px 14px; border: none !important; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.unit-action-btn.act-reserve { background: var(--navy); color: #fff; }
.unit-action-btn.act-reserve:hover { background: var(--navy-light); }
.unit-action-btn.act-visit { background: var(--gold); color: var(--navy-dark); }
.unit-action-btn.act-visit:hover { background: var(--gold-dark); color: #fff; }
.unit-action-btn.act-whatsapp { background: #25D366; color: #fff; }
.unit-action-btn.act-whatsapp:hover { background: #1ea952; }
#unitRequestForm { margin-top: 16px; border-top: 1px solid #eee; padding-top: 16px; }

.tabs { display: flex; gap: 6px; background: #f2f2f2; border-radius: 0; padding: 4px; margin-bottom: 18px; }
.tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 0; font-size: 13px; font-weight: 700; color: #666; }
.tabs a.active { background: var(--navy); color: #fff; }
.hint { font-size: 13px; color: #777; margin-bottom: 16px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Admin */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--navy-dark); color: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.admin-sidebar h2 { color: var(--gold); font-size: 17px; margin: 0 0 24px; }
.admin-sidebar nav a { display: block; padding: 11px 14px; border-radius: 0; font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.admin-sidebar nav a.active, .admin-sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { flex: 1; padding: 40px; background: #f8f9fa; }
.admin-card { background: #fff; border-radius: 0; padding: 24px; box-shadow: 0 1px 6px rgba(0,0,0,.05); margin-bottom: 24px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-box .num { font-size: 30px; font-weight: 800; color: var(--navy); }
.stat-box .label { color: #6b7280; font-size: 13px; margin-top: 6px; }
.admin-form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.admin-form.full { grid-template-columns: 1fr; }
.admin-form input, .admin-form select, .admin-form textarea {
  border: 1px solid #d5d5d5; border-radius: 0; padding: 10px 12px; font-size: 14px; font-family: inherit; width: 100%;
}
.admin-form .span-2 { grid-column: span 2; }
@media (max-width: 700px) { .admin-form, .admin-form .span-2 { grid-template-columns: 1fr; grid-column: span 1; } }
.btn-admin { background: var(--gold); color: var(--navy-dark); border: none; border-radius: 0; padding: 11px 20px; font-weight: 700; cursor: pointer; }
.btn-admin:hover { background: var(--gold-dark); color: #fff; }
.btn-admin-navy { background: var(--navy); color: #fff; border: none; border-radius: 0; padding: 10px 16px; font-weight: 700; cursor: pointer; font-size: 13px; }
.btn-danger { background: #fff; color: #dc2626; border: 1px solid #fca5a5; border-radius: 0; padding: 9px 16px; font-weight: 700; cursor: pointer; font-size: 13px; }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 0; overflow: hidden; }
table.admin-table th { background: #f3f4f6; text-align: start; padding: 12px 16px; font-size: 13px; color: #6b7280; }
table.admin-table td { padding: 12px 16px; font-size: 14px; border-top: 1px solid #f0f0f0; }
.badge { border-radius: 0; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.done { background: #dcfce7; color: #166534; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy-dark); }
.login-card { background: #fff; border-radius: 0; padding: 34px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-card h1 { font-size: 19px; color: var(--navy); margin: 0 0 22px; }
.login-card .form-group { margin-bottom: 16px; }
.login-card input {
  width: 100%; border: 1px solid #d5d5d5; border-radius: 0; padding: 11px 14px; font-size: 14px;
}
.error-text { color: #dc2626; font-size: 13px; margin: 8px 0; }
