/**
 * Trip Booking Pro - public styles.
 * Premium luxury theme: Charcoal #26252C / Gold #E4A853 / White #FFFFFF.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

.tbp-scope {
	--tbp-charcoal: #26252C;
	--tbp-gold: #E4A853;
	--tbp-gold-soft: #F3DDB8;
	--tbp-white: #FFFFFF;
	--tbp-bg: #F7F4EF;
	--tbp-border: #E7E1D4;
	--tbp-text: #3A3942;
	--tbp-radius: 14px;
	--tbp-shadow: 0 10px 30px rgba(38, 37, 44, 0.08);
	--tbp-shadow-lg: 0 24px 48px rgba(38, 37, 44, 0.16);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--tbp-text);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

.tbp-scope *,
.tbp-scope *::before,
.tbp-scope *::after {
	box-sizing: inherit;
}

.tbp-container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Buttons */
.tbp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.3px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.25s cubic-bezier(.4,0,.2,1);
	text-decoration: none;
}

.tbp-btn:active {
	transform: translateY(1px);
}

.tbp-btn-primary {
	background: var(--tbp-charcoal);
	color: var(--tbp-white);
	box-shadow: 0 8px 20px rgba(38, 37, 44, 0.25);
}

.tbp-btn-primary:hover {
	background: var(--tbp-gold);
	color: var(--tbp-charcoal);
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(228, 168, 83, 0.35);
}

.tbp-btn-outline {
	background: transparent;
	border-color: var(--tbp-charcoal);
	color: var(--tbp-charcoal);
}

.tbp-btn-outline:hover {
	background: var(--tbp-charcoal);
	color: var(--tbp-white);
}

.tbp-btn-ghost {
	background: transparent;
	color: var(--tbp-text);
	border-color: var(--tbp-border);
}

.tbp-btn-ghost:hover {
	border-color: var(--tbp-charcoal);
}

.tbp-btn-block {
	width: 100%;
}

/* Badges */
.tbp-badge {
	display: inline-block;
	padding: 5px 13px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	background: var(--tbp-gold);
	color: var(--tbp-charcoal);
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Icons (simple CSS glyphs to avoid extra assets) */
.tbp-icon-pin,
.tbp-icon-clock,
.tbp-icon-check,
.tbp-icon-cross {
	display: inline-block;
	width: 14px;
	height: 14px;
	vertical-align: -2px;
	margin-right: 6px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.tbp-icon-pin {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

.tbp-icon-clock {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 .001 20.001A10 10 0 0 0 12 2zm.5 5H11v6l5.25 3.15.75-1.23-4.5-2.67V7z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 .001 20.001A10 10 0 0 0 12 2zm.5 5H11v6l5.25 3.15.75-1.23-4.5-2.67V7z'/%3E%3C/svg%3E");
}

.tbp-icon-check {
	color: #1e8e3e;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 5.5 12.7 4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 5.5 12.7 4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E");
}

.tbp-icon-cross {
	color: #c0392b;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.3 5.71 12 12l6.3 6.29-1.41 1.42L10.59 13.4 4.3 19.71 2.89 18.3 9.18 12 2.89 5.71 4.3 4.29l6.29 6.3 6.3-6.3z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.3 5.71 12 12l6.3 6.29-1.41 1.42L10.59 13.4 4.3 19.71 2.89 18.3 9.18 12 2.89 5.71 4.3 4.29l6.29 6.3 6.3-6.3z'/%3E%3C/svg%3E");
}

/* ---------- Trip listing grid ---------- */
.tbp-trip-grid {
	display: grid;
	grid-template-columns: repeat(var(--tbp-columns, 3), 1fr);
	gap: 30px;
}

.tbp-trip-card {
	background: var(--tbp-white);
	border-radius: var(--tbp-radius);
	overflow: hidden;
	box-shadow: var(--tbp-shadow);
	transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s ease;
	position: relative;
}

.tbp-trip-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--tbp-gold), var(--tbp-gold-soft));
	z-index: 2;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.tbp-trip-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--tbp-shadow-lg);
}

