@charset "UTF-8";
/* =============================================
   LISTING DETAIL PAGE STYLES
   ============================================= */
/* Listing Detail Layout (like my-account-wrapper) */
.listing-detail-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  gap: 24px;
}

.listing-detail-content {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 1px;
}

.listing-detail-sidebar {
  flex-shrink: 0;
  width: 100%;
  height: -moz-max-content;
  height: max-content;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* Box Wrapper (like post-listing .box-wrapper) */
}
.listing-detail-sidebar .box-wrapper {
  padding: 24px 24px;
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #dee2e6;
}
.listing-detail-sidebar .box-wrapper .box-title {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.listing-detail-sidebar .box-wrapper .box-title svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
.listing-detail-sidebar .box-wrapper .box-title svg path {
  fill: var(--bs-blue);
}

/* =============================================
   GALLERY SWIPER (Thumbs Gallery Loop)
   ============================================= */
.listing-gallery {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.listing-gallery .btn-favorite {
  position: absolute;
  right: 12px;
  top: 12px;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  transition: all 0.15s ease-in-out;
  z-index: 2;
}
.listing-gallery .btn-favorite svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: all 0.15s ease-in-out;
}
.listing-gallery .btn-favorite svg path {
  transition: all 0.15s ease-in-out;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2px;
}
.listing-gallery .btn-favorite:not(.active):hover {
  background-color: rgba(255, 147, 98, 0.5);
  border-color: rgba(255, 147, 98, 0.5);
}
.listing-gallery .btn-favorite:not(.active):hover svg {
  width: 20px;
  height: 20px;
}
.listing-gallery .btn-favorite:not(.active):hover svg path {
  fill: #ffffff;
  stroke: #ffffff;
  opacity: 0.5;
}
.listing-gallery .btn-favorite.active {
  background-color: #f44336;
  border-color: #f44336;
}
.listing-gallery .btn-favorite.active svg {
  width: 20px;
  height: 20px;
}
.listing-gallery .btn-favorite.active svg path {
  fill: #ffffff;
  stroke: #ffffff;
  opacity: 1;
}

.listing-gallery-main {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.listing-gallery-main .swiper-slide {
  aspect-ratio: 16/10;
  background: #f5f5f5;
}
.listing-gallery-main .swiper-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.listing-gallery-main .swiper-button-next,
.listing-gallery-main .swiper-button-prev {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #212529;
  transition: all 0.15s ease-in-out;
}
.listing-gallery-main .swiper-button-next:hover,
.listing-gallery-main .swiper-button-prev:hover {
  background-color: #ffffff;
}
.listing-gallery-main .swiper-button-next::after,
.listing-gallery-main .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 700;
}

.listing-gallery-thumbs {
  margin-top: 12px;
}
.listing-gallery-thumbs .swiper-slide {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}
.listing-gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.listing-gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--bs-blue);
}

/* =============================================
   LISTING HEADER
   ============================================= */
.listing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.listing-header-info {
  flex-grow: 1;
  min-width: 0;
}
.listing-header-info h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #212529;
}

.listing-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.listing-badges .badge-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
}
.listing-badges .badge-vip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  background-color: var(--bs-blue);
  color: #ffffff;
}

/* =============================================
   LISTING META INFO
   ============================================= */
.listing-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.listing-meta-info .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
}
.listing-meta-info .meta-item svg {
  flex-shrink: 0;
}

/* =============================================
   LISTING CONTENT
   ============================================= */
.listing-content {
  word-break: break-word;
}
.listing-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.listing-content p {
  margin-bottom: 0 !important;
}
.listing-content {
  /** Nếu chỉ có 1 br duy nhất trong thẻ p thì p height là 12px*/
}
.listing-content p:has(> br:only-child) {
  height: 14px;
}
.listing-content h2, .listing-content h3, .listing-content h4 {
  margin-top: 16px;
  margin-bottom: 8px;
}

/* =============================================
   SIDEBAR - CONTACT LIST
   ============================================= */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 14px;
  font-weight: 400;
  color: #6c757d;
}

.contact-value {
  font-size: 16px;
  font-weight: 600;
  color: #212529;
  word-break: break-word;
}
.contact-value a {
  color: var(--bs-blue);
}

