/*
 * Package page (tour-detail.php).
 *
 * Self-contained like blog.css: the compiled Tailwind build lacks many of the
 * utilities the old page relied on (its price-card badges rendered blank).
 */

.pk, .pk-hero, .pk-more, .pk-bar, .dst {
	--pk-ink: #10201f;
	--pk-text: #3a4846;
	--pk-muted: #6b7a78;
	--pk-line: #e3eceb;
	--pk-tint: #eef7f6;
	--pk-teal: #066168;
	--pk-teal-dark: #054f55;
	--pk-gold: #FFD214;
	--pk-green: #85D200;
	--pk-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	color: var(--pk-text);
}
.pk { background: #fff; }
.pk-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Hero ───────────────────────────────────────────────────── */
.pk-hero { position: relative; min-height: 560px; height: 72vh; max-height: 760px; display: flex; align-items: flex-end; overflow: hidden; background: #041c16; }
.pk-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pk-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 28, 22, .45) 0%, rgba(4, 28, 22, .05) 35%, rgba(4, 28, 22, .82) 100%); }
.pk-hero-inner { position: relative; z-index: 1; width: 100%; padding-bottom: 48px; }
.pk-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: rgba(255, 255, 255, .75); margin-bottom: 18px; }
.pk-crumbs a { color: rgba(255, 255, 255, .75); }
.pk-crumbs a:hover { color: #fff; }
.pk-loc { display: inline-flex; align-items: center; gap: 8px; color: var(--pk-gold); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pk-title { font-family: var(--pk-serif); font-weight: 600; color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.8rem); line-height: 1.08; letter-spacing: -.01em; margin: 12px 0 22px; max-width: 16em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.pk-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.pk-fact { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: .86rem; font-weight: 600; backdrop-filter: blur(6px); }
.pk-fact i { color: var(--pk-gold); font-size: .8rem; }

/* ── Layout ─────────────────────────────────────────────────── */
.pk-layout { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 80px; }
@media (min-width: 1024px) { .pk-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; padding-top: 0; } }
.pk-main { min-width: 0; }
@media (min-width: 1024px) { .pk-main { padding-top: 56px; } }

.pk-section { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--pk-line); }
.pk-section:last-child { border-bottom: 0; margin-bottom: 0; }
.pk-h2 { font-family: var(--pk-serif); font-weight: 600; color: var(--pk-ink); font-size: 1.75rem; line-height: 1.25; margin: 0 0 18px; }
.pk-lead { font-size: 1.1rem; line-height: 1.85; color: var(--pk-text); margin: 0; white-space: pre-line; }

.pk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .pk-list--2 { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.pk-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; font-size: 1rem; }
.pk-list i { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; margin-top: 2px; }
.pk-list--hi i { background: var(--pk-tint); color: var(--pk-teal); }
.pk-list--yes i { background: #e7f6e9; color: #1d7a33; }
.pk-list--no i { background: #fdecec; color: #b42318; }
.pk-incl { display: grid; gap: 32px; }
@media (min-width: 640px) { .pk-incl { grid-template-columns: 1fr 1fr; } }
.pk-h3 { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pk-muted); margin: 0 0 14px; }

/* Itinerary timeline */
.pk-days { list-style: none; margin: 0; padding: 0; position: relative; }
.pk-days::before { content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--pk-line); }
.pk-day { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
.pk-day:last-child { padding-bottom: 0; }
.pk-day-num { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--pk-teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; box-shadow: 0 0 0 5px #fff; }
.pk-day-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pk-teal); }
.pk-day-title { font-family: var(--pk-serif); font-weight: 600; font-size: 1.2rem; color: var(--pk-ink); margin: 2px 0 6px; }
.pk-day p { margin: 0; line-height: 1.7; }

