.xplore-trip-map,
#xp-trip-map {
	height: 400px;
	width: 100%;
	margin: 20px 0;
}

.xp-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.xp-tab {
	cursor: pointer;
	padding: 8px 12px;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	background: #fff;
}

.xp-tab.active {
	background: #111;
	color: #fff;
	border-color: #111;
}

.xp-tab-content {
	display: none;
}

.xp-tab-content.active {
	display: block;
}

.xp-listing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.xp-listing-item,
.trip-item {
	border: 1px solid #e4e4e4;
	border-radius: 6px;
	padding: 10px;
	background: #fff;
}

.xp-image-wrapper {
	position: relative;
}

.xp-image-wrapper img,
.trip-thumb {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.xp-drag-handle {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	border-radius: 4px;
	padding: 2px 6px;
	cursor: move;
}

.xp-select-listing,
.xp-ai-btn {
	border: 0;
	border-radius: 6px;
	background: #111;
	color: #fff;
	padding: 9px 14px;
	cursor: pointer;
}

.xp-select-listing.added {
	background: #b3261e;
}

.trip-day {
	margin-bottom: 22px;
}

.trip-time-block {
	min-height: 72px;
	border: 1px dashed #d1d1d1;
	border-radius: 6px;
	padding: 10px;
	margin-bottom: 12px;
}

.marker-number {
	width: 28px;
	height: 28px;
	line-height: 28px;
	text-align: center;
	border-radius: 50%;
	background: #111;
	color: #fff;
	border: 2px solid #fff;
	font-weight: 700;
}

.trip-masonry-fb {
	display: grid;
	grid-template-areas:
		"big small1 small2"
		"big small3 small4";
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 175px 175px;
	gap: 6px;
	margin-bottom: 20px;
}

.trip-masonry-fb .item {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
}

.trip-masonry-fb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.trip-masonry-fb .item1 {
	grid-area: big;
}

.trip-masonry-fb .item2 {
	grid-area: small1;
}

.trip-masonry-fb .item3 {
	grid-area: small2;
}

.trip-masonry-fb .item4 {
	grid-area: small3;
}

.trip-masonry-fb .item5 {
	grid-area: small4;
}

.trip-masonry-fb .overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

@media (max-width: 768px) {
	.trip-masonry-fb {
		grid-template-rows: 110px 110px;
	}
}
