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

:root {
  --lime: #C8F500;
  --lime-dark: #A8D000;
  --lime-light: #E8FF66;
  --black: #0A0A0A;
  --gray-900: #1A1A1A;
  --gray-700: #3A3A3A;
  --gray-500: #6B6B6B;
  --gray-300: #D0D0D0;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--lime);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--lime-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--black);
}

.btn-outline:hover {
  border-color: var(--black);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; padding: 16px; font-size: 16px; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.logo-icon { font-size: 22px; }
.logo-text span { color: var(--lime-dark); }

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.15s;
}

.nav a:hover { color: var(--black); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  background: var(--gray-100);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
}

.lang-btn.active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav a {
  padding: 12px 0;
  font-weight: 500;
  font-size: 16px;
}

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

/* ===== Hero ===== */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
}

.hero-inner { max-width: 800px; }

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--lime), var(--lime-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Search box */
.search-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  margin-bottom: 40px;
}

.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-100);
  padding: 0 8px;
}

.search-tab {
  padding: 14px 20px;
  border: none;
  background: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-500);
  cursor: pointer;
  position: relative;
}

.search-tab.active {
  color: var(--black);
}

.search-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--lime);
  border-radius: 3px 3px 0 0;
}

.search-fields {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 20px;
}

.search-field {
  flex: 1;
}

.search-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.search-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--white);
  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='%236B6B6B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

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

.search-btn {
  padding: 13px 28px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 40px;
}

.stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stat span {
  font-size: 13px;
  color: var(--gray-500);
}

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

.section-alt {
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 17px;
  color: var(--gray-500);
}

/* ===== Categories ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.cat-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.category-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-card p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
  flex: 1;
}

.cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--lime-dark);
  background: rgba(200, 245, 0, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

/* ===== Properties ===== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.property-image {
  position: relative;
  height: 200px;
}

.property-img-placeholder {
  width: 100%;
  height: 100%;
}

.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--lime);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.property-badge.sale {
  background: var(--black);
  color: var(--white);
}

.property-body {
  padding: 20px;
}

.property-price {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.property-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
}

.property-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.property-meta {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

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

.property-location {
  font-size: 13px;
  color: var(--gray-500);
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  padding: 0 20px;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--lime);
  color: var(--black);
  font-weight: 800;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== Request Form ===== */
.request-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.request-info h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.request-info > p {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 28px;
  line-height: 1.6;
}

.request-benefits {
  list-style: none;
}

.request-benefits li {
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  color: var(--gray-700);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.15s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--lime-dark);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-note {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  margin-top: 12px;
}

/* Success overlay */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-overlay.show {
  display: flex;
}

.success-box {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--lime);
  color: var(--black);
  font-size: 32px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-box h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-box p {
  color: var(--gray-500);
  margin-bottom: 28px;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

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

.footer-brand .logo-text span {
  color: var(--lime);
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-300);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-links a,
.footer-links p {
  display: block;
  font-size: 14px;
  color: var(--gray-300);
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-500);
}

.footer-note {
  font-size: 12px !important;
  opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav, .header-actions .btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .properties-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .request-wrapper { grid-template-columns: 1fr; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .search-fields { flex-direction: column; align-items: stretch; }
  .search-btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .categories-grid { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .lang-switch { display: none; }
}
