/**
 * KS LP Price Card Info — Frontend & Editor Styles
 *
 * @package KS_LP_Blocks
 */

.kslp-price-card-info-block {
	box-sizing: border-box;
	position: relative;
	width: 100%;
}

.kslp-price-card-info-inner {
	box-sizing: border-box;
	position: relative;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.kslp-pci-card {
	box-sizing: border-box;
	position: relative;
	width: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Header Area */
.kslp-pci-header {
	box-sizing: border-box;
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.kslp-pci-badge-pill {
	display: inline-block;
	box-sizing: border-box;
	border-radius: 999px;
	padding: 4px 14px;
	margin-bottom: 12px;
	line-height: 1.2;
}

.kslp-pci-title {
	margin: 0 0 6px 0;
	padding: 0;
	word-break: break-word;
	font-family: 'Playfair Display', Georgia, serif;
	line-height: 1.15;
}

.kslp-pci-subtitle {
	margin: 0;
	padding: 0;
	word-break: break-word;
	line-height: 1.35;
}

/* Body Area */
.kslp-pci-body {
	box-sizing: border-box;
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.kslp-pci-category {
	margin: 0 0 10px 0;
	padding: 0;
	line-height: 1.2;
}

.kslp-pci-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	align-items: center;
	margin-bottom: 4px;
}

.kslp-pci-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	line-height: 1.25;
	white-space: nowrap;
}

/* Dividers */
.kslp-pci-divider {
	width: 100%;
	border-top: none;
	border-left: none;
	border-right: none;
	box-sizing: border-box;
}

.kslp-pci-divider--dotted {
	border-bottom-style: dotted;
}

.kslp-pci-divider--dashed {
	border-bottom-style: dashed;
}

.kslp-pci-divider--solid {
	border-bottom-style: solid;
}

/* Specifications Table Rows */
.kslp-pci-spec-list {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.kslp-pci-spec-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	box-sizing: border-box;
}

.kslp-pci-spec-label {
	flex-shrink: 0;
	max-width: 45%;
	white-space: pre-line;
	word-break: break-word;
	line-height: 1.35;
}

.kslp-pci-spec-value-col {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	flex-grow: 1;
	word-break: break-word;
}

.kslp-pci-spec-value-line {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	flex-wrap: wrap;
	line-height: 1.35;
}

.kslp-pci-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	line-height: 1;
	vertical-align: middle;
}

.kslp-pci-stars svg,
.kslp-pci-stars .kslp-star-icon {
	width: 1em;
	height: 1em;
	fill: currentColor;
	display: inline-block;
}

.kslp-pci-stars--below {
	margin-top: 4px;
}

/* CTA Button */
.kslp-pci-cta-wrap {
	width: 100%;
	box-sizing: border-box;
}

.kslp-pci-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	text-decoration: none;
	border: none;
	outline: none;
	cursor: pointer;
	gap: 10px;
	line-height: 1.25;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.kslp-pci-btn:hover {
	text-decoration: none;
}

.kslp-pci-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1.25em;
	line-height: 1;
}

.kslp-pci-btn__icon svg {
	width: 1.25em;
	height: 1.25em;
	fill: currentColor;
}

.kslp-pci-btn__text {
	display: inline-block;
	line-height: 1.2;
}

/* Hover Effects */
.kslp-pci-btn--scale-lift:hover {
	transform: translateY(-2px);
}

.kslp-pci-btn--glow:hover {
	filter: brightness(1.1);
}

.kslp-pci-btn--pulse:hover {
	animation: kslp-pci-pulse 1s infinite;
}

@keyframes kslp-pci-pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.03); }
	100% { transform: scale(1); }
}

/* Mobile specific helpers */
@media (max-width: 480px) {
	.kslp-pci-spec-row {
		gap: 10px;
	}
	.kslp-pci-spec-label {
		max-width: 42%;
	}
}

/* ==========================================
   Template 2 Styles (Modern Hotel Grid & Harga)
   ========================================== */
.kslp-pci-card--template-2 {
	background-color: #ffffff;
}

.kslp-pci-t2-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	box-sizing: border-box;
	width: 100%;
}

.kslp-pci-t2-title {
	margin: 0;
	padding: 0;
	color: #ffffff;
	font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.1;
	word-break: break-word;
}

