/* ===========================
   AQARX – Main Stylesheet
   Colors: Red #CC0000 | Black #0A0A0A | Silver #C0C0C0
=========================== */

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

:root {
  --red: #CC0000;
  --red-dark: #990000;
  --black: #0A0A0A;
  --dark: #111111;
  --dark2: #1a1a1a;
  --silver: #C0C0C0;
  --white: #ffffff;
  --gray: #888888;
  --light-gray: #f5f5f5;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid #222;
  padding: 0 20px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--silver);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

.nav-auth {
  display: flex;
  gap: 10px;
}

.btn-outline {
  padding: 8px 18px;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

.btn-solid {
  padding: 8px 18px;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-solid:hover {
  background: var(--red-dark);
}

.hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--white);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 50%, #0a0a0a 100%);
  padding-top: 70px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(204,0,0,0.12) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--silver);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ===== SEARCH BOX ===== */
.search-box {
  background: var(--dark2);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  padding: 8px 20px;
  border: 1px solid #333;
  background: transparent;
  color: var(--silver);
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.tab.active, .tab:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.search-inputs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input {
  flex: 2;
  min-width: 200px;
  padding: 12px 16px;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: var(--white);
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--red);
}

.search-select {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: var(--silver);
  font-size: 14px;
  cursor: pointer;
}

.search-select:focus { outline: none; border-color: var(--red); }

.btn-search {
  padding: 12px 28px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-search:hover { background: var(--red-dark); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--dark2);
  border-top: 1px solid #1f1f1f;
  border-bottom: 1px solid #1f1f1f;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.stat {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid #1f1f1f;
}

.stat:last-child { border-right: none; }

.stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
}

.stat-label {
  font-size: 13px;
  color: var(--silver);
  margin-top: 4px;
  display: block;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}

.see-all {
  color: var(--red);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.see-all:hover { gap: 10px; }

/* ===== PROPERTY CARDS ===== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.property-card {
  background: var(--dark2);
  border: 1px solid #222;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.property-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.card-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #1a0000, #111);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-placeholder {
  font-size: 60px;
  color: rgba(204,0,0,0.3);
}

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-badge.rent { background: #0066cc; }

.card-ai-badge {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.card-location {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-location i { color: var(--red); }

.card-specs {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--silver);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #222;
}

.card-specs span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-specs i { color: var(--red); }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--red);
}

.btn-card {
  padding: 8px 20px;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-card:hover { background: var(--red-dark); }

/* ===== AI PROMO ===== */
.ai-promo {
  background: linear-gradient(135deg, #0f0000 0%, #1a0000 50%, #0f0000 100%);
  border-top: 1px solid #2a0000;
  border-bottom: 1px solid #2a0000;
  padding: 80px 20px;
}

.ai-promo-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.ai-promo-text {
  flex: 1;
  min-width: 280px;
}

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.ai-promo-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.ai-promo-text p {
  color: var(--silver);
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.7;
}

.ai-promo-visual {
  flex: 1;
  min-width: 260px;
  display: flex;
  justify-content: center;
}

.ai-screen {
  width: 320px;
  height: 200px;
  background: #111;
  border: 2px solid var(--red);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 40px rgba(204,0,0,0.2);
}

.ai-screen i {
  font-size: 48px;
  color: var(--red);
}

.ai-screen p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.ai-screen span {
  font-size: 12px;
  color: var(--gray);
}

/* ===== DECORATORS ===== */
.decorators-section {
  background: var(--dark);
}

.decorators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.decorator-card {
  background: var(--dark2);
  border: 1px solid #222;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}

.decorator-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.decorator-icon {
  font-size: 36px;
  color: var(--red);
  margin-bottom: 14px;
}

.decorator-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.decorator-card p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
}

.decorator-badge {
  font-size: 11px;
  background: rgba(204,0,0,0.15);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  background: #050505;
  border-top: 1px solid #1a1a1a;
  padding: 60px 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: var(--dark2);
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  font-size: 15px;
  transition: all 0.2s;
}

.social-links a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 13px;
  color: var(--gray);
  transition: color 0.2s;
}

.footer-links ul li a:hover { color: var(--red); }

.footer-contact p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact i { color: var(--red); }

.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links, .nav-auth { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ai-promo-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .stats-bar { flex-wrap: wrap; }
  .stat { min-width: 50%; border-right: none; border-bottom: 1px solid #1f1f1f; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-inputs { flex-direction: column; }
}

/* ===================================================
   DAY 8 POLISH — Navbar user menu + Back to top
=================================================== */

/* USER MENU */
.nav-user-menu {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(204,0,0,0.1);
  border: 1px solid rgba(204,0,0,0.3);
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-user-btn:hover { background: rgba(204,0,0,0.2); }
.nav-user-btn i:first-child { color: var(--red); font-size: 18px; }

/* DROPDOWN */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  min-width: 200px;
  padding: 8px;
  display: none;
  z-index: 999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.user-dropdown.open { display: block; }

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--silver);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(204,0,0,0.08);
  color: var(--white);
}

.user-dropdown i { color: var(--red); width: 16px; }

.dropdown-divider {
  height: 1px;
  background: #1a1a1a;
  margin: 6px 0;
}

/* MOBILE NAV */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    z-index: 999;
  }

  .nav-links.mobile-open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
  }

  .nav-links a:hover { background: rgba(204,0,0,0.08); }

  .nav-auth { display: flex; }
}

/* BACK TO TOP BUTTON */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(204,0,0,0.4);
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
}

#backToTop:hover { background: var(--red-dark); }

/* ===================================================
   DAY 8 FINAL POLISH
=================================================== */

/* USER MENU IN NAVBAR */
.nav-user-menu { position: relative; }

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(204,0,0,0.1);
  border: 1px solid rgba(204,0,0,0.3);
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-user-btn:hover { background: rgba(204,0,0,0.2); }
.nav-user-btn i:first-child { color: var(--red); font-size: 18px; }

/* DROPDOWN */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  min-width: 200px;
  padding: 8px;
  display: none;
  z-index: 9990;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.user-dropdown.open { display: block; }

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--silver);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(204,0,0,0.08);
  color: var(--white);
}

.user-dropdown i { color: var(--red); width: 16px; text-align: center; }

.dropdown-divider {
  height: 1px;
  background: #1a1a1a;
  margin: 6px 0;
}

/* MOBILE NAV */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    flex-direction: column;
    padding: 12px 16px;
    gap: 2px;
    z-index: 999;
  }

  .nav-links.mobile-open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(204,0,0,0.08);
  }

  .nav-auth { display: flex; }
}

/* BACK TO TOP */
#backToTop {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(204,0,0,0.4);
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
}

#backToTop:hover { background: var(--red-dark); }