/* @file static/css/site.css */
/* @description Additions on top of the copied old styles (style.css): the lightbox and the
   <dialog> modal that replace fancybox, and small helpers. Nothing here changes the old look. */

/* modal window: the old .mod_win was shown by fancybox; now it is a native <dialog> */
dialog.mod_win { display: none; border: 0; margin: auto; box-shadow: 0 10px 40px rgba(0,0,0,.3); background: #fff; }
dialog.mod_win[open] { display: block; margin-top: 40px !important; }
dialog.mod_win::backdrop { background: rgba(24,24,27,.6); }
dialog.mod_win .mw_bottom .link { background: none; border: 0; cursor: pointer; margin-left: 16px; }
.mw_success { color: #2e7d32; font-weight: 600; }

/* lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lightbox::backdrop { background: rgba(24,24,27,.92); }
dialog.lightbox .lb_stage { position: absolute; inset: 48px 64px 56px; display: flex; align-items: center; justify-content: center; }
dialog.lightbox .lb_stage img { max-width: 100%; max-height: 100%; border-radius: 4px; box-shadow: 0 8px 32px rgba(0,0,0,.5); }
dialog.lightbox .lb_stage iframe { width: min(1120px, 100%); aspect-ratio: 16 / 9; max-height: 100%; border: 0; background: #000; }
dialog.lightbox button { position: absolute; z-index: 2; border: 0; background: rgba(255,255,255,.12); color: #fff; font: 32px/1 sans-serif; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
dialog.lightbox button:hover { background: rgba(255,255,255,.28); }
dialog.lightbox .lb_close { top: 12px; right: 12px; }
dialog.lightbox .lb_prev { left: 8px; top: 50%; margin-top: -24px; }
dialog.lightbox .lb_next { right: 8px; top: 50%; margin-top: -24px; }
dialog.lightbox.single .lb_prev, dialog.lightbox.single .lb_next { display: none; }
dialog.lightbox .lb_caption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #fff; font-size: 14px; padding: 0 64px; }
@media (max-width: 620px) {
  dialog.lightbox .lb_stage { inset: 48px 8px 56px; }
  dialog.lightbox .lb_prev, dialog.lightbox .lb_next { display: none; }
}

/* А7: таблица «Свободные номера» приходит целиком, строки после пятой показывает кнопка */
.rooms_list .rl_block.rl_extra { display: none; }

/* 31.10.2026: «Удалить» на странице отзывов — кнопка формы (запрос POST) с видом старой ссылки adm_links */
.adm_links form.adm_delete { display: inline; margin: 0; }
.adm_links form.adm_delete button.link { border: 0; font: inherit; font-size: 14px; }

/* numbered pages of a list (templates/core/pager.html) and the guests' rating line of /otzyvy/ */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--border_radius); font-family: var(--font_bold); font-size: 16px; text-decoration: none; }
.pager a { background: #fff; box-shadow: var(--shadow_element); color: var(--link_color); }
.pager a:hover { background: #252525; color: var(--blue_color); }
.pager .pg_current { background: var(--blue_color); color: #fff; text-shadow: var(--shadow_text); }
.pager .pg_gap { min-width: 20px; padding: 0; color: var(--small_text_color); }
.reviews_summary { margin-bottom: 12px; color: var(--small_text_color); }
.reviews_summary b { color: var(--text_color); }

/* old quote «Имя пишет: …» inside a review (reviews/quotes.py) */
.vr_quote { margin: 0 0 8px; padding: 8px 12px; border-left: 3px solid var(--blue_color_light); background: #f7f9fb; border-radius: var(--border_radius); color: var(--small_text_color); font-style: italic; }
.vr_quote b { font-style: normal; color: var(--text_color); }