.kslp-pci-t2-price-wrap {
	display: inline-flex;
	align-items: flex-start;
	color: #ffffff;
	font-weight: 800;
	line-height: 1;
	flex-shrink: 0;
}

.kslp-pci-t2-price-prefix {
	font-size: 20px;
	margin-top: 3px;
	margin-right: 2px;
	font-weight: 700;
	line-height: 1;
}

.kslp-pci-t2-price-num {
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1;
}

/* Sub-Bar (Diskon & Estimasi IDR / Kurs) */
.kslp-pci-t2-subbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 24px;
	background-color: #fcf6ea;
	box-sizing: border-box;
	width: 100%;
	gap: 12px;
}

.kslp-pci-t2-discount-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #eddba3;
	color: #5c4015;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 8px;
	line-height: 1.2;
	white-space: nowrap;
	flex-shrink: 0;
}

.kslp-pci-t2-subbar-right {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	line-height: 1.2;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.kslp-pci-t2-price-local {
	color: #1e293b;
	font-weight: 700;
	font-size: 15px;
}

.kslp-pci-t2-price-kurs {
	color: #64748b;
	font-size: 13px;
	font-weight: 400;
}

/* Template 2 Body */
.kslp-pci-card--template-2 .kslp-pci-t2-body {
	padding: 22px 24px 24px;
	box-sizing: border-box;
	width: 100%;
	display: flex;
	flex-direction: column;
}

/* Hotels 2-column Grid: EXACTLY THE SAME ON MOBILE AND DESKTOP */
.kslp-pci-t2-hotel-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
}

.kslp-pci-t2-col-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.kslp-pci-t2-item-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.kslp-pci-t2-item-icon {
	color: #065f46;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
}

.kslp-pci-t2-item-icon svg {
	width: 1.05em;
	height: 1.05em;
	fill: currentColor;
}

.kslp-pci-t2-item-label {
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.kslp-pci-t2-item-name {
	color: #1e293b;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 4px;
	word-break: break-word;
}

.kslp-pci-t2-stars-wrap {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	line-height: 1.2;
}

.kslp-pci-t2-stars {
	color: #eab308;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 13px;
	line-height: 1;
}

.kslp-pci-t2-stars svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.kslp-pci-t2-stars-suffix {
	color: #1e293b;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
}

/* Template 2 Divider */
.kslp-pci-t2-divider {
	border: none;
	border-bottom: 1px dashed #cbd5e1;
	margin: 16px 0;
	width: 100%;
	box-sizing: border-box;
}

/* Template 2 Airline Row */
.kslp-pci-t2-airline-row {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* Template 2 CTA Button */
.kslp-pci-card--template-2 .kslp-pci-btn {
	background-color: var(--kslp-pci-t2-cta-bg, #16a34a);
	color: var(--kslp-pci-t2-cta-col, #ffffff);
	border-radius: var(--kslp-pci-t2-cta-br, 14px);
	box-shadow: var(--kslp-pci-t2-cta-sh, 0 8px 20px rgba(22, 163, 74, 0.28));
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 700;
}

/* Template 2 Mobile Adjustments (Layout tetap 2 kolom persis sama) */
@media (max-width: 480px) {
	.kslp-pci-card--template-2 .kslp-pci-t2-header {
		padding: 16px 18px;
	}
	.kslp-pci-card--template-2 .kslp-pci-t2-title {
		font-size: 26px;
	}
	.kslp-pci-card--template-2 .kslp-pci-t2-price-num {
		font-size: 28px;
	}
	.kslp-pci-card--template-2 .kslp-pci-t2-price-prefix {
		font-size: 16px;
	}
	.kslp-pci-t2-subbar {
		padding: 10px 18px;
	}
	.kslp-pci-t2-discount-badge {
		font-size: 12px;
		padding: 4px 10px;
	}
	.kslp-pci-t2-price-local {
		font-size: 13px;
	}
	.kslp-pci-t2-price-kurs {
		font-size: 12px;
	}
	.kslp-pci-card--template-2 .kslp-pci-t2-body {
		padding: 18px 18px 20px;
	}
	/* Grid hotel tetap 2 kolom persis */
	.kslp-pci-card--template-2 .kslp-pci-t2-hotel-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
	.kslp-pci-t2-item-name {
		font-size: 13px;
	}
	.kslp-pci-t2-stars {
		font-size: 12px;
	}
	.kslp-pci-t2-stars-suffix {
		font-size: 12px;
	}
}
