/* v436 - Travel Planner. Följer appens befintliga språk: cremevit botten,
   mörkgrönt (#074653) som accent, rundade kort och samma typografi som
   resten av v2-undersidorna. */

.tp-page{padding:0 14px 28px;display:flex;flex-direction:column;gap:14px;max-width:1000px;margin:0 auto;width:100%;box-sizing:border-box}

.tp-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 0;-webkit-overflow-scrolling:touch}
.tp-tabs button{flex:0 0 auto;border:1px solid #dce2d8;background:#fafbf7;color:#123e49;border-radius:999px;padding:9px 18px;font:600 13px/1 system-ui,sans-serif;cursor:pointer;min-height:40px}
.tp-tabs button.active{background:#074653;border-color:#074653;color:#fff;-webkit-text-fill-color:#fff}

.tp-error{background:#fdecec;border:1px solid #f3c2c2;color:#8d2020;border-radius:12px;padding:10px 14px;font-size:13px;margin:0}
.tp-status{min-height:16px;font-size:12px;color:#5c7060}

.tp-bank{background:#fafbf7;border:1px solid #e0e5dc;border-radius:18px;padding:14px}
.tp-bank>header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.tp-bank h2{font:500 17px/1.2 'Bodoni Moda',Georgia,serif;color:#123e49;margin:0}
.tp-bank small,.tp-pool-head small{color:#63746a;font-size:11px}
.tp-bank-body,.tp-pool-body{display:flex;flex-wrap:wrap;gap:8px;min-height:44px}
.tp-bank-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.tp-candidates{margin-top:14px;padding-top:14px;border-top:1px solid #e6ece2}
.tp-candidates h3{margin:0;font:700 13px/1.2 system-ui,sans-serif;color:#123e49}
.tp-candidates h3 b{margin-left:6px;font-weight:600;color:#6b7d70}
.tp-candidates>p{margin:4px 0 10px;font:500 11.5px/1.45 system-ui,sans-serif;color:#6b7d70}
.tp-candidate{display:flex;align-items:center;gap:10px;padding:7px 0;border-top:1px solid #eef2ea}
.tp-candidate:first-of-type{border-top:0}
.tp-candidate>span{flex:1;min-width:0;font:600 13px/1.3 system-ui,sans-serif;color:#123e49;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-mini{flex:0 0 auto;padding:7px 12px!important;min-height:34px!important;font-size:11.5px!important}

/* Personbricka. Markerad person får tydlig grön ram - det är den som
   "bärs" tills man trycker på en pool. */
.tp-chip{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #dce2d8;border-radius:999px;padding:6px 12px 6px 6px;font:600 13px/1 system-ui,sans-serif;color:#123e49;cursor:pointer;min-height:40px;max-width:100%}
.tp-chip-avatar{width:26px;height:26px;border-radius:50%;background:#e5ebdf;color:#123e49;display:grid;place-items:center;font-size:11px;font-weight:700;flex:0 0 auto}
.tp-chip-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-chip-selected{border-color:#074653;box-shadow:0 0 0 2px #07465333;background:#f1f5ee}
.tp-chip-placeholder{border-style:dashed;color:#4a5f52}
.tp-chip-placeholder .tp-chip-avatar{background:#eceee7}
.tp-chip-x{color:#8a9a8f;font-size:15px;line-height:1;margin-left:2px}

.tp-pools{display:grid;gap:12px}
@media(min-width:700px){.tp-pools{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}}

.tp-pool{background:#fff;border:1px solid #dde3d9;border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:10px}
.tp-pool-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.tp-pool-head h3{font:500 16px/1.25 'Bodoni Moda',Georgia,serif;color:#123e49;margin:0}
.tp-pool-actions{display:flex;gap:4px;flex:0 0 auto}
.tp-pool-actions button{background:transparent;border:0;font-size:15px;line-height:1;padding:6px;cursor:pointer;color:#63746a;min-height:32px}
.tp-pool-empty{color:#8a9a8f;font-size:13px;margin:0;align-self:center}

.tp-pool-drop{border:1px dashed #c3ccbd;background:#f7f9f4;color:#4a5f52;border-radius:12px;padding:10px;font:600 12px/1 system-ui,sans-serif;cursor:pointer;min-height:42px}
.tp-pool-drop:disabled{opacity:.5;cursor:default}
.tp-pool-drop:not(:disabled){border-color:#074653;color:#074653;background:#eef3ea}

.tp-primary{background:#074653;border:1px solid #074653;color:#fff;-webkit-text-fill-color:#fff;border-radius:12px;padding:13px 18px;font:650 13px/1 system-ui,sans-serif;cursor:pointer;min-height:46px}
.tp-secondary{background:#fff;border:1px solid #dce2d8;color:#123e49;border-radius:999px;padding:10px 16px;font:600 12px/1 system-ui,sans-serif;cursor:pointer;min-height:40px}
.tp-danger{background:#fff;border:1px solid #e6c4c4;color:#8d2020;border-radius:999px;padding:10px 16px;font:600 12px/1 system-ui,sans-serif;cursor:pointer;min-height:40px}
.tp-add{align-self:flex-start}

.tp-empty{text-align:center;padding:40px 20px;color:#4a5f52}
.tp-empty h2{font:500 22px/1.2 'Bodoni Moda',Georgia,serif;color:#123e49;margin:0 0 8px}

/* Översiktsfliken (v438). Korten är klickbara genvägar till respektive flik. */
.tp-stat{background:#fff;border:1px solid #dde3d9;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:10px}
.tp-stat-open{background:transparent;border:0;padding:0;text-align:left;cursor:pointer;display:block;width:100%}
.tp-stat h3{font:500 16px/1.2 'Bodoni Moda',Georgia,serif;color:#123e49;margin:0 0 4px}
.tp-stat-big{margin:0;font-size:14px;color:#4a5f52}
.tp-stat-big strong{font:500 30px/1 'Bodoni Moda',Georgia,serif;color:#074653;margin-right:6px}
.tp-stat-rsvp .tp-stat-big strong{color:#074653}

.tp-bar{height:8px;border-radius:999px;background:#e8ece5;overflow:hidden}
.tp-bar span{display:block;height:100%;background:#074653;border-radius:999px;transition:width .2s ease}

.tp-stat-missing{margin:0;font-size:12px;line-height:1.5;color:#7a5a23;background:#fdf6e7;border:1px solid #f0e2c2;border-radius:10px;padding:8px 10px}
.tp-stat-missing b{color:#6b4e1d}
.tp-stat-done{margin:0;font-size:12px;color:#074653}
.tp-stat-foot{margin:0;font-size:12px;color:#63746a;text-align:center}
/* v448: dit/hem-väljaren på Flyg-fliken, och sammanfattningen av båda vägarna. */
.tp-dirs{margin:-4px 0 4px}
.tp-dirs button{padding:8px 14px;font-size:12px;min-height:36px}
.tp-dirs button b{font-weight:700;opacity:.75;margin-left:4px}
.tp-stat-both{background:#fafbf7;border:1px solid #e0e5dc;border-radius:12px;padding:10px 12px;text-align:left;color:#123e49;line-height:1.5}
.tp-stat-both b{color:#074653}

.tp-stat-pools{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.tp-stat-pools li{display:flex;justify-content:space-between;gap:10px;padding:7px 10px;background:#fafbf7;border-radius:8px;font-size:13px;color:#123e49}
.tp-stat-pools b{font-weight:700}
/* v511: i Boende listas rummets deltagare under rumsnamnet. Raden blir tva
   rader hog, sa antalet toppjusteras i stallet for att sitta mitt emellan. */
.tp-stat-pools li>span{min-width:0;display:flex;flex-direction:column;gap:2px}
.tp-stat-pools li small{font-size:11.5px;font-weight:400;line-height:1.35;color:#5b7568;overflow-wrap:anywhere}
.tp-stat-pools-named li{align-items:flex-start}
.tp-stat-pools-named b{padding-top:1px}

.tp-detail-dialog{width:min(720px,calc(100% - 24px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid #dce3d7;border-radius:20px;background:#fafbf7;color:#123e49}.tp-detail-dialog::backdrop{background:#022833aa}.tp-detail-dialog header,.tp-detail-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.tp-detail-dialog h2{font:26px Georgia,serif;margin:0}.tp-detail-dialog p{font-size:13px;line-height:1.5}.tp-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tp-detail-dialog label{display:flex;flex-direction:column;gap:5px;margin:8px 0;font-size:12px}.tp-detail-dialog input,.tp-detail-dialog select,.tp-detail-dialog textarea{width:100%;min-width:0;padding:11px;background:white;color:#123e49;border:1px solid #dce3d7;border-radius:9px;font:16px Arial}.tp-detail-dialog footer{margin-top:20px}.tp-detail-dialog output{color:#a33122}.tp-detail-summary{padding:0 14px 12px}.tp-detail-summary p{font-size:12px;color:#63746a}.tp-tabs{flex-wrap:wrap}@media(max-width:500px){.tp-detail-grid{grid-template-columns:1fr}.tp-detail-dialog{padding:16px}}

.tp-hotel{background:#fff;border:1px solid #dfe5dc;border-radius:18px;padding:18px;margin:16px 0}.tp-hotel header{display:flex;justify-content:space-between;gap:12px;align-items:center}.tp-hotel h2,.tp-hotel h3{font-weight:700;margin:8px 0}.tp-hotel p{font-size:14px;margin:12px 0;color:#547065}.tp-hotel label{display:grid;gap:6px;margin:12px 0}.tp-hotel select{padding:12px;border:1px solid #dfe5dc;border-radius:10px;max-width:100%;background:#fff;color:#074653}


.tp-stat-open{position:relative;min-height:66px;padding-right:80px}.tp-status-ring{position:absolute;right:0;top:0;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:conic-gradient(#074653 var(--progress),#fff 0);box-shadow:0 0 0 1px #dce5dd}.tp-status-ring>span{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff;color:#074653;font:600 12px Arial,sans-serif;box-shadow:0 0 0 1px #e4ebe4}

/* Planner wizard: a single owned navigation and compact booking cards. */
.tp-page,.tp-detail-dialog{color:#123e49;font-family:Arial,sans-serif;box-sizing:border-box}
.tp-page *,.tp-detail-dialog *{box-sizing:border-box}
.tp-page{max-width:760px;padding:0 16px 28px;gap:16px}
.tp-page .tp-main-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;flex-wrap:nowrap;position:sticky;top:0;z-index:5;background:#f8f7f3;margin:0 -16px;padding:8px 8px;border-bottom:1px solid #dbe2e0}
.tp-page .tp-main-tabs button{border:0;border-radius:0;padding:8px 2px;min-width:0;display:grid;justify-items:center;gap:6px;background:transparent;color:#57727a;font-size:11px;border-bottom:2px solid transparent}
.tp-page .tp-main-tabs button.active{background:transparent;color:#074653;-webkit-text-fill-color:#074653;border-color:#074653}
.tp-main-tabs svg,.tp-main-tabs img{width:20px;height:20px;object-fit:contain}
.tp-page .tp-status:empty{display:none}
.tp-readiness{background:#fff;border:1px solid #dbe2e0;border-radius:22px;overflow:hidden}
.tp-ready-top{display:flex;align-items:center;gap:22px;padding:24px;background:linear-gradient(135deg,#edf2f1,#fafbf8)}
.tp-ready-top h2{font:32px Georgia,serif;margin:0 0 6px}.tp-ready-top p{margin:0 0 8px;font-size:14px}.tp-ready-top small{font-size:11px;color:#57727a}
.tp-donut{width:94px;height:94px;flex:none;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#074653 var(--progress),#dce6e6 0)}
.tp-donut span{display:grid;place-items:center;width:72px;height:72px;background:#fff;border-radius:50%;font-weight:700;font-size:21px}
.tp-checklist{padding:8px 16px}.tp-checklist button{width:100%;display:flex;align-items:center;gap:12px;padding:17px 0;background:none;border:0;border-bottom:1px solid #e5e9e6;text-align:left;color:#123e49;font-size:14px;cursor:pointer}.tp-checklist button:last-child{border:0}.tp-checklist button>span:first-child{flex:1}.tp-checklist b{font-weight:500;font-size:13px}
.tp-warning{display:grid;gap:6px;text-align:left;padding:18px;background:#fff5e5;border:1px solid #edce97;border-radius:16px;color:#66431b;cursor:pointer}.tp-warning span{font-size:12px}
.tp-page .tp-dirs,.tp-room-filters{display:flex;flex-wrap:nowrap;gap:4px;background:#edf0eb;border-radius:999px;padding:4px;margin:0}.tp-page .tp-dirs button,.tp-room-filters button{flex:1;min-width:0;padding:9px 3px;border:0;background:transparent;font-size:12px}.tp-page .tp-dirs button.active,.tp-room-filters button.active{background:#074653;color:white}
.tp-bank{background:transparent;border:1px dashed #cad8d8;border-radius:15px;padding:12px}.tp-bank>header{align-items:center}.tp-bank h2{font:600 13px Arial,sans-serif}.tp-bank header small{display:none}.tp-chip{font-size:11px;gap:6px;min-height:42px;padding:5px 9px 5px 5px;background:#f7f9f5;touch-action:pan-y}.tp-chip-avatar{width:32px;height:32px;background:#dce8e7;color:#074653;overflow:hidden}.tp-chip-avatar img{width:100%;height:100%;object-fit:cover}.tp-chip-x{display:none}
.tp-page .tp-pools{grid-template-columns:1fr}.tp-page .tp-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-pool{min-width:0;box-shadow:0 3px 12px #123e4905;gap:14px}.tp-pool h3{font:600 15px Arial,sans-serif;overflow-wrap:anywhere}.tp-capacity{display:inline-block;background:#e7f0ef;color:#074653!important;padding:5px 8px;border-radius:7px;margin-top:6px}.tp-detail-summary{padding:0}.tp-detail-summary p{margin:0 0 8px;line-height:1.6}.tp-pool-actions{flex-wrap:wrap;max-width:75px}.tp-pool-actions button{min-height:36px}.tp-page .tp-add{width:100%;background:transparent;color:#074653;-webkit-text-fill-color:#074653;border:1px dashed #aebfbe}.tp-next{margin-top:6px}.tp-candidates summary{font-size:12px;cursor:pointer}.tp-stat-foot{font-size:11px;line-height:1.6;text-align:left}.tp-section-intro h2{font:26px Georgia,serif}.tp-section-intro p{font-size:14px;line-height:1.6}
.tp-detail-dialog{max-width:580px;background:#f8f7f3;color:#123e49}.tp-detail-dialog::backdrop{background:#022833aa}.tp-detail-dialog h2{font:26px Georgia,serif}.tp-detail-dialog button{cursor:pointer}.tp-person-list{margin:20px 0}.tp-person-list>button{display:flex;align-items:center;gap:10px;width:100%;padding:15px 8px;border:0;border-bottom:1px solid #dbe2e0;background:transparent;text-align:left;color:#123e49;min-height:52px;font:13px Arial,sans-serif}.tp-person-list>button>span:nth-child(2){flex:1}.tp-person-list small{display:block;font-size:11px;line-height:1.5;color:#946039;margin-top:6px}.tp-person-list button:disabled{opacity:.5}.tp-action-list{display:grid;gap:12px;margin-top:24px}.tp-person-sheet>label{margin:20px 0}.tp-hotel{margin:0;padding:14px}.tp-hotel p{font-size:12px}.tp-hotel h2{font:20px Georgia,serif}
[data-travel-page="travel_planner"] .v3t-detail-content{padding:0!important}[data-travel-page="travel_planner"] .v3t-sheet{overflow:visible!important}
@media(max-width:420px){.tp-room-grid .tp-pool{padding:12px}.tp-room-grid .tp-pool-head{flex-wrap:wrap}.tp-room-grid .tp-pool-actions{max-width:none}.tp-room-grid .tp-detail-summary button{font-size:11px;padding:8px}.tp-ready-top{padding:20px 16px;gap:16px}}
@media(max-width:600px){.tp-detail-dialog{margin:auto 0 0;width:100%;max-width:none;max-height:90dvh;border-radius:24px 24px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom))}.tp-detail-dialog footer button{flex:1}.tp-detail-dialog header{position:sticky;top:-22px;background:#f8f7f3;padding:8px 0;z-index:1}}

html body #content-view .tp-page .tp-primary,html body .tp-detail-dialog .tp-primary{background:#074653!important;color:white!important;-webkit-text-fill-color:white!important}
html body #content-view .tp-page .tp-add{background:transparent!important;color:#074653!important;-webkit-text-fill-color:#074653!important}
html body #content-view .tp-page .tp-ready-top h2{font:32px Georgia,serif!important;color:#123e49!important}
html body #content-view .tp-page .tp-bank h2{font:600 13px Arial,sans-serif!important;color:#123e49!important}
.tp-page button{font-family:Arial,sans-serif}.tp-hotel-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tp-hotel-facts>span{background:#f5f7f4;border-radius:10px;padding:12px;font-size:12px}.tp-hotel-facts b{display:block;font-size:22px;margin-bottom:3px}.tp-hotel>header>div{min-width:0}.tp-pool-actions button{font:700 18px Arial,sans-serif;min-width:38px;color:#074653}
html body #content-view [data-travel-page="travel_planner"] .tp-page .tp-main-tabs :is(svg,img){height:20px;width:20px}
.tp-drag-ghost{position:fixed;z-index:2147483646;pointer-events:none;opacity:.9;box-shadow:0 8px 25px #123e4944}.tp-drag-target{outline:3px solid #074653;outline-offset:3px}

html body #content-view .tp-shell-overview>.v3t-header{background:linear-gradient(#06333ec9,#06333e35),url('/assets/v2/your-trip/travel-planner-hero.webp') center 55%/cover;padding-bottom:90px;align-items:flex-start}
html body #content-view [data-travel-page="travel_planner"] .tp-page{background:#f8f7f3!important}
html body #content-view .tp-page .tp-main-tabs{margin-bottom:2px}.tp-chip{touch-action:none}

.tp-course-search{display:grid;gap:12px}.tp-course-search>label{font-size:14px;font-weight:600}.tp-course-search>input{width:100%;padding:14px;border:1px solid #ccdada;border-radius:12px;background:#fff;color:#123e49;font-size:16px}.tp-course-results{max-height:340px;overflow:auto;border:1px solid #dbe2e0;border-radius:14px;background:#fff}.tp-course-results>button{display:flex;width:100%;justify-content:space-between;align-items:center;gap:12px;text-align:left;border:0;border-bottom:1px solid #e5ebe9;background:transparent;padding:16px;color:#123e49;min-height:58px}.tp-course-results small{display:block;font-size:12px;margin-top:5px}.tp-course-results p{padding:12px}.tp-course-selected{display:grid;gap:12px}.tp-course-selected .tp-pool p:empty{display:none}.tp-map-wizard progress{width:100%;height:8px;accent-color:#074653;border:0;border-radius:8px;overflow:hidden}.tp-map-wizard progress::-webkit-progress-value{background:#074653}.tp-map-wizard progress::-webkit-progress-bar{background:#dbe5e5}.tp-map-wizard h2{font:26px Georgia,serif}.tp-map-actions{display:flex;justify-content:space-between;gap:12px;margin:20px 0}.tp-map-wizard{min-width:0}.tp-registry-embedded .cr-top,.tp-registry-embedded .cr-tabs,.tp-registry-embedded.has-draft .cr-footer{display:none}.tp-registry-embedded .cr-registry{padding:0!important;min-width:0}.tp-registry-embedded .cr-panel{padding:12px!important;min-width:0}.tp-registry-embedded .cr-search,.tp-registry-embedded .cr-results{grid-template-columns:1fr!important}.tp-registry-embedded input{min-width:0!important;max-width:100%}.tp-registry-embedded .cr-primary,.tp-registry-embedded .cr-tabs button[aria-selected=true]{background:#074653!important;color:white!important}.tp-registry-embedded .cr-course-image{display:none}.tp-registry-embedded .cr-fields{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important}#tp-missing-course fieldset{border:1px solid #dbe2e0;border-radius:12px;margin:16px 0}#tp-missing-course fieldset label{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:44px}#tp-missing-course input[type=radio]{width:20px;flex:none}
/* Keep add-booking text white against the app's shared petrol primary style. */
html body #app#app #content-view .v3t-detail-content .tp-page .tp-add{background:#074653!important;color:#fff!important;-webkit-text-fill-color:#fff!important}

html body #app #content-view [data-travel-page="travel_planner"]>.v3t-sheet{border-radius:24px 24px 0 0}
html body #app #content-view [data-travel-page="travel_planner"] .tp-page>.tp-main-tabs{border-radius:24px 24px 0 0}
