/* ==========================================================================
   Fine Home Kerala - Cohesive Theme Extensions & Pixel-Perfect Alignment
   Preserves Homelengo palette (#1563df, #161e2d, Manrope) + FHK (#0b224b, #d4a23a)
   ========================================================================== */

:root {
  --fhk-primary: #1563df;
  --fhk-primary-dark: #0e4cb3;
  --fhk-navy: #0b224b;
  --fhk-gold: #d4a23a;
  --fhk-dark: #161e2d;
  --fhk-muted: #5c6368;
  --fhk-surface: #f3f7fd;
  --fhk-border: #e4e4e4;
}

html,
body {
  overflow-x: clip;
}

body {
  padding-bottom: 94px;
}

.admin-body {
  padding-bottom: 0;
}

/* Consistent Container & Section Rhythm */
.container {
  max-width: 1320px;
  padding-left: 16px;
  padding-right: 16px;
}

.flat-section {
  padding-top: 68px;
  padding-bottom: 68px;
}

.flat-section-v3 {
  padding-top: 38px;
  padding-bottom: 68px;
}

.flat-section-v4 {
  padding-top: 36px;
  padding-bottom: 32px;
}

.fhk-page-top {
  padding-top: 48px !important;
}

/* Subpage Title Banner */
.flat-title-page {
  margin: 18px 16px 0;
  padding: 58px 20px;
  border-radius: 18px;
}

.flat-title-page .breadcrumb-content .title {
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.25;
}

/* ==========================================================================
   Compact, Proportionate Buttons & Dead-Center Flexbox Alignment
   ========================================================================== */
.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  height: auto;
  padding: 10px 20px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.tf-btn.size-1 {
  min-width: 0;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13.5px;
  gap: 6px;
}

.tf-btn.size-2 {
  min-width: 0;
  min-height: 44px;
  padding: 11px 24px;
  font-size: 14.5px;
}

.tf-btn.w-100 {
  width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.tf-btn.btn-line.text-white {
  background-color: transparent;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
}

.tf-btn.btn-line.text-white:hover {
  background-color: #ffffff;
  color: var(--fhk-navy) !important;
  border-color: #ffffff !important;
}

.tf-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.tf-btn .icon,
.tf-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.2;
}

/* Icon + Text Baseline Alignment */
.d-flex.align-items-center .icon,
.meta-item .icon,
.header-property-detail .meta-item .icon,
.footer .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

/* ==========================================================================
   Header & Navigation Precision
   ========================================================================== */
.main-header {
  height: auto;
  min-height: 72px;
  padding-left: 0;
  padding-right: 0;
}

.main-header .inner-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.main-header .inner-header-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.main-header .logo img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.main-header .main-menu .navigation {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.main-header .main-menu .navigation > li {
  padding-right: 0;
  display: inline-flex;
  align-items: center;
}

.main-header .main-menu .navigation > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 24px 0;
  font-size: 14.5px;
  line-height: 1;
  white-space: nowrap;
}

.main-header .main-menu .navigation > li > a::before {
  bottom: 18px;
}

.main-header .header-account {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.main-header .header-account .tf-btn,
.main-header .header-account .btn-login {
  min-width: 0;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13.5px;
}

.main-header .box-avatar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 99px;
  border: 1px solid var(--fhk-border);
  background: #ffffff;
}

.main-header .box-avatar .name {
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

@media (max-width: 1360px) {
  .main-header .inner-header-left {
    gap: 20px;
  }
  .main-header .main-menu .navigation {
    gap: 16px;
  }
}

/* ==========================================================================
   Hero Animated Multi-Slide Carousel & Fixed Search Bar Alignment
   ========================================================================== */
.flat-slider.home-1.fhk-hero-slider {
  position: relative;
  background-image: none;
  background-color: #0b1830;
  overflow: hidden;
}

.fhk-hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.fhk-hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.95s ease-in-out;
  z-index: 0;
}

.fhk-hero-bg-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.fhk-hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
}

.fhk-hero-bg-slide.is-active img {
  animation: fhkKenBurns 7.2s ease-out forwards;
}

@keyframes fhkKenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

.fhk-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(11, 24, 48, 0.58) 0%,
    rgba(11, 24, 48, 0.44) 52%,
    rgba(11, 24, 48, 0.72) 100%
  );
}

.flat-slider.home-1 .slider-content {
  padding: 86px 0 98px;
}

