/*
 * webia-widgets.css — faithful drawings of the WebiaBooking widgets a client
 * site embeds, for the template proposals. Drawn from the real thing
 * (design/screenshots F-02, F-04b, A-02 and the Vanha Merivartioasema room
 * list): the Hakupalkki and its date picker, the Hakemisto rows, and the
 * booking calendar. As in the real widget settings, each site sets its own
 * accent through these variables; everything else is the PMS's own look.
 */
.wbw {
  --wb-accent: #c9a227;
  --wb-accent-ink: #ffffff;
  --wb-radius: 999px;
  --wb-font: 'Mulish', 'Inter', system-ui, sans-serif;
  --wb-pick: #4a90e2;
  --wb-booked: #e8335a;
  --wb-free: #14c38e;
  --wb-blue: #1e88e5;
  --wb-today: #283593;
  font-family: var(--wb-font);
  color: #212121;
}
.wbw *, .wbw *::before, .wbw *::after { box-sizing: border-box; }
.wbw button { font-family: inherit; }
.wbw .mi { font-family: 'Material Icons'; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: 'liga'; }

/* ---------------- Hakupalkki ---------------- */
.wb-search { position: relative; width: min(100%, 980px); }
.wb-search__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 60px auto;
  align-items: stretch;
  background: #fff;
  border-radius: var(--wb-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  min-height: 62px;
}
.wb-search__f {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 22px;
  border: 0;
  border-right: 1px solid #e3e3e3;
  background: #fff;
  text-align: left;
  cursor: pointer;
  color: #212121;
}
.wb-search__f:first-child { padding-left: 28px; }
.wb-search__f:hover { background: #fafafa; }
.wb-search__f small { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #616161; }
.wb-search__f span { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-search__guests { cursor: default; }
.wb-search__guests:hover { background: #fff; }
.wb-search__count { display: flex; align-items: center; gap: 14px; }
.wb-search__count button {
  width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0;
  background: var(--wb-accent); color: var(--wb-accent-ink);
  display: grid; place-items: center; font-size: 16px; line-height: 1; cursor: pointer;
}
.wb-search__tune { display: grid; place-items: center; border: 0; border-right: 1px solid #e3e3e3; background: #fff; color: #424242; cursor: pointer; }
.wb-search__tune .mi { font-size: 26px; }
.wb-search__go {
  border: 0; padding: 0 44px; background: var(--wb-accent); color: var(--wb-accent-ink);
  font-size: 14px; font-weight: 800; letter-spacing: 0.14em; cursor: pointer;
}
.wb-search__go:hover { filter: brightness(0.94); }
.wb-search__map { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--wb-accent); text-decoration: none; }
.wbw button:focus-visible, .wb-search__map:focus-visible { outline: 2px solid var(--wb-pick); outline-offset: 2px; }

/* the hotel search: square, two dates and Hae */
.wb-search--hotel { width: min(100%, 620px); }
.wb-search--hotel .wb-search__bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 128px; gap: 0; border-radius: 0; box-shadow: none; min-height: 58px; background: transparent; }
.wb-search--hotel .wb-search__f { padding: 10px 20px; border-right: 1px solid #e3e3e3; }
.wb-search--hotel .wb-search__f:first-child { padding-left: 20px; }
.wb-search--hotel .wb-search__f small { font-size: 11px; font-weight: 400; letter-spacing: 0.02em; color: #757575; }
.wb-search--hotel .wb-search__f span { font-size: 14.5px; }
.wb-search--hotel .wb-search__go { margin-left: 6px; padding: 0 20px; font-size: 15px; font-weight: 600; letter-spacing: 0; }
@media (max-width: 860px) {
  .wb-search--hotel .wb-search__bar { grid-template-columns: 1fr 1fr; }
  .wb-search--hotel .wb-search__go { margin: 6px 0 0; padding: 16px; }
}

/* the date picker that opens under the bar */
.wb-dp {
  position: absolute; z-index: 30; left: 0; top: calc(100% + 10px);
  width: min(100%, 420px);
  background: #fff; border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  overflow: hidden; color: #212121;
}
.wb-dp[hidden] { display: none; }
.wb-dp__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 6px; }
.wb-dp__head strong { font-size: 19px; font-weight: 600; }
.wb-dp__nav { border: 0; background: none; color: #757575; font-size: 26px; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; }
.wb-dp__nav:disabled { opacity: 0.2; cursor: default; }
.wb-dp__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 8px 8px; text-align: center; }
.wb-dp__dow { padding: 10px 0; font-size: 14px; color: #757575; }
.wb-dp__day { height: 44px; border: 0; background: none; font-size: 16px; color: #212121; cursor: pointer; }
.wb-dp__day.is-past { color: #9e9e9e; cursor: default; }
.wb-dp__day.is-today { color: #e53935; }
.wb-dp__day.is-in { background: #e0e0e0; }
.wb-dp__day.is-end { background: var(--wb-pick); color: #fff; }
.wb-dp__day.is-start { border-radius: 6px 0 0 6px; }
.wb-dp__day.is-stop { border-radius: 0 6px 6px 0; }
.wb-dp__day.is-start.is-stop { border-radius: 6px; }
.wb-dp__chips { display: flex; gap: 6px; padding: 10px 8px; border-top: 1px solid #eee; overflow-x: auto; }
.wb-dp__chips span { flex: none; padding: 6px 12px; border: 1px solid #9e9e9e; border-radius: 999px; font-size: 13px; line-height: 1.2; }
.wb-dp__chips span:first-child { background: #e0e0e0; border-color: #bdbdbd; }
.wb-dp__done { display: block; width: calc(100% - 16px); margin: 0 8px 8px; padding: 14px; border: 0; background: var(--wb-pick); color: #fff; font-size: 17px; cursor: pointer; }

/* ---------------- Hakemisto (the catalog rows) ---------------- */
.wb-cat { display: grid; gap: 0; }
.wb-cat__cart { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #6dbb3c; color: #fff; font-size: 15px; font-weight: 600; border-radius: 2px; margin-bottom: 26px; }
.wb-cat__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 0 0 42px; margin-bottom: 42px; border-bottom: 1px solid #e0e0e0; }
.wb-cat__row:last-child { margin-bottom: 0; }
.wb-cat__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.wb-cat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-cat__img .mi { position: absolute; right: 10px; bottom: 10px; font-size: 34px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.wb-cat__body { display: grid; align-content: start; gap: 14px; min-width: 0; }
.wb-cat__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wb-cat__name { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; color: #212121; font-family: var(--wb-cat-title-font, var(--wb-font)); }
.wb-cat__left { color: #1e5aa8; font-size: 15px; }
.wb-cat__facts { display: flex; gap: 22px; font-size: 15px; color: #424242; }
.wb-cat__facts span { display: inline-flex; align-items: center; gap: 8px; }
.wb-cat__facts .mi { font-size: 24px; color: #424242; }
.wb-cat__opts { display: grid; gap: 6px; }
.wb-cat__opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16px; }
.wb-cat__opt label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.wb-cat__opt input { width: 18px; height: 18px; accent-color: var(--wb-blue); margin: 0; }
.wb-cat__dates { font-size: 15px; color: #424242; }
.wb-cat__foot { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; padding-top: 16px; border-top: 1px solid #e0e0e0; }
.wb-cat__more { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; padding-bottom: 8px; }
.wb-cat__sel { display: flex; gap: 22px; justify-content: center; }
.wb-cat__sel label { display: grid; gap: 6px; font-size: 14px; color: #424242; }
.wb-cat__sel select { width: 72px; padding: 6px 4px; border: 0; border-bottom: 1px solid #bdbdbd; background: transparent; font: inherit; font-size: 15px; color: #212121; }
.wb-cat__book { padding: 11px 26px; border: 0; background: var(--wb-cat-btn, #1b4d96); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; border-radius: 2px; }

/* ---------------- Booking calendar (one property) ---------------- */
.wb-cal { background: #f7f7f7; padding: 22px 26px 26px; color: #212121; }
.wb-cal__total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wb-cal__total strong { font-size: 28px; font-weight: 400; }
.wb-cal__total small { font-size: 16px; }
.wb-cal__flag { margin-left: auto; width: 22px; height: 15px; background: #fff; position: relative; box-shadow: 0 0 0 1px #e0e0e0; align-self: center; }
.wb-cal__flag::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 4px; background: #0d47a1; }
.wb-cal__flag::after { content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 4px; background: #0d47a1; }
.wb-cal__steps { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 0 0 18px; border-bottom: 1px solid #bdbdbd; font-size: 16px; }
.wb-cal__step { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; color: #424242; }
.wb-cal__step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #9e9e9e; color: #fff; font-size: 13px; font-weight: 600; }
.wb-cal__step.is-on b { background: var(--wb-blue); }
.wb-cal__step.is-on { color: #212121; }
.wb-cal__line { flex: 1; height: 1px; background: #e0e0e0; min-width: 16px; }
.wb-cal__card { margin-top: 26px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16); padding: 18px 22px 22px; }
.wb-cal__months { display: grid; grid-template-columns: repeat(var(--wb-cal-months, 2), minmax(0, 1fr)); gap: 36px; }
.wb-cal__mhead { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; margin-bottom: 10px; }
.wb-cal__mhead strong { text-align: center; font-size: 18px; font-weight: 400; color: #424242; }
.wb-cal__arrow { border: 0; background: none; color: #616161; font-size: 18px; cursor: pointer; padding: 0; }
.wb-cal__arrow[hidden] { visibility: hidden; display: block; }
.wb-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 6px; text-align: center; }
.wb-cal__dow { font-size: 15px; color: #757575; padding: 6px 0 8px; }
.wb-cal__d {
  position: relative; justify-self: center; width: 40px; height: 40px; max-width: 100%; aspect-ratio: 1;
  border: 0; border-radius: 50%; background: transparent; color: #424242; font-size: 16px; cursor: pointer; padding: 0;
}
.wb-cal__d:hover:not(:disabled) { background: #eeeeee; }
.wb-cal__d.is-booked { background: var(--wb-booked); color: #fff; cursor: not-allowed; }
.wb-cal__d.is-booked-in { background: linear-gradient(45deg, var(--wb-booked) 50%, transparent 50%); }
.wb-cal__d.is-booked-out { background: linear-gradient(45deg, transparent 50%, var(--wb-booked) 50%); }
.wb-cal__d.is-sel { background: var(--wb-free); color: #fff; }
.wb-cal__d.is-sel-in { background: linear-gradient(45deg, var(--wb-free) 50%, transparent 50%); }
.wb-cal__d.is-sel-out { background: linear-gradient(45deg, transparent 50%, var(--wb-free) 50%); }
.wb-cal__d.is-today:not(.is-sel):not(.is-booked) { background: var(--wb-today); color: #fff; }
.wb-cal__d.is-past { color: #bdbdbd; cursor: default; }
.wb-cal__foot { margin-top: 26px; display: grid; justify-items: end; gap: 22px; }
.wb-cal__people { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px 18px; width: min(100%, 380px); }
.wb-cal__people small { grid-column: 2; font-size: 14px; color: #757575; }
.wb-cal__people .mi { font-size: 32px; color: #616161; }
.wb-cal__people input { width: 100%; border: 0; border-bottom: 1px solid #9e9e9e; background: transparent; font: inherit; font-size: 17px; padding: 6px 0; color: #212121; }
.wb-cal__next { padding: 13px 38px; border: 0; border-radius: 3px; background: var(--wb-blue); color: #fff; font-size: 16px; letter-spacing: 0.04em; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); cursor: pointer; }
.wb-cal__msg { justify-self: stretch; text-align: right; min-height: 1.4em; font-size: 14px; color: #616161; }

@media (max-width: 860px) {
  .wb-search__bar { grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .wb-search__f { border-bottom: 1px solid #e3e3e3; padding: 12px 18px; }
  .wb-search__f:first-child { padding-left: 18px; }
  .wb-search__f:nth-child(2) { border-right: 0; }
  .wb-search__tune { border-bottom: 1px solid #e3e3e3; }
  .wb-search__go { grid-column: 1 / -1; padding: 18px; }
  .wb-cat__row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .wb-cat__foot { grid-template-columns: 1fr auto; }
  .wb-cat__more { grid-column: 1 / -1; }
  .wb-cal { padding: 18px 14px; }
  .wb-cal__steps .wb-cal__step span { display: none; }
  .wb-cal__card { padding: 14px 10px; }
  .wb-cal__months { --wb-cal-months: 1 !important; }
  .wb-cal__months > :nth-child(2) { display: none; }
  .wb-cal__months > :first-child .wb-cal__arrow[data-dir='1'] { visibility: visible; }
  .wb-cal__d { width: 36px; height: 36px; font-size: 15px; }
}
