/* ═══ Glory Real Estate Bahrain — Orange Luxury Theme ═══ */

:root {
  --pri: #F27200;
  --pri-l: #FF8A1E;
  --pri-d: #D46300;
  --dk: #111318;
  --dk-alt: #1A1D24;
  --dk-soft: #23262E;
  --tx: #F2EFE8;
  --tx-mute: #9C9890;
  --tx-dim: #706C64;
  --bg: #FAFAF8;
  --bg-alt: #F2EFE8;
  --white: #FFFFFF;
  --success: #2D8B55;
  --error: #C94444;
  --accent: #F27200;
  --border: rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--dk);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pri); color: white; }

/* ═══ Typography ═══ */
.font-serif { font-family: 'Playfair Display', Georgia, serif; letter-spacing: -0.02em; }
h1, h2, h3 { letter-spacing: -0.01em; }

/* ═══ Luxury Touches ═══ */
.luxury-glow { box-shadow: 0 0 60px rgba(242,114,0,0.04); }

/* ═══ Scroll Reveal ═══ */
.reveal { opacity: 0; transform: translateY(28px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ═══ Hero ═══ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dk);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transition: transform 8s ease-out;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,19,24,0.4) 0%, rgba(17,19,24,0.88) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 24px; }

/* ═══ Property Card ═══ */
.prop-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03), 0 0 0 1px rgba(0,0,0,0.03);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.prop-card:hover {
  box-shadow: 0 24px 56px rgba(0,0,0,0.09), 0 0 0 1px rgba(242,114,0,0.12);
  transform: translateY(-6px);
}
.prop-card:hover .prop-img img { transform: scale(1.05); }
.prop-img { height: 220px; position: relative; overflow: hidden; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.prop-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f5f0e8, #e8e3da);
}

/* ═══ Carousel ═══ */
.carousel { position: relative; overflow: hidden; border-radius: 16px; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--dk);
  transition: all 0.3s; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.carousel-btn:hover { background: var(--white); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

/* ═══ Team Card ═══ */
.team-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  text-align: center; padding: 32px 24px;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
}
.team-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.06); transform: translateY(-4px); }
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--pri), var(--pri-d));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 32px; font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ═══ Service Card ═══ */
.svc-card {
  background: var(--white); border-radius: 16px; padding: 32px 24px;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
}
.svc-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.05); transform: translateY(-3px); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(242,114,0,0.1), rgba(242,114,0,0.03));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* ═══ Stats ═══ */
.stat-item { text-align: center; padding: 24px; }
.stat-value { font-size: 48px; font-weight: 800; color: var(--pri); line-height: 1; }

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: 14px; font-weight: 600;
  border-radius: 10px; border: none; cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none; letter-spacing: 0.2px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pri), var(--pri-d));
  color: white;
  box-shadow: 0 4px 14px rgba(242,114,0,0.25);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(242,114,0,0.4); }
.btn-outline { background: transparent; color: var(--pri); border: 1.5px solid var(--pri); }
.btn-outline:hover { background: var(--pri); color: white; }
.btn-white { background: var(--white); color: var(--dk); }
.btn-white:hover { background: var(--bg-alt); }
.btn-lg { padding: 15px 36px; font-size: 15px; }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ═══ Badges ═══ */
.badge { display: inline-block; padding: 5px 14px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; }
.badge-sale { background: var(--pri); color: white; }
.badge-rent { background: var(--success); color: white; }
.badge-featured { background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

/* ═══ Form ═══ */
.form-input {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid #e8e5de; font-size: 14px; outline: none;
  font-family: inherit; transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--white);
}
.form-input:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(242,114,0,0.06); }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--dk); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ═══ Header ═══ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17,19,24,0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(242,114,0,0.06);
  transition: all 0.4s;
}
.header.scrolled { background: rgba(17,19,24,0.98); box-shadow: 0 4px 32px rgba(0,0,0,0.25); border-bottom-color: rgba(242,114,0,0.1); }
.nav-link {
  color: rgba(242,239,232,0.6); text-decoration: none;
  font-size: 13px; font-weight: 500; padding: 8px 11px;
  border-radius: 8px; transition: all 0.3s;
  letter-spacing: 0.3px; text-transform: uppercase;
  /* Never let a label wrap. The Breeze link is display:flex (for its "New" badge),
     which otherwise lets its text shrink into 2-3 stacked lines and blow up the header. */
  white-space: nowrap; flex-shrink: 0;
}
/* Desktop nav carries 10 links — reclaim a little room before the mobile menu takes over. */
@media (min-width: 768px) and (max-width: 1150px) {
  .nav-link { padding: 8px 8px; font-size: 12px; letter-spacing: 0.2px; }
}
.nav-link:hover, .nav-link.active { color: var(--tx); background: rgba(255,255,255,0.06); }

/* ═══ Footer ═══ */
.footer { background: var(--dk); color: var(--tx-mute); padding: 72px 0 28px; border-top: 1px solid rgba(242,114,0,0.08); }
.footer a { color: var(--tx-mute); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--pri); }

