/* Trang chủ — design/trang-chu (Bootstrap + CSS) */

/* Hero */
.re-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: var(--re-stack-lg) 0;
  background: linear-gradient(135deg, var(--re-primary) 0%, var(--re-primary-container) 100%);
  overflow: hidden;
}

.re-hero-bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
}

.re-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 49, 69, 0.4);
}

.re-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.re-hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -0.02em;
  color: var(--re-on-primary);
  margin: 0 0 var(--re-stack-md);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.re-hero-desc {
  max-width: 672px;
  font-size: 18px;
  line-height: 28px;
  color: var(--re-surface);
  margin: 0 0 40px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.re-hero-search {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 896px;
  padding: var(--re-stack-md);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid #d3e4fe;
  border-radius: var(--re-radius-lg);
  box-shadow: var(--re-shadow);
}

.re-hero-field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.re-hero-field .material-symbols-outlined {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--re-on-surface-variant);
  pointer-events: none;
}

.re-hero-field input,
.re-hero-field select {
  width: 100%;
  height: 48px;
  padding: 12px 16px 12px 48px;
  background: var(--re-bg);
  border: 1px solid var(--re-outline-variant);
  border-radius: var(--re-radius);
  font-family: inherit;
  font-size: 16px;
  color: var(--re-on-surface);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.re-hero-field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23444651' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 7px;
  cursor: pointer;
}

.re-hero-field input:focus,
.re-hero-field select:focus {
  outline: none;
  border-color: var(--re-primary);
}

.re-hero-submit {
  height: 48px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.re-hero-submit:hover {
  background: #264191;
}

/* Section chung */
.re-home-section {
  padding: var(--re-stack-lg) 0;
}

.re-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: var(--re-stack-md);
}

.re-section-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: -0.01em;
  color: var(--re-on-surface);
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

.re-section-desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--re-on-surface-variant);
  margin: 0;
}

.re-section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--re-primary);
  text-decoration: none;
}

.re-section-more:hover {
  color: var(--re-primary);
  text-decoration: underline;
}

.re-section-more .material-symbols-outlined {
  font-size: 18px;
}

/* Danh mục */
.re-home-cats > [class*="col-"] {
  margin-bottom: var(--re-gutter);
}

.re-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  aspect-ratio: 1 / 1;
  padding: 16px;
  background: var(--re-surface-container);
  border: 1px solid var(--re-outline-variant);
  border-radius: var(--re-radius-lg);
  color: var(--re-on-surface);
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.re-cat-tile:hover {
  color: var(--re-on-surface);
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.1);
}

.re-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--re-surface);
  transition: transform 0.3s;
}

.re-cat-tile:hover .re-cat-icon {
  transform: scale(1.1);
}

.re-cat-icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--re-primary);
}

.re-cat-name {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.re-cat-count {
  margin-top: -10px;
  font-size: 13px;
  color: var(--re-on-surface-variant);
}

/* Bất động sản nổi bật */
.re-home-featured {
  background: var(--re-bg);
}

.re-home-empty {
  padding: var(--re-stack-md);
  background: var(--re-surface);
  border: 1px solid var(--re-outline-variant);
  border-radius: var(--re-radius-lg);
  text-align: center;
  color: var(--re-on-surface-variant);
}

/* Tại sao chọn chúng tôi */
.re-home-why .re-section-title {
  margin-bottom: 40px;
}

.re-why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--re-stack-md);
  text-align: center;
}

.re-why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: var(--re-stack-md);
  border-radius: 50%;
  background: var(--re-surface-container);
}

.re-why-icon .material-symbols-outlined {
  font-size: 40px;
  color: var(--re-primary);
}

.re-why-item h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--re-on-surface);
  margin: 0 0 12px;
}

.re-why-item p {
  font-size: 16px;
  line-height: 24px;
  color: var(--re-on-surface-variant);
  margin: 0;
}

@media (min-width: 768px) {
  .re-hero-title {
    font-size: 48px;
    line-height: 56px;
  }

  .re-hero-search {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .re-hero {
    min-height: 0;
    padding: 64px 0;
  }

  .re-hero-desc {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: var(--re-stack-md);
  }

  .re-hero-search {
    padding: 16px;
  }

  .re-section-title {
    font-size: 24px;
    line-height: 32px;
  }

  .re-cat-icon {
    width: 56px;
    height: 56px;
  }

  .re-cat-name {
    font-size: 17px;
    line-height: 24px;
  }
}