.tbp-trip-card:hover::before {
	opacity: 1;
}

.tbp-trip-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--tbp-bg);
}

.tbp-trip-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.tbp-trip-card:hover .tbp-trip-card-media img {
	transform: scale(1.06);
}

.tbp-trip-card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--tbp-charcoal), #3f3d49);
}

.tbp-trip-card-media .tbp-badge {
	position: absolute;
	top: 14px;
	left: 14px;
}

.tbp-trip-card-body {
	padding: 20px;
}

.tbp-trip-card-title {
	margin: 0 0 12px;
	font-size: 21px;
	line-height: 1.3;
	font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
	transition: color 0.2s ease;
}

.tbp-trip-card-title a {
	color: var(--tbp-charcoal);
	text-decoration: none;
}

.tbp-trip-card:hover .tbp-trip-card-title a {
	color: #A8791F;
}

.tbp-trip-card-meta {
	margin: 0 0 8px;
	font-size: 13px;
	color: #8a8992;
	display: flex;
	align-items: center;
}

.tbp-trip-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px dashed var(--tbp-border);
}

.tbp-price-label {
	display: block;
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #9a9aa2;
	font-weight: 600;
}

.tbp-price-value {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: var(--tbp-charcoal);
	font-family: 'Playfair Display', Georgia, serif;
}

.tbp-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #8a8a92;
}

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

@media (max-width: 640px) {
	.tbp-trip-grid { grid-template-columns: 1fr; }
}

/* ---------- Single trip page ---------- */
.tbp-hero {
	position: relative;
	min-height: 460px;
	background-color: var(--tbp-charcoal);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
}

.tbp-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(38,37,44,0.25) 0%, rgba(38,37,44,0.92) 100%);
}

.tbp-hero-content {
	position: relative;
	z-index: 1;
	max-width: 1160px;
	margin: 0 auto;
	padding: 44px 20px;
	color: var(--tbp-white);
	width: 100%;
}

.tbp-hero-title {
	font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
	font-size: 46px;
	line-height: 1.15;
	margin: 16px 0 14px;
	position: relative;
	padding-bottom: 16px;
}

.tbp-hero-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 3px;
	background: var(--tbp-gold);
}

.tbp-hero-meta {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 15px;
	color: var(--tbp-gold-soft);
}

.tbp-single-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	padding-top: 40px;
	padding-bottom: 60px;
	align-items: start;
}

.tbp-section {
	margin-bottom: 44px;
}

.tbp-section-title {
	font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
	font-size: 26px;
	color: var(--tbp-charcoal);
	margin-bottom: 16px;
	position: relative;
	padding-bottom: 12px;
}

.tbp-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 50px;
	height: 3px;
	background: var(--tbp-gold);
}

.tbp-lead-text {
	font-size: 17px;
	color: var(--tbp-charcoal);
	font-style: italic;
}

.tbp-rich-text {
	line-height: 1.8;
}

.tbp-gallery-showcase {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.tbp-gallery-showcase-item {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.tbp-gallery-showcase-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.tbp-gallery-showcase-item:hover img {
	transform: scale(1.08);
}

.tbp-lightbox-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.85);
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

.tbp-lightbox-overlay.is-open {
	display: flex;
}

.tbp-lightbox-overlay img {
	max-width: 90vw;
	max-height: 85vh;
	border-radius: 6px;
}

.tbp-lightbox-close {
	position: absolute;
	top: 24px;
	right: 32px;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
}

/* Itinerary accordion */
.tbp-itinerary-day {
	border: 1px solid var(--tbp-border);
	border-radius: 10px;
	margin-bottom: 14px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tbp-itinerary-day:hover {
	border-color: var(--tbp-gold);
	box-shadow: 0 6px 18px rgba(38, 37, 44, 0.08);
}

.tbp-itinerary-day-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--tbp-white);
	border: none;
	padding: 18px 20px;
	text-align: left;
	cursor: pointer;
	font-size: 15px;
}

