:root { --sea:#17645f; --ink:#202e31; --muted:#626e70; --line:#dfe6e3; --background:#f5f6f3; }
* { box-sizing:border-box; }
body { margin:0; background:var(--background); color:var(--ink); font:1rem/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
a { color:inherit; text-decoration:none; }
button,input,select { font:inherit; }
button { cursor:pointer; }
h1,h2,h3,p { margin:0; }
[hidden] { display:none!important; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid #46a99d; outline-offset:3px; }
.icon { width:20px; height:20px; flex-shrink:0; }
.site-header { background:white; border-bottom:1px solid var(--line); }
.header-inner,.search-container,.footer-inner { max-width:1200px; margin:auto; }
.header-inner { min-height:62px; display:flex; align-items:center; gap:24px; }
/* Znak UI do małych nagłówków. Pełne logoDK.svg i logo_DK.svg służą większym ekspozycjom. */
.brand-logo { display:flex; align-items:center; gap:9px; font-size:1rem; font-weight:650; letter-spacing:.08em; white-space:nowrap; flex-shrink:0; }
.dk-mark { border:1.5px solid var(--ink); font-size:1.5rem; font-weight:500; line-height:1.2; letter-spacing:-1px; padding:2px 4px; }
.header-inner nav { display:flex; gap:22px; margin-left:auto; font-size:.875rem; }
.header-inner nav a,.phone { min-height:44px; display:flex; align-items:center; }
.phone { gap:8px; font-size:.875rem; font-weight:600; }
.search-container { padding:20px 0 40px; }
.search-intro h1 { font-size:1.75rem; font-weight:650; line-height:1.2; margin-bottom:14px; }
body[data-results="true"] .search-intro { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#search-editor { margin-bottom:12px; background:white; border:1px solid var(--line); border-radius:10px; }
.stay-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; cursor:pointer; list-style:none; }
.stay-summary::-webkit-details-marker { display:none; }
#stay-summary-text { min-width:0; }
#stay-summary-text strong { display:block; font-size:1rem; font-weight:600; }
#stay-summary-text>span { display:block; font-size:.875rem; color:var(--muted); margin-top:2px; }
.edit-label { display:flex; align-items:center; justify-content:center; min-height:44px; padding:0 10px; font-size:.875rem; color:var(--sea); text-decoration:underline; flex-shrink:0; }
body[data-results="false"] .stay-summary { display:none; }
.stay-search { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto; gap:12px; padding:12px; align-items:start; }
body[data-site="brand"] .stay-search { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto; }
.search-field { display:flex; align-items:center; gap:8px; min-width:0; }
.search-field>span { display:block; width:100%; min-width:0; }
.field-label { display:block; font-size:.875rem; color:var(--muted); margin-bottom:4px; }
.search-field input,.search-field select { display:block; width:100%; min-width:0; height:44px; border:1px solid var(--line); border-radius:6px; padding:8px; background:white; color:var(--ink); font-size:1rem; }
.search-field input::-webkit-calendar-picker-indicator { margin:0; padding:0; }
.city-field>.icon { display:none; }
.family-help { font-size:.875rem; margin-top:4px; color:var(--muted); }
.family-help summary { cursor:pointer; }
.family-help p { padding-top:5px; }
.family-help a { text-decoration:underline; color:var(--sea); }
.primary { display:flex; align-items:center; justify-content:center; min-height:44px; padding:10px 14px; border:1px solid var(--sea); border-radius:7px; background:var(--sea); color:white; font-size:.875rem; font-weight:600; line-height:1.3; text-align:center; }
.primary:hover { background:#104f4b; }
.primary:disabled { opacity:.65; cursor:wait; }
.search-submit { margin-top:24px; }
.results-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:4px; }
.results-heading h2 { font-size:1rem; font-weight:600; }
.results-heading p { font-size:.875rem; color:var(--muted); }
.results-note { font-size:.875rem; color:var(--muted); margin-bottom:10px; }
.stay-list { display:grid; gap:12px; }
.stay-card { display:grid; grid-template-columns:300px minmax(0,1fr) 230px; background:white; border:1px solid var(--line); border-radius:11px; overflow:hidden; }
.stay-photo { position:relative; display:block; min-height:225px; background:#e6e9e2; }
.stay-photo img { position:absolute; width:100%; height:100%; inset:0; object-fit:cover; }
.photo-caption { position:absolute; bottom:8px; left:8px; right:8px; width:fit-content; max-width:calc(100% - 16px); border-radius:4px; padding:3px 6px; background:#fffffff0; font-size:.75rem; line-height:1.25; }
.missing-photo { display:grid; place-items:center; height:100%; padding:16px; }
.stay-info { min-width:0; padding:16px 18px; }
.stay-info h3 { font-size:1.125rem; font-weight:650; line-height:1.25; overflow-wrap:anywhere; margin-bottom:4px; }
.address,.building { color:var(--muted); font-size:.875rem; }
.building { margin-bottom:3px; }
.facts { font-size:.875rem; margin-top:6px; }
.facts>span+span::before { content:" · "; }
.bed-layout { font-size:inherit; }
.features { display:flex; flex-wrap:wrap; list-style:none; padding:0; margin:7px 0 0; gap:2px 10px; font-size:.875rem; color:var(--muted); }
.features li+li::before { content:"· "; }
.comfort-note,.type-note { font-size:.875rem; color:var(--muted); margin-top:5px; }
.stay-action { min-width:0; padding:16px 16px 16px 0; align-self:center; }
.total-price { font-size:1.75rem; line-height:1.1; font-weight:700; overflow-wrap:anywhere; }
.total-price>span { font-size:1.125rem; white-space:nowrap; }
.stay-duration { font-size:.875rem; margin-top:4px; color:var(--muted); }
.tariff { font-size:.875rem; margin-top:4px; }
.card-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; }
.details-link { display:flex; align-items:center; min-height:44px; color:var(--sea); font-size:.875rem; text-decoration:underline; text-underline-offset:3px; }
.booking-link,.secondary { flex:1; }
.price-note { font-size:.875rem; color:var(--muted); margin-top:14px; }
.search-message { padding:24px; background:white; border:1px solid var(--line); border-radius:10px; }
.search-message h2 { font-size:1.25rem; margin-bottom:10px; }
.search-message .primary { width:fit-content; margin-top:14px; }
.text-link { display:inline-block; margin-top:12px; color:var(--sea); text-decoration:underline; }
.message-icon { display:none; }
.loading-ring { display:block; width:24px; height:24px; border:3px solid var(--line); border-top-color:var(--sea); border-radius:50%; animation:spin 1s linear infinite; margin-bottom:10px; }
@keyframes spin { to { transform:rotate(360deg); } }
footer { border-top:1px solid var(--line); background:white; }
.footer-inner { padding:24px 0; display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; font-size:.875rem; }
.footer-inner p { color:var(--muted); margin-top:4px; }
.skip-link { position:absolute; left:16px; top:-100px; background:white; padding:8px; z-index:10; }
.skip-link:focus { top:8px; }
@media(max-width:1250px) { .header-inner,.search-container,.footer-inner { margin-left:24px; margin-right:24px; } }
@media(max-width:1000px) {
  .stay-card { grid-template-columns:260px minmax(0,1fr) 210px; }
  .stay-info { padding:14px; }
  .stay-action { padding:14px 12px 14px 0; }
  .card-actions { gap:4px; }
  .header-inner { gap:16px; }
  .header-inner nav { gap:14px; }
  .stay-search,body[data-site="brand"] .stay-search { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .search-submit { align-self:start; }
  body[data-site="brand"] .search-submit { grid-column:1/-1; margin-top:0; }
}
@media(max-width:800px) and (min-width:641px) {
  .stay-card { grid-template-columns:220px minmax(0,1fr); }
  .stay-photo { grid-row:1/3; }
  .stay-info { padding-bottom:6px; }
  .stay-action { grid-column:2; padding:4px 14px 14px; }
  .quote { display:grid; grid-template-columns:auto 1fr; column-gap:12px; }
  .total-price { grid-row:1/3; align-self:center; }
  .stay-duration,.tariff { grid-column:2; margin:0; }
  .card-actions { margin-top:8px; }
}
@media(max-width:640px) {
  .header-inner,.search-container,.footer-inner { margin-left:16px; margin-right:16px; }
  .header-inner { min-height:56px; gap:10px; flex-wrap:wrap; padding:6px 0; }
  .brand-logo { font-size:.75rem; gap:7px; }
  .dk-mark { font-size:1.25rem; }
  .header-inner nav { margin-left:auto; gap:8px; font-size:.75rem; }
  .header-inner nav a { min-height:36px; }
  .header-inner nav a[href="#kontakt"] { display:none; }
  .phone { min-height:44px; min-width:28px; justify-content:center; }
  .phone span { display:none; }
  .search-container { padding-top:10px; padding-bottom:24px; }
  .search-intro h1 { font-size:1.375rem; margin-bottom:10px; }
  #search-editor { margin-bottom:8px; }
  .stay-summary { padding:6px 10px; gap:6px; }
  #stay-summary-text strong { font-size:.875rem; }
  .edit-label { padding:0 4px; }
  .stay-search,body[data-site="brand"] .stay-search { grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap:10px; padding:10px; }
  .city-field { grid-column:1/-1; }
  .search-submit,body[data-site="brand"] .search-submit { grid-column:1/-1; margin-top:0; }
  .guest-section { grid-column:1/-1; }
  .guest-field>span { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .guest-field .field-label { margin:0; }
  .guest-field select { width:45%; }
  .family-help { margin-top:5px; }
  .results-note { line-height:1.25; margin-bottom:8px; }
  .stay-card { display:flex; flex-direction:column; }
  .stay-photo { min-height:0; aspect-ratio:16/9; width:100%; }
  .stay-info { padding:2px 12px 0; }
  .stay-info h3 { font-size:1.125rem; line-height:1.25; margin-bottom:0; }
  .stay-info h3 a { display:flex; align-items:center; min-height:44px; }
  .stay-info .address { overflow-wrap:anywhere; }
  .facts { margin-top:2px; }
  .features { margin-top:2px; gap:0 6px; }
  .comfort-note,.type-note { margin-top:4px; }
  .stay-action { align-self:stretch; padding:8px 12px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; }
  .stay-action .quote { flex:1 1 auto; min-width:0; }
  .stay-action .total-price { font-size:1.5rem; }
  .stay-duration,.tariff { margin-top:2px; }
  .stay-action .card-actions { margin:0; flex:1 1 7rem; }
  .details-link { min-width:64px; }
  .booking-link,.secondary { min-height:44px; }
  .footer-inner { padding:20px 0; }
  .footer-inner>div { width:100%; }
}
@media(prefers-reduced-motion:reduce) { * { animation:none!important; scroll-behavior:auto!important; } }

/* Jedno pole terminu; natywne pola pozostają dostępne bez JavaScript. */
.stay-search,body[data-site="brand"] .stay-search { grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto; }
body[data-site="brand"] .stay-search { grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr) auto; }
.native-dates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.date-range-field,.guest-section { min-width:0; }
#date-range { display:block; width:100%; min-height:68px; padding:0; border:0; background:transparent; color:var(--ink); text-align:left; }
#date-range-value { display:flex; align-items:center; min-height:44px; padding:8px; border:1px solid var(--line); border-radius:6px; background:white; font-size:1rem; }
.guest-help { grid-column:1/-1; font-size:.875rem; margin-top:-6px; }
.guest-help a { color:var(--sea); text-decoration:underline; }
#stay-calendar,#group-contact { width:360px; max-width:calc(100% - 32px); max-height:calc(100dvh - 32px); overflow:auto; border:1px solid var(--line); border-radius:12px; padding:12px; color:var(--ink); background:white; }
#stay-calendar::backdrop,#group-contact::backdrop { background:#202e3166; }
#group-contact p { margin:8px 0 16px; }
#group-contact .primary { margin-bottom:4px; }
.calendar-top,.calendar-month,.calendar-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.calendar-top h2 { font-size:1.125rem; }
#calendar-hint { min-height:40px; font-size:.875rem; color:var(--muted); }
.calendar-top button,.calendar-month button { min-width:44px; min-height:44px; border:0; border-radius:6px; background:transparent; color:var(--sea); font-size:1.5rem; }
.calendar-month strong { text-align:center; font-size:1rem; }
.calendar-month button:disabled { opacity:.3; cursor:default; }
.calendar-week,.calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); text-align:center; }
.calendar-week { font-size:.875rem; color:var(--muted); padding:6px 0; }
.calendar-days button { min-width:0; min-height:44px; padding:4px 0; border:0; border-radius:0; background:white; color:var(--ink); font-size:1rem; }
.calendar-days button:disabled { color:#a4acad; cursor:default; }
.calendar-days button[aria-current="date"] { text-decoration:underline; text-underline-offset:4px; }
.calendar-days button.in-range { background:#dcece8; }
.calendar-days button.range-edge { background:var(--sea); color:white; border-radius:6px; }
.calendar-days button:focus-visible { outline-offset:-3px; position:relative; }
.calendar-bottom { margin-top:10px; flex-wrap:wrap; font-size:.875rem; color:var(--muted); }
.calendar-clear { min-height:44px; padding:4px 0; border:0; background:transparent; text-decoration:underline; color:var(--sea); }
@media(max-width:1000px) {
  .stay-search,body[data-site="brand"] .stay-search { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
  .city-field,.search-submit { grid-column:1/-1; }
  .search-submit { margin-top:0; }
}
@media(max-width:640px) {
  .stay-search,body[data-site="brand"] .stay-search { grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); }
  .guest-section { grid-column:auto; }
  .guest-field>span { display:block; }
  .guest-field .field-label { margin-bottom:4px; }
  .guest-field select { width:100%; }
  .guest-help { margin-top:0; }
}

/* Paleta do odbioru wyłącznie w lokalnym podglądzie Olsztyna (view=stay). */
body.stay-preview {
  --sea:var(--brand-primary);
  --ink:var(--body-color);
  --muted:var(--background-text-color);
  --line:var(--tile-border);
  --background:var(--body-background-color);
}
body.stay-preview a { color:var(--link-text); text-decoration:underline; text-underline-offset:3px; }
body.stay-preview a:hover { color:var(--link-text-hover); }
body.stay-preview :is(.brand-logo,.header-inner nav a,.stay-info h3 a) { color:var(--text-primary); }
body.stay-preview .brand-logo { text-decoration:none; }
body.stay-preview .dk-mark { color:var(--brand-primary); border-color:var(--brand-gold); }
body.stay-preview :where(.site-header,#search-editor,.stay-card,.search-message,footer,.skip-link,#stay-calendar,#group-contact,.calendar-days button) { background:var(--surface); }
body.stay-preview .stay-photo { background:var(--page-background); color:var(--text-primary); }
body.stay-preview .photo-caption { background:var(--surface); }
body.stay-preview :is(.search-field input,.search-field select,#date-range-value) { background:var(--input-background); border-color:var(--input-border); color:var(--input-text); }
body.stay-preview :is(.search-field input,.search-field select)::placeholder { color:var(--text-secondary); opacity:1; }
body.stay-preview .primary { background:var(--button1-background); border-color:var(--button1-background); color:var(--button1-text); text-decoration:none; }
body.stay-preview .primary:hover { background:var(--button1-background-hover); border-color:var(--button1-background-hover); color:var(--button1-text-hover); }
body.stay-preview .primary:disabled { background:var(--text-secondary); border-color:var(--text-secondary); opacity:1; }
body.stay-preview :is(a,button,input,select,summary):focus-visible { outline:3px solid var(--brand-primary); outline-offset:3px; }
body.stay-preview #stay-calendar::backdrop,
body.stay-preview #group-contact::backdrop { background:rgba(41,37,48,0.40); }
body.stay-preview :is(.calendar-top button,.calendar-month button,.calendar-clear):hover:not(:disabled) { color:var(--brand-primary-hover); background:var(--brand-primary-soft); }
body.stay-preview .calendar-days button:disabled { color:var(--border-control); }
body.stay-preview .calendar-days button[aria-current="date"]:not(.range-edge) { box-shadow:inset 0 0 0 2px var(--brand-gold-text); }
body.stay-preview .calendar-days button:hover:not(:disabled):not(.range-edge),
body.stay-preview .calendar-days button.in-range { background:var(--brand-primary-soft); color:var(--text-primary); }
body.stay-preview .calendar-days button.range-edge { background:var(--calendar-day-highlight); color:var(--calendar-day-highlight-color); }
body.stay-preview .calendar-days button.range-edge:hover { background:var(--calendar-day-highlight-hover); }
body.stay-preview .calendar-days button:focus-visible { outline-offset:3px; z-index:1; }
body.stay-preview .calendar-days button.range-edge:focus-visible { box-shadow:0 0 0 3px var(--surface); }

/* Wspólny nagłówek obu domen. */
.stay-preview .site-header { background:var(--surface); border-bottom:1px solid var(--border-subtle); color:var(--text-primary); }
.stay-preview .header-inner { min-height:64px; gap:24px; flex-wrap:nowrap; padding-top:8px; padding-bottom:8px; }
.stay-preview .brand-logo { display:flex; width:240px; min-width:0; flex:0 1 240px; min-height:44px; }
.stay-preview .brand-image { display:block; width:100%; height:auto; }
.stay-preview .header-actions { display:flex; align-items:center; gap:4px; flex-shrink:0; }
.stay-preview .site-header .icon { width:24px; height:24px; }
.stay-preview .site-header .phone { color:var(--brand-primary); min-width:44px; min-height:44px; justify-content:center; }
.stay-preview .site-header .phone:hover { color:var(--brand-primary-hover); }
.stay-preview .header-inner .desktop-nav { margin-left:auto; }
.stay-preview .site-header nav a { color:var(--text-primary); text-decoration:none; text-underline-offset:3px; }
.stay-preview .site-header nav a:hover { text-decoration:underline; }
.stay-preview .site-header :is(a,button):focus-visible { outline:3px solid var(--brand-primary); outline-offset:3px; }
.stay-preview :is(.menu-toggle,.menu-close) { align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:10px; border:0; background:transparent; color:var(--text-primary); }
.stay-preview .menu-toggle { display:none; }
.stay-preview .menu-close { display:flex; }
.stay-preview :is(.menu-toggle,.menu-close):hover { background:var(--brand-primary-soft); }
#mobile-menu { width:320px; max-width:calc(100% - 32px); max-height:calc(100dvh - 32px); padding:16px; border:1px solid var(--border-subtle); border-radius:10px; background:var(--surface); color:var(--text-primary); overflow:auto; }
#mobile-menu::backdrop { background:rgba(41,37,48,0.40); }
.mobile-menu-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.mobile-menu-top h2 { font-size:1.125rem; }
#mobile-menu nav { display:flex; flex-direction:column; gap:4px; margin-top:8px; }
#mobile-menu nav a { display:flex; align-items:center; min-height:44px; padding:10px 8px; overflow-wrap:anywhere; }
#mobile-menu nav a:hover { background:var(--brand-primary-soft); }
@media(max-width:768px) {
  .stay-preview .header-inner { margin-left:16px; margin-right:16px; gap:8px; }
  .stay-preview .brand-logo { width:210px; flex:0 1 210px; }
  .stay-preview .header-actions { margin-left:auto; }
  .stay-preview .site-header .phone span { display:none; }
  .stay-preview .menu-ready .desktop-nav { display:none; }
  .stay-preview .menu-ready .menu-toggle { display:flex; }
  .stay-preview .site-header:not(.menu-ready) .header-inner { flex-wrap:wrap; }
  .stay-preview .site-header:not(.menu-ready) .desktop-nav { display:flex; flex-wrap:wrap; }
}
@media(min-width:641px) and (max-width:768px) {
  .stay-preview .header-inner { margin-left:24px; margin-right:24px; }
}

/* Tylko linki nazw ofert; linki pomocnicze zachowują podkreślenia. */
body.stay-preview .stay-info h3 a { color:var(--text-primary); text-decoration:none; text-underline-offset:3px; }
body.stay-preview .stay-info h3 a:hover { color:var(--text-primary); text-decoration:underline; }
body.stay-preview .stay-info h3 a:focus-visible { outline:3px solid var(--brand-primary); outline-offset:3px; }
@media(min-width:1001px) {
  .stay-card { grid-template-columns:300px minmax(0,1fr) 280px; }
  .stay-action { align-self:start; }
}
