/* ==========================================================================
   Kasino Custom — Readability & Contrast Fixes
   Hotel Altes Kasino am See, Neuruppin
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. BRAND COLORS — CSS Custom Properties
   -------------------------------------------------------------------------- */

:root {
  --wp--preset--color--primary: #800000;
  --wp--preset--color--secondary: #c1b086;
  --wp-admin-theme-color: #800000;
  --wp-admin-theme-color--rgb: 128, 0, 0;
}

/* --------------------------------------------------------------------------
   1. HERO SLIDER — Image Overlay

   Full dark scrim over every slide image for guaranteed text readability.
   Two layers:
   • Uniform tint across entire image (base contrast)
   • Bottom-heavy gradient where title + excerpt text sits (extra contrast)
   -------------------------------------------------------------------------- */

.luviana-front-page-header .child-pages-list .child-page-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Uniform dark scrim — ensures contrast even on bright center areas */
    linear-gradient(
      to bottom,
      rgba(10, 15, 35, 0.55) 0%,
      rgba(10, 15, 35, 0.35) 40%,
      rgba(10, 15, 35, 0.50) 100%
    ),
    /* Extra bottom gradient where text content sits */
    linear-gradient(
      to top,
      rgba(5, 8, 22, 0.50) 0%,
      rgba(5, 8, 22, 0.25) 30%,
      transparent 60%
    );
  pointer-events: none;
}

/* Video slides already have their own ::after — layer ours on top via ::before */
.luviana-front-page-header .front-page-slider-video .child-page-thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 15, 35, 0.45) 0%,
      rgba(10, 15, 35, 0.30) 40%,
      rgba(10, 15, 35, 0.45) 100%
    );
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   1b. HERO SLIDER — Viewport-Height Constraint

   Slide + navigation must fit exactly within the viewport.
   The original theme uses min-height: 80vh with massive padding
   (18rem top + 15.625rem bottom) which overflows the screen.
   -------------------------------------------------------------------------- */

/* Each slide = exactly viewport height */
.luviana-front-page-header .child-pages-list .child-page {
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/* Reduce padding so text + button + dots fit within viewport */
.luviana-front-page-header .child-pages-list .child-page-content-wrapper {
  padding-top: 8rem;
  padding-bottom: 10rem;
}

/* Slick dots: bring closer to bottom edge */
.luviana-front-page-header .slick-dots {
  bottom: 3rem;
}

/* Ensure text content sits above overlays */
.luviana-front-page-header .child-pages-list .child-page-content-wrapper {
  z-index: 2;
}

/* --------------------------------------------------------------------------
   2. HERO SLIDER — Text Readability

   Strong text-shadows to carve the text out of any background.
   Plus a semi-transparent backdrop behind the text block itself
   for guaranteed legibility regardless of image brightness.
   -------------------------------------------------------------------------- */

/* Title — e.g. "Hotel" */
.luviana-front-page-header .child-pages-list .child-page-title h2 {
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.70),
    0 1px 6px rgba(0, 0, 0, 0.50),
    0 0 40px rgba(0, 0, 0, 0.30);
}

/* Excerpt text — e.g. the restaurant description */
.luviana-front-page-header .child-pages-list .child-page-content {
  text-shadow:
    0 1px 12px rgba(0, 0, 0, 0.65),
    0 1px 4px rgba(0, 0, 0, 0.45);
}

/* Hide decorative first-letter overlay — adds clutter, hurts readability */
.luviana-front-page-header .child-pages-list .child-page-first-letter {
  display: none;
}

/* "Mehr Informationen" button */
.luviana-front-page-header .child-pages-list .child-page-content .more-link {
  text-shadow: none;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.08);
}

.luviana-front-page-header .child-pages-list .child-page-content .more-link:hover {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Slick dots — better visibility */
.luviana-front-page-header .slick-dots li button {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------------------
   3. MAIN NAVIGATION — Transparent Header on Front Page

   Three-layer approach:
   a) The hero's top gradient (above) handles the bulk of contrast
   b) backdrop-filter adds a live frosted-glass effect (modern browsers)
   c) text-shadow on links provides the final safety net
   -------------------------------------------------------------------------- */

