/* SPDX-License-Identifier: GPL-2.0-or-later; all rules scoped to shortcode. */
.chg-dp{--chg-accent:var(--wp--preset--color--primary,#164e63);--chg-soft:#edf5f3;color:#17323b;background:#fff;border:1px solid #dce6e4;border-radius:24px;padding:clamp(20px,4vw,40px);width:min(1000px,calc(100vw - 40px));max-width:none!important;position:relative;left:50%;margin:32px 0!important;transform:translateX(-50%);font-family:inherit;line-height:1.5;box-sizing:border-box}.chg-dp *{box-sizing:border-box}.chg-dp h2{font-size:clamp(25px,4vw,36px);line-height:1.2;margin:0 0 12px}.chg-dp h3{font-size:23px;margin:32px 0 18px}.chg-dp h4{font-size:21px;line-height:1.3;margin:5px 0 10px}.chg-dp p{margin:8px 0 18px}.chg-dp label{display:block;font-size:15px;font-weight:600;min-width:0}.chg-dp__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.chg-dp input:not([type=checkbox]):not([type=radio]):not([type=range]),.chg-dp select{display:block;width:100%;min-width:0;min-height:50px;padding:12px 14px;margin-top:7px;border:1px solid #9aafae;border-radius:12px;background:#fff;color:inherit;font:inherit}.chg-dp select{appearance:none;padding-right:35px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23164e63' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center}.chg-dp__terminal{margin-bottom:24px}.chg-dp small,.chg-dp__note{display:block;font-size:13px;font-weight:400;line-height:1.5;color:#526b70}.chg-dp small{margin-top:6px}.chg-dp input[type=range]{display:block;appearance:auto;width:100%;min-height:44px;accent-color:var(--chg-accent);margin:8px 0 0;padding:0}.chg-dp__range-labels{display:flex;justify-content:space-between;font-size:12px;font-weight:400}.chg-dp fieldset{border:0;padding:0;margin:26px 0;min-width:0}.chg-dp legend{font-size:17px;font-weight:700;margin-bottom:12px}.chg-dp__interests{display:flex;flex-wrap:wrap;gap:10px}.chg-dp__interests label{position:relative;border:1px solid #b9cbca;border-radius:24px;padding:12px 17px;cursor:pointer;min-height:48px}.chg-dp__interests label:has(input:checked){background:var(--chg-accent);color:white;border-color:var(--chg-accent)}.chg-dp__interests input{position:absolute;opacity:0;width:1px;height:1px}.chg-dp__interests label:has(input:focus-visible){outline:3px solid #b16200;outline-offset:3px}.chg-dp__crowds{margin-top:22px}.chg-dp input[type=checkbox]{accent-color:var(--chg-accent)}.chg-dp button,.chg-dp__link{border:0;border-radius:12px;padding:13px 20px;min-height:48px;font:inherit;font-weight:600;background:var(--chg-accent);color:#fff;cursor:pointer;text-decoration:none;display:inline-block}.chg-dp button:disabled{opacity:.65;cursor:wait}.chg-dp :focus-visible{outline:3px solid #b16200;outline-offset:3px}.chg-dp__status:empty,.chg-dp__result:empty{display:none}.chg-dp__status{color:#8a3218}.chg-dp__result{scroll-margin-top:28px;overflow-wrap:anywhere;margin-top:34px}.chg-dp__result:focus{outline:none}.chg-dp__summary{background:var(--chg-soft);border-radius:18px;padding:24px}.chg-dp__summary h3{margin:0 0 8px}.chg-dp__stats{display:flex;flex-wrap:wrap;gap:12px 24px;margin:16px 0}.chg-dp__timeline{list-style:none;margin:28px 0;padding:0 0 0 22px;border-left:2px solid #c6d9d5}.chg-dp__timeline li{position:relative;margin:16px 0}.chg-dp__timeline li:before{content:'';position:absolute;left:-29px;top:20px;border-radius:50%;width:12px;height:12px;background:var(--chg-accent)}.chg-dp__activity{border:1px solid #dce6e4;border-radius:16px;background:white;overflow:visible}.chg-dp__with-image{display:grid;grid-template-columns:32% minmax(0,1fr)}.chg-dp__activity>img{display:block;width:100%;height:100%;max-height:280px;min-height:200px;object-fit:cover;border-radius:15px 0 0 15px}.chg-dp__content{padding:20px}.chg-dp__content p{font-size:15px;margin:8px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.chg-dp__time{font-size:13px;font-weight:600;color:var(--chg-accent)}.chg-dp__link{margin-top:14px;font-size:14px}.chg-dp__minor{font-size:13px;color:#526b70;padding:4px 0}.chg-dp__timeline .chg-dp__minor:before{width:6px;height:6px;left:-26px;top:12px;background:#90afaa}.chg-dp__end{padding:12px 0;font-weight:600}.chg-dp__actions{margin:24px 0}.chg-dp__actions p{margin-bottom:6px}.chg-dp__actions button,.chg-dp__feedback button{background:#edf5f3;color:var(--chg-accent);font-size:14px;min-height:44px;margin:4px 8px 4px 0;padding:10px 14px}.chg-dp__feedback{margin-top:24px;padding-top:20px;border-top:1px solid #dce6e4}.chg-dp__feedback h4{font-size:18px}.chg-dp textarea{display:block;width:100%;font:inherit;padding:12px;border:1px solid #9aafae;border-radius:10px}.chg-dp [hidden]{display:none!important}.chg-dp__loading:before{content:'';display:inline-block;width:15px;height:15px;margin-right:10px;border:2px solid #ffffff66;border-top-color:white;border-radius:50%;animation:chg-spin .8s linear infinite}@keyframes chg-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.chg-dp__loading:before{animation:none}}@media(max-width:600px){.chg-dp{width:calc(100vw - 28px);padding:20px;border-radius:18px}.chg-dp__grid{grid-template-columns:1fr;gap:20px}.chg-dp__with-image{display:block}.chg-dp__activity>img{height:180px;min-height:0;border-radius:15px 15px 0 0}.chg-dp__content{padding:16px}.chg-dp__interests{gap:8px}.chg-dp__interests label{font-size:14px;padding:11px 13px}.chg-dp__form>button{width:100%}.chg-dp__timeline{padding-left:18px}.chg-dp__timeline li:before{left:-25px}.chg-dp__timeline .chg-dp__minor:before{left:-22px}.chg-dp__summary{padding:18px}}
/* Override WordPress constrained-block auto margins before centering the wider planner. */
body .chg-dp.chg-dp{margin-left:0!important;margin-right:0!important}
/* V1.3.2: tokens measured on the Cruisehavengids Bergen page. */
.chg-dp{--chg-accent:var(--wp--preset--color--primary,#1E40AF);--chg-soft:var(--wp--preset--color--tertiary,#E0F2FE);--chg-bg:var(--wp--preset--color--background,#F8FAFC);--chg-ink:var(--wp--preset--color--foreground,#111827);--chg-line:var(--wp--custom--color--stroke-weak,color-mix(in srgb,var(--chg-accent) 18%,var(--chg-bg)));--chg-muted:color-mix(in srgb,var(--chg-ink) 72%,var(--chg-bg));--chg-card:var(--wp--custom--color--background-tint-1,color-mix(in srgb,var(--chg-bg),var(--chg-accent) 4%));background:var(--chg-bg);color:var(--chg-ink);border-color:var(--chg-line);border-radius:25px;font-size:16px}
.chg-dp__form,.chg-dp__result{scroll-margin-top:140px}.chg-dp__form{margin-top:26px}.chg-dp__summary{background:var(--chg-soft);border-radius:25px;padding:20px;border:0}.chg-dp__activity{background:var(--chg-card);border-color:var(--chg-line);border-radius:25px;box-shadow:none}.chg-dp__activity>img{border-radius:24px 0 0 24px}.chg-dp small,.chg-dp__note,.chg-dp__minor{color:var(--chg-muted)}.chg-dp__timeline{border-color:var(--chg-line)}.chg-dp__timeline .chg-dp__minor:before{background:var(--chg-line)}.chg-dp__feedback{border-color:var(--chg-line)}
.chg-dp input:not([type=checkbox]):not([type=radio]):not([type=range]),.chg-dp select,.chg-dp textarea{background:var(--chg-card);border-color:var(--chg-line);border-radius:var(--wp--custom--radius--lg,12px);padding:8px 12px;min-height:44px}.chg-dp select{padding-right:35px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%231E40AF' stroke-width='2'/%3E%3C/svg%3E")}.chg-dp__grid{gap:18px 24px}.chg-dp__terminal{margin-bottom:18px}.chg-dp :focus-visible,.chg-dp__interests label:has(input:focus-visible){outline:2px solid var(--chg-accent);outline-offset:3px}.chg-dp__interests{gap:8px}.chg-dp__interests label{padding:9px 13px;min-height:44px;font-size:14px;background:var(--chg-bg);border-color:var(--chg-line);color:var(--chg-ink)}.chg-dp__interests label:has(input:checked){background:var(--chg-accent);color:var(--chg-bg)}.chg-dp button{font-size:16px;min-height:44px;padding:10px 18px;border-radius:var(--wp--custom--radius--lg,12px)}.chg-dp__link{font-size:14px;padding:9px 14px;min-height:42px}.chg-dp__actions button,.chg-dp__feedback button{background:var(--chg-soft);font-size:14px;padding:9px 12px}.chg-dp__stats{font-size:17px;gap:10px 22px}
.chg-dp input[type=range]{--chg-progress:50%;appearance:none;-webkit-appearance:none;height:44px;min-height:44px;display:block;width:100%;background:transparent;border:0;cursor:pointer;margin:4px 0 0;padding:0}
.chg-dp input[type=range]::-webkit-slider-runnable-track{height:7px;border-radius:99px;background:linear-gradient(to right,var(--chg-accent) 0 var(--chg-progress),var(--chg-line) var(--chg-progress) 100%)}
.chg-dp input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:var(--chg-accent);border:2px solid var(--chg-bg);box-shadow:0 1px 4px color-mix(in srgb,var(--chg-accent) 25%,transparent);margin-top:-8.5px}
.chg-dp input[type=range]::-moz-range-track{height:7px;border-radius:99px;background:var(--chg-line)}.chg-dp input[type=range]::-moz-range-progress{height:7px;border-radius:99px;background:var(--chg-accent)}.chg-dp input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--chg-accent);border:2px solid var(--chg-bg)}
.chg-dp__range-labels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.chg-dp__range-labels button{font-size:13px;font-weight:400;color:var(--chg-muted);background:transparent;border:0;border-radius:6px;padding:0;min-height:44px;text-align:center}.chg-dp__range-labels button:first-child{text-align:left}.chg-dp__range-labels button:last-child{text-align:right}.chg-dp__range-labels button[aria-pressed=true]{font-weight:700;color:var(--chg-accent)}
@media(max-width:600px){.chg-dp{border-radius:25px}.chg-dp__activity>img{border-radius:24px 24px 0 0}.chg-dp__summary{padding:18px}.chg-dp__interests label{padding:9px 12px}.chg-dp__grid{gap:18px}.chg-dp__link{min-height:44px}.chg-dp__range-labels button{width:auto}}
.chg-dp select{background-repeat:no-repeat;background-position:right 16px center}

/* V1.5 additions retain existing Cruisehavengids design tokens. */
.chg-dp__languages{display:flex;justify-content:flex-end;gap:12px;margin-bottom:14px;font-size:14px}.chg-dp__languages a{color:var(--chg-accent)}.chg-dp__languages [aria-current]{font-weight:700}.chg-dp__languages [aria-disabled=true]{opacity:.5;pointer-events:none}.chg-dp__error{color:#a31515!important;font-weight:600!important}.chg-dp [aria-invalid=true]{border-color:#a31515!important;outline:1px solid #a31515}.chg-dp__interests{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.chg-dp__interests label{display:flex;align-items:center;overflow-wrap:anywhere}.chg-dp__modes{grid-template-columns:repeat(3,minmax(0,1fr))}.chg-dp__form>button{width:100%}.chg-dp__languages a:focus-visible{outline:2px solid var(--chg-accent)}.chg-dp[aria-busy=true] .chg-dp__status{color:var(--chg-muted)}@media(max-width:600px){.chg-dp__interests{grid-template-columns:repeat(2,minmax(0,1fr))}.chg-dp__modes{grid-template-columns:1fr}}
/* V1.6 approved presentation, isolated to this plugin. */
.chg-dp{background:#fff;font-family:inherit;line-height:1.55}.chg-dp__top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:start}.chg-dp__top h2{font-size:clamp(25px,3vw,36px);margin:0}.chg-dp__tools{display:flex;gap:18px;align-items:flex-start}.chg-dp__languages{position:static;display:flex;flex-direction:column;gap:2px;margin:0;padding:0}.chg-dp__languages a{font-size:13px;padding:2px 0;border:0;color:var(--chg-accent);text-decoration:none;background:none}.chg-dp__free{position:relative;isolation:isolate;background:var(--chg-soft);color:#101b30;padding:9px 14px;border-radius:45%;font-size:19px;font-weight:850;line-height:1.15;transform:rotate(7deg);text-transform:uppercase;margin-top:12px;white-space:nowrap}.chg-dp__free:before,.chg-dp__free:after{content:'';position:absolute;background:var(--chg-soft);z-index:-1;border-radius:50%;pointer-events:none}.chg-dp__free:before{width:47%;height:80%;left:9%;top:-19%}.chg-dp__free:after{width:49%;height:88%;right:8%;top:-24%}.chg-dp__notice{background:var(--chg-soft);border:0;color:var(--chg-ink);padding:14px 18px;border-radius:16px;margin:0 0 28px!important;font-size:14px}.chg-dp__interests label{border-radius:12px;font-size:13px;padding:7px 11px;min-height:44px;display:inline-flex;align-items:center;gap:6px;background:#fff}.chg-dp fieldset legend{float:left;width:auto;margin:0 5px 10px 0;font-size:15px}.chg-dp fieldset>.chg-dp__interests{clear:both}.chg-dp__label{display:flex;align-items:center;gap:6px}.chg-dp__label label{font-size:15px}.chg-dp__help{display:inline-block;position:relative;margin:0;vertical-align:middle;font-weight:400;line-height:1}.chg-dp__help summary{display:flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:var(--chg-soft);color:var(--chg-accent);font:700 11px Georgia,serif;cursor:pointer;list-style:none}.chg-dp__help summary::-webkit-details-marker{display:none}.chg-dp__help[open]>div{position:absolute;top:100%;left:0;width:min(320px,65vw);max-height:280px;overflow:auto;z-index:40;background:var(--chg-soft);color:var(--chg-ink);padding:12px 15px;border-radius:12px;box-shadow:0 4px 16px #11182718;font:13px/1.6 system-ui,sans-serif}.chg-dp__schedule{grid-template-columns:repeat(2,minmax(0,1fr))!important}.chg-dp__range-labels button{font-size:15px}.chg-dp__activity{background:var(--chg-soft);display:block}.chg-dp__activity>img,.chg-dp__meal>img{width:100%;height:230px;max-height:none;min-height:0;object-fit:cover;border-radius:24px 24px 0 0}.chg-dp__meal{background:#fff;border:1px solid var(--chg-line);border-radius:20px;margin:18px 0;overflow:hidden}.chg-dp__meal .chg-dp__content{padding:20px}.chg-dp__transfer{background:var(--chg-bg);padding:14px;border-radius:12px;margin:12px 0;font-size:14px}.chg-dp__food{border-top:1px solid var(--chg-line);padding-top:12px;font-size:13px!important}.chg-dp__credit{padding:6px 16px;font-size:11px}.chg-dp__content p{display:block;-webkit-line-clamp:unset;overflow:visible}.chg-dp__field input[aria-invalid=true],.chg-dp__interests label:has(input[aria-invalid=true]){border-color:#b91c1c!important}.chg-dp__error{color:#b91c1c}.chg-dp--promo .chg-dp__top h2{font-size:28px}.chg-dp--promo>p{max-width:680px}
@media(max-width:600px){.chg-dp__top{grid-template-columns:1fr}.chg-dp__tools{grid-row:1;justify-self:end;gap:12px}.chg-dp__free{font-size:16px}.chg-dp__languages a{font-size:12px}.chg-dp__top h2{font-size:27px}.chg-dp__schedule{gap:14px}.chg-dp__activity>img{height:200px}}
@media(prefers-reduced-motion:reduce){.chg-dp__loading:before{animation:none}}

/* Stable empty date/time hints across browser languages; native pickers remain available. */
.chg-dp__input-wrap{position:relative}.chg-dp__placeholder{display:none;position:absolute;left:13px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--chg-muted);font:inherit}
.chg-dp__input-wrap.chg-dp__empty:not(:focus-within)>.chg-dp__placeholder{display:block}
.chg-dp__input-wrap.chg-dp__empty:not(:focus-within)>input[type=date],.chg-dp__input-wrap.chg-dp__empty:not(:focus-within)>input[type=time]{color:transparent}
.chg-dp__input-wrap.chg-dp__empty:not(:focus-within)>input::-webkit-datetime-edit{color:transparent}
.chg-dp__terminal-note:empty{display:none}

/* Small left-hand photo, never more than one third of the activity card. */
.chg-dp__activity.chg-dp__has-media,.chg-dp__meal.chg-dp__has-media{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:start;overflow:hidden}
.chg-dp__media{min-width:0;padding:14px 0 14px 14px}.chg-dp__media>img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:12px}
.chg-dp__has-media>.chg-dp__content{min-width:0;padding:16px}.chg-dp__photo-credits{margin-top:6px;font-size:11px;overflow-wrap:anywhere;line-height:1.4}.chg-dp__photo-credits summary{cursor:pointer;color:var(--chg-muted)}.chg-dp__photo-credits .chg-dp__credit{padding:4px 0;font-size:10px}
@media(max-width:600px){.chg-dp__media{padding:10px 0 10px 10px}.chg-dp__has-media>.chg-dp__content{padding:10px}.chg-dp__has-media h4{font-size:18px}.chg-dp__has-media .chg-dp__content p{font-size:14px}}

/* V1.6.6: edge-to-edge photo and expandable compact copy. */
.chg-dp__activity.chg-dp__has-media,.chg-dp__meal.chg-dp__has-media{grid-template-columns:minmax(0,36fr) minmax(0,64fr);align-items:stretch;min-height:220px}
.chg-dp__has-media>.chg-dp__media{position:relative;padding:0;min-height:220px;align-self:stretch}
.chg-dp__media>img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border-radius:0}
.chg-dp__has-media>.chg-dp__content{padding:16px 18px}.chg-dp__has-media .chg-dp__content h4{margin:4px 0 7px}.chg-dp__collapsible:not(.chg-dp__expanded) .chg-dp__description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.chg-dp__collapsible:not(.chg-dp__expanded) .chg-dp__food{display:none}
.chg-dp button.chg-dp__read-more{display:block;background:transparent;color:var(--chg-accent);font-size:13px;min-height:30px;padding:2px 0;margin:0;text-decoration:underline;text-underline-offset:3px;text-align:left}
.chg-dp__has-media .chg-dp__link{margin-top:8px}.chg-dp__media>.chg-dp__photo-credits{position:absolute;bottom:8px;left:8px;right:8px;z-index:1;background:#fffffff0;border-radius:6px;padding:4px 7px;margin:0;max-height:calc(100% - 16px);overflow:auto}.chg-dp__photo-credits summary{color:#111827}
@media(max-width:600px){.chg-dp__has-media>.chg-dp__content{padding:12px}.chg-dp__activity.chg-dp__has-media,.chg-dp__meal.chg-dp__has-media{grid-template-columns:minmax(0,33fr) minmax(0,67fr)}.chg-dp__photo-credits summary{font-size:10px}}

/* Transparent photo attribution, readable directly over the image. */
.chg-dp__media>.chg-dp__photo-credits{background:transparent;border:0;border-radius:0;box-shadow:none;padding:4px 0;color:#fff;text-shadow:0 1px 3px #000,0 0 5px #0008}
.chg-dp .chg-dp__photo-credits summary,.chg-dp .chg-dp__photo-credits .chg-dp__credit,.chg-dp .chg-dp__photo-credits a{color:#fff;background:transparent;border:0;box-shadow:none}
