/* ParkWeb: "Book a Tour" buttons. Colors come from Houzez .btn-primary (Theme Options). */

.btn.pw-tour-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-weight: 600;
}
.btn.pw-tour-btn i {
	position: relative;
	top: 1px;
	font-size: 1.05em;
	line-height: 1;
}

/* Listing cards: sits where the "x ago" date used to be, pushed to the right. */
.pw-tour-btn-wrap {
	margin-left: auto;
	flex-shrink: 0;
}
.btn.pw-tour-btn--card {
	padding: 7px 14px;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
}
/* Let a long community name shorten instead of pushing the button off the card. */
.item-listing-wrap .item-author,
.item-listing-wrap .item-author a {
	min-width: 0;
}
.item-listing-wrap .item-author a {
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (min-width: 992px) {
	.item-wrap-v1-half-map .item-body {
		min-width: 0;
	}
}

/* Half-map list cards hide the author/date row between 992px and 1199px.
   Show it there too so the tour button is never missing. */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.item-wrap-v1-half-map .item-body > .d-xl-flex {
		display: flex !important;
	}
}

/* Single listing sidebar: top of the contact box. */
.pw-tour-cta {
	margin-bottom: 20px;
}
.btn.pw-tour-btn--sidebar {
	padding: 13px 16px;
	font-size: 16px;
	line-height: 1.3;
	white-space: normal;
}
.btn.pw-tour-btn--sidebar i {
	font-size: 20px;
}
.pw-tour-cta__note {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
	color: #636363;
}
.pw-tour-cta__divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a8a8a;
}
.pw-tour-cta__divider::before,
.pw-tour-cta__divider::after {
	content: "";
	flex: 1;
	border-top: 1px solid #dce0e0;
}
/* Hide the community/agent block (photo, name, View Listings) at the top of the
   listing contact form, in the sidebar and in the phone "email" popup. */
.widget-property-form .property-form-wrap .agent-details,
.mobile-property-form .property-form-wrap .agent-details {
	display: none;
}
.widget-property-form .property-form-wrap .agent-details + .form-group,
.mobile-property-form .property-form-wrap .agent-details + .form-group {
	margin-top: 0 !important;
}

/* If the contact form itself is empty (no agent email), drop the divider. */
.widget-property-form > .pw-tour-cta:last-child,
.pw-tour-widget .pw-tour-cta {
	margin-bottom: 0;
}
.widget-property-form > .pw-tour-cta:last-child .pw-tour-cta__divider {
	display: none;
}

/* Phone sticky contact bar: tour button fills the space the community name used. */
.mobile-property-contact .btn.pw-tour-btn--mobile {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	margin-left: 0;
	padding: 0 14px;
	font-size: 16px;
	white-space: nowrap;
}
.mobile-property-contact .btn.pw-tour-btn--mobile i {
	top: 1px;
	font-size: 20px;
}
.mobile-property-contact .btn.pw-tour-btn--mobile + .btn {
	margin-left: 8px;
}

/* GTranslate floating flag: lift it above the phone sticky contact bar.
   GTranslate sets bottom:20px inline, hence !important. */
@media (max-width: 991.98px) {
	body.single-property #gt_float_wrapper {
		bottom: 90px !important;
	}
}
