/* ==========================================================================
   SavannaLux Package Cards — Frontend Styles
   Developed by SavannaLux Adventures
   ========================================================================== */

.slpc-grid {
	--slpc-columns: 3;
	display: grid;
	grid-template-columns: repeat(var(--slpc-columns), 1fr);
	gap: 24px;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.slpc-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.slpc-grid {
		grid-template-columns: 1fr;
	}
}

.slpc-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.slpc-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.slpc-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: #e8e4da;
}

.slpc-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.slpc-card:hover .slpc-card-media img {
	transform: scale(1.04);
}

.slpc-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(45deg, #eee, #eee 10px, #e2e2e2 10px, #e2e2e2 20px);
	color: #888;
	font-size: 13px;
}

.slpc-card-body {
	padding: 18px 18px 4px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	text-align: left;
}

.slpc-card-name {
	margin: 0;
	font-size: 1.12em;
	font-weight: 700;
	line-height: 1.35;
	color: #1f2d20;
}

.slpc-card-price {
	margin: 0;
}

.slpc-price-amount {
	font-size: 1.05em;
	font-weight: 800;
	color: #2f4f3f;
}

.slpc-duration-label {
	display: inline-flex;
	align-self: flex-start;
	font-size: 0.82em;
	font-weight: 600;
	color: #6b6457;
	background: #f1efe7;
	padding: 5px 12px;
	border-radius: 20px;
}

.slpc-duration-label--linked {
	color: #2f4f3f;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.slpc-duration-label--linked:hover {
	background: #2f4f3f;
	color: #fff;
}

.slpc-view-tour-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 14px 18px 18px;
	padding: 11px 18px;
	background: #D0A030;
	color: #fff;
	font-size: 0.95em;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
	border-radius: 6px;
	transition: opacity 0.2s ease;
}

.slpc-view-tour-btn:hover {
	opacity: 0.88;
	color: #fff;
}

.slpc-arrow {
	font-size: 1.15em;
	font-weight: 800;
	line-height: 1;
	transition: transform 0.2s ease;
}

.slpc-view-tour-btn:hover .slpc-arrow {
	transform: translateX(3px);
}

.slpc-empty-notice {
	padding: 16px;
	background: #fff8e5;
	border: 1px solid #e0c989;
	border-radius: 6px;
	color: #6b5800;
}

/* --------------------------------------------------------------------------
   Badge base (ribbon / stamp) — family resemblance to the Destination
   Badges plugin, with its own color defaults for this plugin.
   -------------------------------------------------------------------------- */

.slpc-badge {
	--slpc-badge-color: #c8862b;
	position: absolute;
	z-index: 2;
	font-family: inherit;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
	pointer-events: none;
	user-select: none;
}

/* Ribbon style — folded corner banner */

.slpc-badge--ribbon {
	font-size: 11px;
	padding: 7px 14px;
	background: var(--slpc-badge-color);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
	white-space: nowrap;
}

.slpc-badge--ribbon.slpc-badge--top-left {
	top: 14px;
	left: -6px;
	border-radius: 2px 4px 4px 2px;
	transform: rotate(-4deg);
}
.slpc-badge--ribbon.slpc-badge--top-left::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -5px;
	border-style: solid;
	border-width: 5px 6px 0 0;
	border-color: rgba(0, 0, 0, 0.35) transparent transparent transparent;
}

.slpc-badge--ribbon.slpc-badge--top-right {
	top: 14px;
	right: -6px;
	border-radius: 4px 2px 2px 4px;
	transform: rotate(4deg);
}
.slpc-badge--ribbon.slpc-badge--top-right::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -5px;
	border-style: solid;
	border-width: 5px 0 0 6px;
	border-color: rgba(0, 0, 0, 0.35) transparent transparent transparent;
}

.slpc-badge--ribbon.slpc-badge--bottom-left {
	bottom: 14px;
	left: -6px;
	border-radius: 2px 4px 4px 2px;
	transform: rotate(4deg);
}

.slpc-badge--ribbon.slpc-badge--bottom-right {
	bottom: 14px;
	right: -6px;
	border-radius: 4px 2px 2px 4px;
	transform: rotate(-4deg);
}

/* Stamp style — circular badge with dashed ring */

.slpc-badge--stamp {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 10px;
	line-height: 1.15;
	background: var(--slpc-badge-color);
	border: 2px dashed rgba(255, 255, 255, 0.75);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 0 0 4px rgba(0, 0, 0, 0.08);
	padding: 6px;
	transform: rotate(-8deg);
}

.slpc-badge--stamp.slpc-badge--top-left {
	top: 12px;
	left: 12px;
}
.slpc-badge--stamp.slpc-badge--top-right {
	top: 12px;
	right: 12px;
}
.slpc-badge--stamp.slpc-badge--bottom-left {
	bottom: 12px;
	left: 12px;
}
.slpc-badge--stamp.slpc-badge--bottom-right {
	bottom: 12px;
	right: 12px;
}
