/* Styles for listing view page - image slider */

.hp-page__content .hp-listing__images .hp-listing__images-slider {
    max-height: 472px;
    background: #FAFAFA;
    border-radius: 10px;
    overflow: hidden;
}

.hp-page__content .hp-listing__images .hp-listing__images-slider .slick-slide {
    max-height: 472px;
}

.hp-page__content .hp-listing__images .hp-listing__images-slider .slick-slide img {
    object-fit: contain;
    background: #FAFAFA;
    max-height: 472px;
}

/* Mobile and tablet slider - fixed height and contain */
@media (max-width: 63.99em) {
	.hp-page__content .hp-listing__images .hp-listing__images-slider {
		height: 472px;
		max-height: 472px;
	}
	
	.hp-page__content .hp-listing__images .hp-listing__images-slider .slick-slide {
		height: 472px;
		max-height: 472px;
	}
	
	.hp-page__content .hp-listing__images .hp-listing__images-slider .slick-slide img {
		height: 472px;
		max-height: 472px;
		object-fit: contain;
	}
}

/* Carousel thumbnails */
.hp-listing__images-carousel .slick-slide {
    height: 110px;
}

.hp-listing__images-carousel .slick-slide img {
    height: 110px;
    object-fit: cover;
}

/* Details title */
.hp-listing__details-title {
    font-weight: 400;
    font-style: normal;
    font-size: 19px;
    line-height: 100%;
    letter-spacing: 2%;
    color: black;
    margin-bottom: 1em;
}

/* Secondary attributes - display in column */
.hp-listing__attributes--secondary .hp-row {
    flex-direction: column;
}

.hp-listing__attributes--secondary .hp-col-lg-6,
.hp-listing__attributes--secondary .hp-col-xs-12 {
    width: 100%;
    max-width: 100%;
}

/* Listing meta footer */
.hp-listing__meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #e5e5e5;
}

.hp-listing__meta-footer-content {
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
}

.hp-listing__meta-separator {
    color: #999;
}

.hp-listing__meta-views-today {
    color: #666;
}

.hp-listing__report-link {
    text-decoration: underline;
    cursor: pointer;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: inherit;
    line-height: inherit;
}

.hp-listing__report-link:hover {
    text-decoration: underline;
}

/* Hide default report action link */
a.hp-listing__action.hp-listing__action--report.hp-link {
    display: none;
}

/* Favorite button container */
.favs-hp-block {
    position: absolute;
    right: 0;
    top: 7px;
}

.inner-wrapper-sticky {
    position: relative;
}

/* Custom grid for hp-listsfive */
/* Mobile: 2 columns (hp-col-xs-6) */
.hp-listsfive .hp-col-xs-12 {
    flex-basis: 50% !important;
    max-width: 50% !important;
}

/* Desktop: 6 columns (hp-col-sm-2) */
@media only screen and (min-width: 48em) {
    .hp-listsfive .hp-col-sm-2 {
        flex-basis: 19.66666667% !important;
        max-width: 19.66666667% !important;
    }
}

/* Listing manage actions (topbar) */
.hp-listing__manage-actions {
	display: flex;
	gap: 1rem;
	align-items: center;
}

/* Remove bottom border from listing topbar */
.hp-page__topbar.hp-page__topbar--separate {
	border-bottom: none !important;
	padding-bottom: 0 !important;
}

/* Same style as .hp-vendor__view-number-btn, but different class */
.hp-listing__manage-btn {
	display: inline-block;
	padding: 14px 22px;
	font-weight: 500;
	font-size: 16px;
	line-height: 100%;
	letter-spacing: 5%;
	color: #2C2C2C;
	background-color: #F5F5F5;
	border: 1px solid #F5F5F5;
	border-radius: 10px;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s;
	text-decoration: none;
}

.hp-listing__manage-btn:hover {
	background-color: #e9e9e9;
	color: #2C2C2C; /* Keep text color unchanged */
	text-decoration: none;
}

/* Mobile price and favorite button - show only on mobile, above Details */
.hp-listing__price-favorite-mobile {
	display: none;
	margin-bottom: 1.5em;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.hp-listing__price-favorite-mobile .favs-hp-block {
	position: static;
}

.hp-listing__price-favorite-mobile .hp-icon {
	font-size: 22px;
}

/* Show mobile price/favorite on mobile, hide sidebar price/favorite on mobile */
@media (max-width: 47.99em) {
	.hp-listing__price-favorite-mobile {
		display: flex;
	}

	/* Hide sidebar price and favorite on mobile */
	.hp-page__sidebar .hp-listing__attributes--primary,
	.hp-page__sidebar .favs-hp-block {
		display: none !important;
	}
}

/* Hide mobile price/favorite on desktop, show sidebar price/favorite on desktop */
@media (min-width: 48em) {
	.hp-listing__price-favorite-mobile {
		display: none !important;
	}
}