.tbp-itinerary-day-number {
	background: var(--tbp-charcoal);
	color: var(--tbp-gold);
	font-weight: 700;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.tbp-itinerary-day-title {
	flex: 1;
	font-weight: 600;
	color: var(--tbp-charcoal);
}

.tbp-itinerary-day-caret {
	transition: transform 0.25s ease;
	color: var(--tbp-gold);
}

.tbp-itinerary-day-toggle[aria-expanded="true"] .tbp-itinerary-day-caret {
	transform: rotate(180deg);
}

.tbp-itinerary-day-panel {
	padding: 0 18px 18px;
	background: var(--tbp-bg);
}

.tbp-itinerary-day-image {
	max-width: 240px;
	border-radius: 6px;
	margin-bottom: 12px;
}

/* Included / Excluded */
.tbp-include-exclude-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.tbp-list-card {
	background: var(--tbp-bg);
	border-radius: 8px;
	padding: 20px 24px;
}

.tbp-list-card h3 {
	margin-top: 0;
	font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
	color: var(--tbp-charcoal);
}

.tbp-list-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tbp-list-card li {
	padding: 6px 0;
	font-size: 14px;
}

.tbp-notice-card {
	background: #FFF7E8;
	border-left: 4px solid var(--tbp-gold);
	padding: 16px 20px;
	border-radius: 4px;
	font-size: 14px;
}

/* Sticky sidebar booking card */
.tbp-single-sidebar {
	position: relative;
}

.tbp-sticky-card {
	position: sticky;
	top: 24px;
	background: var(--tbp-white);
	border: 1px solid var(--tbp-border);
	border-top: 4px solid var(--tbp-gold);
	border-radius: var(--tbp-radius);
	padding: 28px;
	box-shadow: var(--tbp-shadow-lg);
}

.tbp-sticky-card-price {
	text-align: center;
	margin-bottom: 22px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--tbp-border);
}

.tbp-sticky-card-price .tbp-price-value {
	font-size: 32px;
	font-family: 'Playfair Display', Georgia, serif;
}

.tbp-price-per {
	font-size: 12px;
	color: #9a9aa2;
}

.tbp-sticky-card-facts {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}

.tbp-sticky-card-facts li {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 13.5px;
	border-bottom: 1px dashed var(--tbp-border);
}

.tbp-sticky-card-facts li span {
	color: #8a8992;
}

.tbp-sticky-card-facts li strong {
	color: var(--tbp-charcoal);
}

.tbp-bookings-closed {
	text-align: center;
	color: #c0392b;
	font-weight: 600;
}

@media (max-width: 992px) {
	.tbp-single-layout { grid-template-columns: 1fr; }
	.tbp-sticky-card { position: static; }
	.tbp-gallery-showcase { grid-template-columns: repeat(2, 1fr); }
	.tbp-include-exclude-grid { grid-template-columns: 1fr; }
	.tbp-hero-title { font-size: 30px; }
}

/* ---------- Booking modal wizard ---------- */
body.tbp-modal-open {
	overflow: hidden;
}

.tbp-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(38, 37, 44, 0.6);
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}

.tbp-modal-overlay.is-open {
	display: flex;
	animation: tbpFadeIn 0.2s ease;
}

.tbp-modal {
	background: var(--tbp-white);
	border-radius: 14px;
	max-width: 640px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	animation: tbpSlideUp 0.3s ease;
}

@keyframes tbpFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes tbpSlideUp {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

.tbp-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: var(--tbp-bg);
	border: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	color: var(--tbp-charcoal);
}