.fhk-hero-copy-stack {
  display: grid;
  margin-bottom: 26px;
}

.flat-slider.home-1 .slider-content .heading.fhk-hero-copy {
  grid-area: 1 / 1;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.flat-slider.home-1 .slider-content .heading.fhk-hero-copy.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fhk-hero-badge-wrap {
  margin-bottom: 12px;
}

.fhk-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(21, 99, 223, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.fhk-hero-title {
  margin-bottom: 0;
  text-shadow: 0 4px 18px rgba(7, 17, 36, 0.45);
}

.flat-slider.home-1 .slider-content .subtitle.fhk-hero-subtitle {
  margin: 12px auto 0;
  padding: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.94) !important;
  text-shadow: 0 2px 10px rgba(7, 17, 36, 0.4);
}

.fhk-hero-cta-wrap {
  margin-top: 20px;
}

.fhk-hero-cta {
  padding: 11px 24px;
  min-height: 44px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(21, 99, 223, 0.35);
}

@keyframes fhkHeroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fhk-hero-copy.is-active .fhk-hero-badge-wrap {
  animation: fhkHeroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.fhk-hero-copy.is-active .fhk-hero-title {
  animation: fhkHeroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.fhk-hero-copy.is-active .fhk-hero-subtitle {
  animation: fhkHeroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.fhk-hero-copy.is-active .fhk-hero-cta-wrap {
  animation: fhkHeroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
}

.fhk-hero-search-fixed {
  position: relative;
  z-index: 3;
}

.fhk-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(11, 24, 48, 0.48);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.fhk-hero-arrow.prev {
  left: 20px;
}

.fhk-hero-arrow.next {
  right: 20px;
}

.fhk-hero-arrow:hover {
  background: var(--fhk-primary);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.fhk-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fhk-hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.fhk-hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

@media (max-width: 991px) {
  .fhk-hero-arrow {
    width: 38px;
    height: 38px;
  }
  .fhk-hero-arrow.prev {
    left: 10px;
  }
  .fhk-hero-arrow.next {
    right: 10px;
  }
}

@media (max-width: 575px) {
  .fhk-hero-arrow {
    display: none;
  }
  .fhk-hero-dots {
    bottom: 14px;
  }
}

.flat-tab-form .nav-tab-form {
  margin-bottom: 14px;
  gap: 8px;
}

.flat-tab-form .nav-tab-form .nav-link-item {
  padding: 9px 22px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.wd-find-select {
  padding: 18px 20px;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.wd-find-select .inner-group.fhk-search-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 12px;
  padding-right: 0;
  align-items: end;
}

.wd-find-select .inner-group .form-style {
  border-right: 0 !important;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wd-find-select .inner-group .form-style label {
  font-size: 12px;
  font-weight: 700;
  color: var(--fhk-muted);
  margin-bottom: 0;
  line-height: 1.2;
  text-align: left;
}

.wd-find-select .inner-group .form-style .form-control,
.wd-find-select .inner-group .form-style .fhk-select {
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--fhk-border);
  border-radius: 99px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  background-color: #f9fbff;
  color: var(--fhk-dark);
}

.wd-find-select .inner-group .form-style .form-control::placeholder {
  color: #7a8491;
  font-weight: 400;
}

.wd-find-select .box-btn-advanced {
  flex-shrink: 0;
}

.wd-find-select .box-btn-advanced .tf-btn.btn-search {
  min-height: 44px;
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
}

@media (max-width: 1199px) {
  .wd-find-select .inner-group.fhk-search-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  .wd-find-select {
    flex-direction: column;
    align-items: stretch;
  }
  .wd-find-select .box-btn-advanced .tf-btn.btn-search {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .wd-find-select .inner-group.fhk-search-grid {
    grid-template-columns: 1fr;
  }
}

/* Forms & Select Consistency */
.form-control {
  padding: 10px 14px;
  font-size: 14.5px;
  line-height: 1.4;
  min-height: 44px;
  border-radius: 10px;
}

textarea.form-control {
  min-height: auto;
}

.table tr {
  white-space: normal !important;
}

.table > :not(caption) > * > * {
  padding: 12px 14px;
  vertical-align: middle;
}

.fhk-select {
  width: 100%;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--fhk-border);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14.5px;
  font-family: "Manrope", sans-serif;
  color: var(--fhk-dark);
  background-color: #ffffff;
  outline: none;
}

.fhk-select:focus {
  border-color: var(--fhk-primary);
}

/* Section Headers Alignment */
.box-title {
  margin-bottom: 32px;
  max-width: 680px;
}

.box-title.d-flex {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  gap: 16px;
}

.box-title .title,
.box-title h3.mt-4 {
  margin-top: 6px !important;
}

/* Quick Sell & Status Badges */
.flag-tag.quick-sell {
  background: linear-gradient(135deg, #d4a23a, #b8841e);
  color: #ffffff;
}

.flag-tag.k-rera {
  background: #0d9488;
  color: #ffffff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.1;
}

.fhk-code-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--fhk-navy);
  background: #edf3fc;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.4px;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   Equal-Height Property Cards & Truncation
   ========================================================================== */
.homelengo-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.homelengo-box .images-style img {
  height: 225px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.homelengo-box .images-group .top {
  padding-right: 46px;
}

.homelengo-box .images-group .bottom {
  font-size: 12.5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.homelengo-box .images-group .bottom svg {
  flex-shrink: 0;
}

.homelengo-box .archive-top .wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(22, 30, 45, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fhk-dark);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.homelengo-box .archive-top .wishlist-btn:hover,
.homelengo-box .archive-top .wishlist-btn.is-saved {
  background: var(--fhk-primary);
  color: #ffffff;
  transform: scale(1.06);
}

.homelengo-box .archive-top .wishlist-btn.is-saved svg path {
  fill: #ffffff;
  stroke: #ffffff;
}

.homelengo-box .archive-bottom {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.homelengo-box .content-top {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e4e4e4;
}

.homelengo-box .content-top h6 {
  margin-bottom: 0;
}

.homelengo-box .content-top h6 .link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  line-height: 1.35;
  font-size: 16px;
}

.homelengo-box .content-top .meta-list {
  margin-top: 10px;
  gap: 12px;
}

.homelengo-box .content-top .meta-list .item {
  font-size: 13px;
  line-height: 1.2;
}

.homelengo-box .fhk-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.homelengo-box .fhk-meta-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fhk-muted);
  background: #f7f9fc;
  border: 1px solid #eceff4;
  border-radius: 99px;
  padding: 3px 10px;
  line-height: 1.2;
}

.homelengo-box .archive-bottom .content-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0 !important;
}

.homelengo-box .archive-bottom .content-bottom .price {
  font-size: 17px;
  white-space: nowrap;
}

/* Category Cards */
.homelengo-categories {
  padding: 20px 14px;
  border-radius: 16px;
  gap: 10px;
}

.homelengo-categories .content h6 {
  font-size: 15px;
  margin-bottom: 2px;
}

/* Secondary CTA Banner */
.fhk-cta-banner {
  background: linear-gradient(125deg, var(--fhk-navy) 0%, #1563df 100%);
  border-radius: 22px;
  padding: 34px 38px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(11, 34, 75, 0.16);
}

.fhk-cta-banner .fhk-cta-gold {
  color: var(--fhk-gold);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 12px;
}

/* District Grid (14 Kerala Districts) */
.fhk-district-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  height: 180px;
  box-shadow: 0 8px 24px rgba(22, 30, 45, 0.08);
  transition: transform 0.3s ease;
}

.fhk-district-card:hover {
  transform: translateY(-4px);
}

.fhk-district-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fhk-district-card:hover img {
  transform: scale(1.06);
}

.fhk-district-card .overlay-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 34, 75, 0.1) 20%, rgba(11, 34, 75, 0.86) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  color: #ffffff;
}

.fhk-district-card .overlay-info h6 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
}

.fhk-district-card .dist-code {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--fhk-navy);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
}

/* Property Reels Carousel & Vertical Showcase */
.fhk-reel-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0b224b;
  aspect-ratio: 9 / 15;
  box-shadow: 0 12px 28px rgba(11, 34, 75, 0.14);
  cursor: pointer;
}

