/* Scoped to the Plan page; the search and editorial card styles are unchanged. */
.favorites-page .wrap{width:min(1180px,calc(100% - 40px))}
.trip-plan-page{padding-top:58px;padding-bottom:110px}
.trip-plan-page .trip-plan-heading{margin-bottom:30px;max-width:850px}
.trip-plan-page h1{font-size:clamp(2.7rem,6vw,5.1rem);line-height:1.04;margin:0 0 18px;overflow-wrap:anywhere}
.trip-plan-subtitle{color:var(--muted);margin:0;max-width:600px}
.trip-plan-toolbar{display:flex;justify-content:flex-end;margin:0 0 20px}
.trip-plan-add,.trip-plan-discover a,.trip-plan-undo button{font:inherit;font-size:.9rem;font-weight:700;border:1px solid var(--forest);border-radius:999px;min-height:44px;padding:10px 18px;background:var(--forest);color:#fff;cursor:pointer;text-decoration:none}
.trip-plan-add:disabled,.trip-plan-add[aria-disabled="true"]{opacity:.65;cursor:wait}
.trip-plan-sections{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.trip-plan-group{min-width:0;background:#fff;border:1px solid var(--line);border-radius:18px;padding:0 18px 18px}
.trip-plan-summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:72px;padding:18px 2px;cursor:pointer;border-radius:10px}
.trip-plan-summary::-webkit-details-marker{display:none}
.trip-plan-summary::after{content:'⌄';font-size:1.2rem;color:var(--muted);margin-left:auto;flex:none;transition:transform .18s}
.trip-plan-group:not([open]){padding-bottom:0}
.trip-plan-group:not([open])>.trip-plan-summary::after{transform:rotate(-90deg)}
.trip-plan-summary h2{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 14px;font-family:'Fraunces',serif;font-size:1.45rem;line-height:1.25;margin:0;min-width:0;overflow-wrap:anywhere}
.trip-plan-count{font-family:'DM Sans',sans-serif;font-size:.78rem;font-weight:500;letter-spacing:0;color:var(--muted);white-space:nowrap}
.trip-plan-items{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px;min-width:0}
.trip-plan-item{min-width:0;border:1px solid #e6e9e2;border-radius:12px;background:var(--paper);padding:12px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.trip-plan-identity{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 220px}
.trip-plan-thumb{display:block;flex:0 0 62px;width:62px;height:62px;border-radius:8px;overflow:hidden;background:#e5ebe5;text-decoration:none}
.trip-plan-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.trip-plan-thumb.is-placeholder::after{content:'◇';display:grid;place-items:center;height:100%;color:#819087;font-size:1.4rem}
.trip-plan-item-copy{min-width:0}
.trip-plan-kind{display:block;font-size:.64rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#597466;margin-bottom:3px}
.trip-plan-item h3{font-size:1rem;line-height:1.3;margin:0;font-weight:700;overflow-wrap:anywhere}
.trip-plan-item h3 a{text-decoration:none}
.trip-plan-item h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.trip-plan-locality,.trip-plan-item-error{font-size:.78rem;line-height:1.4;color:var(--muted);margin:4px 0 0;overflow-wrap:anywhere}
.trip-plan-item-controls{display:flex;align-items:center;gap:6px;flex:1 1 285px;min-width:0;justify-content:flex-end;flex-wrap:wrap}
.trip-plan-move{font:inherit;font-size:.8rem;color:var(--forest);border:1px solid var(--line);border-radius:8px;background:#fff;min-height:44px;min-width:0;max-width:100%;padding:8px 26px 8px 10px;flex:1 1 140px;width:140px;cursor:pointer}
/* Same terracotta as the Restaurants call action; keep the native destination list. */
.trip-plan-move{height:44px;color:#fff;background-color:var(--restaurant-terra,#a44d36);appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;background-size:10px 6px}
.trip-plan-move option{color:var(--forest);background-color:#fff}
.trip-plan-move option:disabled{color:GrayText}
/* Paint a 32px rounded surface inside the unchanged 44px select hit area. */
.trip-plan-move{border-color:transparent;background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='32'%3E%3Crect width='100%25' height='32' rx='8' fill='%23a44d36'/%3E%3C/svg%3E");background-position:right 8px center,center;background-size:10px 6px,100% 32px;background-origin:padding-box,border-box}
@media(max-width:580px){.trip-plan-move{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='26'%3E%3Crect width='100%25' height='100%25' rx='8' ry='8' fill='%23a44d36'/%3E%3C/svg%3E");background-size:10px 6px,100% 26px}}
.trip-plan-move:open{border-color:var(--line)}
.trip-plan-move:open{appearance:auto;color:var(--forest);background:#fff}
.trip-plan-order{display:flex;gap:2px;flex:none}
.trip-plan-icon{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:0;font:inherit;font-size:1.15rem;line-height:1;color:var(--forest);border:0;border-radius:8px;background:transparent;cursor:pointer}
.trip-plan-icon:disabled{opacity:.25;cursor:default}
.trip-plan-delete-day{margin:-8px;color:var(--muted)}
.trip-plan-icon:hover:not(:disabled){background:#e8ede5}
.trip-plan-remove{font-size:1.45rem;color:#897568}
.trip-plan-drag{display:none;cursor:grab}
.trip-plan-drag:active{cursor:grabbing}
.trip-plan-group-empty{color:var(--muted);font-size:.85rem;margin:0;padding:4px 2px 6px}
.trip-plan-group-empty.has-delete-day{display:flex;align-items:center;gap:6px}
.trip-plan-empty{padding:0 0 26px;color:var(--muted);max-width:650px}
.trip-plan-empty p{margin:0 0 18px}
.trip-plan-discover{display:flex;gap:10px;flex-wrap:wrap}
.trip-plan-discover a{display:inline-flex;align-items:center;background:transparent;color:var(--forest);border-color:var(--line);font-size:.82rem;padding:8px 14px}
.trip-plan-warning{border-left:3px solid var(--gold);padding:10px 14px;color:var(--muted);background:#f7f1df;font-size:.85rem;margin:0 0 22px}
.trip-plan-retry{font:inherit;font-size:.78rem;min-height:44px;padding:6px 0;text-decoration:underline;text-underline-offset:3px;color:var(--forest);border:0;background:none;cursor:pointer}
.trip-plan-undo{position:fixed;z-index:1100;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;padding:10px 12px 10px 18px;border:1px solid #ced8ce;border-radius:14px;box-shadow:0 10px 35px #0a2d2626;background:#fff;color:var(--forest);font-size:.85rem}
.trip-plan-undo button{padding:8px 14px;min-height:44px;font-size:.82rem}
.trip-plan-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.trip-plan-page :is(button,a,select,summary):focus-visible{outline:3px solid #ad7b29;outline-offset:3px}
.trip-plan-group.is-drop-target{outline:2px dashed #6c8e78;outline-offset:-5px}
.trip-plan-item.is-dragging{opacity:.45}
.trip-plan-page [hidden]{display:none!important}
@media(hover:hover) and (pointer:fine){.trip-plan-drag{display:inline-grid}}
@media(min-width:1000px){.trip-plan-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.trip-plan-unorganized{grid-column:1/-1}}
@media(max-width:580px){.favorites-page .wrap{width:calc(100% - 28px)}.trip-plan-page{padding-top:40px;padding-bottom:100px}.trip-plan-page .trip-plan-heading{margin-bottom:24px}.trip-plan-toolbar{justify-content:flex-start;margin-bottom:18px}.trip-plan-group{padding:0 12px 12px;border-radius:14px}.trip-plan-summary{min-height:66px;padding:16px 0}.trip-plan-summary h2{font-size:1.3rem}.trip-plan-item{padding:10px;gap:10px}.trip-plan-identity{flex-basis:100%;gap:10px}.trip-plan-thumb{flex-basis:54px;width:54px;height:54px}.trip-plan-item-controls{flex-basis:100%;gap:4px}.trip-plan-move{flex-basis:125px;width:125px}.trip-plan-item h3{font-size:.95rem}.trip-plan-icon{width:44px;height:44px}.trip-plan-order{gap:0}.trip-plan-undo{gap:8px;padding:8px 10px 8px 14px}}
@media(max-width:580px){.trip-plan-item-controls{flex-wrap:nowrap}.trip-plan-move{flex:1 1 0;width:0}}
@media(max-width:350px){.trip-plan-item-controls{flex-basis:calc(100% + 20px);margin-inline:-10px;gap:0}.trip-plan-move{padding-inline:6px 20px}}
@media(prefers-reduced-motion:reduce){.trip-plan-summary::after{transition:none}}