.tbp-modal-header {
	background: var(--tbp-charcoal);
	color: var(--tbp-white);
	padding: 28px 30px 20px;
	border-radius: 14px 14px 0 0;
}

.tbp-modal-header h2 {
	margin: 0 0 18px;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	padding-right: 30px;
}

.tbp-modal-steps {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 6px;
}

.tbp-step-indicator {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: rgba(255,255,255,0.5);
	padding-bottom: 10px;
	border-bottom: 3px solid rgba(255,255,255,0.15);
	transition: color 0.3s ease, border-color 0.3s ease;
}

.tbp-step-indicator span {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(255,255,255,0.15);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
}

.tbp-step-indicator.is-active,
.tbp-step-indicator.is-complete {
	color: var(--tbp-gold);
	border-bottom-color: var(--tbp-gold);
}

.tbp-step-indicator.is-active span,
.tbp-step-indicator.is-complete span {
	background: var(--tbp-gold);
	color: var(--tbp-charcoal);
}

.tbp-modal-body {
	padding: 28px 30px 32px;
}

.tbp-modal-step {
	display: none;
	animation: tbpFadeIn 0.25s ease;
}

.tbp-modal-step.is-active {
	display: block;
}

.tbp-modal-subtitle {
	font-family: 'Playfair Display', Georgia, serif;
	color: var(--tbp-charcoal);
	font-size: 17px;
	margin: 20px 0 12px;
}

.tbp-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.tbp-form-row-3 {
	grid-template-columns: repeat(3, 1fr);
}

.tbp-form-field label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #6b6a72;
	margin-bottom: 6px;
}

.tbp-form-field input,
.tbp-form-field select {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--tbp-border);
	border-radius: 8px;
	font-size: 14px;
	background: var(--tbp-white);
	transition: border-color 0.2s ease;
}

.tbp-form-field input:focus,
.tbp-form-field select:focus {
	outline: none;
	border-color: var(--tbp-gold);
}

.tbp-traveller-form {
	background: var(--tbp-bg);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 12px;
}

.tbp-traveller-form-title {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--tbp-charcoal);
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.tbp-modal-error {
	background: #FDECEA;
	color: #c0392b;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 16px;
}

.tbp-modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
}

.tbp-modal-total {
	font-size: 18px;
	font-weight: 700;
	color: var(--tbp-charcoal);
}

.tbp-review-list {
	background: var(--tbp-bg);
	border-radius: 8px;
	padding: 20px;
	margin: 0;
}

.tbp-review-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px dashed var(--tbp-border);
	font-size: 14px;
}

.tbp-review-row:last-child {
	border-bottom: none;
}

.tbp-review-total {
	font-size: 17px;
	color: var(--tbp-charcoal);
}

.tbp-payment-state {
	text-align: center;
	padding: 30px 10px;
}

.tbp-spinner {
	width: 44px;
	height: 44px;
	border: 4px solid var(--tbp-border);
	border-top-color: var(--tbp-gold);
	border-radius: 50%;
	margin: 0 auto 20px;
	animation: tbpSpin 0.8s linear infinite;
}

@keyframes tbpSpin {
	to { transform: rotate(360deg); }
}

.tbp-success-icon {
	width: 60px;
	height: 60px;
	line-height: 60px;
	border-radius: 50%;
	background: #1e8e3e;
	color: #fff;
	font-size: 28px;
	margin: 0 auto 16px;
}

.tbp-error-icon {
	width: 60px;
	height: 60px;
	line-height: 60px;
	border-radius: 50%;
	background: #c0392b;
	color: #fff;
	font-size: 28px;
	margin: 0 auto 16px;
}

@media (max-width: 640px) {
	.tbp-form-row,
	.tbp-form-row-3 {
		grid-template-columns: 1fr;
	}
	.tbp-modal-header,
	.tbp-modal-body {
		padding-left: 20px;
		padding-right: 20px;
	}
	.tbp-step-indicator span + text { display: none; }
}
