/* =========================================================================
   NENÍ SOUČÁST ŠABLONY HOTELER (theme/) - vlastní soubor projektu Reserviana
   =========================================================================
   Reserviana-specific overrides on top of the purchased Hoteler theme
   (theme/ folder - never edit that, it's the untouched reference copy).
   This file is NOT part of the theme and NOT managed by Dreamweaver.

   Linked from Templates/reserviana260817.dwt.php's shared <head> - editing
   this file (and re-uploading it via FTP) takes effect on every page
   immediately, with NO Dreamweaver "Update Pages" republish needed. Only
   changes to the .dwt.php file itself (markup, PHP, or the <link> tag to
   this file) require that. Keep all site-wide CSS here, not back in an
   inline <style> block in the template - that was the previous approach,
   and it meant every one-line CSS tweak needed a full template republish. */

/* Dark-theme overrides for plain Bootstrap form controls, tables, alerts
   and the flatpickr calendar, which otherwise render with their light
   defaults on this dark site. Admin-tooling styling only - the public
   property page gets its own user-editable color scheme later. */
.form-control,
.form-select,
select.form-control,
textarea.form-control {
  background-color: var(--theme-color-dark2);
  color: var(--theme-color-light);
  border-color: rgba(255, 255, 255, 0.15);
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.form-control:focus,
.form-select:focus {
  background-color: var(--theme-color-dark2);
  color: var(--theme-color-light);
  border-color: var(--theme-color1);
  box-shadow: none;
}
.form-check-input {
  background-color: var(--theme-color-dark2);
  border-color: rgba(255, 255, 255, 0.3);
}
.form-check-input:checked {
  background-color: var(--theme-color1);
  border-color: var(--theme-color1);
}
.table th,
.table td {
  background-color: var(--theme-color-dark2);
  color: var(--theme-color-light);
  border-color: rgba(255, 255, 255, 0.12);
}
.alert-success {
  background-color: rgba(40, 167, 69, 0.15);
  color: #8ee6a0;
  border-color: rgba(40, 167, 69, 0.3);
}
.alert-danger {
  background-color: rgba(220, 53, 69, 0.15);
  color: #f5a3ac;
  border-color: rgba(220, 53, 69, 0.3);
}
.alert-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--theme-color-light);
  border-color: rgba(255, 255, 255, 0.15);
}
.flatpickr-calendar {
  background: var(--theme-color-dark2);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  background: transparent;
  color: var(--theme-color-light);
  fill: var(--theme-color-light);
}
.flatpickr-current-month .flatpickr-monthDropdown-months option {
  background: var(--theme-color-dark2);
  color: var(--theme-color-light);
}
span.flatpickr-weekday {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
}
.flatpickr-day {
  color: var(--theme-color-light);
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: rgba(255, 255, 255, 0.25);
}
.flatpickr-day:hover {
  background: rgba(255, 255, 255, 0.12);
}
.flatpickr-day.today {
  border-color: var(--theme-color1);
}
.flatpickr-day.selected {
  background: var(--theme-color1);
  border-color: var(--theme-color1);
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: var(--theme-color-light);
}
/* Bootstrap's floating-label inputs paint a hardcoded white ::after patch
   behind the label (to mask the border line when it floats up) and a dark
   text color - both assume a light theme, so both need overriding here. */
.form-floating > label::after {
  background-color: var(--theme-color-dark2) !important;
}
.form-floating > label {
  color: rgba(255, 255, 255, 0.6) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.6) !important;
}
/* Theme's own light "card" components used on public/admin pages built
   from room-details.html (booking box, room stat box). */
.kodelisting-room-booking,
.kodelisting-room-booking-wrap,
.room-details__details-box {
  background-color: var(--theme-color-dark2) !important;
}
/* Text fallback shown in place of the logo image on a property's public
   pages when the landlord hasn't uploaded a logo yet. */
.logo-text {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: var(--theme-color-light);
  line-height: 1.2;
}
/* Tagline under the Reserviana logo (platform pages only - property
   pages show the property's own name/logo instead, no tagline). Real
   translated text, not baked into the logo image, so it follows the
   current language like everything else on the site.
   Positioned absolutely (the theme's own .logo-box rule already sets
   position: relative, so no anchor needed here) instead of sitting in
   normal flow below the logo - in flow it added ~21px to header-lower's
   flex-row height (measured), which cascades into --rsv-header-offset and
   makes .page-title's whole reserved area taller than necessary for
   something that's purely decorative. Right-aligned to match the right
   edge of "Reserviana" (the .logo-box width is exactly the logo's own
   width, so right:0 lines up with the wordmark, not the house icon). */
.site-tagline {
  position: absolute;
  top: 100%;
  right: 0;
  /* Negative to cancel out the logo <img>'s own bottom whitespace (its
     line box has some descender room below the visible glyphs), pulling
     the tagline visually snug against the logo instead of leaving a gap. */
  margin-top: -8px;
  font-family: "Playfair Display", serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--theme-color1);
  white-space: nowrap;
}
/* In the header, .logo-box shrinks to fit its content (a flex child with no
   stretch), so .site-tagline's `right: 0` above already lands exactly on
   the logo image's own right edge. In the footer, .about-widget .logo is a
   plain block-level div spanning the full width of its column (374px vs
   the 306px-wide logo image), so `right: 0` there landed ~68px past the
   image - forcing it to shrink-to-fit via inline-block fixes that, with no
   change needed to .site-tagline itself. */
