.tp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin: 24px 0;
}

.tp-grid.tp-columns-1 { grid-template-columns: 1fr; }
.tp-grid.tp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.tp-grid.tp-columns-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 600px) {
	.tp-grid,
	.tp-grid.tp-columns-2,
	.tp-grid.tp-columns-3,
	.tp-grid.tp-columns-4 {
		grid-template-columns: 1fr;
	}
}

.tp-card {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	display: flex;
	flex-direction: column;
}

.tp-card-image {
	position: relative;
	height: 220px;
	border-radius: 14px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px;
	box-sizing: border-box;
}

.tp-card-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
	pointer-events: none;
}

.tp-card-title {
	position: relative;
	z-index: 1;
	color: #fff;
	font-weight: 700;
	font-size: 20px;
	text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.tp-card-price {
	position: relative;
	z-index: 1;
	color: #fff;
	font-weight: 800;
	font-size: 30px;
	text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.tp-card-body {
	padding-top: 16px;
}

.tp-card-desc {
	color: #6b7280;
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 14px;
}

.tp-card-features {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.tp-card-features li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 12px;
}

.tp-check-icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #5b21ea;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tp-buy-btn {
	display: block;
	width: 100%;
	background: linear-gradient(90deg, #6d28d9, #5b21ea);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.tp-buy-btn:hover {
	opacity: 0.92;
}

.tp-buy-btn:active {
	transform: scale(0.98);
}

.tp-buy-btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.tp-payhere-message {
	max-width: 480px;
	margin: 16px auto 0;
	padding: 12px 16px;
	border-radius: 8px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 14px;
	text-align: center;
}

/* ---- Booking Modal ---- */
.tp-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 15, 20, 0.55);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.tp-modal-box {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 28px;
	max-width: 440px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.tp-modal-box h3 {
	margin: 0 0 4px;
	font-size: 20px;
}

.tp-modal-package-name {
	margin: 0 0 18px;
	color: #6d28d9;
	font-weight: 600;
	font-size: 14px;
}

.tp-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
}

.tp-modal-close:hover {
	color: #111827;
}

.tp-form-row {
	margin-bottom: 14px;
}

.tp-form-row label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 5px;
	color: #374151;
}

.tp-form-row input[type=text],
.tp-form-row input[type=email],
.tp-form-row input[type=tel],
.tp-form-row input[type=date] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
}

.tp-payment-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tp-radio-option {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 12px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
}

.tp-radio-option input {
	accent-color: #6d28d9;
}

.tp-form-error {
	color: #991b1b;
	background: #fee2e2;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 13px;
	margin-bottom: 14px;
}

.tp-bank-result h4 {
	margin: 0 0 12px;
}

.tp-bank-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 14px;
}

.tp-bank-table th,
.tp-bank-table td {
	text-align: left;
	padding: 6px 4px;
	font-size: 14px;
	border-bottom: 1px solid #f0f0f0;
}

.tp-bank-table th {
	width: 130px;
	color: #6b7280;
	font-weight: 600;
}

#tp-bank-instructions {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 16px;
}
