/**
 * Phuket Trip Planner — My Trip Page Styles
 *
 * Loaded only on the My Trip page. Styles for the trip organiser,
 * listing cards, drag-and-drop, and day sections.
 *
 * @package PhuketTripPlanner
 * @version 1.8.4
 */

/* ── Container ────────────────────────────────────────────── */

#pkt-my-trip {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Loading ──────────────────────────────────────────────── */

.pkt-loading {
	text-align: center;
	padding: 60px 20px;
	color: #888;
	font-size: 16px;
}

/* ── Empty State ──────────────────────────────────────────── */

.pkt-empty {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.pkt-empty__icon {
	color: #ccc;
	margin-bottom: 16px;
}

.pkt-empty h2 {
	font-size: 22px;
	margin: 0 0 8px;
	color: #333;
}

.pkt-empty p {
	font-size: 15px;
	margin: 0;
	color: #888;
}

.pkt-empty__guide-link {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 28px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: #0073aa;
	border-radius: 30px;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}

.pkt-empty__guide-link:hover {
	background: #005b8a;
	color: #fff;
	text-decoration: none;
	transform: scale(1.03);
}

/* ── Shared Notice ────────────────────────────────────────── */

.pkt-shared-notice {
	margin-bottom: 16px;
	padding: 0;
	font-size: 14px;
	color: #888;
}

.pkt-shared-notice p {
	margin: 0;
}

.pkt-shared-notice a {
	color: #0073aa;
}

.pkt-shared-notice__save {
	margin-top: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ── Trip Tabs ────────────────────────────────────────────── */

.pkt-tabs-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	border-bottom: 2px solid #e0e0e0;
}

.pkt-tabs-row__help {
	font-size: 13px;
	color: #0073aa;
	text-decoration: none;
	white-space: nowrap;
	padding: 8px 14px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	background: #fff;
	transition: all 0.15s ease;
	margin-bottom: 2px;
}

.pkt-tabs-row__help:hover {
	background: #f0f7fc;
	border-color: #0073aa;
	color: #005177;
}

.pkt-tabs-row__help--hero {
	position: absolute;
	bottom: 12px;
	right: 14px;
	background: rgba(255, 255, 255, 0.92);
	border-color: rgba(255, 255, 255, 0.6);
	color: #333;
	font-size: 14px;
	padding: 7px 16px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	z-index: 5;
}

.pkt-tabs-row__help--hero:hover {
	background: #fff;
	color: #0073aa;
}

.pkt-trip-tabs {
	display: flex;
	gap: 4px;
	padding-bottom: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.pkt-trip-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	min-height: 44px;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 8px 8px 0 0;
	background: #f5f5f5;
	color: #666;
	font-size: 14px;
	font-family: inherit;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
	position: relative;
	top: 2px;
}

.pkt-trip-tab:hover {
	background: #eee;
	color: #333;
}

.pkt-trip-tab--active {
	background: #fff;
	color: #333;
	font-weight: 600;
	border-color: #e0e0e0;
	box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.04);
}

.pkt-trip-tab--active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: #fff;
}

.pkt-trip-tab__name {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pkt-trip-tab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: #e0e0e0;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	color: #666;
	line-height: 1;
}

.pkt-trip-tab--active .pkt-trip-tab__count {
	background: #0073aa;
	color: #fff;
}

.pkt-trip-tab--add {
	border: 2px dashed #ccc;
	background: transparent;
	color: #999;
	font-size: 13px;
	font-weight: 500;
	padding: 10px 14px;
	min-width: 44px;
	justify-content: center;
}

.pkt-trip-tab--add:hover {
	border-color: #0073aa;
	color: #0073aa;
	background: rgba(0, 115, 170, 0.04);
}

/* ── Trip Name ────────────────────────────────────────────── */

