/* FEEL APART apartment calendar (site/assets/feel-booking/feel-booking.js).
   Palette follows the former Bnovo widget on the cards: #F7F7F7 panel,
   #D9D9D9 borders, #333 buttons; the font is inherited from the page (Roboto). */

.apart-booking.feel-booking-host { height: auto !important; }
/* The catalog calendar replaced a Bnovo iframe in a narrower block of fixed height:
   the side padding repeats .content-container, so it lines up with the catalog below. */
.content-container--booking { height: auto !important; padding-left: 2.08em; padding-right: 2.08em; }
@media (max-width: 991px) { .content-container--booking { padding-left: 2.6em; padding-right: 2.6em; } }
@media (max-width: 479px) { .content-container--booking { padding-left: 3.13em; padding-right: 3.13em; } }
/* Target of the header button: above the calendar by the height of the fixed header. */
.feel-booking-anchor { display: block; position: relative; top: -90px; height: 0; }

.fb { box-sizing: border-box; width: 100%; background: #f7f7f7; border: 1px solid #d9d9d9; padding: 18px 16px 16px; color: #2b2b2b; font-size: 14px; line-height: 1.3; -webkit-font-smoothing: antialiased; }
.fb *, .fb *::before, .fb *::after { box-sizing: border-box; }
/* Cell/button rules below are prefixed with .fb so they outrank this reset. */
.fb button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fb button:disabled { cursor: default; }

.fb__months { display: flex; gap: 24px; }
.fb__month { flex: 1 1 0; min-width: 0; }
.fb__month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fb__month-name { font-weight: 500; font-size: 15px; letter-spacing: 0.02em; }
.fb .fb__nav { width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; color: #2b2b2b; }
.fb .fb__nav:hover:not(:disabled) { background: #e6e6e6; }
.fb .fb__nav:disabled { color: #c4c4c4; }
.fb .fb__nav-spacer { width: 32px; height: 32px; }

.fb__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.fb__weekday { text-align: center; font-size: 11px; color: #8a8a8a; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 0 6px; }
.fb .fb__day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px; padding: 5px 0 4px; border-radius: 4px; background: #fff; transition: background .12s ease, color .12s ease; }
.fb .fb__day-num { font-size: 14px; line-height: 1; }
.fb .fb__day-price { font-size: 10px; line-height: 1; margin-top: 4px; color: #8a8a8a; min-height: 10px; white-space: nowrap; }
.fb .fb__day:hover:not(:disabled) { box-shadow: inset 0 0 0 1px #8a8a8a; }
.fb .fb__day--out { visibility: hidden; }
.fb .fb__day--past { background: transparent; color: #c4c4c4; }
.fb .fb__day--past .fb__day-price { visibility: hidden; }
/* Nights, not days: the upper-left half is the night that ends this morning,
   the lower-right half the night that starts this evening. */
.fb .fb__day--busy-before { background: linear-gradient(135deg, transparent 50%, #fff 50%), repeating-linear-gradient(135deg, #e9e9e9 0 4px, #d2d2d2 4px 8px); }
.fb .fb__day--busy-after { background: linear-gradient(135deg, #fff 50%, transparent 50%), repeating-linear-gradient(135deg, #e9e9e9 0 4px, #d2d2d2 4px 8px); }
.fb .fb__day--busy { background: repeating-linear-gradient(135deg, #e9e9e9 0 4px, #d2d2d2 4px 8px); color: #9a9a9a; }
.fb .fb__day--too-short { color: #c4c4c4; }
.fb .fb__day--too-short .fb__day-price { color: #d0d0d0; }
.fb .fb__day--busy .fb__day-num { text-decoration: line-through; }
.fb .fb__day--busy-after:not(.fb__day--busy) .fb__day-num { color: #2b2b2b; }
.fb .fb__day--today .fb__day-num { text-decoration: underline; text-underline-offset: 3px; }
.fb .fb__day--inrange { background: #e3e3e3; color: #2b2b2b; }
.fb .fb__day--inrange .fb__day-price { color: #6f6f6f; }
.fb .fb__day--checkin, .fb .fb__day--checkout { background: #333 !important; color: #f7f7f7; }
.fb .fb__day--checkin .fb__day-price, .fb .fb__day--checkout .fb__day-price { color: #d6d6d6; }
.fb .fb__day--checkin .fb__day-num, .fb .fb__day--checkout .fb__day-num { text-decoration: none; }

.fb__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 11px; color: #8a8a8a; }
.fb__legend-item { display: inline-flex; align-items: center; }
.fb__legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; }
.fb__legend-swatch--busy { background: repeating-linear-gradient(135deg, #e9e9e9 0 3px, #d2d2d2 3px 6px); border: 1px solid #cfcfcf; }

.fb__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #d9d9d9; }
.fb__guests { display: inline-flex; align-items: center; gap: 10px; }
.fb__guests-label { font-size: 13px; color: #555; }
.fb .fb__step { width: 30px; height: 30px; border: 1px solid #bbb; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; background: #fff; }
.fb .fb__step:hover:not(:disabled) { border-color: #333; }
.fb .fb__step:disabled { color: #c4c4c4; border-color: #e0e0e0; }
.fb__guests-count { min-width: 18px; text-align: center; font-weight: 500; }
.fb__summary { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; min-width: 0; }
.fb__range { font-size: 14px; }
.fb__total { font-size: 18px; font-weight: 500; letter-spacing: 0.01em; }
.fb__hint { font-size: 13px; color: #8a8a8a; }

.fb__notice { margin-top: 10px; font-size: 12px; color: #a33; }
.fb__notice--muted { color: #8a8a8a; }

.fb__actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.fb .fb__book { flex: 1 1 auto; height: 44px; padding: 0 20px; background: #333; color: #f7f7f7; border: 1px solid #333; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; transition: background .15s ease, color .15s ease; }
.fb .fb__book:hover:not(:disabled) { background: #f7f7f7; color: #333; }
.fb .fb__book:disabled { background: #bdbdbd; border-color: #bdbdbd; color: #f7f7f7; }
.fb .fb__reset { font-size: 12px; color: #8a8a8a; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.fb .fb__reset:hover { color: #333; }

/* ---- catalog spread: large dates beside a single month, no panel, no prices ---- */
/* The page's own font size, so the heading matches "/ Каталог апартаментов" at every width. */
.fb.fb--catalog { background: none; border: 0; padding: 0 0 48px; border-bottom: 1px solid #dedede; color: #1f1f1f; font-size: inherit; }
/* The catalog's own two columns (.catalog__wrapper): the dates over the first card, the month
   over the second, so nothing drifts to the far edges of a wide screen. */
.fb--catalog .fb__root { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.38em; }
@media (max-width: 991px) { .fb--catalog .fb__root { column-gap: 1.95em; } }
.fb__cal { width: 100%; max-width: 392px; }
.fb__side { display: flex; flex-direction: column; min-width: 0; }
.fb__big { margin: 34px 0 0; font-size: clamp(44px, 5.2vw, 76px); line-height: 1.04; font-weight: 300; letter-spacing: -0.02em; }
.fb__big span { display: block; }
.fb__big--empty { color: #8f8f8f; }
.fb__sub { margin: 18px 0 0; font-size: 16px; color: #6b6b6b; }
.fb__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; margin-top: auto; padding-top: 32px; }
.fb__foot .fb__book { flex: 0 1 auto; }
.fb--catalog .fb__guests { font-size: 14px; }
.fb--catalog .fb__legend { font-size: 12px; color: #6b6b6b; }
.fb--catalog .fb__month-head { margin-bottom: 8px; }
.fb--catalog .fb__grid { gap: 0; }
.fb--catalog .fb__day-price { display: none; }
.fb.fb--catalog .fb__day { min-height: 50px; padding: 0; border-radius: 0; background: transparent; }
.fb--catalog .fb__day-num { font-size: 15px; }
.fb.fb--catalog .fb__day:hover:not(:disabled) { box-shadow: inset 0 -2px 0 #1f1f1f; }
.fb.fb--catalog .fb__day--past, .fb.fb--catalog .fb__day--too-short, .fb.fb--catalog .fb__day--busy { color: #c2c2c2; }
.fb.fb--catalog .fb__day--inrange { background: #e9e9e9; color: #1f1f1f; }
.fb.fb--catalog .fb__day--checkin, .fb.fb--catalog .fb__day--checkout { background: #1f1f1f !important; color: #fff; }

/* ---- catalog cards under the calendar ---- */
.fb-card--hidden { display: none !important; }
.fb-card-book { display: block; width: 100%; height: 44px; margin-top: 10px; background: #333; color: #f7f7f7; border: 1px solid #333; font: inherit; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; transition: background .15s ease, color .15s ease; }
.fb-card-book[hidden] { display: none; }
.fb-card-book:hover { background: #f7f7f7; color: #333; }

/* ---- booking module overlay ---- */
.fb-no-scroll { overflow: hidden !important; }
.fb-overlay { position: fixed; inset: 0; z-index: 2147483000; background: rgba(20, 20, 20, 0.6); display: flex; align-items: center; justify-content: center; padding: 24px; }
.fb-overlay__panel { width: 100%; max-width: 1040px; height: 100%; max-height: 920px; background: #fff; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.fb-overlay__bar { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-bottom: 1px solid #e0e0e0; font-size: 14px; color: #2b2b2b; font-family: inherit; }
.fb-overlay__title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-overlay__ext { font-size: 12px; color: #8a8a8a; text-decoration: underline; white-space: nowrap; }
.fb-overlay__ext:hover { color: #333; }
.fb-overlay__close { width: 36px; height: 36px; font-size: 28px; line-height: 1; color: #555; background: none; border: 0; cursor: pointer; border-radius: 50%; }
.fb-overlay__close:hover { background: #eee; color: #000; }
.fb-overlay__frame-wrap { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.fb-overlay__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8a8a8a; font-size: 14px; }
.fb-overlay__frame { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; background: transparent; }

@media (max-width: 760px) {
  .content-section--booking + .content-section--catalog { padding-top: 32px; }
  .fb.fb--catalog { padding-bottom: 28px; }
  .fb--catalog .fb__root { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  .fb__big { margin-top: 16px; font-size: 44px; }
  .fb__big span { display: inline; }
  .fb__sub { margin-top: 10px; font-size: 14px; }
  .fb__foot { padding-top: 18px; }
  .fb--catalog .fb__guests { flex: 1 1 100%; }
  .fb.fb--catalog .fb__step { width: 44px; height: 44px; }
  .fb.fb--catalog .fb__day { min-height: 46px; }
}

@media (max-width: 640px) {
  .fb { padding: 14px 10px 12px; }
  .fb .fb__day { min-height: 42px; }
  .fb .fb__day-num { font-size: 13px; }
  .fb .fb__day-price { font-size: 9px; }
  .fb__controls { flex-direction: column; align-items: stretch; }
  .fb__summary { align-items: flex-start; text-align: left; }
  .fb-overlay { padding: 0; }
  .fb-overlay__panel { max-width: none; max-height: none; }
  .fb-overlay__ext { display: none; }
}
