/* ══════════════════════════════════════════════
   Assetra — Premium Real Estate AI Assistant
   Layout matched to Qdesq design reference
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-purple: #6366f1;
  /* Indigo purple */
  --brand-pink: #d946ef;
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --gradient-hero: linear-gradient(135deg, #a86884 0%, #6d447a 30%, #4a377b 65%, #2c2459 100%);
  --text-dark: #0f172a;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--gradient-hero);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ══════════════════════════
   NAVBAR (Transparent Overlay)
   ══════════════════════════ */
.navbar {
  height: 96px;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo img {
  height: 72px;
  /* Increased logo height */
  width: auto;
  filter: brightness(0) invert(1);
  /* Force logo to be white for dark background */
}

.nav-logo .brand-text {
  display: flex;
  flex-direction: column;
}

.nav-logo .brand {
  font-size: 2.2rem;
  /* Increased brand text size */
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.1;
}

.nav-logo .sub {
  display: block;
  font-size: 0.85rem;
  /* Increased brand subtitle size */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-admin-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.nav-admin-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.admin-dropdown {
  position: relative;
}

.admin-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.05);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
}

.admin-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.admin-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 10px;
  transition: all var(--transition);
}

.admin-dropdown-item:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--brand-purple);
}

/* ══════════════════════════
   HERO
   ══════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  width: 100%;
  padding-top: 96px;
  /* Offset for navbar */
  overflow: hidden;
}

.hero-content {
  display: flex;
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 80px;
  align-items: stretch;
  gap: 40px;
}

/* ── Left Side ── */
.hero-left {
  flex: 1;
  /* Take all available remaining space */
  padding: 4rem 0 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-headline {
  margin-bottom: 0.5rem;
}

.hero-headline h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-headline p {
  margin-top: 1rem;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  line-height: 1.6;
  font-weight: 400;
}

/* ── Search Card Desktop (Restored to original design) ── */
.search-card-desktop {
  margin-top: 2.5rem;
  background: var(--white);
  border-radius: 24px;
  padding: 2rem 2.25rem 2.25rem;
  width: 100%;
  max-width: 940px;
  box-shadow:
    0 25px 60px rgba(15, 23, 42, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.05);
  display: block;
}

.search-card-desktop .category-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.search-card-desktop .category-tab {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: all var(--transition);
  white-space: nowrap;
  background: var(--white);
}

.search-card-desktop .category-tab:hover {
  color: var(--brand-purple);
  border-color: rgba(99, 102, 241, 0.5);
}

.search-card-desktop .category-tab.active {
  color: var(--brand-purple);
  border-color: var(--brand-purple);
  background: rgba(99, 102, 241, 0.05);
}

.search-card-desktop .search-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.search-card-desktop .select-city {
  padding: 0 40px 0 20px;
  height: 56px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  min-width: 160px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: all var(--transition);
}

.search-card-desktop .select-city:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.search-card-desktop .search-input-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}

.search-card-desktop .search-input-wrap input {
  width: 100%;
  height: 56px;
  padding: 0 60px 0 20px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  transition: all var(--transition);
}

.search-card-desktop .search-input-wrap input::placeholder {
  color: #94a3b8;
}

.search-card-desktop .search-input-wrap input:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.search-card-desktop .search-go {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.search-card-desktop .search-go:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.search-card-desktop .search-go svg {
  width: 18px;
  height: 18px;
}

/* Ask Assetra Button (Restored original blue color) */
.search-card-desktop .ask-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  padding: 0 34px;
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  /* Original royal blue-indigo gradient */
  color: var(--white);
  border-radius: 16px;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.search-card-desktop .ask-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  box-shadow:
    0 12px 30px rgba(37, 99, 235, 0.4),
    0 4px 10px rgba(37, 99, 235, 0.15);
}

.search-card-desktop .ask-btn .ai-dot {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse-ring-desktop 2s ease-in-out infinite;
}

@keyframes pulse-ring-desktop {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
}

.search-card-desktop .ask-btn .ai-dot svg {
  width: 15px;
  height: 15px;
  color: #fbbf24;
  /* Golden sparkle */
}

.search-card-desktop .ask-btn .btn-label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.search-card-desktop .ask-btn .btn-label strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.search-card-desktop .ask-btn .btn-label small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}