.footer-widget.about-widget .logo {
  display: inline-block;
}
/* header-style-five is `position: absolute` by the theme's own design
   (theme/css/style.css, meant to float over a tall hero banner on
   homepage-style layouts) - we reuse it site-wide, including on
   .page-title pages, where its real height varies (2 header-top rows
   normally, 3 when the admin bar above is showing for a logged-in
   user/staff/superadmin). The theme hardcodes .page-title's padding-top
   at 120px for a shorter, fixed-height header, so on our taller/variable
   header the title text ends up overlapping or crowding the nav. Fixed
   by measuring the real header height in JS (in the shared template) and
   feeding it back as this variable, instead of guessing a bigger fixed
   number. */
.page-title {
  padding-top: var(--rsv-header-offset, 120px) !important;
  /* The theme reserves 330px of room below its header for the centered
     title/breadcrumb block (450px min-height - its own 120px padding-top).
     Only overriding padding-top above kept min-height fixed at 450px, so
     when our real header is taller than 120px that 330px shrank instead
     of shifting down with it - squeezing the title/breadcrumb against the
     section's bottom edge instead of centering them. Deriving min-height
     from the same measured offset keeps that original 330px of breathing
     room constant, matching the theme's proportions instead of fighting
     them. */
  min-height: calc(var(--rsv-header-offset, 120px) + 330px) !important;
}
/* Header right side, desktop only: the theme's search icon was decorative
   (its form GETs to "/" with a "search-field" param nothing reads - removed
   entirely, markup and popup both), and the theme's hamburger/off-canvas
   menu duplicates the exact same links already visible in the horizontal
   main menu on desktop (it only earns its keep on mobile, where the main
   menu is hidden below the theme's 991.98px breakpoint). In the space that
   freed up, a single CTA: "Přidat nemovitost" for a logged-in landlord/
   staff member, "Registrace" for an anonymous visitor. header-style-five's
   own .mobile-nav-toggler rule has no media query (shows it at all sizes),
   so it needs an explicit override to hide it on desktop. */
.header-cta {
  display: none;
}
@media (min-width: 992px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
  }
  .header-style-five .mobile-nav-toggler {
    display: none !important;
  }
  /* "Přihlášení"/"Registrace" in the horizontal nav (and its sticky-header
     clone, both built from the same .navigation list) are now merged into
     the single .header-cta button next to them - hide both list items
     there. Left alone in .mobile-menu's own copy (off-canvas sidebar), the
     only place left with separate login/register links once the desktop
     hamburger is gone: mobile still opens that sidebar via its own toggler
     below this breakpoint, and a two-line list costs nothing there. */
  .main-header .navigation > .nav-login-item,
  .main-header .navigation > .nav-register-item,
  .sticky-header .navigation > .nav-login-item,
  .sticky-header .navigation > .nav-register-item {
    display: none;
  }
}
/* Language switcher, desktop: was plain grey CS/EN/SK/DE text links,
   barely readable against the dark header photo background. Round flag
   PNGs (self-drawn - see images/flags/, no country-flag asset existed in
   the theme or its bundled icon sets) read at a glance instead of
   requiring the visitor to parse a 2-letter code. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
}
.lang-switch .lang-flag {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.55;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity 200ms ease, outline-color 200ms ease;
}
.lang-switch .lang-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lang-switch .lang-flag:hover {
  opacity: 0.85;
}
.lang-switch .lang-flag.active {
  opacity: 1;
  outline-color: var(--theme-color1);
}

/* Mobile header: the full-text language switcher (CS EN SK DE) and the
   Přihlášení/Registrace links crowded out the logo on narrow screens -
   hide both below the theme's own mobile breakpoint and replace them
   with a compact flag-circle dropdown next to the search icon. Login/
   register move into the slide-out mobile menu instead (see the shared
   template for the toggle script). Same round flag PNGs as the desktop
   switcher above - originally emoji flags (🇨🇿 etc.), which Windows
   renders as plain two-letter country codes instead of actual flags. */
.lang-switch-mobile {
  display: none;
  position: relative;
  align-items: center;
  margin-right: 14px;
}
@media (max-width: 991.98px) {
  .lang-switch {
    display: none !important;
  }
  .lang-switch-mobile {
    display: inline-flex;
  }
}
.lang-switch-mobile-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  outline: 2px solid var(--theme-color1);
  outline-offset: 2px;
}
.lang-switch-mobile-panel {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: var(--theme-color-dark2);
  border-radius: 10px;
  padding: 8px;
  gap: 6px;
  flex-direction: column;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.lang-switch-mobile-panel.open {
  display: flex;
}
.lang-switch-mobile-panel .flag-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  opacity: 0.6;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity 200ms ease, outline-color 200ms ease;
}
.lang-switch-mobile-panel .flag-circle:hover {
  opacity: 0.9;
}
.lang-switch-mobile-panel .flag-circle.active {
  opacity: 1;
  outline-color: var(--theme-color1);
}
.flag-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