.pk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .pk-steps { grid-template-columns: repeat(3, 1fr); } }
.pk-steps li { padding: 20px; border-radius: 16px; background: var(--pk-tint); }
.pk-steps b { display: block; font-family: var(--pk-serif); color: var(--pk-ink); font-size: 1.05rem; margin: 10px 0 6px; }
.pk-steps span { font-size: .92rem; line-height: 1.6; }
.pk-step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pk-teal); color: #fff; font-weight: 700; font-size: .85rem; }

/* ── Booking card ───────────────────────────────────────────── */
/* Pulled up over the hero on desktop so the price is visible on load. */
@media (min-width: 1024px) { .pk-book { margin-top: -140px; position: relative; z-index: 2; } }
.pk-card { background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(6, 50, 54, .16); border: 1px solid var(--pk-line); overflow: hidden; }
.pk-card-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--pk-line); }
.pk-from { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pk-muted); }
.pk-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.pk-price strong { font-size: 2.2rem; font-weight: 800; color: var(--pk-ink); letter-spacing: -.02em; line-height: 1; }
.pk-price span { color: var(--pk-muted); font-size: .92rem; }
.pk-rating { margin-top: 8px; font-size: .86rem; color: var(--pk-muted); }
.pk-rating i { color: #f5a524; }

.pk-card-body { padding: 20px 24px 24px; }
.pk-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--pk-tint); margin-bottom: 18px; }
.pk-mode button { padding: 10px 8px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: .88rem; color: var(--pk-muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.pk-mode button[aria-pressed="true"] { background: #fff; color: var(--pk-teal); box-shadow: 0 2px 8px rgba(6, 97, 104, .12); }

.pk-field { margin-bottom: 14px; }
.pk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pk-label { display: block; font-size: .78rem; font-weight: 700; color: var(--pk-ink); margin-bottom: 6px; }
.pk-label em { font-style: normal; color: var(--pk-muted); font-weight: 500; }
.pk-input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d5e1df; border-radius: 11px; font-size: .95rem; color: var(--pk-ink); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; font-family: inherit; }
textarea.pk-input { height: auto; min-height: 84px; padding: 11px 14px; resize: vertical; }
.pk-input:focus { border-color: var(--pk-teal); box-shadow: 0 0 0 3px rgba(6, 97, 104, .12); }
.pk-input[aria-invalid="true"] { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217, 45, 32, .1); }

.pk-stepper { display: flex; align-items: center; height: 46px; border: 1px solid #d5e1df; border-radius: 11px; overflow: hidden; }
.pk-stepper button { width: 44px; height: 100%; border: 0; background: var(--pk-tint); color: var(--pk-teal); font-size: 1rem; cursor: pointer; }
.pk-stepper button:disabled { opacity: .4; cursor: default; }
.pk-stepper input { flex: 1; min-width: 0; height: 100%; border: 0; text-align: center; font-weight: 700; font-size: 1rem; color: var(--pk-ink); outline: none; -moz-appearance: textfield; }
.pk-stepper input::-webkit-outer-spin-button, .pk-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pk-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 12px; background: var(--pk-tint); margin: 4px 0 16px; font-size: .9rem; }
.pk-total strong { font-size: 1.2rem; color: var(--pk-ink); }
.pk-total small { display: block; color: var(--pk-muted); font-size: .78rem; margin-top: 2px; }

.pk-submit { width: 100%; height: 52px; border: 0; border-radius: 999px; background: var(--pk-teal); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .2s, transform .2s; }
.pk-submit:hover { background: var(--pk-teal-dark); }
.pk-submit:disabled { opacity: .7; cursor: progress; }
.pk-assure { display: grid; gap: 8px; margin-top: 16px; font-size: .84rem; color: var(--pk-muted); }
.pk-assure span { display: flex; gap: 8px; align-items: center; }
.pk-assure i { color: #1d7a33; }
.pk-error { display: none; margin-bottom: 14px; padding: 12px 14px; border-radius: 11px; background: #fdecec; color: #912018; font-size: .88rem; line-height: 1.5; }
.pk-error.is-on { display: block; }

.pk-success { display: none; padding: 28px 24px; text-align: center; }
.pk-success.is-on { display: block; }
.pk-success-icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #e7f6e9; color: #1d7a33; font-size: 1.5rem; }
.pk-success h3 { font-family: var(--pk-serif); font-size: 1.5rem; font-weight: 600; color: var(--pk-ink); margin: 0 0 6px; }
.pk-ref { display: inline-block; margin: 6px 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--pk-tint); color: var(--pk-teal); font-weight: 700; letter-spacing: .04em; }
.pk-summary { text-align: left; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--pk-line); font-size: .9rem; display: grid; gap: 6px; }
.pk-summary div { display: flex; justify-content: space-between; gap: 12px; }
.pk-summary span { color: var(--pk-muted); }
.pk-summary b { color: var(--pk-ink); text-align: right; }
.pk-success p { font-size: .92rem; line-height: 1.6; margin: 0 0 18px; }
.pk-success-actions { display: grid; gap: 10px; }
.pk-btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 700; }
.pk-btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 46px; border-radius: 999px; border: 1px solid var(--pk-line); color: var(--pk-ink); font-weight: 600; background: #fff; cursor: pointer; }