body.absolute-menu .site-header {
  -webkit-backdrop-filter: blur(6px) brightness(0.82);
  backdrop-filter: blur(6px) brightness(0.82);
  background: linear-gradient(
    to bottom,
    rgba(15, 20, 40, 0.25) 0%,
    rgba(15, 20, 40, 0.08) 100%
  );
}

/* Nav link text-shadow — barely perceptible but ensures legibility */
body.absolute-menu .site-header .main-navigation a {
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.35),
    0 0px 2px rgba(0, 0, 0, 0.20);
}

/* Site title / branding in absolute mode */
body.absolute-menu .site-header .site-branding .site-title a {
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.35),
    0 0px 2px rgba(0, 0, 0, 0.20);
}

/* Hamburger lines get a subtle shadow on mobile too */
body.absolute-menu .menu-toggle .line {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.30);
}

/* --------------------------------------------------------------------------
   4. STICKY HEADER — When nav becomes sticky, remove glass effect
   -------------------------------------------------------------------------- */

.site-header-container.sticky-maybe-shown .site-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: #fff;
}

/* --------------------------------------------------------------------------
   5. MOBILE MENU OPEN STATE
   -------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
  body.absolute-menu .site-header.menu-toggled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #fff;
  }
}

/* --------------------------------------------------------------------------
   6. DROPDOWN SUBMENUS — White bg, Dunkelrot hover

   White background by default (theme default). Hover in Dunkelrot
   instead of theme blue (#252e59).
   -------------------------------------------------------------------------- */

/* Hover/active: Dunkelrot instead of theme blue */
.main-navigation ul ul li:hover > a,
.main-navigation ul ul li.current-menu-item > a {
  background: #800000;
  color: #fff;
  border-color: transparent;
}

@media (min-width: 992px) {
  body.absolute-menu .site-header .main-navigation ul ul a {
    text-shadow: none;
  }

  .main-navigation ul ul:after {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  }
}

/* --------------------------------------------------------------------------
   6b. GUTENBERG BUTTON BLOCK — Dunkelrot hover, bottom margin

   Theme default hover is blue (#252e59). Override to Dunkelrot.
   -------------------------------------------------------------------------- */

/* Filled button hover */
.wp-block-button__link:hover,
.wp-block-file .wp-block-file__button:hover {
  border-color: #800000;
  background: #800000;
}

/* Outline button hover */
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: #800000;
  background: #800000;
  color: #fff;
}

/* Bottom margin */
.wp-block-buttons {
  margin-bottom: 1.5em;
}

/* --------------------------------------------------------------------------
   7. AMENITIES ICON LIST — Left-aligned text, baseline-aligned icons

   The Getwid Icon Box blocks (.has-icon-left) have two issues:
   • Paragraphs carry has-text-align-center from Gutenberg → force left
   • Icon containers have manual margin-top offsets and paragraph margins
     throw off the vertical alignment → normalize to clean center-align
   -------------------------------------------------------------------------- */

/* Text: left-aligned (override Gutenberg center) */
.wp-block-getwid-icon-box.has-icon-left .wp-block-getwid-icon-box__content p {
  text-align: left !important;
  margin-top: 0;
  margin-bottom: 0;
}

/* Icon: remove manual margin offsets, ensure consistent center alignment */
.wp-block-getwid-icon-box.has-icon-left .wp-block-getwid-icon-box__icon-container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   8. GOOGLE REVIEWS CAROUSEL
   -------------------------------------------------------------------------- */

.kasino-gr-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Summary line: logo + stars + score */
.kasino-gr-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.kasino-gr-logo svg {
  display: block;
}

.kasino-gr-stars {
  color: #f4b400;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.kasino-gr-score {
  color: #fff;
  font-size: 0.95rem;
}

/* Review slides */
.kasino-gr-quote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #fff;
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
}

.kasino-gr-reviewer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.kasino-gr-avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.kasino-gr-avatar-placeholder {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.7);
}

.kasino-gr-name {
  text-align: left;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
}