.fhk-reel-card video,
.fhk-reel-card img.reel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fhk-reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(11, 34, 75, 0.92) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.fhk-reel-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(21, 99, 223, 0.92);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  transition: transform 0.2s ease;
}

.fhk-reel-card:hover .fhk-reel-play-btn {
  transform: scale(1.1);
}

/* Agent Cards Equal Height & Alignment */
.box-agent {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--fhk-border);
  border-radius: 16px;
  padding: 14px;
}

.box-agent .box-img {
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.box-agent .box-img img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.box-agent .content {
  padding: 0 2px;
}

.box-agent .content .info {
  min-width: 0;
  width: 100%;
}

.box-agent .content h5 {
  font-size: 17px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.box-agent .content p {
  font-size: 13.5px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Builders & Service Providers Cards */
.fhk-eco-card {
  background: #ffffff;
  border: 1px solid var(--fhk-border);
  border-radius: 16px;
  padding: 20px;
  height: 100%;
  transition: all 0.25s ease;
}

.fhk-eco-card:hover {
  border-color: var(--fhk-primary);
  box-shadow: 0 14px 34px rgba(21, 99, 223, 0.09);
  transform: translateY(-3px);
}

.fhk-eco-card p.text-variant-1 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog Cards Equal Height & Truncation */
.flat-blog-item {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.flat-blog-item .img-style {
  overflow: hidden;
  border-radius: 14px;
}

.flat-blog-item .img-style img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  display: block;
}

.flat-blog-item .content-box {
  margin-top: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.flat-blog-item .content-box .title {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flat-blog-item .content-box .description {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Home Loan EMI Calculator */
.fhk-emi-box {
  background: #ffffff;
  border: 1px solid var(--fhk-border);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 12px 35px rgba(22, 30, 45, 0.06);
}

.fhk-emi-summary {
  background: linear-gradient(135deg, var(--fhk-navy), var(--fhk-primary));
  color: #ffffff;
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fhk-range {
  width: 100%;
  accent-color: var(--fhk-primary);
  cursor: pointer;
}

/* ==========================================================================
   Footer Alignment & Even Distribution
   ========================================================================== */
.footer .top-footer {
  padding: 30px 0;
}

.footer .inner-footer {
  padding: 44px 0;
}

.footer-cl-1,
.footer-cl-2,
.footer-cl-3,
.footer-cl-4 {
  margin-left: 0;
  margin-right: 0;
}

.footer .inner-footer .footer-cl-1 ul li {
  align-items: flex-start !important;
}

.footer .inner-footer .footer-cl-1 ul li .icon {
  margin-top: 2px;
}

.footer .inner-footer .navigation-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer .inner-footer .navigation-menu-footer li {
  margin-top: 0;
}

.footer .content-footer-bottom {
  padding: 22px 0;
}

.footer .content-footer-bottom .menu-bottom {
  flex-wrap: wrap;
  gap: 12px 20px;
}

/* Modals Alignment */
.modal-account .form-account .box-fieldset {
  margin-bottom: 14px;
}

.modal-account .form-account label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ==========================================================================
   Floating Bottom Navigation Dock (Minimalist International PropTech Bar)
   ========================================================================== */
.fhk-dock-anchor {
  height: 82px;
  width: 100%;
  background: #161e2d;
  pointer-events: none;
}

.fhk-bottom-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 990;
  width: min(440px, calc(100vw - 24px));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(11, 34, 75, 0.09);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow: 0 12px 34px rgba(11, 34, 75, 0.12), 0 2px 8px rgba(11, 34, 75, 0.05);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  transition: box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.fhk-bottom-dock.is-docked {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(11, 34, 75, 0.12);
  box-shadow: 0 8px 24px rgba(7, 17, 36, 0.2);
}

.fhk-dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 999px;
  color: #5c6678;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  transition: all 0.2s ease;
}

.fhk-dock-item svg {
  width: 19px;
  height: 19px;
  margin-bottom: 3px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.fhk-dock-item span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fhk-dock-item:hover {
  color: var(--fhk-navy);
  background: rgba(21, 99, 223, 0.06);
}

.fhk-dock-item:hover svg {
  transform: translateY(-1px);
}

.fhk-dock-item.active {
  color: var(--fhk-primary);
  background: rgba(21, 99, 223, 0.09);
  font-weight: 600;
}

.fhk-dock-item.active::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fhk-primary);
  margin-top: 2px;
}

.fhk-dock-item.dock-cta {
  background: linear-gradient(135deg, var(--fhk-primary), var(--fhk-navy));
  color: #ffffff !important;
  padding: 7px 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(21, 99, 223, 0.26);
}

.fhk-dock-item.dock-cta svg {
  margin-bottom: 2px;
}

.fhk-dock-item.dock-cta:hover {
  background: linear-gradient(135deg, var(--fhk-navy), var(--fhk-primary));
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(21, 99, 223, 0.34);
}

.fhk-dock-item.dock-cta.active::after {
  display: none;
}

/* ==========================================================================
   Floating WhatsApp & AI Assistant Stack (Bottom-Right)
   ========================================================================== */
.fhk-floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 999;
}

.fhk-whatsapp-float {
  background: #25d366;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.34);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.fhk-whatsapp-float svg {
  flex-shrink: 0;
  display: block;
}

.fhk-whatsapp-float:hover,
.fhk-whatsapp-float:focus-visible {
  background: #1ebe5d;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.42);
}

.fhk-ai-launcher {
  background: linear-gradient(135deg, var(--fhk-navy), var(--fhk-primary));
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 99px;
  padding: 8px 15px 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(11, 34, 75, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fhk-ai-launcher:hover {
  transform: translateY(-2px);
}

.fhk-ai-avatar,
.fhk-ai-header-avatar {
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transform: translateZ(0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.16);
}

.fhk-ai-avatar {
  width: 24px;
  height: 24px;
}

.fhk-ai-header-avatar {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.fhk-ai-avatar img,
.fhk-ai-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fhk-ai-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fhk-ai-header-text {
  min-width: 0;
}

.fhk-ai-header-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.fhk-ai-header-tagline {
  font-size: 11px;
  opacity: 0.86;
  line-height: 1.3;
}

.fhk-ai-panel {
  position: fixed;
  right: 20px;
  bottom: 132px;
  width: 370px;
  max-width: calc(100vw - 28px);
  height: 490px;
  max-height: calc(100vh - 180px);
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--fhk-border);
  box-shadow: 0 22px 54px rgba(11, 34, 75, 0.24);
  z-index: 1005;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.fhk-ai-panel.open {
  display: flex;
}

.fhk-ai-header {
  background: linear-gradient(135deg, var(--fhk-navy), var(--fhk-primary));
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fhk-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f8fafd;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fhk-ai-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.fhk-ai-msg.bot {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  color: var(--fhk-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.fhk-ai-msg.user {
  background: var(--fhk-primary);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.fhk-ai-prop-mini {
  display: flex;
  gap: 10px;
  background: #f4f7fc;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  padding: 8px;
  margin-top: 8px;
  text-decoration: none;
  color: inherit;
}

.fhk-ai-prop-mini img {
  width: 58px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.fhk-ai-input-wrap {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid var(--fhk-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fhk-ai-input-wrap input {
  padding: 9px 14px;
  min-height: 40px;
  font-size: 13px;
}

/* Go-top button repositioned cleanly above bottom-right floating stack */
.progress-wrap {
  bottom: 132px !important;
  right: 20px !important;
}

/* ==========================================================================
   Responsive Polish (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 991px) {
  .flat-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .flat-section-v3 {
    padding-top: 28px;
    padding-bottom: 48px;
  }
  .flat-slider.home-1 .slider-content {
    padding: 64px 0 76px;
  }
  .fhk-cta-banner {
    padding: 28px 24px;
  }
  .fhk-emi-box {
    padding: 24px;
  }
}

@media (max-width: 575px) {
  .flat-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }
  .flat-title-page {
    margin: 12px 12px 0;
    padding: 44px 16px;
  }
  .flat-slider.home-1 .slider-content {
    padding: 48px 0 58px;
  }
  .fhk-cta-banner {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .fhk-emi-box {
    padding: 18px;
    border-radius: 16px;
  }
  .fhk-emi-summary {
    padding: 22px;
  }
  .fhk-bottom-dock {
    width: calc(100vw - 16px);
    padding: 5px 6px;
    gap: 2px;
  }
  .fhk-dock-item {
    padding: 6px 2px;
    font-size: 10px;
  }
  .fhk-dock-item.dock-cta {
    padding: 7px 4px;
  }
  .fhk-floating-actions {
    right: 12px;
    bottom: 82px;
    gap: 8px;
  }
  .fhk-whatsapp-float {
    padding: 9px 14px;
    font-size: 12.5px;
    gap: 6px;
  }
  .fhk-ai-launcher {
    padding: 7px 13px 7px 9px;
    font-size: 12px;
    gap: 6px;
  }
  .fhk-ai-panel {
    right: 12px;
    bottom: 178px;
    width: calc(100vw - 24px);
  }
  .progress-wrap {
    right: 12px !important;
    bottom: 178px !important;
  }
}