/* Phone Reveal */
.phone-reveal-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-masked {
  font-size: 16px;
  font-weight: 600;
  color: #212529;
}

.btn-reveal-phone {
  font-size: 13px !important;
  font-weight: 600 !important;
  min-height: auto !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
  gap: 4px;
  white-space: nowrap;
}

.phone-full {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

/* =============================================
   SIDEBAR - LISTING DATES
   ============================================= */
.listing-dates {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date-label {
  font-size: 14px;
  color: #6c757d;
}

.date-value {
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

/* =============================================
   SECTION VIP (Featured Listings) - Copy from home.scss
   ============================================= */
/* Section Title (from home.scss - needed for standalone listing page) */
.section-wrapper .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.section-listing-detail + .section-vip {
  background-color: #fafafa;
}

.section-vip #vipClassifiedsSwiper {
  border-radius: 12px;
}
.section-vip #vipClassifiedsSwiper > .swiper-wrapper {
  align-items: stretch;
  border-radius: 12px;
  padding-bottom: 4px;
}
.section-vip #vipClassifiedsSwiper > .swiper-wrapper > .swiper-slide {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dee2e6;
  transition: all 0.15s ease-in-out;
}
@media (min-width: 576px) {
  .section-vip #vipClassifiedsSwiper > .swiper-wrapper > .swiper-slide:has(.classified-item:hover) {
    border-color: var(--bs-blue);
    background: #ffffff;
  }
}
.section-vip .classified-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
}
.section-vip .classified-item .thumbnail {
  position: relative;
}
.section-vip .classified-item .thumbnail img {
  width: 100%;
  height: 160px;
  -o-object-fit: cover;
     object-fit: cover;
}
.section-vip .classified-item .classified-info {
  padding: 16px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  text-decoration: none;
}
.section-vip .classified-item .classified-info .category {
  width: -moz-fit-content;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
}
.section-vip .classified-item .classified-info .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.section-vip .classified-item .classified-info .meta > * {
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--gray-700);
}
.section-vip .classified-item .classified-info .title {
  font-size: 16px;
  line-height: 20px;
  color: #212429;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  transition: all 0.15s ease-in-out;
}
.section-vip .classified-item .btn-favorite {
  position: absolute;
  right: 10px;
  top: 10px;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
}
.section-vip .classified-item .btn-favorite svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: all 0.15s ease-in-out;
}
.section-vip .classified-item .btn-favorite svg path {
  transition: all 0.15s ease-in-out;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2px;
}
.section-vip .classified-item .btn-favorite:not(.active):hover {
  background-color: rgba(255, 147, 98, 0.5);
  border-color: rgba(255, 147, 98, 0.5);
}
.section-vip .classified-item .btn-favorite:not(.active):hover svg {
  width: 18px;
  height: 18px;
}
.section-vip .classified-item .btn-favorite:not(.active):hover svg path {
  fill: #ffffff;
  stroke: #ffffff;
  opacity: 0.5;
}
.section-vip .classified-item .btn-favorite.active {
  background-color: #f44336;
  border-color: #f44336;
}
.section-vip .classified-item .btn-favorite.active svg {
  width: 18px;
  height: 18px;
}
.section-vip .classified-item .btn-favorite.active svg path {
  fill: #ffffff;
  stroke: #ffffff;
  opacity: 1;
}
.section-vip .classified-item:hover .classified-info .title {
  color: var(--bs-blue);
}
.section-vip .section-navigation {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 10px;
}
.section-vip .section-navigation .slide-button-prev,
.section-vip .section-navigation .slide-button-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  background: #ffffff;
  color: #212529;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.section-vip .section-navigation .slide-button-prev:hover,
.section-vip .section-navigation .slide-button-next:hover {
  border-color: var(--bs-blue);
  color: var(--bs-blue);
  background: linear-gradient(0deg, hsla(210, 100%, 96%, 0.4), hsla(215, 15%, 97%, 0.1));
}
.section-vip .section-navigation .slide-button-prev:hover svg path,
.section-vip .section-navigation .slide-button-next:hover svg path {
  stroke: var(--bs-blue);
}

.listing-detail-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 24px;
}

ol li[data-list=bullet] {
  list-style-type: disc !important;
}

ol li[data-list=ordered] {
  list-style-type: decimal !important;
}