/* ═══ Section ═══ */
.section { padding: 100px 0; }
.section-dark { background: var(--dk); color: var(--tx); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ═══ Gold Line → Orange Line ═══ */
.gold-line { width: 48px; height: 2px; background: linear-gradient(90deg, transparent, var(--pri), transparent); margin: 16px auto; }
.gold-line-left { width: 48px; height: 2px; background: linear-gradient(90deg, var(--pri), transparent); margin: 16px 0; }

/* ═══ Scroll to top ═══ */
.scroll-top {
  position: fixed; bottom: 24px; right: 80px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--dk); color: var(--pri);
  border: 1px solid rgba(242,114,0,0.2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.3s; z-index: 50;
}
.scroll-top:hover { transform: translateY(-3px); background: var(--pri); color: white; }

/* ═══ Coming Soon ═══ */
.coming-soon { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--dk); color: var(--tx); text-align: center; }
.countdown-item { text-align: center; padding: 16px 24px; }
.countdown-value { font-size: 48px; font-weight: 800; color: var(--pri); line-height: 1; }
.countdown-label { font-size: 11px; color: var(--tx-mute); text-transform: uppercase; letter-spacing: 2px; margin-top: 8px; }

/* ═══ Amenity Icons ═══ */
.amenity-icon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--bg); border-radius: 12px;
  font-size: 13px; color: var(--dk); border: 1px solid var(--border);
  transition: all 0.25s;
}
.amenity-icon:hover { border-color: rgba(242,114,0,0.2); background: rgba(242,114,0,0.03); }
.amenity-icon svg, .amenity-icon i { color: var(--pri); width: 16px; height: 16px; flex-shrink: 0; }

/* ═══ Feature Pills ═══ */
.feature-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.2px; }
.feature-pill-gold { background: rgba(242,114,0,0.07); color: var(--pri-d); }
.feature-pill-green { background: rgba(45,139,85,0.07); color: var(--success); }
.feature-pill-blue { background: rgba(59,110,201,0.07); color: #3B6EC9; }

/* ═══ AI Chat ═══ */
.ai-msg a { text-decoration: underline; text-underline-offset: 2px; }
.ai-msg strong { font-weight: 700; }

/* ═══ Filter Chips ═══ */
.filter-chip {
  padding: 8px 18px; border-radius: 10px; font-size: 13px; font-weight: 500;
  border: 1.5px solid #e0ddd6; background: var(--white);
  cursor: pointer; transition: all 0.25s; color: var(--tx-dim);
}
.filter-chip:hover { border-color: var(--pri); color: var(--pri); }
.filter-chip.active { background: var(--pri); color: white; border-color: var(--pri); }

/* ═══ Amenity Tag (legacy) ═══ */
.amenity-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--bg); border-radius: 10px;
  font-size: 13px; color: var(--dk); border: 1px solid var(--border);
}

/* ═══ Admin ═══ */
.admin-sidebar { width: 240px; background: var(--dk); min-height: 100vh; padding: 24px 0; position: fixed; left: 0; top: 0; }
.admin-main { margin-left: 240px; padding: 32px; min-height: 100vh; background: var(--bg); }
.admin-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: var(--tx-mute); text-decoration: none; font-size: 14px; transition: all 0.2s; cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.admin-nav-item:hover, .admin-nav-item.active { color: var(--white); background: rgba(255,255,255,0.06); }
.admin-card { background: var(--white); border-radius: 14px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700; color: var(--tx-dim); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--bg-alt); }
.admin-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--bg-alt); }

/* ═══ Mobile ═══ */
.mobile-menu { display: none; cursor: pointer; background: none; border: none; color: var(--tx); padding: 8px; }
@media (max-width: 768px) {
  .mobile-menu { display: block; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dk); padding: 16px; border-top: 1px solid rgba(255,255,255,0.05); }
  .hero { min-height: 75vh; }
  .stat-value { font-size: 36px; }
  .section { padding: 64px 0; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
}

/* ── Legal pages (Privacy / Terms) — on-brand: Inter body, Playfair headings ── */
.legal-prose { color: #4A4640; font-size: 15.5px; line-height: 1.8; font-family: 'Inter', sans-serif; }
.legal-prose > p:first-of-type { font-size: 17px; line-height: 1.75; color: #2A2824; margin-bottom: 26px; }
.legal-prose h2 { font-family: 'Playfair Display', Georgia, serif; color: #111318; font-size: 22px; font-weight: 700; margin: 40px 0 14px; padding-top: 18px; border-top: 1px solid #ECE7DC; }
.legal-prose h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-prose p { margin: 0 0 14px; }
.legal-prose ul { margin: 0 0 16px; padding-left: 22px; list-style: none; }
.legal-prose li { margin: 0 0 10px; position: relative; padding-left: 18px; }
.legal-prose li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #F27200; }
.legal-prose a { color: #F27200; text-decoration: none; border-bottom: 1px solid rgba(242,114,0,.35); transition: border-color .2s; }
.legal-prose a:hover { border-color: #F27200; }
.legal-prose strong { color: #111318; font-weight: 600; }
.legal-prose .legal-note { margin-top: 40px; padding: 16px 20px; background: #FBF4EC; border: 1px solid #F2D9BE; border-left: 3px solid #F27200; border-radius: 10px; font-size: 13px; line-height: 1.6; color: #7a5a36; }
