/* Tushia Safari Portal: standalone page for guides and agents */
:root { --ink: #161616; --orange: #f19b4b; --deep: #e2812f; --soft: #fbe6d2; --sand: #f7f2ec; --line: #e7ded3; --muted: #6a6a6a; }
* { box-sizing: border-box; }
body.tsmp-body { margin: 0; font-family: "Barlow", -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--sand); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--deep); }
.tsmp-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px clamp(16px, 4vw, 40px); background: #000; color: #fff; border-bottom: 3px solid var(--orange); }
.tsmp-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.tsmp-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.tsmp-brand strong { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 20px; text-transform: uppercase; }
.tsmp-brand small { color: var(--orange); font-weight: 600; }
.tsmp-user { display: flex; align-items: center; gap: 16px; font-weight: 600; }
.tsmp-user span { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.tsmp-user small { color: #bbb; font-weight: 500; }
.tsmp-user a { color: #000; background: var(--orange); padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.tsmp-main { flex: 1; width: min(100% - 32px, 1140px); margin: 0 auto; padding: 32px 0 48px; }
.tsmp-foot { text-align: center; padding: 20px; color: var(--muted); font-size: 14px; }

.tsmp-title { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1; text-transform: uppercase; margin: 0 0 6px; }
.tsmp-lead { color: var(--muted); font-size: 18px; margin: 0 0 22px; }
.tsmp-h2 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 26px; text-transform: uppercase; margin: 26px 0 12px; }
.tsmp-card { background: #fff; border-radius: 14px; padding: 22px; }
.tsmp-card .tsmp-h2 { margin-top: 0; }
.tsmp-notice { background: #e3f3e8; color: #17532a; padding: 12px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 18px; border-left: 4px solid #1f8a4c; }
.tsmp-notice.is-error { background: #fde7df; color: #84260c; border-color: #c2410c; }

.tsmp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tsmp-kpis div { background: #fff; border-radius: 14px; padding: 18px; border-top: 3px solid var(--orange); }
.tsmp-kpis span { display: block; color: var(--muted); font-weight: 600; font-size: 14px; }
.tsmp-kpis strong { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 36px; line-height: 1.1; }

.tsmp-trips { display: grid; gap: 14px; }
.tsmp-trip { display: grid; grid-template-columns: 86px 1fr auto; gap: 18px; background: #fff; border-radius: 14px; padding: 18px; align-items: start; }
.tsmp-trip-date { background: #000; color: #fff; border-radius: 12px; text-align: center; padding: 10px 6px; }
.tsmp-trip-date strong { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 34px; line-height: 1; color: var(--orange); }
.tsmp-trip-date span { font-size: 13px; font-weight: 600; }
.tsmp-trip h3 { margin: 0; font-size: 20px; }
.tsmp-meta { color: var(--muted); margin: 2px 0 10px; font-size: 14px; }
.tsmp-trip dl { display: grid; grid-template-columns: 80px 1fr; gap: 4px 10px; margin: 0 0 8px; font-size: 15px; }
.tsmp-trip dt { color: var(--muted); font-weight: 600; }
.tsmp-trip dd { margin: 0; }
.tsmp-trip details summary, .tsmp-past summary { cursor: pointer; font-weight: 700; color: var(--deep); }
.tsmp-days { margin: 8px 0 0; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; }
.tsmp-past { margin-top: 20px; background: #fff; border-radius: 14px; padding: 14px 18px; }
.tsmp-past ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }

.tsmp-btn { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 14px "Barlow", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tsmp-btn:hover { border-color: var(--orange); }
.tsmp-btn-primary { background: var(--orange); border-color: var(--orange); color: #000; padding: 11px 20px; font-size: 15px; }

.tsmp-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.tsmp-table-wrap { background: #fff; border-radius: 14px; overflow-x: auto; }
.tsmp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tsmp-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tsmp-table td { padding: 12px 14px; border-bottom: 1px solid #f1ebe3; vertical-align: top; }
.tsmp-table small { color: var(--muted); }
.tsmp-r { text-align: right; white-space: nowrap; }
.tsmp-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef2ff; color: #3730a3; }
.tsmp-badge.is-confirmed { background: var(--soft); color: #9a4a0c; }
.tsmp-badge.is-completed { background: #e3f3e8; color: #17532a; }
.tsmp-badge.is-cancelled { background: #f3f4f6; color: #6b7280; }
.tsmp-badge.is-quoted { background: #f3e8ff; color: #6b21a8; }

.tsmp-form label, .tsmp-login label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.tsmp-form input, .tsmp-form select, .tsmp-form textarea, .tsmp-login input[type="text"], .tsmp-login input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: 16px "Barlow", sans-serif; background: #fff; }
.tsmp-form input:focus, .tsmp-form select:focus, .tsmp-form textarea:focus, .tsmp-login input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241,155,75,.25); }
.tsmp-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tsmp-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }

.tsmp-login { max-width: 440px; margin: 20px auto; background: #fff; border-radius: 16px; padding: 30px; border-top: 4px solid var(--orange); }
.tsmp-login h1 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 34px; text-transform: uppercase; margin: 0 0 6px; }
.tsmp-login > p { color: var(--muted); margin: 0 0 18px; }
.tsmp-login .login-remember label { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.tsmp-login input[type="submit"] { width: 100%; padding: 12px; border: 0; border-radius: 999px; background: var(--orange); font: 700 16px "Barlow", sans-serif; cursor: pointer; }
.tsmp-small { font-size: 14px; text-align: center; margin-top: 12px !important; }

@media (max-width: 860px) {
	.tsmp-grid { grid-template-columns: 1fr; }
	.tsmp-trip { grid-template-columns: 70px 1fr; }
	.tsmp-trip-act { grid-column: 1 / -1; }
	.tsmp-kpis { grid-template-columns: 1fr; }
	.tsmp-user span { display: none; }
}