.section-related .latest-classified-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
  .listing-detail-wrapper {
    flex-direction: column;
  }
  .listing-detail-content,
  .listing-detail-sidebar {
    max-width: 100%;
  }
}
@media (max-width: 767px) {
  .section-related .latest-classified-list {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 575px) {
  .listing-detail-wrapper,
  .listing-detail-sidebar {
    gap: 16px;
  }
  .listing-detail-content {
    gap: 16px;
  }
  .listing-detail-info,
  .listing-detail-sidebar .box-wrapper {
    padding: 16px;
  }
  .listing-header-info h1 {
    font-size: 20px;
  }
  .listing-gallery-main .swiper-slide {
    aspect-ratio: 16/9;
  }
  .listing-gallery-thumbs .swiper-slide {
    width: 60px;
    height: 45px;
  }
  .listing-gallery-main .swiper-button-next,
  .listing-gallery-main .swiper-button-prev {
    width: 32px;
    height: 32px;
  }
  .listing-gallery-main .swiper-button-next::after,
  .listing-gallery-main .swiper-button-prev::after {
    font-size: 12px;
  }
  .section-vip .section-navigation {
    padding-right: 16px;
  }
}
.classified-item {
  position: relative;
  text-decoration: none;
  display: flex;
  padding: 12px;
  gap: 12px;
  height: 100%;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dee2e6;
  transition: all 0.15s ease-in-out;
}
.classified-item .thumbnail {
  position: relative;
  flex-shrink: 0;
}
.classified-item .thumbnail img {
  border-radius: 10px;
  overflow: hidden;
  width: 60px;
  height: 60px;
  -o-object-fit: cover;
     object-fit: cover;
}
.classified-item .classified-info {
  padding: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.classified-item .classified-info .category {
  font-weight: 500;
  font-size: 12px;
}
.classified-item .classified-info .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.classified-item .classified-info .meta > * {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--gray-700);
}
.classified-item .classified-info .title {
  font-size: 14px;
  line-height: 24px;
  color: #212429;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0;
  padding-right: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  transition: all 0.15s ease-in-out;
}
.classified-item .expired-label {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.classified-item .btn-favorite {
  position: absolute;
  right: 8px;
  top: 8px;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
}
.classified-item .btn-favorite svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: all 0.15s ease-in-out;
}
.classified-item .btn-favorite svg path {
  transition: all 0.15s ease-in-out;
  fill: none;
  stroke: #dee2e6;
  stroke-width: 2px;
}
.classified-item .btn-favorite:not(.active):hover {
  background-color: rgba(255, 147, 98, 0.5);
  border-color: rgba(255, 147, 98, 0.5);
}
.classified-item .btn-favorite:not(.active):hover svg {
  width: 18px;
  height: 18px;
}
.classified-item .btn-favorite:not(.active):hover svg path {
  fill: #ffffff;
  stroke: #ffffff;
  opacity: 0.5;
}
.classified-item .btn-favorite.active {
  background-color: #f44336;
  border-color: #f44336;
}
.classified-item .btn-favorite.active svg {
  width: 18px;
  height: 18px;
}
.classified-item .btn-favorite.active svg path {
  fill: #ffffff;
  stroke: #ffffff;
  opacity: 1;
}
@media (min-width: 576px) {
  .classified-item:hover {
    border: 1px solid var(--bs-blue);
  }
  .classified-item:hover .classified-info .title {
    color: var(--bs-blue);
  }
}

@media (max-width: 575px) {
  .classified-item {
    padding: 0;
    border-radius: 0;
    border: none;
    background-color: transparent;
  }
  .classified-item:not(:last-child) {
    padding-bottom: 16px;
    border-bottom: 1px solid #dee2e6;
  }
  .classified-item .btn-favorite {
    top: 0;
    right: 0;
  }
  .classified-item .classified-info .title {
    position: relative;
    padding-right: 0;
    display: block;
  }
  .classified-item .classified-info .title::before {
    content: "";
    float: right; /* Đẩy khối tàng hình sang góc phải */
    width: 28px; /* Tương đương khoảng padding-right bạn muốn */
    height: 16px; /* Quan trọng: Chiều cao phải bằng đúng line-height của thẻ .title */
  }
}/*# sourceMappingURL=listings.css.map */