.pkt-trip-name {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.pkt-trip-name__input {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border: 1px dashed #ccc;
	border-radius: 6px;
	background: #fafafa;
	font-size: 26px;
	font-weight: 700;
	font-family: inherit;
	color: #333;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.pkt-trip-name__input::placeholder {
	color: #999;
	font-weight: 400;
}

.pkt-trip-name__input:hover {
	border-color: #aaa;
	background: #f5f5f5;
}

.pkt-trip-name__input:focus {
	border-style: solid;
	border-color: #0073aa;
	background: #fff;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.12);
}

.pkt-trip-name__display {
	font-size: 26px;
	font-weight: 700;
	color: #333;
	margin: 0 0 12px;
	line-height: 1.3;
}

.pkt-trip-name__save {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	color: #888;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pkt-trip-name__save:hover {
	color: #27ae60;
	border-color: #27ae60;
	background: rgba(39, 174, 96, 0.06);
}

.pkt-trip-name__save--saved {
	color: #27ae60;
	border-color: #27ae60;
	background: rgba(39, 174, 96, 0.1);
}

/* ── Beta Banner ──────────────────────────────────────────── */

.pkt-beta-banner {
	margin-bottom: 10px;
	padding: 6px 12px;
	background: #fefce8;
	border: 1px solid #e8dfa0;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.3;
	color: #665d20;
}

.pkt-beta-banner strong {
	color: #8a7e30;
}

/* ── Toolbar ──────────────────────────────────────────────── */

.pkt-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e0e0e0;
}

/* ── Search Bar ───────────────────────────────────────────── */

.pkt-search {
	position: relative;
	margin-bottom: 20px;
}

.pkt-search__input-wrap {
	display: flex;
	align-items: stretch;
}

.pkt-search__filter {
	flex-shrink: 0;
	padding: 0 24px 0 10px;
	border: 1px solid #bbb;
	border-right: none;
	border-radius: 8px 0 0 8px;
	background: #f8f9fa;
	color: #555;
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
}

.pkt-search__filter:focus {
	background-color: #eef3f7;
	border-color: #0073aa;
}

.pkt-search__input-inner {
	position: relative;
	flex: 1;
	min-width: 0;
}

.pkt-search__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	pointer-events: none;
	flex-shrink: 0;
}

.pkt-search__input {
	display: block;
	width: 100%;
	padding: 12px 40px 12px 42px;
	border: 1px solid #bbb;
	border-radius: 0 8px 8px 0;
	background: #fff;
	font-size: 17px;
	font-family: inherit;
	color: #333;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pkt-search__input::placeholder {
	color: #666;
}

.pkt-search__input:focus {
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.12);
}

.pkt-search__clear {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #999;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
}

.pkt-search__clear:hover {
	color: #333;
	background: #f0f0f0;
}

/* ── Search Results Panel ────────────────────────────────── */

.pkt-search__results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1000;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	max-height: 400px;
	overflow-y: auto;
}

.pkt-search__loading,
.pkt-search__empty {
	padding: 20px;
	text-align: center;
	color: #888;
	font-size: 14px;
}

/* ── Search Result Card ──────────────────────────────────── */

.pkt-search-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.1s ease;
}

.pkt-search-result:last-child {
	border-bottom: none;
}

.pkt-search-result:hover {
	background: #f8f9fa;
}

.pkt-search-result__img {
	flex-shrink: 0;
	width: 60px;
	height: 44px;
	border-radius: 4px;
	overflow: hidden;
}

.pkt-search-result__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pkt-search-result__img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	color: #ccc;
}