/* ── Search Card Mobile (Qdesq Style Format, hidden on desktop) ── */
.search-card-mobile {
  display: none !important;
  background: var(--white);
  border-radius: 24px;
  padding: 1.5rem 1.25rem 1.5rem;
  width: 100%;
  box-shadow:
    0 25px 60px rgba(15, 23, 42, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex-direction: column;
  gap: 16px;
  margin-top: 2.5rem;
}

.search-card-mobile .filter-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.search-card-mobile .select-category,
.search-card-mobile .select-city {
  flex: 1;
  min-width: 0 !important;
  width: 50%;
  height: 48px;
  padding: 0 24px 0 10px;
  /* Reduced paddings to allow full word display without layout shifting */
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all var(--transition);
}

.search-card-mobile .select-category:focus,
.search-card-mobile .select-city:focus {
  outline: none;
  border-color: var(--brand-purple);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-card-mobile .search-input-row {
  width: 100%;
}

.search-card-mobile .search-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-card-mobile .search-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 52px 0 38px;
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all var(--transition);
}

.search-card-mobile .search-input-wrap input::placeholder {
  color: #94a3b8;
}

.search-card-mobile .search-input-wrap input:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-card-mobile .search-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-card-mobile .search-icon svg {
  width: 16px;
  height: 16px;
}

.search-card-mobile .search-go-btn {
  position: absolute;
  right: 7px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e11d48;
  /* Crimson red */
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.search-card-mobile .search-go-btn:hover {
  background: #be123c;
}

.search-card-mobile .search-go-btn svg {
  width: 14px;
  height: 14px;
}

/* Ask Assetra AI Assistant Pill (Same blue color as before) */
.search-card-mobile .ask-ai-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  /* Blue gradient matches desktop */
  color: var(--white);
  border-radius: 24px;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.search-card-mobile .ask-ai-bar:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.search-card-mobile .ai-sparkle-dot {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse-ring-mobile 2.5s ease-in-out infinite;
}

@keyframes pulse-ring-mobile {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
  }
}

.search-card-mobile .ai-sparkle-dot svg {
  width: 12px;
  height: 12px;
  color: #fbbf24;
}

.search-card-mobile .ai-bar-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.15;
}

.search-card-mobile .ai-bar-label .title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

.search-card-mobile .ai-bar-label .title .author {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
  margin-left: 2px;
}

.search-card-mobile .ai-bar-label .subtitle {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.75;
}


/* ── Taglines (replacing Popular Cities in Qdesq style) ── */
.taglines {
  margin-top: 3.5rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 940px;
}

.tagline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}

.tagline-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.tagline-item .tl-icon {
  width: 18px;
  height: 18px;
  color: #c084fc;
  /* Bright lavender color icon */
  flex-shrink: 0;
}

.tagline-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

/* ── Right Side (Arch Image - Shrunk & Anchored exactly as requested) ── */
.hero-right {
  flex: 0 0 auto;
  /* Wrap content size strictly */
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
}

.image-arch {
  position: relative;
  width: 100%;
  width: 480px;
  /* Slightly increased width */
  height: 56vh;
  /* Increased height to make it taller towards the top */
  max-height: 500px;
  /* Taller maximum height */
  min-height: 380px;
  border-radius: 240px 240px 0 0;
  /* Semi-circle top rounding for 480px width */
  overflow: hidden;
  background: #ffffff;
  border: 10px solid #ffffff;
  border-bottom: none;
  box-shadow:
    0 -12px 30px rgba(15, 23, 42, 0.18);
  margin-bottom: -1px;
}

.image-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 230px 230px 0 0;
  display: block;
}

/* ══════════════════════════
   BOTTOM STRIP
   ══════════════════════════ */
.bottom-strip {
  height: 8px;
  background: var(--gradient-brand);
  position: relative;
  z-index: 10;
}

/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 1200px) {
  .navbar {
    padding: 0 48px;
  }

  .hero-content {
    padding: 0 48px;
  }

  .hero-headline h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    padding: 0 32px;
  }

  .hero-left {
    flex: 1;
    max-width: 100%;
    padding: 120px 0 40px;
    text-align: center;
    align-items: center;
  }

  .hero-headline p {
    margin-left: auto;
    margin-right: auto;
  }

  .search-card {
    max-width: 100%;
  }

  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .select-city {
    width: 100%;
  }

  .taglines {
    max-width: 100%;
    justify-content: center;
  }

  .hero-right {
    flex: 1;
    max-width: 100%;
    justify-content: center;
    padding-top: 20px;
    height: auto;
  }

  .image-arch {
    width: 400px;
    height: 440px;
    margin: 0 auto;
    border-radius: 200px 200px 0 0;
  }

  .image-arch img {
    border-radius: 190px 190px 0 0;
  }

  .navbar {
    padding: 0 32px;
  }
}

@media (max-width: 600px) {
  .navbar {
    height: 80px;
    padding: 0 16px;
  }

  .nav-logo {
    gap: 8px;
  }

  .nav-logo img {
    height: 40px;
  }

  .nav-logo .brand {
    font-size: 1.25rem;
  }

  .nav-logo .sub {
    display: none;
  }

  .nav-right {
    display: flex;
    gap: 8px;
  }

  .nav-admin-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 8px;
    gap: 4px;
  }

  .nav-admin-btn svg {
    width: 14px;
    height: 14px;
  }

  .admin-dropdown-menu {
    min-width: 160px;
    right: 0;
  }

  .hero-content {
    padding: 0 16px;
  }

  .hero-left {
    padding: 90px 0 20px;
  }

  .hero-headline h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-headline p {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .search-card-desktop {
    display: none !important;
  }

  .search-card-mobile {
    display: flex !important;
  }

  .taglines {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: stretch;
  }

  .tagline-item {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .tagline-item span {
    font-size: 0.88rem;
  }

  .image-arch {
    width: 300px;
    height: 340px;
    border-radius: 150px 150px 0 0;
  }

  .image-arch img {
    border-radius: 140px 140px 0 0;
  }
}