/* ===== Tour Hotels widget (widgets/tour-hotels-widget.php) - the v3 design's
   "Where you'll stay" photo grid, replacing the older plain-list
   Accommodation box. Colors read Elementor's own global color variables
   (var(--x, #hex) - the hex is only a fallback), same convention as every
   other widget CSS in this plugin - see custom-elementor-widgets.php's own
   comment on this. --cag-placeholder (#e9e1d3, v3's design-token name for a
   missing photo's fill color) is NOT yet one of those linked globals - ask
   before adding a 9th Elementor global color for it, or leave as the literal
   fallback below. ===== */

.tour_hotels_box {
	max-width: 1280px;
	margin: 0 auto;
}

.tour_hotels_grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tour_hotel_tile {
	display: flex;
	flex-direction: column;
}

.tour_hotel_photo {
	position: relative;
	aspect-ratio: 4 / 3;
	background-color: #e9e1d3;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	/* Stops a drag over this CSS background-image from showing a
	   "not-allowed" cursor - see the identical fix/comment on
	   .caguide_itinerary_day_image in assets/css/itinerary-map.css. */
	user-select: none;
	cursor: default;
}

.tour_hotel_photo {
	transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.tour_hotel_tile:hover .tour_hotel_photo {
	transform: scale(1.04);
}

.tour_hotel_nights {
	position: absolute;
	left: 10px;
	bottom: 10px;
	background-color: rgba(20, 14, 10, 0.72);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	padding: 5px 10px;
}

.tour_hotel_city {
	margin: 14px 0 2px;
	font-family: "Newsreader", serif;
	font-weight: 400;
	font-size: 20px;
	color: var(--ink, #2b2420);
}

.tour_hotel_city a {
	color: inherit;
	text-decoration: none;
}

.tour_hotel_city a:hover {
	text-decoration: underline;
}

.tour_hotel_name {
	margin: 0;
	font-size: 14px;
	color: var(--body, #3d352e);
}

.tour_hotel_or_similar {
	color: var(--muted, #6f6458);
}

@media only screen and (max-width: 1000px) {
	.tour_hotels_grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media only screen and (max-width: 600px) {
	.tour_hotels_grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 14px;
	}

	.tour_hotel_city {
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tour_hotel_photo {
		transition: none;
	}
}