.pkt-search-result__content {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.pkt-search-result__title {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pkt-search-result__location {
	display: block;
	font-size: 11px;
	color: #e67e22;
	margin-top: 1px;
}

.pkt-search-result__location a {
	color: #e67e22;
	text-decoration: underline;
}

.pkt-search-result__location a:hover {
	color: #d35400;
}

.pkt-search-result__excerpt {
	font-size: 12px;
	color: #888;
	line-height: 1.3;
	margin-top: 2px;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pkt-search-result__action {
	flex-shrink: 0;
}

.pkt-search-result__add--saved {
	background: #f0f8f0 !important;
	border-color: #c3e6c3 !important;
	color: #27ae60 !important;
	cursor: default;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* ── Buttons ──────────────────────────────────────────────── */

.pkt-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.pkt-btn:hover {
	background: #f5f5f5;
	border-color: #999;
}

.pkt-btn--primary {
	background: #0073aa;
	border-color: #0073aa;
	color: #fff;
}

.pkt-btn--primary:hover {
	background: #005b8a;
	border-color: #005b8a;
}

.pkt-btn--danger {
	color: #d63638;
	border-color: #d63638;
}

.pkt-btn--danger:hover {
	background: #d63638;
	color: #fff;
}

.pkt-btn--small {
	padding: 4px 10px;
	font-size: 12px;
}

/* ── Date Row ─────────────────────────────────────────────── */

.pkt-date-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	padding: 12px 16px;
	background: #eef1f4;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 16px;
	color: #333;
}

.pkt-date-row__label {
	font-weight: 600;
	font-size: 16px;
	color: #333;
	white-space: nowrap;
}

.pkt-date-row__input {
	padding: 6px 10px;
	border: 1px solid #999;
	border-radius: 4px;
	font-family: inherit;
	font-size: 16px;
	color: #333;
}

.pkt-date-row__input:focus {
	outline: none;
	border-color: #0073aa;
}

/* ── Day Sections ─────────────────────────────────────────── */

.pkt-day {
	margin-bottom: 24px;
}

.pkt-day__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.pkt-day__header h3 {
	font-size: 26px;
	font-weight: 700;
	margin: 0;
	color: #333;
}

.pkt-day__date {
	font-weight: 400;
	color: #888;
	margin-left: 2px;
}

.pkt-day--unassigned .pkt-day__header h3 {
	color: #888;
	font-weight: 400;
	font-size: 15px;
}

.pkt-day__items {
	min-height: 60px;
	padding: 8px;
	border: 2px dashed transparent;
	border-radius: 10px;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.pkt-day__items--over {
	border-color: #0073aa;
	background: rgba(0, 115, 170, 0.04);
}

.pkt-day__empty {
	text-align: center;
	padding: 20px;
	color: #767676;
	font-size: 14px;
	font-style: italic;
}

/* ── Item Card ────────────────────────────────────────────── */

.pkt-item {
	display: flex;
	gap: 16px;
	padding: 14px;
	margin-bottom: 8px;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 10px;
	cursor: grab;
	transition: box-shadow 0.2s ease, opacity 0.2s ease;
	position: relative;
}

.pkt-item:hover {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pkt-item:active {
	cursor: grabbing;
}

.pkt-item--dragging {
	opacity: 0.4;
}

/* ── Item Image ───────────────────────────────────────────── */

.pkt-item__image {
	flex-shrink: 0;
	width: 180px;
	height: 130px;
	border-radius: 6px;
	overflow: hidden;
}

.pkt-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pkt-item__image a {
	display: block;
	width: 100%;
	height: 100%;
}

/* ── Item Content ─────────────────────────────────────────── */

.pkt-item__content {
	flex: 1;
	min-width: 0;
}

.pkt-item__title {
	font-size: 19px;
	font-weight: 600;
	margin: 0 0 4px;
	line-height: 1.3;
}

.pkt-item__title a {
	color: #333;
	text-decoration: none;
}

.pkt-item__title a:hover {
	color: #0073aa;
}

.pkt-item__location {
	display: block;
	font-size: 14px;
	color: #2980b9;
	margin-top: 6px;
}

.pkt-item__location a {
	color: #2980b9;
	text-decoration: underline;
}

.pkt-item__location a:hover {
	color: #1a5276;
}

.pkt-item__desc {
	font-size: 15px;
	color: #666;
	margin: 4px 0 0;
	line-height: 1.4;
	min-height: 2.8em; /* 2 lines (2 × 1.4em) for consistent card height */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Item Actions ─────────────────────────────────────────── */

.pkt-item__actions {
	display: flex;
	align-items: flex-start;
	flex-shrink: 0;
}

.pkt-item__remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #767676;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.pkt-item__remove:hover {
	color: #d63638;
	background: rgba(214, 54, 56, 0.08);
}

/* ── Note Card ───────────────────────────────────────────── */

.pkt-note {
	background: #fefce8;
	border-color: #e8dfa0;
	padding: 4px 10px;
	gap: 6px;
}

.pkt-note:hover {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.pkt-note__icon {
	flex-shrink: 0;
	color: #b8a940;
	padding-top: 2px;
}

.pkt-note__content {
	flex: 1;
	min-width: 0;
}

.pkt-note__text {
	display: block;
	width: 100%;
	padding: 1px 0;
	border: none;
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.3;
	color: #555;
	resize: none;
	overflow: hidden;
	outline: none;
	box-sizing: border-box;
}

.pkt-note__text:focus {
	color: #333;
}

.pkt-note__text-readonly {
	font-size: 14px;
	line-height: 1.4;
	color: #555;
	margin: 0;
	padding: 2px 0;
}

.pkt-btn--note {
	color: #8a7e30;
	border-color: #d4c960;
	background: #fefce8;
}

.pkt-btn--note:hover {
	background: #fdf9c4;
	border-color: #b8a940;
}

.pkt-day__header-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
	align-items: center;
}

.pkt-btn--move {
	padding: 4px 6px;
	line-height: 1;
	color: #888;
	border-color: #ddd;
}

.pkt-btn--move:hover {
	color: #333;
	border-color: #999;
	background: #f0f0f0;
}

/* ── Move Button ─────────────────────────────────────────── */

.pkt-item__move {
	position: absolute;
	bottom: 8px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: #aaa;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
	font-family: inherit;
}

.pkt-item__move:hover {
	color: #0073aa;
	background: rgba(0, 115, 170, 0.06);
}

.pkt-item__move-label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2px;
}

/* ── Move Menu Popup ──────────────────────────────────────── */

.pkt-move-menu {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
	min-width: 160px;
	max-width: 240px;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pkt-move-menu__header {
	padding: 8px 12px 6px;
	font-size: 11px;
	font-weight: 600;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid #f0f0f0;
}

.pkt-move-menu__option {
	display: block;
	width: 100%;
	padding: 9px 12px;
	border: none;
	background: none;
	font-size: 13px;
	font-family: inherit;
	color: #333;
	text-align: left;
	cursor: pointer;
	transition: background 0.1s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pkt-move-menu__option:hover {
	background: #f0f6fa;
	color: #0073aa;
}

/* ── Touch Clone ──────────────────────────────────────────── */

.pkt-touch-clone {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	border-radius: 10px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 600px) {
	#pkt-my-trip {
		padding: 12px 0;
	}

	.pkt-beta-banner {
		padding: 4px 10px;
		font-size: 11px;
		margin-bottom: 8px;
	}

	.pkt-tabs-row {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.pkt-tabs-row__help--hero {
		font-size: 12px;
		padding: 5px 12px;
	}

	.pkt-trip-tabs {
		gap: 2px;
	}

	.pkt-trip-tab {
		padding: 8px 12px;
		font-size: 13px;
	}

	.pkt-trip-tab__name {
		max-width: 80px;
	}

	.pkt-trip-tab--add {
		padding: 8px 10px;
		min-width: 40px;
		font-size: 12px;
	}

	.pkt-trip-name__input {
		font-size: 24px;
		padding: 10px 12px;
	}

	.pkt-trip-name__save {
		width: 32px;
		height: 32px;
	}

	.pkt-trip-name__display {
		font-size: 24px;
	}

	.pkt-item {
		flex-direction: column;
		gap: 10px;
		padding: 12px;
	}

	.pkt-item__image {
		width: 100%;
		height: 160px;
	}

	.pkt-item__actions {
		position: absolute;
		top: 8px;
		right: 8px;
	}

	.pkt-item__remove {
		background: rgba(255, 255, 255, 0.9);
	}

	.pkt-day__header h3 {
		font-size: 22px;
	}

	.pkt-btn {
		padding: 8px 12px;
		font-size: 13px;
	}

	.pkt-search__filter {
		font-size: 11px;
		padding: 0 20px 0 6px;
	}

	.pkt-search__results {
		max-height: 300px;
	}

	.pkt-search-result__excerpt {
		display: none;
	}

	.pkt-search-result__img {
		width: 48px;
		height: 36px;
	}
}

@media (max-width: 320px) {
	.pkt-item__image {
		height: 120px;
	}

	.pkt-item__title {
		font-size: 14px;
	}

	.pkt-item__desc {
		font-size: 12px;
	}

}

/* ── Mobile Drag Hint ─────────────────────────────────────── */

.pkt-drag-hint {
	text-align: center;
	font-size: 13px;
	color: #767676;
	padding: 6px 0 2px;
	display: none;
}

.pkt-drag-hint svg {
	vertical-align: middle;
	margin-right: 4px;
}

@media (max-width: 600px) {
	.pkt-drag-hint {
		display: block;
	}
}

/* ── Print ────────────────────────────────────────────────── */

@media print {
	.pkt-trip-tabs,
	.pkt-search,
	.pkt-toolbar,
	.pkt-item__actions,
	.pkt-item__move,
	.pkt-move-menu,
	.pkt-day__empty,
	.pkt-trip-name__save,
	.pkt-shared-notice__save {
		display: none !important;
	}

	.pkt-item {
		cursor: default;
		break-inside: avoid;
		box-shadow: none;
		border: 1px solid #ccc;
	}

	.pkt-day {
		break-inside: avoid;
	}
}

/* ── Save Button ──────────────────────────────────────────── */

.pkt-btn--save {
	background: #27ae60;
	border-color: #27ae60;
	color: #fff;
}

.pkt-btn--save:hover {
	background: #219a52;
	border-color: #219a52;
	color: #fff;
}

/* ── Share Button ─────────────────────────────────────────── */

.pkt-btn--share {
	background: #3498db;
	border-color: #3498db;
	color: #fff;
}

.pkt-btn--share:hover {
	background: #2980b9;
	border-color: #2980b9;
	color: #fff;
}

/* ── Export Button ────────────────────────────────────────── */

.pkt-btn--export {
	background: #8e44ad;
	border-color: #8e44ad;
	color: #fff;
}

.pkt-btn--export:hover {
	background: #7d3c98;
	border-color: #7d3c98;
	color: #fff;
}

/* ── Export Modal ─────────────────────────────────────────── */

.pkt-export-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.pkt-export-summary {
	font-size: 13px;
	color: #888;
	margin: 12px 0 0;
}

/* ── Share Toggle ─────────────────────────────────────────── */

.pkt-share-toggle {
	display: flex;
	gap: 0;
	margin-bottom: 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
	overflow: hidden;
}

.pkt-share-toggle__btn {
	flex: 1;
	padding: 8px 16px;
	border: none;
	background: #f5f5f5;
	color: #666;
	font-size: 14px;
	font-family: inherit;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.pkt-share-toggle__btn:first-child {
	border-right: 1px solid #ccc;
}

.pkt-share-toggle__btn:hover {
	background: #e8e8e8;
}

.pkt-share-toggle__btn--active {
	background: #0073aa;
	color: #fff;
}

.pkt-share-toggle__btn--active:hover {
	background: #005b8a;
}

/* ── Share Link ──────────────────────────────────────────── */

.pkt-share-link {
	display: flex;
	gap: 8px;
}

.pkt-share-link__input {
	flex: 1;
	font-size: 13px !important;
	color: #555 !important;
	background: #f5f5f5 !important;
}

.pkt-share-link__copy {
	flex-shrink: 0;
	min-width: 70px;
}

/* ── Share Stats ─────────────────────────────────────────── */

.pkt-share-stats {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 12px 0 0;
	font-size: 13px;
	color: #888;
	line-height: 1;
}

.pkt-share-stats svg {
	flex-shrink: 0;
	color: #aaa;
}

/* ── Stop Sharing Button ─────────────────────────────────── */

.pkt-share-stop {
	margin-top: 14px;
}

/* ── Modal Overlay ────────────────────────────────────────── */

.pkt-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	padding: 20px;
}

.pkt-modal {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
	width: 100%;
	max-width: 420px;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pkt-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	border-bottom: 1px solid #eee;
}

.pkt-modal__header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.pkt-modal__close {
	background: none;
	border: none;
	font-size: 24px;
	color: #999;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.pkt-modal__close:hover {
	color: #333;
}

.pkt-modal__body {
	padding: 20px 24px;
}

.pkt-modal__desc {
	font-size: 14px;
	color: #666;
	margin: 0 0 16px;
	line-height: 1.5;
}

.pkt-modal__input {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.pkt-modal__input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.pkt-modal__privacy {
	margin: 8px 0 0;
	font-size: 12px;
	color: #999;
	line-height: 1.5;
}

.pkt-modal__privacy a {
	color: #0073aa;
	text-decoration: none;
}

.pkt-modal__privacy a:hover {
	text-decoration: underline;
}

.pkt-modal__checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13px;
	color: #555;
	cursor: pointer;
}

.pkt-modal__checkbox input {
	margin: 0;
	cursor: pointer;
}

.pkt-modal__error {
	display: none;
	margin: 12px 0 0;
	padding: 8px 12px;
	background: #fef0f0;
	border: 1px solid #f5c6c6;
	border-radius: 6px;
	color: #c0392b;
	font-size: 13px;
}

.pkt-modal__footer {
	display: flex;
	gap: 10px;
	padding: 16px 24px;
	border-top: 1px solid #eee;
}

.pkt-modal__footer .pkt-btn {
	flex: 1;
	justify-content: center;
	padding: 10px 16px;
}

.pkt-modal__footer .pkt-modal__cancel {
	flex: 0;
}

.pkt-modal__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Modal Success State ─────────────────────────────────── */

.pkt-modal__success {
	text-align: center;
	padding: 10px 0;
}

.pkt-modal__success svg {
	margin-bottom: 12px;
}

.pkt-modal__success p {
	font-size: 15px;
	color: #333;
	margin: 0 0 12px;
}

.pkt-modal__link-hint {
	font-size: 12px !important;
	color: #888 !important;
	word-break: break-all;
}

.pkt-modal__link-hint a {
	color: #0073aa;
	text-decoration: none;
}

.pkt-modal__link-hint a:hover {
	text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 480px) {
	.pkt-modal {
		max-width: none;
	}

	.pkt-modal__header,
	.pkt-modal__body,
	.pkt-modal__footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.pkt-modal__footer {
		flex-direction: column;
	}

	.pkt-modal__footer .pkt-modal__cancel {
		flex: 1;
	}
}

/* ── Reduced Motion ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.pkt-item,
	.pkt-btn,
	.pkt-modal__input,
	.pkt-search__input,
	.pkt-search-result {
		transition: none;
	}
}

/* ── Print ── (additional) ───────────────────────────────── */

/* ── Focus Visible (A11Y) ─────────────────────────────── */

.pkt-btn:focus-visible,
.pkt-trip-tab:focus-visible,
.pkt-item__remove:focus-visible,
.pkt-item__move:focus-visible,
.pkt-search__filter:focus-visible,
.pkt-search__input:focus-visible,
.pkt-search__clear:focus-visible,
.pkt-date-row__input:focus-visible,
.pkt-trip-name__input:focus-visible,
.pkt-note__text:focus-visible,
.pkt-share-toggle__btn:focus-visible,
.pkt-modal__input:focus-visible,
.pkt-modal__close:focus-visible {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* ── Scoped Box Sizing (LOW-4) ────────────────────────── */

#pkt-my-trip *,
#pkt-my-trip *::before,
#pkt-my-trip *::after,
.pkt-modal-overlay *,
.pkt-modal-overlay *::before,
.pkt-modal-overlay *::after {
	box-sizing: border-box;
}

@media print {
	.pkt-modal-overlay {
		display: none !important;
	}
}