.pk-help { margin-top: 20px; padding: 20px 22px; border-radius: 18px; background: var(--pk-tint); font-size: .92rem; }
.pk-help b { display: block; color: var(--pk-ink); margin-bottom: 8px; }
.pk-help a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--pk-teal); font-weight: 600; }

/* ── Related ────────────────────────────────────────────────── */
.pk-more { background: var(--pk-tint); padding: 72px 0 96px; }
.pk-more-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 28px; }
.pk-more-head h2 { font-family: var(--pk-serif); font-weight: 600; color: var(--pk-ink); font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
.pk-more-head a { color: var(--pk-teal); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.pk-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pk-tile { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 28px rgba(6, 97, 104, .08); transition: transform .3s, box-shadow .3s; color: inherit; }
.pk-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6, 97, 104, .14); }
.pk-tile-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pk-tint); }
.pk-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pk-tile:hover .pk-tile-img img { transform: scale(1.04); }
.pk-tile-dur { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--pk-ink); font-size: .78rem; font-weight: 700; }
.pk-tile-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pk-tile-loc { font-size: .78rem; color: var(--pk-muted); display: flex; gap: 6px; align-items: center; }
.pk-tile-title { font-family: var(--pk-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--pk-ink); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-tile-price { margin-top: auto; padding-top: 10px; font-size: .9rem; color: var(--pk-muted); }
.pk-tile-price b { color: var(--pk-ink); font-size: 1.1rem; }

/* ── Mobile booking bar ─────────────────────────────────────── */
/* Fixed, so it lives outside #smooth-content. Shown while the booking card
   is off screen. */
.pk-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--pk-line); box-shadow: 0 -8px 24px rgba(6, 50, 54, .1); transform: translateY(calc(100% + 32px)); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s; }
.pk-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .3s ease, opacity .3s ease; }
.pk-bar-price { line-height: 1.2; }
.pk-bar-price strong { display: block; font-size: 1.15rem; color: var(--pk-ink); }
.pk-bar-price span { font-size: .78rem; color: var(--pk-muted); }
.pk-bar button { height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--pk-teal); color: #fff; font-weight: 700; cursor: pointer; }
@media (min-width: 1024px) { .pk-bar { left: auto; right: 24px; bottom: 24px; border-radius: 999px; border: 1px solid var(--pk-line); padding: 8px 8px 8px 22px; } }

.pk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 639px) {
	.pk-hero { min-height: 520px; height: 78vh; }
	.pk-hero-inner { padding-bottom: 32px; }
	.pk-h2 { font-size: 1.5rem; }
	.pk-lead { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
	.pk-tile, .pk-tile-img img, .pk-bar { transition: none; }
}
