/* ============================================
       BANNER SLIDER SECTION
============================================ */
.banner-section {
  position: relative;
  margin-bottom: 15px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  overflow: hidden;
  max-height: 389px;
}

#bannerCarousel {
  aspect-ratio: 5 / 1;
  width: 100%;
  --carousel-button-color: #170724;
  --carousel-button-bg: #fff;
  --carousel-button-shadow: 0 2px 1px -1px rgb(0 0 0 / 20%);
  --carousel-button-svg-width: 20px;
  --carousel-button-svg-height: 20px;
  --carousel-button-svg-stroke-width: 2.5;
}

#bannerCarousel .carousel__slide {
  width: 100%;
  aspect-ratio: 5 / 1;
  overflow: hidden;
  padding: 0;
}

#bannerCarousel .carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


#bannerCarousel .carousel__button {
  width: 40px !important;
  height: 40px !important;
  z-index: 50 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  min-width: unset !important;
}

#bannerCarousel .carousel__button.is-prev {
  left: 1rem !important;
}

#bannerCarousel .carousel__button.is-next {
  right: 1rem !important;
}

#bannerCarousel .carousel__button svg {
  width: 20px;
  height: 20px;
}

#bannerCarousel .carousel__button:hover {
  background: #fff !important;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#bannerCarousel .carousel__button:active {
  transform: scale(0.95);
}

#bannerCarousel .carousel__button:focus {
  outline: none;
  box-shadow: 0 0 0 4px #A78BFA;
}

/* ============================================
       BANNER OVERLAY & CONTENT
============================================ */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.4) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  justify-content: center;
  pointer-events: none;
}

.banner-content {
  color: #fff;
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
  pointer-events: auto;
}

.banner-badge {
  display: inline-block;
  background-color: #dc2626;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.banner-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-location {
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.banner-location svg {
  width: 18px;
  height: 18px;
  color: #fff;
}
.project-location {
    display: flex;
    font-size: 0.8rem;
    font-style: italic;
}
/* ============================================
    TOOLBAR - STICKY NAVIGATION
============================================ */
.toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #e5e7eb;
}

.toolbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.toolbar-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 30px;
  margin-left: 5px;
}

.toolbar-list::-webkit-scrollbar {
  height: 4px;
}

.toolbar-list::-webkit-scrollbar-track {
  background: transparent;
}

.toolbar-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.toolbar-item {
  min-width: fit-content;
  flex-shrink: 0;
  padding-right: 0;
  font-weight: 700;
  cursor: pointer;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #374151;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
  margin: 0;
}

.toolbar-item:last-child {
  padding-right: 16px;
}

.toolbar-item.active {
  color: #dc2626;
}

.toolbar-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #dc2626;
}

/* ============================================
    MAIN LAYOUT & GRID
============================================ */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 0px;
  padding-top: 0px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 90px;
    margin-top: 30px;
}
.flatsome_recent_posts .badge {
    height: 3em;
    width: 4em;
}

/* ============================================
    CONTENT SECTIONS & TABS
============================================ */
.tab-content {
  scroll-margin-top: 80px;
  margin-bottom: 15px;
}

.tab-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
}

.tab-content-item {
  margin-bottom: 32px;
}

.tab-content-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

.tab-content-item p,
.tab-content-item ul,
.tab-content-item ol {
  color: #374151;
  line-height: 1.6;
}

/* ============================================
    PROJECTS LIST
============================================ */
.projects-list {
  margin-top: 10px;
}

.projects-list h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1f2937;
}

.projects-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================
    PROJECT ITEM - CARD LAYOUT
============================================ */
.project-item {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

.project-badge {
  position: absolute;
  top: 12px;
  left: -4px;
  z-index: 10;
  background-color: #dc2626;
  color: #fff;
  padding: 4px 8px;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom-left-radius: 0;
}

.project-badge:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.25rem;
  border-left: .25rem solid transparent;
  border-top: .25rem solid #555;
}

.project-image {
  width: 100%;
  height: 228px;
  object-fit: cover;
  border-radius: 0.5rem 0 0 0.5rem;
}

.project-content {
  padding: 12px 16px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 8px;
}

.project-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.project-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1f2937;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-image-mobile {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 0.375rem;
}

.project-info {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.project-price {
  font-weight: 600;
  color: #dc2626;
  font-size: 0.875rem;
}

.project-area {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.project-rooms {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  display: none;
}


.project-location svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.project-location p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-footer {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.project-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.project-author-info {
  font-size: 0.875rem;
}

.project-author-name {
  font-weight: 500;
  color: #1f2937;
  margin: 0;
}

.project-author-time {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

.project-item a {
  text-decoration: none;
  color: inherit;
}

.project-item a:hover {
  color: #dc2626;
}

.project-item a:hover .project-title {
  color: #dc2626;
}

/* ============================================
    DU-AN SPECIFIC STYLES
============================================ */
.du-an-dev {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.du-an-dev-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.du-an-dev-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1f2937;
}

.du-an-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0;
  display: none;
}

.du-an-price-sec {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0px;
}

.du-an-price-sec svg {
  width: 16px;
  height: 16px;
  color: #dc2626;
}

.du-an-price-val {
  font-weight: 600;
  color: #dc2626;
  font-size: 0.875rem;
}

.du-an-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.du-an-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.du-an-stat svg {
  width: 14px;
  height: 14px;
  display: none;
}

.du-an-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
  margin-top: 8px;
  width: 117px;
}


/* ============================================
    RESPONSIVE DESIGN - TABLET
============================================ */
@media (min-width: 768px) {
  .toolbar-item {
    font-size: 1rem;
  }

  .toolbar-item:last-child {
    padding-right: 0;
  }

  .project-item {
    grid-template-columns: 280px 1fr;
  }

  .project-image {
    display: block;
  }

  .project-image-mobile {
    display: none;
  }

  .project-content {
    padding: 10px 20px;
    grid-template-rows: 1fr auto auto;
  }

  .project-header {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-rooms {
    display: inline;
  }

  .project-location svg {
    display: block;
  }

  .project-footer {
    display: flex;
  }

  .du-an-stat svg {
    display: block;
  }

  .banner-title {
    font-size: 1.75rem;
  }

  .main-grid {
    padding-top: 5px;
  }

  .sidebar {
    top: 85px;
  }
}

/* ============================================
    RESPONSIVE DESIGN - MOBILE
============================================ */
@media (max-width: 768px) {
  .banner-overlay {
    padding: 16px;
  }

  .banner-title {
    font-size: 1.5rem;
  }

  .banner-location {
    font-size: 0.9rem;
  }

  .main-grid {
    padding-top: 60px;
  }

  .sidebar {
    top: 80px;
  }
}

/* ============================================
    RESPONSIVE DESIGN - DESKTOP
============================================ */
@media (min-width: 1024px) {
  .main-grid {
    grid-template-columns: 75% 25%;
    gap: 30px;
  }
}


@media (max-width: 768px) {
  #bannerCarousel {
    aspect-ratio: 16 / 9;
  }
  #bannerCarousel .carousel__slide {
    aspect-ratio: 16 / 9;
  }
  .project-image {
      border-radius: 0.5rem 0.5rem 0 0;
  }
  .main-grid {
      padding-top: 0px;
  }

.project-header>img{
  display: none;
}

}