/**
 * Cubo Tour Cards Grid Stylesheet
 * Responsive 3-Column Tour Master Cards
 *
 * @package Cubo_Tour_Cards
 */

/* ==========================================================================
   Grid Container Layout
   ========================================================================== */
.cubo-tc-grid {
	display: grid;
	gap: 28px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 28px 0;
	padding: 0;
}

.cubo-tc-grid *,
.cubo-tc-grid *::before,
.cubo-tc-grid *::after {
	box-sizing: border-box;
}

/* Columns configuration */
.cubo-tc-grid.cubo-tc-grid-col-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cubo-tc-grid.cubo-tc-grid-col-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cubo-tc-grid.cubo-tc-grid-col-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cubo-tc-grid.cubo-tc-grid-col-1 {
	grid-template-columns: 1fr;
}

/* Responsive Breakpoints */
@media screen and (max-width: 1024px) {
	.cubo-tc-grid.cubo-tc-grid-col-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

@media screen and (max-width: 992px) {
	.cubo-tc-grid.cubo-tc-grid-col-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

@media screen and (max-width: 640px) {
	.cubo-tc-grid,
	.cubo-tc-grid.cubo-tc-grid-col-4,
	.cubo-tc-grid.cubo-tc-grid-col-3,
	.cubo-tc-grid.cubo-tc-grid-col-2 {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.cubo-tc-title {
		font-size: 20px;
	}
}

/* ==========================================================================
   Tour Card Structure
   ========================================================================== */
.cubo-tc-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
	            box-shadow 0.25s ease, 
	            border-color 0.25s ease;
	position: relative;
	height: 100%;
}

.cubo-tc-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
	border-color: #cbd5e1;
}

/* ==========================================================================
   Media & Image Header (Image behaves as Cover filling the entire photo area)
   ========================================================================== */
.cubo-tc-media {
	position: relative !important;
	width: 100% !important;
	aspect-ratio: 16 / 10 !important;
	min-height: 210px !important;
	overflow: hidden !important;
	background-color: #f1f5f9 !important;
	border-top-left-radius: 16px !important;
	border-top-right-radius: 16px !important;
}

.cubo-tc-media a.cubo-tc-media-link,
.cubo-tc-media-link {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	text-decoration: none !important;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	overflow: hidden !important;
	z-index: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.cubo-tc-media img,
.cubo-tc-media a img,
.cubo-tc-img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center center !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cubo-tc-card:hover .cubo-tc-img,
.cubo-tc-card:hover .cubo-tc-media-link {
	transform: scale(1.04);
}

.cubo-tc-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.cubo-tc-placeholder-icon {
	width: 48px;
	height: 48px;
	fill: #475569;
}

/* ==========================================================================
   Photo Overlays: Badge (Top-Left) & Duration (Top-Right)
   ========================================================================== */
/* Badge on Photo (Top-Left) */
.cubo-tc-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	color: #ffffff;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 5px 12px;
	border-radius: 9999px;
	box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	z-index: 2;
	pointer-events: none;
	white-space: nowrap;
}

.cubo-tc-badge.cubo-tc-badge-gold {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
}

.cubo-tc-badge-icon {
	width: 12px;
	height: 12px;
	fill: #ffffff;
	flex-shrink: 0;
}

/* ==========================================================================
   Card Body Content
   ========================================================================== */
.cubo-tc-body {
	padding: 22px 22px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Meta Chips (Available Days & Duration) */
.cubo-tc-meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.cubo-tc-meta-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	line-height: 1.2;
}

.cubo-tc-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.cubo-tc-meta-days .cubo-tc-icon {
	fill: #059669;
}

.cubo-tc-meta-duration .cubo-tc-icon {
	fill: #2563eb;
}

/* Tour Title */
.cubo-tc-title {
	font-size: 21.5px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
	margin: 0 0 14px 0;
	color: #0f172a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cubo-tc-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cubo-tc-title a:hover,
.cubo-tc-card:hover .cubo-tc-title a {
	color: #2563eb;
}

/* Trust & Inclusions Checklist */
.cubo-tc-features {
	list-style: none !important;
	margin: 0 0 18px 0 !important;
	padding: 14px 0 0 0 !important;
	border-top: 1px solid #f1f5f9;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cubo-tc-feature-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #475569;
	line-height: 1.35;
}

.cubo-tc-check-icon {
	width: 15px;
	height: 15px;
	fill: #059669;
	flex-shrink: 0;
}

/* ==========================================================================
   Card Footer (Price & Button CTA)
   ========================================================================== */
.cubo-tc-footer {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

/* Price Display */
.cubo-tc-price-box {
	display: flex;
	flex-direction: column;
	min-height: 42px;
	justify-content: center;
}

.cubo-tc-price-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 3px;
}

.cubo-tc-price-val {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.cubo-tc-original-price {
	font-size: 14px;
	color: #94a3b8;
	text-decoration: line-through;
	font-weight: 500;
}

.cubo-tc-current-price {
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.cubo-tc-price-unit {
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
}

/* Book Now CTA Button */
.cubo-tc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
	color: #ffffff !important;
	padding: 10px 18px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.3);
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
	white-space: nowrap;
	flex-shrink: 0;
}

.cubo-tc-btn:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 18px -2px rgba(37, 99, 235, 0.4);
	color: #ffffff !important;
}

.cubo-tc-btn-icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
	transition: transform 0.2s ease;
}

.cubo-tc-btn:hover .cubo-tc-btn-icon {
	transform: translateX(2px);
}

/* ==========================================================================
   Single Card Shortcode Wrapper ([cubo_tour_card id="..."])
   ========================================================================== */
.cubo-tc-single-wrap {
	width: 100%;
	max-width: 400px;
	box-sizing: border-box;
	display: block;
}

.cubo-tc-single-wrap.cubo-tc-align-center {
	margin-left: auto;
	margin-right: auto;
}

.cubo-tc-single-wrap.cubo-tc-align-right {
	margin-left: auto;
	margin-right: 0;
}

.cubo-tc-single-wrap.cubo-tc-align-left {
	margin-right: auto;
	margin-left: 0;
}

.cubo-tc-single-wrap.cubo-tc-align-none {
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
}