.kasino-gr-time {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.kasino-gr-slide-stars {
  display: block;
}

.kasino-gr-slide-stars .kasino-gr-stars {
  font-size: 0.85rem;
}

/* Attribution link */
.kasino-gr-attribution {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.kasino-gr-attribution a {
  color: #c1b086;
  text-decoration: none;
}

.kasino-gr-attribution a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Slick dots for review carousel */
.kasino-gr-carousel .slick-dots {
  margin-top: 1rem;
  position: static;
}

.kasino-gr-carousel .slick-dots li button:before {
  color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.kasino-gr-carousel .slick-dots li.slick-active button:before {
  color: #fff;
  opacity: 1;
}

/* Fallback (no API data) */
.kasino-gr-fallback {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.kasino-gr-fallback .kasino-gr-quote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #fff;
  border: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.kasino-gr-author {
  color: #fff;
  font-size: 0.9rem;
}

.kasino-gr-source {
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   9. FOOTER — Redesigned Hotel Footer

   Dark maroon bar, vertically stacked:
   hotel name → gold ornament → contact details → social links.
   Overrides the parent theme's side-by-side flex layout.
   -------------------------------------------------------------------------- */

/* --- 9a. Wrapper: dark maroon background, override white default --- */

.site-info-wrapper {
  background: #800000;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.site-info-wrapper .wrapper:not(:empty) {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
  gap: 0;
}

/* Remove the border-top that shows after footer widgets */
.footer-widgets + .site-info-wrapper .wrapper:not(:empty) {
  border-top: none;
}

/* --- 9b. Hotel name --- */

.footer-hotel-name {
  display: block;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 0.75rem;
}

/* --- 9c. Gold ornament line --- */

.footer-ornament {
  display: block;
  width: 3rem;
  height: 1px;
  background: #c1b086;
  margin: 0 auto 1rem;
}

/* --- 9d. Contact detail row --- */

.footer-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.footer-detail {
  white-space: nowrap;
}

/* Gold middot separators between details (CSS-only, no extra markup) */
.footer-detail + .footer-detail::before {
  content: "\00b7";
  margin: 0 0.6em;
  color: #c1b086;
  font-weight: 700;
}

/* --- 9e. Links inside footer --- */

.site-info a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-info a:hover,
.site-info a:focus {
  color: #c1b086;
}

/* --- 9f. Override parent's side-by-side layout for .site-info --- */

.site-info-wrapper .site-info {
  order: 0;
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0;
}

.site-info-wrapper .site-info:not(:last-child) {
  width: 100%;
  max-width: none;
  margin-top: 0;
}

/* --- 9g. Social / review links row --- */

.site-info-wrapper .footer-menu-container {
  order: 1;
  width: 100%;
  max-width: none;
  margin-top: 1.25rem;
}

.site-info-wrapper .site-info + .footer-menu-container {
  width: 100%;
  max-width: none;
}

.site-info-wrapper .footer-menu-container .footer-menu {
  justify-content: center;
}

.site-info-wrapper .footer-menu-container .footer-menu li a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.site-info-wrapper .footer-menu-container .footer-menu li a:hover,
.site-info-wrapper .footer-menu-container .footer-menu li a:focus {
  color: #c1b086;
}

/* Separator slash in gold (already gold in parent, ensure on dark bg) */
.site-info-wrapper .footer-menu-container .footer-menu li::after {
  color: rgba(193, 176, 134, 0.4);
}

/* --- 9h. Mobile adjustments --- */

@media (max-width: 767px) {
  .footer-details {
    flex-direction: column;
    gap: 0.3rem;
  }

  .footer-detail + .footer-detail::before {
    display: none;
  }

  .footer-hotel-name {
    font-size: 1.1rem;
  }
}

/* --- 9i. Desktop: keep centered column, override parent row behavior --- */

@media (min-width: 992px) {
  .site-info-wrapper .wrapper:not(:empty) {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
  }

  .site-info-wrapper .site-info {
    text-align: center;
    max-width: none;
  }

  .site-info-wrapper .site-info:not(:last-child) {
    max-width: none;
  }

  .site-info-wrapper .site-info + .footer-menu-container {
    max-width: none;
  }

  .site-info-wrapper .footer-menu-container .footer-menu {
    justify-content: center;
  }
}
