/*
Theme Name: Ólafshús
Template: twentytwentyfive
Version: 0.9.11
Author: Steini
Text Domain: olafshus-child
Description: Block-based theme for Ólafshús.
*/

/* ==================================================
   TABLE OF CONTENTS
   ==================================================

   CHAPTER 1: BASE & TOKENS
      1.1 CSS Variables & Design Tokens
      1.2 Base Element Resets

   CHAPTER 2: GLOBAL LAYOUT
      2.1 Subpage Background & Overrides
      2.2 Editor Compatibility

   CHAPTER 3: HEADER
      3.1 Base Header Layout
      3.2 Header Background (Landing vs Subpages)
      3.3 Header Navigation & Links
      3.4 Header CTA Buttons
      3.5 Responsive Menu Button

   CHAPTER 4: LANDING PAGE TEMPLATE
      4.1 Template Setup & Overrides
      4.2 Hero Section
      4.3 Floating Feature Card
      4.4 Landing Sections & Content

   CHAPTER 5: BOOKING PAGE
      5.1 Page Structure & Layout
      5.2 Calendar Styles
      5.3 Pricing Card
      5.4 Booking Calculator

   CHAPTER 6: GALLERY & NEIGHBORHOOD
      6.1 Gallery Styles
      6.2 Neighborhood Section
      6.3 Video Embed
      6.4 Myndir Page Polish
      6.5 Lightbox

   CHAPTER 7: LINKS PAGE (TENGLAR)
      7.1 Links Page Layout
      7.2 Links Cards
      7.3 Links Tooltips

   CHAPTER 8: COMPONENTS
      8.1 Mobile Menu Overlay
      8.2 Scroll Hint
      8.3 Utility Classes

   CHAPTER 9: RATES & CALENDAR SECTIONS
      9.1 Rates Section
      9.2 Calendar Section

   CHAPTER 10: MEDIA QUERIES
      10.1 Tablet & Desktop (min-width: 769px+)
      10.2 Tablet Range (768px - 1199px)
      10.3 Mobile & Below (max-width: 780px)
      10.4 Small Mobile (max-width: 480px)
      10.5 Short Viewports (max-height: 640px)
      10.6 Very Small Screens (Progressive Content Reduction)
      10.7 Desktop Large (min-width: 1200px)

   ================================================== */


/* ==================================================
   CHAPTER 1: BASE & TOKENS
   ================================================== */

/* --------------------------------------------------
   1.1 CSS Variables & Design Tokens
   -------------------------------------------------- */

:root {
  /* Runtime aliases for theme.json custom properties */
  --olaf-radius: var(--wp--custom--radius, 22px);
  --olaf-radius-lg: var(--wp--custom--radius-lg, 28px);
  --olaf-shadow: var(--wp--custom--shadow);
  --olaf-shadow-soft: var(--wp--custom--shadow-soft);
  --olaf-max-card: var(--wp--custom--max-card, 1100px);
  --olaf-glass-bg: var(--wp--custom--glass-bg);
  --olaf-glass-blur: var(--wp--custom--glass-blur, 14px);
  --olaf-sep: var(--wp--custom--separator);

  /* Layout tokens (CSS-only, not in theme.json) */
  --olaf-header-pad-x: clamp(16px, 3vw, 44px);
  --olaf-header-pad-y: clamp(14px, 2.5vw, 22px);
  --olaf-cta-pad-y: .50rem;
  --olaf-cta-pad-x: 1.05rem;

  /* Spacing scale (landing) */
  --olaf-space-1: clamp(0.6rem, 1.2vw, 0.9rem);
  --olaf-space-2: clamp(1.1rem, 2.2vw, 1.6rem);
  --olaf-space-3: clamp(1.7rem, 3.2vw, 2.4rem);
  --olaf-space-4: clamp(2.4rem, 5vw, 3.4rem);
}

/* --------------------------------------------------
   1.2 Base Element Resets
   -------------------------------------------------- */

img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}


/* ==================================================
   CHAPTER 2: GLOBAL LAYOUT
   ================================================== */

/* --------------------------------------------------
   2.1 Subpage Background & Overrides
   -------------------------------------------------- */

/* Ensure consistent sand background on subpages - override any block backgrounds */
body:not(.page-template-template-landing) .wp-site-blocks {
  background: var(--wp--preset--color--sand);
}

/* Subpage groups should have transparent background by default */
body:not(.page-template-template-landing) .wp-block-group:not(.olaf-pricing-card):not(.olaf-booking-pricing-sidebar):not(.olaf-feature-card):not(.olaf-cta-band):not(.olaf-cta-section):not(.olaf-section-mist) {
  background: transparent !important;
}

/* Exception: Pricing card needs white background */
body:not(.page-template-template-landing) .olaf-pricing-card,
body:not(.page-template-template-landing) .olaf-booking-pricing-sidebar .wp-block-group {
  background-color: var(--wp--preset--color--paper, #ffffff) !important;
}

/* --------------------------------------------------
   2.2 Editor Compatibility
   -------------------------------------------------- */

/* Force visibility in editor & frontend (overriding Cover block white-text detection) */
body.page-template-template-landing .olaf-feature-card p,
body.page-template-template-landing .olaf-feature-card p strong,
body.page-template-template-landing .olaf-feature-card span {
  color: #111 !important;
}

/* In the editor canvas, don't absolutely-position the card (otherwise it floats weird while editing). */
.is-root-container .olaf-feature-float,
.editor-styles-wrapper .olaf-feature-float {
  position: static !important;
  transform: none !important;
  width: auto !important;
  margin: 1.5rem auto 0 !important;
}


/* ==================================================
   CHAPTER 3: HEADER
   ================================================== */

/* --------------------------------------------------
   3.1 Base Header Layout
   -------------------------------------------------- */

.olaf-site-header {
  /* Position set per page type below - don't set here */
  z-index: 2000;
  padding: var(--olaf-header-pad-y) 0 !important;
  border: 0 !important;
  transition: background 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              backdrop-filter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              padding 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Shrink header when scrolled - subtle padding reduction */
.olaf-site-header.header-scrolled {
  padding: calc(var(--olaf-header-pad-y) * 0.7) 0 !important;
}

/* Scale down logo and title slightly when scrolled */
.olaf-site-header.header-scrolled .wp-block-site-logo,
.olaf-site-header.header-scrolled .wp-block-site-title {
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.olaf-site-header .wp-block-site-logo,
.olaf-site-header .wp-block-site-title {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(1);
}

/* Header layout tweaks */
.olaf-site-header .alignwide {
  justify-content: space-between !important;
  width: 100%;
}

.olaf-header-left {
  display: flex;
  align-items: center;
}

.olaf-header-right {
  display: flex;
  align-items: center;
}

/* Hide site title on landing page (header is over the hero) */
body.page-template-template-landing .wp-block-site-title {
  display: none;
}

body:not(.page-template-template-landing) .olaf-header-left {
  padding-left: 0.5rem;
}

body:not(.page-template-template-landing) .olaf-header-right {
  padding-right: 0.5rem;
}

/* Add horizontal breathing room to header content */
body.page-template-template-landing .olaf-site-header .alignwide,
body.page-template-template-landing .olaf-site-header .alignfull {
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
  width: 100%;
}

/* Match header padding on subpages to avoid layout jump */
body:not(.page-template-template-landing) .olaf-site-header .alignwide,
body:not(.page-template-template-landing) .olaf-site-header .alignfull {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* --------------------------------------------------
   3.2 Header Background (Landing vs Subpages)
   -------------------------------------------------- */

/* Account for fixed header on subpages - prevent content hiding under header */
body:not(.page-template-template-landing) > .wp-site-blocks {
  padding-top: clamp(60px, 10vh, 80px);
}

/* Fixed glassmorphic header for subpages - true glassmorphic effect */
body:not(.page-template-template-landing) .olaf-site-header {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  /* Semi-transparent white with blur for strong glassmorphic effect */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.10);
}

/* Landing page: fixed positioning from start for smooth transitions */
body.page-template-template-landing .olaf-site-header {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  --scroll-progress: 0;

  /* Gradual transition using CSS custom property from JS */
  background: rgba(255, 255, 255, calc(0.45 * var(--scroll-progress)));
  backdrop-filter: blur(calc(16px * var(--scroll-progress))) saturate(calc(100% + (50% * var(--scroll-progress))));
  -webkit-backdrop-filter: blur(calc(16px * var(--scroll-progress))) saturate(calc(100% + (50% * var(--scroll-progress))));
  box-shadow: 0 2px 10px rgba(15, 23, 42, calc(0.10 * var(--scroll-progress)));
}


/* Disable header glassmorphism when mobile menu is open.
   1) Nested backdrop-filter doesn't work — child can only blur content
      between itself and the parent's backdrop, not the actual page.
   2) Header z-index creates a stacking context that traps the overlay —
      raise it so the menu covers everything (map, cards, etc).
   3) transition: none so the swap is instant (no blur "pop-in" delay). */
.olaf-site-header:has(.wp-block-navigation__responsive-container.is-menu-open) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 99999 !important;
  transition: none !important;
}

/* Default header text (non-hero pages) */
body:not(.page-template-template-landing) .olaf-site-header,
body:not(.page-template-template-landing) .olaf-site-header a {
  color: var(--wp--preset--color--midnight) !important;
  text-decoration: none;
}

/* Make header readable on photo (hero pages) - progressive color change on scroll */
body.page-template-template-landing .olaf-site-header,
body.page-template-template-landing .olaf-site-header a {
  /* Interpolate from white to midnight using scroll progress */
  color: color-mix(in srgb,
    #fff calc((1 - var(--scroll-progress, 0)) * 100%),
    var(--wp--preset--color--midnight) calc(var(--scroll-progress, 0) * 100%)
  ) !important;
  text-decoration: none;
  /* Fade out text-shadow as we scroll */
  text-shadow: 0 4px 12px rgba(0, 0, 0, calc(0.25 * (1 - var(--scroll-progress, 0))));
  /* Prevent font rendering shift during color transition */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  will-change: color;
}

/* --------------------------------------------------
   3.3 Header Navigation & Links
   -------------------------------------------------- */

/* Navigation spacing - consolidated */
.olaf-site-header .wp-block-navigation {
  margin-left: 0;
  padding-left: 1rem;
  padding-right: 0.5rem;
  transform: none;
}

/* Unified nav link styling - applies to ALL pages */
.olaf-site-header .wp-block-navigation a {
  opacity: .92;
  font-weight: 520;
  letter-spacing: .2px;
  transition: opacity 0.2s ease, border-color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.olaf-site-header .wp-block-navigation a:hover {
  opacity: 1;
}

/* Active menu item styling - subtle ocean blue underline */
.olaf-site-header .wp-block-navigation .current-menu-item > a,
.olaf-site-header .wp-block-navigation .current_page_item > a,
.olaf-site-header .wp-block-navigation .current-menu-ancestor > a,
.olaf-site-header .wp-block-navigation .current_page_ancestor > a {
  opacity: 1;
  border-bottom-color: var(--wp--preset--color--ocean, #2b8cff);
}

/* White underline on landing page to match header text */
body.page-template-template-landing .olaf-site-header .wp-block-navigation .current-menu-item > a,
body.page-template-template-landing .olaf-site-header .wp-block-navigation .current_page_item > a,
body.page-template-template-landing .olaf-site-header .wp-block-navigation .current-menu-ancestor > a,
body.page-template-template-landing .olaf-site-header .wp-block-navigation .current_page_ancestor > a {
  border-bottom-color: #fff;
}

/* Ocean blue underline on landing page when scrolled (matches dark text) */
body.page-template-template-landing .olaf-site-header.header-scrolled .wp-block-navigation .current-menu-item > a,
body.page-template-template-landing .olaf-site-header.header-scrolled .wp-block-navigation .current_page_item > a,
body.page-template-template-landing .olaf-site-header.header-scrolled .wp-block-navigation .current-menu-ancestor > a,
body.page-template-template-landing .olaf-site-header.header-scrolled .wp-block-navigation .current_page_ancestor > a {
  border-bottom-color: var(--wp--preset--color--ocean, #2b8cff);
}

/* Remove underline from button-styled nav items */
.olaf-site-header .wp-block-navigation .is-style-button a {
  border-bottom: none !important;
  padding-bottom: 0;
}

/* Keep header content right-aligned even if site title is removed */
body.page-template-template-landing .olaf-site-header .olaf-header-right {
  margin-left: auto;
  padding-right: 0.5rem;
}

/* Ensure header-right group has padding on regular pages too */
body:not(.page-template-template-landing) .olaf-site-header .olaf-header-right {
  padding-right: 0.5rem;
}

/* --------------------------------------------------
   3.4 Header CTA Buttons
   -------------------------------------------------- */

/* If your "Hafa samband" is a Button block in the header */
.olaf-site-header .wp-block-button__link {
  padding: var(--olaf-cta-pad-y) var(--olaf-cta-pad-x) !important;
  border-radius: 999px !important;
  background: var(--wp--preset--color--ocean, #2b8cff) !important;
  color: var(--wp--preset--color--paper) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

/* Header navigation button styling - scoped to header only */
.olaf-site-header .wp-block-navigation .wp-block-navigation-item__content.is-style-button,
.olaf-site-header .wp-block-navigation .wp-block-navigation-item.is-style-button>a {
  padding: var(--olaf-cta-pad-y) var(--olaf-cta-pad-x) !important;
  border-radius: 999px !important;
  background: var(--wp--preset--color--ocean, #2b8cff) !important;
  color: var(--wp--preset--color--paper) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

.olaf-site-header .wp-block-button__link:hover,
.olaf-site-header .wp-block-navigation .wp-block-navigation-item__content.is-style-button:hover,
.olaf-site-header .wp-block-navigation .wp-block-navigation-item.is-style-button>a:hover {
  background: var(--wp--preset--color--ocean-dark, #1f73d8) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.32);
}

/* Hide header CTA on landing page (hero already has primary CTA) */
body.page-template-template-landing .olaf-site-header .wp-block-button,
body.page-template-template-landing .olaf-site-header .wp-block-button__link,
body.page-template-template-landing .wp-block-navigation .wp-block-navigation-item.is-style-button,
body.page-template-template-landing .wp-block-navigation .wp-block-navigation-item__content.is-style-button {
  display: none !important;
}

/* --------------------------------------------------
   3.5 Responsive Menu Button
   -------------------------------------------------- */

/* Responsive menu button padding */
.olaf-site-header .wp-block-navigation__responsive-container-open {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}


/* ==================================================
   CHAPTER 4: LANDING PAGE TEMPLATE
   ================================================== */

/* --------------------------------------------------
   4.1 Template Setup & Overrides
   -------------------------------------------------- */

body.page-template-template-landing {
  overflow-x: hidden;
}

/* Reset parent theme spacing on landing page */
body.page-template-template-landing .wp-site-blocks {
  padding-top: 0;
  padding-bottom: 0;
}

body.page-template-template-landing .wp-site-blocks>header,
body.page-template-template-landing .wp-site-blocks>main,
body.page-template-template-landing .wp-site-blocks>.olaf-landing {
  margin: 0;
  padding: 0;
  max-width: none;
}

/* Landing main wrapper full bleed */
body.page-template-template-landing .olaf-landing {
  width: 100%;
}

/* Full-bleed cover blocks */
body.page-template-template-landing .olaf-landing .wp-block-cover.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Override constrained layout padding on landing */
body.page-template-template-landing .is-layout-constrained,
body.page-template-template-landing .has-global-padding {
  padding-left: 0;
  padding-right: 0;
}

/* Center alignwide content on landing page */
body.page-template-template-landing .olaf-landing .alignwide {
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Hide page title ("Heim/Heima") on landing */
body.page-template-template-landing .wp-block-post-title {
  display: none !important;
}

/* --------------------------------------------------
   4.2 Hero Section
   -------------------------------------------------- */

/* Ensure the cover is the positioning context for the absolute card */
body.page-template-template-landing .olaf-hero.wp-block-cover {
  min-height: 100vh !important;
  min-height: 100svh !important;
  position: relative !important;
  margin: 0 !important;
  animation: fadeIn 1s ease-out;
  z-index: 1;
  overflow: hidden !important;

  /* iOS Safari scroll stability */
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation; /* Prevent unwanted zoom gestures */
}

/* Hero text shadows — layered for legibility over video */
body.page-template-template-landing .olaf-hero h1 {
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 8px 30px rgba(0, 0, 0, 0.15);
}

body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container > .wp-block-group:first-child > p {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure background image displays properly and fills the cover */
body.page-template-template-landing .olaf-hero .wp-block-cover__image-background {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Hero video background - positioned below overlay but above static image */
/* Video is injected by hero-video.js based on device detection */
body.page-template-template-landing .olaf-hero .olaf-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* Below overlay (3) but above background image (0) */

  /* iOS Safari scroll zoom fix */
  transform: translate3d(0, 0, 0); /* Force GPU acceleration */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  pointer-events: none; /* Prevent touch interference */
}

/* Hide WordPress cover block's built-in overlay */
body.page-template-template-landing .olaf-hero .wp-block-cover__background {
  display: none;
}

/* Content stays on top */
body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 30;
}

/* Accessibility: respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  body.page-template-template-landing .olaf-hero .olaf-hero-video {
    display: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Ensure hero content doesn't hide behind header + reserves space for card */
body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container {
  position: relative !important;
  display: grid !important;
  grid-template-rows: 1fr auto auto;
  align-items: center;
  row-gap: clamp(0.9rem, 2.5vh, 1.6rem);
  z-index: 30 !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  box-sizing: border-box;
  padding-top: clamp(5.5rem, 10vh, 8rem) !important;
  padding-bottom: clamp(5rem, 12vh, 9rem) !important;
}

/* Middle-out centering for the hero text group */
body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container>.wp-block-group:first-child {
  margin: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  max-width: 800px;
  z-index: 2;
  align-self: center;
  justify-self: center;
}

/* Improve text contrast on image - layered shadows for better readability */
body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container>.wp-block-group:first-child .wp-block-heading,
body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container>.wp-block-group:first-child p {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Tighten paragraph spacing in hero text group */
body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container>.wp-block-group:first-child>p {
  margin-top: 0.4rem !important;
  margin-bottom: 0 !important;
}

/* Consistent spacing between hero elements */
body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container>.wp-block-group {
  display: flex;
  flex-direction: column;
  gap: clamp(0.4rem, 1.5vh, 0.9rem);
  margin: 0 !important;
}

body.page-template-template-landing .olaf-hero .wp-block-buttons {
  margin-top: var(--olaf-space-2) !important;
}

/* CTA button polish in hero */
body.page-template-template-landing .olaf-hero .wp-block-button__link {
  border-radius: 999px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, .18);
  transition: transform .12s ease, box-shadow .12s ease;
  background: var(--wp--preset--color--ocean, #2b8cff);
  color: var(--wp--preset--color--paper);
  border: 1px solid rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 31 !important;
}

body.page-template-template-landing .olaf-hero .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, .22);
  background: var(--wp--preset--color--ocean-dark, #1f73d8);
}

/* --------------------------------------------------
   4.3 Floating Feature Card
   -------------------------------------------------- */

/* The wrapper group - Anchored to bottom */
body.page-template-template-landing .olaf-feature-float {
  position: static !important;
  transform: none !important;
  margin-bottom: calc(clamp(12px, 2.5vh, 28px) + env(safe-area-inset-bottom)) !important;
  width: 100% !important;
  max-width: 100% !important;
  pointer-events: auto;
  z-index: 20;
  align-self: center;
  display: flex !important;
  justify-content: center !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* Actual white card */
body.page-template-template-landing .olaf-feature-card {
  background: var(--wp--preset--color--paper);
  border-radius: var(--olaf-radius-lg);
  /* Multi-layered premium shadow */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  pointer-events: auto;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  max-width: var(--olaf-max-card) !important;
  width: 100% !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Convert Gutenberg columns into a predictable grid (prevents "random" wraps) */
body.page-template-template-landing .olaf-feature-card .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 !important;
  margin: 0 !important;
}

/* Each "box" */
body.page-template-template-landing .olaf-feature-card .wp-block-column {
  margin: 0 !important;
  padding: 1.5rem 1rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.page-template-template-landing .olaf-feature-card .wp-block-column:hover {
  background: var(--wp--preset--color--mist);
  transform: translateY(-2px);
}

/* subtle separators */
body.page-template-template-landing .olaf-feature-card .wp-block-column:not(:last-child) {
  border-right: 1px solid var(--olaf-sep);
}

/* Feature card styling - NOTE: Icon sizing & typography now inline in feature-strip.php pattern */
body.page-template-template-landing .olaf-feature-card figure.wp-block-image {
  margin: 0 0 .55rem 0;
}

body.page-template-template-landing .olaf-feature-card figure.wp-block-image img {
  opacity: .92;
  display: block;
}

body.page-template-template-landing .olaf-feature-card p {
  margin: 0 0 .35rem 0;
  line-height: 1.3;
  color: var(--wp--preset--color--text-dark);
}

body.page-template-template-landing .olaf-feature-card p:not(:has(strong)) {
  opacity: .75;
  margin-bottom: 0;
}

/* --------------------------------------------------
   4.4 Landing Sections & Content
   -------------------------------------------------- */

body.page-template-template-landing .olaf-section {
  padding: var(--olaf-space-4) var(--olaf-header-pad-x);
  margin: 0 !important;
}

body.page-template-template-landing .olaf-section:last-child {
  padding-bottom: var(--olaf-space-2);
}

/* Typography hierarchy for section headings */
body.page-template-template-landing .olaf-section h2 {
  margin-bottom: var(--olaf-space-2);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.2;
}

body.page-template-template-landing .olaf-section h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

body.page-template-template-landing .olaf-section p {
  line-height: 1.7;
  color: var(--wp--preset--color--midnight);
}

/* CTA band heading refinement */
body.page-template-template-landing .olaf-cta-band h2 {
  margin-bottom: var(--olaf-space-1);
}

body.page-template-template-landing .olaf-cta-band p {
  margin-bottom: var(--olaf-space-1);
}

body.page-husid .olaf-section {
  padding: var(--olaf-space-4) var(--olaf-header-pad-x);
  margin: 0 !important;
}

body.page-husid .olaf-section-mist {
  background: var(--wp--preset--color--mist);
}

body.page-husid .olaf-cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--olaf-space-2) !important;
  margin: var(--olaf-space-2) auto 0 !important;
  max-width: 1100px;
  width: 100%;
}

body.page-husid .olaf-card {
  background: var(--wp--preset--color--paper);
  border-radius: var(--olaf-radius);
  padding: var(--olaf-space-2);
  box-shadow: var(--olaf-shadow-soft);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body.page-husid .olaf-split {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--olaf-space-3) !important;
}

body.page-husid .olaf-split .wp-block-image {
  margin: 0;
  border-radius: calc(var(--olaf-radius) + 6px);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.06);
  aspect-ratio: 4 / 3;
}

body.page-husid .olaf-split .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-husid .olaf-facts {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--olaf-space-2) !important;
  align-items: start;
}

body.page-husid .olaf-facts .wp-block-column {
  text-align: center;
}

body.page-husid .olaf-facts .wp-block-image {
  margin: 0 0 .55rem 0;
}

body.page-husid .olaf-facts .wp-block-image img {
  opacity: .9;
  display: block;
  margin: 0 auto;
}

body.page-husid .olaf-facts p {
  margin: 0;
}

body.page-husid .olaf-video {
  max-width: 1120px;
  margin: 0 auto;
}

body.page-husid .olaf-video .wp-block-embed__wrapper {
  aspect-ratio: 16 / 9;
}

body.page-husid .olaf-video iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

body.page-husid .olaf-skipulag .wp-block-columns {
  display: flex !important;
  align-items: stretch;
  gap: var(--olaf-space-3);
}

body.page-husid .olaf-skipulag .wp-block-column:first-child,
body.page-husid .olaf-skipulag .wp-block-column:last-child {
  display: flex;
  flex-direction: column;
  gap: var(--olaf-space-1);
  height: 100%;
}

body.page-husid .olaf-skipulag .wp-block-column:first-child {
  order: 1;
}

body.page-husid .olaf-skipulag .wp-block-column:last-child {
  order: 2;
}

body.page-husid .olaf-skipulag .olaf-card {
  padding: calc(var(--olaf-space-1) * 0.9);
  flex: 1;
  text-align: left;
}

body.page-husid .olaf-skipulag .olaf-card h3 {
  text-align: left;
}

body.page-husid .olaf-skipulag .wp-block-embed,
body.page-husid .olaf-skipulag .wp-block-embed__wrapper {
  height: 100%;
}

body.page-husid .olaf-skipulag .wp-block-embed__wrapper {
  aspect-ratio: auto;
  min-height: 390px;
}

body.page-husid .olaf-skipulag iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

/* Hover effects — split images */
body.page-husid .olaf-split .wp-block-image {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

body.page-husid .olaf-split .wp-block-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

/* Hover effects — cards */
body.page-husid .olaf-card {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

body.page-husid .olaf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px -5px rgba(15, 23, 42, 0.12);
}

/* Hover effects — facts strip columns */
body.page-husid .olaf-facts .wp-block-column {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.page-husid .olaf-facts .wp-block-column:hover {
  transform: translateY(-2px);
}

/* Included amenities list — checkmark grid */
body.page-husid .olaf-included .wp-block-list {
  list-style: none;
  padding: 0;
  margin: var(--olaf-space-2) 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
}

body.page-husid .olaf-included .wp-block-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.6;
}

body.page-husid .olaf-included .wp-block-list li::before {
  content: "✓";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(43, 140, 255, 0.1);
  color: var(--wp--preset--color--ocean);
  font-weight: 700;
  font-size: 0.85rem;
}

/* CTA band — premium treatment */
body.page-husid .olaf-cta-section {
  background: var(--wp--preset--color--sand);
  padding: var(--olaf-space-3) var(--olaf-header-pad-x) !important;
}

body.page-husid .olaf-cta-band {
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--wp--preset--color--warm) 0%, var(--wp--preset--color--paper) 100%);
  border: 1px solid rgba(197, 160, 101, 0.15);
  border-radius: calc(var(--olaf-radius) + 8px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1), 0 8px 16px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

body.page-husid .olaf-cta-band h2 {
  margin-bottom: var(--olaf-space-1);
}

body.page-husid .olaf-cta-band p {
  margin-bottom: var(--olaf-space-1);
}

body.page-husid .olaf-cta-band .wp-block-button__link {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
}

body.page-husid .olaf-cta-band .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(43, 140, 255, 0.25);
}

/* Typography — section headings and body */
body.page-husid .olaf-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.2;
}

body.page-husid .olaf-section h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
}

body.page-husid .olaf-section p {
  line-height: 1.7;
}

/* Hero outline button - white/light style to stand out on hero image */
body.page-husid .olaf-hero .is-style-outline .wp-block-button__link {
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--wp--preset--color--paper) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(43, 140, 255, 0.15);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

body.page-husid .olaf-hero .is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--ocean) !important;
  color: var(--wp--preset--color--paper) !important;
  border-color: var(--wp--preset--color--ocean) !important;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(43, 140, 255, 0.25);
}

body.page-hverfid .olaf-hero {
  min-height: 50vh !important;
}

body.page-hverfid .olaf-cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--olaf-space-2) !important;
  margin: var(--olaf-space-2) auto 0 !important;
  max-width: 1100px;
  width: 100%;
}

body.page-hverfid .olaf-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  gap: var(--olaf-space-1);
}

body.page-hverfid .olaf-cards .wp-block-image {
  margin: 0 0 var(--olaf-space-1) 0;
  border-radius: var(--olaf-radius);
  overflow: hidden;
  height: clamp(180px, 22vw, 240px);
  aspect-ratio: auto;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  width: 100%;
  max-width: 100% !important;
  align-self: stretch;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

body.page-hverfid .olaf-cards .wp-block-image:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

body.page-hverfid .olaf-cards .wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

body.page-hverfid .olaf-cards figure.wp-block-image {
  width: 100% !important;
  height: auto;
}

body.page-hverfid .olaf-split .wp-block-image {
  margin: 0;
  border-radius: calc(var(--olaf-radius) + 6px);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.06);
  aspect-ratio: 4 / 3;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

body.page-hverfid .olaf-split .wp-block-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

body.page-hverfid .olaf-split .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Typography refinements for Hverfið */
body.page-hverfid .olaf-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: var(--olaf-space-2);
}

body.page-hverfid .olaf-section h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
}

body.page-hverfid .olaf-section p {
  line-height: 1.7;
}

/* Section spacing */
body.page-hverfid .olaf-section {
  padding: var(--olaf-space-4) var(--olaf-header-pad-x);
  margin: 0 !important;
}

body.page-hverfid .olaf-section-mist {
  background: var(--wp--preset--color--mist);
}

/* Split section content refinements */
body.page-hverfid .olaf-split {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--olaf-space-3) !important;
}

body.page-hverfid .olaf-split .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* CTA band - premium treatment */
body.page-hverfid .olaf-cta-section {
  background: var(--wp--preset--color--sand);
  padding: var(--olaf-space-3) var(--olaf-header-pad-x) !important;
}

body.page-hverfid .olaf-cta-band {
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--wp--preset--color--warm) 0%, var(--wp--preset--color--paper) 100%);
  border: 1px solid rgba(197, 160, 101, 0.15);
  border-radius: calc(var(--olaf-radius) + 8px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1), 0 8px 16px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

body.page-hverfid .olaf-cta-band h2 {
  margin-bottom: var(--olaf-space-1);
}

body.page-hverfid .olaf-cta-band p {
  margin-bottom: var(--olaf-space-1);
}

body.page-hverfid .olaf-cta-band .wp-block-button__link {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
}

body.page-hverfid .olaf-cta-band .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(43, 140, 255, 0.25);
}

/* Outline button styles */
body.page-hverfid .is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--midnight) !important;
  border: 2px solid var(--wp--preset--color--midnight) !important;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

body.page-hverfid .is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--midnight) !important;
  color: var(--wp--preset--color--paper) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

/* Card component styling */
body.page-hverfid .olaf-card {
  background: var(--wp--preset--color--paper);
  border-radius: var(--olaf-radius);
  padding: var(--olaf-space-2);
  box-shadow: var(--olaf-shadow-soft);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

body.page-hverfid .olaf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px -5px rgba(15, 23, 42, 0.12);
}

/* Facts strip - icon grid */
body.page-hverfid .olaf-facts {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--olaf-space-2) !important;
  align-items: start;
}

body.page-hverfid .olaf-facts .wp-block-column {
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.page-hverfid .olaf-facts .wp-block-column:hover {
  transform: translateY(-2px);
}

body.page-hverfid .olaf-facts .wp-block-image {
  margin: 0 0 .55rem 0;
}

body.page-hverfid .olaf-facts .wp-block-image img {
  opacity: .9;
  display: block;
  margin: 0 auto;
}

body.page-hverfid .olaf-facts p {
  margin: 0;
}

/* Included amenities list - checkmark grid */
body.page-hverfid .olaf-included .wp-block-list {
  list-style: none;
  padding: 0;
  margin: var(--olaf-space-2) auto 0;
  max-width: 700px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
}

body.page-hverfid .olaf-included .wp-block-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.6;
}

body.page-hverfid .olaf-included .wp-block-list li::before {
  content: "✓";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(43, 140, 255, 0.1);
  color: var(--wp--preset--color--ocean);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Video embed styling */
body.page-hverfid .olaf-video {
  max-width: 1120px;
  margin: 0 auto;
}

body.page-hverfid .olaf-video .wp-block-embed__wrapper {
  aspect-ratio: 16 / 9;
}

body.page-hverfid .olaf-video iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

/* Hero text shadow for readability */
body.page-hverfid .olaf-hero .wp-block-cover__inner-container>.wp-block-group:first-child .wp-block-heading,
body.page-hverfid .olaf-hero .wp-block-cover__inner-container>.wp-block-group:first-child p {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.2);
}

body.page-husid .olaf-hero .wp-block-cover__inner-container>.wp-block-group:first-child .wp-block-heading,
body.page-husid .olaf-hero .wp-block-cover__inner-container>.wp-block-group:first-child p {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.2);
}

body.page-template-template-landing .olaf-section-mist {
  background: var(--wp--preset--color--mist);
}

/*
 * Landing page background rhythm: Sand → Mist → Sand → Mist → Sand → Mist → Sand
 *
 *   Welcome:           Sand  (default)
 *   Encantada:         Mist  (olaf-section-mist in HTML)
 *   Map:               Sand
 *   Allt í nágrenninu: Mist  (olaf-section-mist in HTML)
 *   CTA card:          Sand
 *   Gallery:           Mist
 *   Footer:            Sand
 */
body.page-template-template-landing .olaf-section:has(.olaf-card-map-panel) {
  background: var(--wp--preset--color--sand);
}

body.page-template-template-landing .olaf-cta-section {
  background: var(--wp--preset--color--sand);
  padding: var(--olaf-space-3) var(--olaf-header-pad-x) !important;
}

body.page-template-template-landing .olaf-section:has(.olaf-gallery-strip) {
  background: var(--wp--preset--color--mist);
}

body.page-template-template-landing .olaf-section-head {
  margin-bottom: var(--olaf-space-2);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--olaf-space-1);
}

body.page-template-template-landing .olaf-section-head h2 {
  margin-bottom: 0;
}

body.page-template-template-landing .olaf-cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--olaf-space-2) !important;
  margin: var(--olaf-space-2) auto 0 !important;
  max-width: 1100px;
  width: 100%;
}

body.page-template-template-landing .olaf-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  gap: var(--olaf-space-1);
}

body.page-template-template-landing .olaf-card {
  background: var(--wp--preset--color--paper);
  border-radius: var(--olaf-radius);
  padding: var(--olaf-space-2);
  box-shadow: var(--olaf-shadow-soft);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

body.page-template-template-landing .olaf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px -5px rgba(15, 23, 42, 0.12);
}

/* --- interactive card states -------------------------------------------- */
body.page-template-template-landing .olaf-card-link {
  cursor: pointer;
}

/* --- card map panel (always visible) ------------------------------------- */
.olaf-card-map-panel {
  margin-top: var(--olaf-space-2);
}

.olaf-card-map-panel-inner {
  position: relative;
  border-radius: var(--olaf-radius);
  overflow: hidden;
}

#olaf-card-map {
  height: 420px;
  width: 100%;
}

/* close button: glassmorphic circle, floats over the map */
.olaf-card-map-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 500;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: #0F172A;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  transition: background 0.2s ease;
}

.olaf-card-map-close:hover {
  background: rgba(255, 255, 255, 1);
}

/* Distances toggle button */
.olaf-distances-btn {
  display: block;
  width: 50%;
  margin: 0.75rem auto 0;
  padding: 0.55rem 1rem;
  background: var(--wp--preset--color--ocean);
  border: none;
  border-radius: 10px;
  color: var(--wp--preset--color--paper);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(43, 140, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.olaf-distances-btn:hover {
  background: var(--wp--preset--color--ocean-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43, 140, 255, 0.3);
}

/* Fullscreen button */
.olaf-map-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 500;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  border-radius: 6px;
  font-size: 18px;
  color: #0F172A;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  transition: all 0.2s ease;
}

.olaf-map-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

/* Fullscreen map panel */
.olaf-card-map-panel-inner.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  border-radius: 0;
  max-height: none;
}

.olaf-card-map-panel-inner.is-fullscreen #olaf-card-map {
  height: 100vh !important;
  height: 100dvh !important;
}

.olaf-card-map-panel-inner.is-fullscreen .olaf-card-map-close {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

/* Hide fullscreen button when already in fullscreen */
.olaf-card-map-panel-inner.is-fullscreen .olaf-map-fullscreen-btn {
  display: none;
}

body.olaf-map-fullscreen-active {
  overflow: hidden;
}

/* Distance markers */
.distance-marker {
  background: none !important;
  border: none !important;
}

.distance-marker-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--wp--preset--color--paper);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
  border: 2px solid var(--wp--preset--color--ocean);
}

/* Card map popups - prevent cutoff */
#olaf-card-map .leaflet-popup-content-wrapper {
  min-width: 160px;
}

#olaf-card-map .leaflet-popup-content {
  margin: 12px 14px;
  white-space: nowrap;
}

#olaf-card-map .leaflet-popup-content h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 600;
}

#olaf-card-map .leaflet-popup-content p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.7);
}


body.page-template-template-landing .olaf-cards .wp-block-image {
  margin: 0 0 var(--olaf-space-1) 0;
  border-radius: var(--olaf-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

body.page-template-template-landing .olaf-cards .wp-block-image:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

body.page-template-template-landing .olaf-cards .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery thumbnail strip – images + CTA in one row */
body.page-template-template-landing .olaf-gallery-strip {
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  padding: var(--olaf-space-2) var(--olaf-header-pad-x) var(--olaf-space-3);
  margin: 0 auto !important;
  max-width: 1100px;
  overflow: visible;
}

/* Gallery becomes invisible wrapper; its children join the flex row */
body.page-template-template-landing .olaf-gallery-strip .olaf-gallery {
  display: contents !important;
}

body.page-template-template-landing .olaf-gallery .wp-block-image {
  flex: 0 0 clamp(100px, 14vw, 170px);
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

/* Alternating tilts for a scattered-photos feel */
body.page-template-template-landing .olaf-gallery .wp-block-image:nth-child(odd) {
  transform: rotate(-1.5deg);
}
body.page-template-template-landing .olaf-gallery .wp-block-image:nth-child(even) {
  transform: rotate(1.5deg);
}

/* Hover: straighten, lift, and pop */
body.page-template-template-landing .olaf-gallery .wp-block-image:hover {
  transform: rotate(0) translateY(-4px) scale(1.06);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  z-index: 2;
}

body.page-template-template-landing .olaf-gallery .wp-block-image a {
  display: block;
  width: 100%;
  height: 100%;
}

body.page-template-template-landing .olaf-gallery img {
  border-radius: 12px;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Override WordPress core gallery flex sizing */
body.page-template-template-landing .olaf-gallery.has-nested-images figure.wp-block-image {
  width: auto;
  flex-grow: 0;
  margin: 0;
}

/* CTA card – styled to match the image thumbnails */
body.page-template-template-landing .olaf-gallery-cta {
  flex: 0 0 clamp(100px, 14vw, 170px);
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--wp--preset--color--mist, #F3F0EC);
  color: var(--wp--preset--color--midnight, #0F172A);
  text-decoration: none;
  font-size: clamp(0.78rem, 1.3vw, 1rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  padding: 0.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  transform: rotate(2deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.page-template-template-landing .olaf-gallery-cta:hover {
  transform: rotate(0) translateY(-4px) scale(1.06);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  color: var(--wp--preset--color--midnight, #0F172A);
}

body.page-template-template-landing .olaf-gallery-cta-arrow {
  font-size: 1.2em;
}

/* Tablet: 3 images + CTA = 4 items */
@media (max-width: 900px) {
  body.page-template-template-landing .olaf-gallery .wp-block-image:nth-child(n+4) {
    display: none;
  }
}

/* Mobile: 2 images + CTA = 3 items */
@media (max-width: 580px) {
  body.page-template-template-landing .olaf-gallery .wp-block-image:nth-child(n+3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-template-landing .olaf-gallery .wp-block-image,
  body.page-template-template-landing .olaf-gallery .wp-block-image:nth-child(odd),
  body.page-template-template-landing .olaf-gallery .wp-block-image:nth-child(even),
  body.page-template-template-landing .olaf-gallery-cta {
    transform: none;
  }
  body.page-template-template-landing .olaf-gallery .wp-block-image:hover,
  body.page-template-template-landing .olaf-gallery-cta:hover {
    transform: translateY(-2px);
  }
}

/* Area strip – CTA + 3 neighbourhood images, always one row */
body.page-template-template-landing .olaf-area-strip {
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  margin: 0 auto !important;
  padding-top: var(--olaf-space-2);
  max-width: 1100px;
  width: 100%;
}

body.page-template-template-landing .olaf-area-strip .wp-block-image {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

body.page-template-template-landing .olaf-area-strip .wp-block-image:nth-child(even) {
  transform: rotate(1.5deg);
}
body.page-template-template-landing .olaf-area-strip .wp-block-image:nth-child(odd) {
  transform: rotate(-1.5deg);
}

body.page-template-template-landing .olaf-area-strip .wp-block-image:hover {
  transform: rotate(0) translateY(-4px) scale(1.04);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  z-index: 2;
}

body.page-template-template-landing .olaf-area-strip .wp-block-image a {
  display: block;
  width: 100%;
  height: 100%;
}

body.page-template-template-landing .olaf-area-strip img {
  border-radius: 12px;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-template-template-landing .olaf-area-cta {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 3 / 2;
  margin: 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--wp--preset--color--mist, #F3F0EC);
  color: var(--wp--preset--color--midnight, #0F172A);
  text-decoration: none;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  padding: 0.75rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  transform: rotate(-2deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.page-template-template-landing .olaf-area-cta:hover {
  transform: rotate(0) translateY(-4px) scale(1.04);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  color: var(--wp--preset--color--midnight, #0F172A);
}

body.page-template-template-landing .olaf-area-cta-arrow {
  font-size: 1.2em;
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-template-landing .olaf-area-strip .wp-block-image,
  body.page-template-template-landing .olaf-area-strip .wp-block-image:nth-child(odd),
  body.page-template-template-landing .olaf-area-strip .wp-block-image:nth-child(even),
  body.page-template-template-landing .olaf-area-cta {
    transform: none;
  }
  body.page-template-template-landing .olaf-area-strip .wp-block-image:hover,
  body.page-template-template-landing .olaf-area-cta:hover {
    transform: translateY(-2px);
  }
}

body.page-template-template-landing .olaf-split {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--olaf-space-3) !important;
}

body.page-template-template-landing .olaf-split .wp-block-image {
  margin: 0;
  border-radius: calc(var(--olaf-radius) + 6px);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.06);
  aspect-ratio: 4 / 3;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

body.page-template-template-landing .olaf-split .wp-block-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

body.page-template-template-landing .olaf-split .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Split section content refinements */
body.page-template-template-landing .olaf-split .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.page-template-template-landing .olaf-split ul.wp-block-list {
  margin-top: var(--olaf-space-1);
  margin-bottom: var(--olaf-space-2);
  line-height: 1.8;
}

body.page-template-template-landing .olaf-split ul.wp-block-list li {
  margin-bottom: 0.4rem;
  color: var(--wp--preset--color--midnight);
}

body.page-template-template-landing .olaf-review .wp-block-cover__inner-container {
  padding: var(--olaf-space-4) var(--olaf-header-pad-x);
}

body.page-template-template-landing .olaf-cta-band {
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--wp--preset--color--warm) 0%, var(--wp--preset--color--paper) 100%);
  border: 1px solid rgba(197, 160, 101, 0.15);
  border-radius: calc(var(--olaf-radius) + 8px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1), 0 8px 16px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

/* CTA band button enhancements */
body.page-template-template-landing .olaf-cta-band .wp-block-button__link {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
}

body.page-template-template-landing .olaf-cta-band .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(43, 140, 255, 0.25);
}

/* Outline button styles for homepage */
body.page-template-template-landing .is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--midnight) !important;
  border: 2px solid var(--wp--preset--color--midnight) !important;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

body.page-template-template-landing .is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--midnight) !important;
  color: var(--wp--preset--color--paper) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}


/* ==================================================
   CHAPTER 5: BOOKING PAGE
   ================================================== */

/* --------------------------------------------------
   5.1 Page Structure & Layout
   -------------------------------------------------- */

/* Page wrapper and title */
.olaf-booking-page-wrapper {
  background-color: var(--wp--preset--color--sand);
  padding: 2rem 1.5rem 1.5rem;
}

.olaf-booking-page-title {
  margin-bottom: 3rem;
  color: var(--wp--preset--color--text-dark);
}

/* Main container - Mobile first (stacked) */
.olaf-booking-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --------------------------------------------------
   5.2 Calendar Styles
   -------------------------------------------------- */

/* Calendar section */
.olaf-booking-calendar-section {
  width: 100%;
}

/* Calendar legend */
.olaf-calendar-legend {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.olaf-calendar-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  margin: 0;
  color: #333;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.olaf-calendar-legend .legend-item:hover {
  transform: translateY(-1px);
  color: var(--wp--preset--color--midnight);
}

.olaf-calendar-legend .dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.olaf-calendar-legend .legend-item:hover .dot {
  transform: scale(1.1);
}

.olaf-calendar-legend .dot.free {
  background-color: var(--wp--preset--color--paper);
  border: 2px solid #bbb;
}

.olaf-calendar-legend .dot.booked {
  background-color: var(--wp--preset--color--peach);
  border: none;
}

.olaf-calendar-legend .dot.selected {
  background-color: var(--wp--preset--color--sky);
  border: none;
}

/* Calendar wrapper (Legacy Script Fix) */
.olaf-calendar-wrapper {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

/* Glass feature strip */
.glass-strip {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

/* --------------------------------------------------
   5.3 Pricing Card
   -------------------------------------------------- */

/* Pricing sidebar */
.olaf-booking-pricing-sidebar {
  width: 100%;
}

.olaf-booking-pricing-sidebar .wp-block-group {
  background: var(--wp--preset--color--paper) !important;
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.olaf-pricing-card {
  background: var(--wp--preset--color--warm) !important;
  padding: 1.5rem !important;
  border-radius: 20px;
  box-shadow: var(--olaf-shadow-soft, 0 10px 25px -5px rgba(15, 23, 42, 0.06));
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.olaf-pricing-card:hover {
  box-shadow: 0 16px 35px -5px rgba(15, 23, 42, 0.12);
}

/* Remove any WordPress block styling inside pricing card */
.olaf-pricing-card .wp-block-group,
.olaf-pricing-card .wp-block-columns,
.olaf-pricing-card .wp-block-column {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.olaf-pricing-card p {
  margin-top: 0;
  margin-bottom: 0;
}

.olaf-pricing-card h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wp--preset--color--midnight);
  letter-spacing: -0.01em;
}

/* Price rows */
.price-section-heading {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wp--preset--color--midnight);
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.price-rows {
  margin-bottom: 1.25rem;
  margin-top: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.price-rows .wp-block-group {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.5) !important;
  border: none !important;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.price-row:hover {
  background: rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-1px);
}

.price-row .label {
  margin: 0;
  color: #4a4a4a;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.01em;
  flex: 1;
}

.price-row .value {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wp--preset--color--midnight);
  white-space: nowrap;
  text-align: right;
  letter-spacing: -0.01em;
  min-width: 100px;
  padding-left: 1rem;
}

.price-row.highlight {
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
}

.price-row.highlight .value {
  font-weight: 600;
}

.olaf-small-text {
  font-size: 0.875rem;
  color: var(--wp--preset--color--text-subtle);
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: right;
  font-weight: 400;
  display: block;
}

/* Divider - hidden in design */
.olaf-pricing-divider {
  display: none;
}

/* Extras list */
.olaf-extras-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.25rem 0;
}

.olaf-extras-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  word-wrap: break-word;
}

.olaf-extras-list li:before {
  content: "•";
  color: var(--wp--preset--color--gold);
  font-size: 1rem;
  margin-right: 0.25rem;
  flex-shrink: 0;
}

.olaf-extras-list .sub {
  font-size: 0.85rem;
  color: var(--wp--preset--color--text-subtle);
  font-style: normal;
}

/* Weekly note */
.olaf-weekly-note {
  font-size: 0.9rem;
  color: var(--wp--preset--color--text-medium);
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
  text-align: center;
  font-style: italic;
  font-weight: 400;
}

/* Book button */
.olaf-pricing-card .book-btn {
  margin-top: 1.75rem;
}

.olaf-pricing-card .book-btn .wp-block-button__link {
  background-color: var(--wp--preset--color--ocean);
  border-radius: 10px;
  padding: 1.1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
  text-align: center;
  border: none;
  box-shadow: 0 6px 20px rgba(43, 140, 255, 0.2);
}

.olaf-pricing-card .book-btn .wp-block-button__link:hover {
  background-color: #1f73d8;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(43, 140, 255, 0.25);
}

.olaf-pricing-card .book-btn .wp-block-button__link:active {
  transform: translateY(-1px);
  transition: all 0.1s ease;
}

/* --------------------------------------------------
   5.4 Booking Calculator
   -------------------------------------------------- */

.olaf-booking-calculator-display {
  margin: 0 0 1.25rem 0;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.olaf-booking-calculator-display:has(.calculator-summary) {
  background: linear-gradient(135deg, rgba(43, 140, 255, 0.02) 0%, rgba(43, 140, 255, 0.06) 100%);
  border-color: rgba(43, 140, 255, 0.15);
  box-shadow: 0 4px 16px rgba(43, 140, 255, 0.08);
}

.calculator-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.calculator-empty-state p {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
  font-style: italic;
  line-height: 1.6;
  max-width: 200px;
}

.calculator-error {
  text-align: center;
  padding: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.calculator-error p {
  color: #dc2626;
  margin: 0;
  font-weight: 500;
}

.calculator-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: slideInCalc 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInCalc {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Booking header - date as primary headline */
.booking-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  padding: 0.5rem 0;
}

.booking-header-label {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.booking-header-dates {
  font-size: 1.25rem;
  color: var(--wp--preset--color--ocean);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.booking-header-nights {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  padding: 0.15rem 0;
}

.calc-row .label {
  color: #4a4a4a;
  font-weight: 400;
  font-size: 0.9rem;
  flex: 1;
  line-height: 1.4;
}

.calc-row .value {
  color: var(--wp--preset--color--text-dark);
  font-weight: 600;
  text-align: right;
  font-size: 0.95rem;
  min-width: 110px;
  padding-left: 1rem;
  white-space: nowrap;
}

.calc-subrow {
  padding-left: 1.5rem;
  margin-top: -0.3rem;
  margin-bottom: 0.3rem;
}

.calc-subrow .sublabel {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Calculator divider */
.calc-divider {
  margin: 0.75rem 0 !important;
  border: none !important;
  border-top: 1px solid #e5e7eb !important;
  opacity: 1 !important;
}

.calc-row.total {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(43, 140, 255, 0.08);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calc-row.total:hover {
  background: rgba(43, 140, 255, 0.12);
  transform: translateY(-1px);
}

.calc-row.total .label {
  color: var(--wp--preset--color--text-dark);
  font-weight: 700;
}

.calc-row.total .value {
  color: #2b8cff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ISK conversion subtitle under total */
.calc-row-isk {
  text-align: center;
  font-size: 0.78rem;
  color: var(--wp--preset--color--text-subtle, #6b7280);
  padding: 0.35rem 0.75rem 0;
  line-height: 1.4;
}

.calc-isk-value {
  font-weight: 600;
  cursor: help;
  border-bottom: 1px dotted var(--wp--preset--color--text-subtle, #6b7280);
  position: relative;
}

.calc-isk-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--wp--preset--color--paper, #fff);
  color: var(--wp--preset--color--text-medium, #4a4a4a);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  width: max-content;
  max-width: 220px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.06);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.calc-isk-tooltip strong {
  display: block;
  font-weight: 600;
  color: var(--wp--preset--color--text-dark, #1a1a1a);
  margin-bottom: 0.15rem;
}

.calc-isk-value:hover .calc-isk-tooltip {
  opacity: 1;
}

/* Pool heating container - fixed height to prevent jumping */
.pool-heating-container {
  min-height: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pool-heating-container > * {
  width: 100%;
}

/* Pool checkbox inside calculator - when NOT checked (add option) */
.calculator-summary .pool-add-option {
  margin-bottom: 0.25rem;
  padding: 0.5rem 0.75rem;
  height: auto;
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 1px dashed rgba(43, 140, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calculator-summary .pool-add-option:hover {
  background: rgba(43, 140, 255, 0.05);
  border-color: rgba(43, 140, 255, 0.5);
  transform: translateY(-1px);
}

.calculator-summary .pool-add-option label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--wp--preset--color--text-dark);
  padding: 0;
  width: 100%;
  font-weight: 500;
}

.calculator-summary .pool-add-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #2b8cff;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calculator-summary .pool-add-option input[type="checkbox"]:hover {
  transform: scale(1.1);
}

/* --------------------------------------------------
   5.5 FAQ (Details Accordion)
   -------------------------------------------------- */

.olaf-booking-faq,
.olaf-faq {
  margin-top: 1.5rem;
}

.olaf-booking-faq .wp-block-heading,
.olaf-faq .wp-block-heading {
  margin-bottom: 1.6rem;
}

.olaf-booking-faq .wp-block-details,
.olaf-faq .wp-block-details {
  border: none;
  border-radius: var(--radius, 22px);
  background: var(--wp--preset--color--paper, #fff);
  box-shadow: var(--shadowSoft, 0 10px 25px -5px rgba(15, 23, 42, 0.06));
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.4rem 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.olaf-booking-faq .wp-block-details:hover,
.olaf-faq .wp-block-details:hover {
  box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.10);
  transform: translateY(-2px);
}

.olaf-booking-faq .wp-block-details summary,
.olaf-faq .wp-block-details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--wp--preset--color--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: color 0.25s ease;
}

.olaf-booking-faq .wp-block-details:hover summary,
.olaf-faq .wp-block-details:hover summary {
  color: var(--wp--preset--color--midnight);
}

.olaf-booking-faq .wp-block-details summary::-webkit-details-marker,
.olaf-faq .wp-block-details summary::-webkit-details-marker {
  display: none;
}

.olaf-booking-faq .wp-block-details summary::after,
.olaf-faq .wp-block-details summary::after {
  content: "›";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--wp--preset--color--ocean);
  transform: rotate(90deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
  flex-shrink: 0;
}

.olaf-booking-faq .wp-block-details[open] summary::after,
.olaf-faq .wp-block-details[open] summary::after {
  transform: rotate(270deg);
  color: var(--wp--preset--color--ocean-dark);
}

.olaf-booking-faq .wp-block-details p,
.olaf-faq .wp-block-details p {
  margin: 0.9rem 0 0 0;
  padding-top: 0.8rem;
  color: var(--wp--preset--color--text-medium);
  line-height: 1.65;
  border-top: 1px solid var(--separator, rgba(0, 0, 0, 0.06));
  animation: fadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pool as calc-row - when checked (removable item) */
.calc-row.pool-item {
  margin-bottom: 0.25rem;
  padding: 0.15rem 0;
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.calc-row.pool-item .label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
  font-weight: 400;
  font-size: 0.9rem;
  color: #4a4a4a;
  flex: 1;
}

.calc-row.pool-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #2b8cff;
  flex-shrink: 0;
  margin: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calc-row.pool-item input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.calc-row.pool-item .value {
  color: var(--wp--preset--color--text-dark);
  font-weight: 600;
  text-align: right;
  font-size: 0.95rem;
  min-width: 110px;
  padding-left: 1rem;
  white-space: nowrap;
}

/* Booking state utilities - hide static price elements when dates selected */
/* Hide the heading "Verðupplýsingar" */
.olaf-pricing-card.has-date-selection h3.price-section-heading {
  display: none;
}

/* Hide the price rows container */
.olaf-pricing-card.has-date-selection .price-rows {
  display: none;
}

/* Hide the extras list */
.olaf-pricing-card.has-date-selection .olaf-extras-list {
  display: none;
}

/* Hide standalone pool heating option when dates selected */
.olaf-pricing-card.has-date-selection .pool-heating-option:not(.in-calculator):not(.pool-add-option) {
  display: none;
}

/* Pool Heating Option */
.pool-heating-option {
  margin: 0;
  padding: 0;
}

.pool-heating-option label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #4a4a4a;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.pool-heating-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2b8cff;
  flex-shrink: 0;
  margin: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pool-heating-option input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.pool-heating-option span {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  flex: 1;
  font-weight: 400;
}

.pool-heating-option .pool-price {
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
  color: var(--wp--preset--color--midnight);
}


/* ==================================================
   CHAPTER 6: GALLERY & NEIGHBORHOOD
   ================================================== */

/* --------------------------------------------------
   6.1 Gallery Styles
   -------------------------------------------------- */

.olaf-gallery {
  padding-top: var(--olaf-space-3);
  padding-bottom: var(--olaf-space-4);
}

.olaf-gallery .olaf-gallery-grid {
  width: 100%;
}

.olaf-gallery .wp-block-image {
  width: 100%;
}

/* Override core gallery sizing to avoid tiny thumbnails */
.olaf-gallery .wp-block-gallery.has-nested-images figure {
  width: auto !important;
}

.olaf-gallery .is-style-masonry-premium a {
  display: block;
}

.olaf-gallery .is-style-masonry-premium img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.olaf-gallery .is-style-masonry-premium img:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.16);
}

/* --------------------------------------------------
   6.3 Video Embed
   -------------------------------------------------- */

.olaf-video {
  margin: 1.5rem 0 2.2rem;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.olaf-video .wp-block-embed__wrapper,
.olaf-video iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* --------------------------------------------------
   6.4 Myndir Page Polish
   -------------------------------------------------- */

/* Myndir page polish */
.page-husid .olaf-gallery {
  background: var(--wp--preset--color--sand, #F8F5F2);
  padding-top: 0;
  margin-top: 0;
}

.page-husid .olaf-gallery .wp-block-heading {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

/* Myndir gallery: 3 columns per row */
body.page-husid .olaf-gallery .wp-block-group.olaf-gallery-grid,
body.page-husid .olaf-gallery .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: min(1600px, calc(100% - (var(--olaf-header-pad-x) * 2)));
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 2rem);
}

body.page-husid .olaf-gallery .wp-block-group.olaf-gallery-grid>.wp-block-image,
body.page-husid .olaf-gallery .wp-block-gallery .wp-block-image {
  grid-column: auto;
  margin: 0;
}

body.page-husid .olaf-gallery .wp-block-group.olaf-gallery-grid figure,
body.page-husid .olaf-gallery .wp-block-gallery figure {
  margin: 0;
  border-radius: var(--olaf-radius, 12px);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

body.page-husid .olaf-gallery .wp-block-group.olaf-gallery-grid figure:hover,
body.page-husid .olaf-gallery .wp-block-gallery figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

body.page-husid .olaf-gallery .wp-block-group.olaf-gallery-grid img,
body.page-husid .olaf-gallery .wp-block-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
}

/* Gallery category sections */
.page-husid .olaf-gallery-category {
  margin-bottom: var(--olaf-space-3);
}

.page-husid .olaf-gallery-category:last-child {
  margin-bottom: 0;
}

.page-husid .olaf-gallery-category > .wp-block-heading {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--text-medium, #4a4a4a);
  text-align: left;
  max-width: min(1600px, calc(100% - (var(--olaf-header-pad-x) * 2)));
  margin: 0 auto var(--olaf-space-1);
  padding: 0 clamp(1rem, 2vw, 2rem);
}

.page-husid .olaf-gallery-category .wp-block-gallery {
  padding-top: 0;
  padding-bottom: 0;
}

/* Smart grid: auto-adjust columns based on image count
   - If divisible by 3 → 3 columns (default)
   - If divisible by 2 only → 2 columns (narrower max-width)
   Numbers divisible by 2 but not 3: 2, 4, 8, 10, 14, 16, 20, 22, 26, 28, 32, 34, 38, 40 */

/* 2 images */
.page-husid .olaf-gallery-category .wp-block-gallery:has(.wp-block-image:nth-last-child(2):first-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: min(1000px, calc(100% - (var(--olaf-header-pad-x) * 2)));
}

/* 4 images */
.page-husid .olaf-gallery-category .wp-block-gallery:has(.wp-block-image:nth-last-child(4):first-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: min(1000px, calc(100% - (var(--olaf-header-pad-x) * 2)));
}

/* 8 images */
.page-husid .olaf-gallery-category .wp-block-gallery:has(.wp-block-image:nth-last-child(8):first-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: min(1000px, calc(100% - (var(--olaf-header-pad-x) * 2)));
}

/* 10 images */
.page-husid .olaf-gallery-category .wp-block-gallery:has(.wp-block-image:nth-last-child(10):first-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: min(1000px, calc(100% - (var(--olaf-header-pad-x) * 2)));
}

/* 14 images */
.page-husid .olaf-gallery-category .wp-block-gallery:has(.wp-block-image:nth-last-child(14):first-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: min(1000px, calc(100% - (var(--olaf-header-pad-x) * 2)));
}

/* 16 images */
.page-husid .olaf-gallery-category .wp-block-gallery:has(.wp-block-image:nth-last-child(16):first-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: min(1000px, calc(100% - (var(--olaf-header-pad-x) * 2)));
}

/* 20 images */
.page-husid .olaf-gallery-category .wp-block-gallery:has(.wp-block-image:nth-last-child(20):first-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: min(1000px, calc(100% - (var(--olaf-header-pad-x) * 2)));
}

/* 22 images */
.page-husid .olaf-gallery-category .wp-block-gallery:has(.wp-block-image:nth-last-child(22):first-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: min(1000px, calc(100% - (var(--olaf-header-pad-x) * 2)));
}

/* 26 images */
.page-husid .olaf-gallery-category .wp-block-gallery:has(.wp-block-image:nth-last-child(26):first-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: min(1000px, calc(100% - (var(--olaf-header-pad-x) * 2)));
}

/* 28 images */
.page-husid .olaf-gallery-category .wp-block-gallery:has(.wp-block-image:nth-last-child(28):first-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: min(1000px, calc(100% - (var(--olaf-header-pad-x) * 2)));
}

/* Remove header CTA on Myndir to keep it clean */
.page-husid .olaf-site-header .wp-block-button,
.page-husid .olaf-site-header .wp-block-button__link,
.page-husid .wp-block-navigation .wp-block-navigation-item.is-style-button,
.page-husid .wp-block-navigation .wp-block-navigation-item__content.is-style-button {
  display: none !important;
}

/* Match video width to gallery content width on Myndir */
.page-husid .olaf-video {
  max-width: min(1600px, calc(100% - (var(--olaf-header-pad-x) * 2)));
}

/* --------------------------------------------------
   6.5 Lightbox
   -------------------------------------------------- */

body.olaf-lightbox-open {
  overflow: hidden;
}

.olaf-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 24, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.olaf-lightbox-figure {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.olaf-lightbox-image {
  max-width: min(92vw, 1200px);
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  background: #111;
}

.olaf-lightbox-caption {
  color: var(--wp--preset--color--sand);
  font-size: 0.95rem;
  opacity: 0.85;
}

.olaf-lightbox-prev,
.olaf-lightbox-next,
.olaf-lightbox-close {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--wp--preset--color--paper);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.5rem;
  cursor: pointer;
}

.olaf-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.75rem;
}


/* ==================================================
   CHAPTER 7: LINKS PAGE (TENGLAR)
   ================================================== */

/* --------------------------------------------------
   7.1 Links Page Layout
   -------------------------------------------------- */

.olaf-links {
  padding: clamp(2.5rem, 6vh, 4.5rem) var(--olaf-header-pad-x);
  background:
    radial-gradient(900px 320px at 10% -10%, rgba(43, 140, 255, 0.08), rgba(248, 245, 242, 0)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(248, 245, 242, 0));
}

.olaf-links h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: var(--olaf-space-2);
}

.olaf-links-intro {
  max-width: 760px;
  margin: 0 auto clamp(1.5rem, 4vh, 2.25rem);
  line-height: 1.7;
}

.olaf-links-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem) !important;
  margin: 0 auto !important;
  max-width: 1200px;
  counter-reset: olaf-links;
}

/* --------------------------------------------------
   7.2 Links Cards
   -------------------------------------------------- */

.olaf-links-card {
  padding: clamp(1.25rem, 3vh, 1.75rem);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.olaf-links-card:hover {
  transform: translateY(-2px);
}

.olaf-links-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.olaf-links-card figure {
  margin: 0 0 1rem 0 !important;
}

.olaf-links-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  display: block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.olaf-links-card:hover img {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.olaf-links-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.olaf-links-card li {
  position: relative;
  padding-left: 2.6rem;
  padding-bottom: 0.25rem;
  line-height: 1.6;
  counter-increment: olaf-links;
}

.olaf-links-card li::before {
  content: counter(olaf-links, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05rem;
  min-width: 2rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: rgba(15, 23, 42, 0.75);
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.olaf-links-card li.has-map-number::before {
  content: none;
}

.olaf-links-number {
  position: absolute;
  left: 0;
  top: 0.05rem;
  min-width: 2rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: rgba(15, 23, 42, 0.75);
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: border-color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.olaf-links-number:hover,
.olaf-links-number:focus-visible {
  color: #0b5ad4;
  border-color: rgba(11, 90, 212, 0.5);
  background: rgba(11, 90, 212, 0.08);
  transform: scale(1.05);
  outline: none;
}

.olaf-links-card a {
  color: var(--wp--preset--color--midnight);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
  transition: color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.olaf-links-card a:hover {
  color: #0b5ad4;
  border-bottom-color: rgba(11, 90, 212, 0.6);
}

.olaf-links-note {
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.9em;
  margin-left: 0.35rem;
}

/* --------------------------------------------------
   7.3 Links Tooltips
   -------------------------------------------------- */

.olaf-links-card .olaf-tip {
  position: static;
  margin-top: 0.35rem;
  padding: 0;
  max-width: none;
  background: none;
  color: rgba(15, 23, 42, 0.68);
  font-size: 0.78rem;
  line-height: 1.5;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  display: block;
}


/* ==================================================
   CHAPTER 8: COMPONENTS
   ================================================== */

/* --------------------------------------------------
   8.1 Mobile Menu Overlay
   -------------------------------------------------- */

/* Ensure overlay is above the floating card + header - GLOBAL */
.wp-block-navigation__responsive-container {
  z-index: 3000 !important;
}

/* Glassy overlay for mobile menu - GLOBAL */
.wp-block-navigation__responsive-container.is-menu-open {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: var(--olaf-glass-bg) !important;
  -webkit-backdrop-filter: blur(var(--olaf-glass-blur)) !important;
  backdrop-filter: blur(var(--olaf-glass-blur)) !important;
}

/* Remove any inner white panels - GLOBAL */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  background: transparent !important;
}

/* Overlay link styles - GLOBAL */
body:not(.page-template-template-landing) .wp-block-navigation__responsive-container.is-menu-open a,
body.page-template-template-landing .wp-block-navigation__responsive-container.is-menu-open a {
  color: #fff !important;
  text-shadow: 0 10px 24px rgba(0, 0, 0, .35) !important;
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  padding: 0.75rem 0 !important;
}

/* Better spacing and layout for fullscreen menu */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 5rem !important;
  padding-left: var(--olaf-header-pad-x) !important;
  padding-right: var(--olaf-header-pad-x) !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 1.5rem !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

/* Close "X" button - visible, with breathing room from edge */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  color: #fff !important;
  top: clamp(12px, 3vw, 20px) !important;
  right: clamp(12px, 3vw, 20px) !important;
}

/* Landing page specific: ensure header is readable on photo */
body.page-template-template-landing .wp-block-navigation__responsive-container.is-menu-open a {
  text-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

/* --------------------------------------------------
   8.2 Scroll Hint
   -------------------------------------------------- */

.olaf-scroll-hint-container {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  text-align: center;
  color: var(--wp--preset--color--paper);
  z-index: 20;
  align-self: center;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.olaf-scroll-hint-text {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 650;
  margin-bottom: 0.1rem;
  display: block;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.olaf-scroll-hint-icon {
  animation: bounce-slow 2s infinite;
  line-height: 1;
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  display: block;
  font-weight: 700;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.olaf-scroll-hint-container.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.olaf-scroll-hint-container.is-hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes bounce-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* --------------------------------------------------
   8.3 Utility Classes
   -------------------------------------------------- */

/* Mobile-only helper */
.olaf-mobile-only {
  display: none;
}

/* --------------------------------------------------
   Footer
   -------------------------------------------------- */

.olaf-footer .wp-block-group {
  gap: 1rem;
  justify-content: center;
  text-align: center;
}

.olaf-footer-meta {
  gap: 0.85rem 1.5rem;
  align-items: center;
  justify-content: center;
}

.olaf-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(15, 23, 42, 0.7);
  margin: 0;
}

.olaf-footer-item a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.olaf-footer-item a:hover {
  color: #0b5ad4;
  border-bottom-color: rgba(11, 90, 212, 0.6);
}

.olaf-footer-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.6);
}

.olaf-footer-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* ==================================================
   CHAPTER 9: RATES & CALENDAR SECTIONS
   ================================================== */

/* --------------------------------------------------
   9.1 Rates Section
   -------------------------------------------------- */

.olaf-rates {
  padding-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
  background: var(--wp--preset--color--sand, #F8F5F2);
}

.olaf-rates .wp-block-heading {
  text-align: center;
  margin-bottom: clamp(1rem, 3vh, 1.75rem);
}

.olaf-rates-lead {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(1.5rem, 4vh, 2.25rem);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
}

.olaf-rates-grid {
  gap: clamp(1rem, 3vw, 1.75rem);
}

.olaf-rates-grid .wp-block-column {
  background: var(--wp--preset--color--paper);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vh, 1.75rem);
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.08),
    0 28px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.olaf-rates-grid ul {
  margin: 0.8rem 0 0 1rem;
}

/* --------------------------------------------------
   9.2 Calendar Section
   -------------------------------------------------- */

.olaf-calendar {
  padding-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
  background: var(--wp--preset--color--sand, #F8F5F2);
}

.olaf-calendar .wp-block-heading {
  text-align: center;
  margin-bottom: clamp(1rem, 3vh, 1.75rem);
}


/* ==================================================
   CHAPTER 10: MEDIA QUERIES
   ================================================== */

/* --------------------------------------------------
   10.1 Tablet & Desktop (min-width: 769px+)
   -------------------------------------------------- */

@media (min-width: 768px) {

  .olaf-gallery .is-style-masonry-premium.wp-block-gallery,
  .olaf-gallery .is-style-masonry-premium.wp-block-gallery.has-nested-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
  }

  .olaf-gallery .is-style-masonry-premium figure {
    margin: 0;
    width: auto !important;
    max-width: none !important;
  }
}

/* --------------------------------------------------
   10.2 Tablet Range (768px - 1199px)
   -------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1199px) {
  .olaf-booking-page-wrapper {
    padding: 2rem 2rem 2.5rem;
  }

  .olaf-booking-container {
    align-items: center;
  }

  .olaf-booking-calendar-section {
    max-width: 700px;
  }

  .olaf-booking-pricing-sidebar {
    max-width: 400px;
  }

  .olaf-pricing-card {
    max-width: 600px;
    margin: 0 auto;
  }

  .glass-strip {
    border-radius: 24px;
    margin: 1rem;
  }
}

@media (max-width: 768px) {
  body:not(.home):not(.page-template-template-landing) .wp-site-blocks {
    padding-left: 0;
    padding-right: 0;
  }

  body:not(.home):not(.page-template-template-landing) .is-layout-constrained> :where(:not(.alignwide):not(.alignfull):not(.olaf-pricing-card):not(.wp-block-details)) {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  body:not(.home):not(.page-template-template-landing) :where(.alignwide, .wp-block-group.alignwide):not(.olaf-booking-page-wrapper) {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* Preserve booking page wrapper padding */
  .olaf-booking-page-wrapper {
    padding: 1.5rem 1rem 2.25rem !important;
  }

  body:not(.home):not(.page-template-template-landing) :where(.wp-block-group:not(.olaf-pricing-card):not(.olaf-booking-pricing-sidebar):not(.olaf-booking-container):not(.olaf-booking-page-wrapper), .wp-block-columns) {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body:not(.home):not(.page-template-template-landing) :where(.wp-block-group:not(.olaf-pricing-card):not(.olaf-booking-pricing-sidebar):not(.olaf-booking-container), .wp-block-columns)> :where(.wp-block-group:not(.olaf-pricing-card), .wp-block-columns) {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --olaf-header-pad-x: 12px;
  }

  /* Reduce body padding on mobile to account for smaller header */
  body:not(.page-template-template-landing) > .wp-site-blocks {
    padding-top: clamp(50px, 8vh, 65px);
  }

  .olaf-footer .wp-block-group {
    justify-content: center;
  }

  .olaf-footer-meta {
    row-gap: 0.75rem;
  }

  .olaf-scroll-hint-text {
    margin-bottom: 0.25rem;
    letter-spacing: 0.18em;
  }

  body:not(.page-husid) .is-style-masonry-premium .blocks-gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.page-husid) .is-style-masonry-premium figure {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .olaf-lightbox {
    grid-template-columns: 1fr;
  }

  .olaf-lightbox-prev,
  .olaf-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .olaf-lightbox-prev {
    left: 12px;
  }

  .olaf-lightbox-next {
    right: 12px;
  }

  .olaf-mobile-only {
    display: block;
  }
}

/* --------------------------------------------------
   10.3 Mobile & Below (max-width: 780px)
   -------------------------------------------------- */

@media (max-width: 780px) {
  body.page-template-template-landing .olaf-cards {
    grid-template-columns: 1fr;
  }

  #olaf-card-map {
    height: min(340px, 50vh);
  }

  .olaf-card-map-close,
  .olaf-map-fullscreen-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .olaf-distances-btn {
    width: 60%;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  body.page-template-template-landing .olaf-split {
    grid-template-columns: 1fr;
  }

  /* Hverfið mobile responsive */
  body.page-hverfid .olaf-cards {
    grid-template-columns: 1fr;
    gap: var(--olaf-space-2);
  }

  body.page-hverfid .olaf-split {
    grid-template-columns: 1fr;
  }

  body.page-hverfid .olaf-cards .wp-block-image {
    height: clamp(200px, 50vw, 280px);
  }

  body.page-hverfid .olaf-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-hverfid .olaf-included .wp-block-list {
    grid-template-columns: 1fr;
  }

  /* Húsið mobile responsive */
  body.page-husid .olaf-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-husid .olaf-split {
    grid-template-columns: 1fr;
  }

  body.page-husid .olaf-skipulag .wp-block-columns {
    flex-direction: column;
  }

  body.page-husid .olaf-included .wp-block-list {
    grid-template-columns: 1fr;
  }

  /* On mobile: allow hero to grow beyond 100vh when content needs it */
  body.page-template-template-landing .olaf-hero.wp-block-cover {
    min-height: 100vh !important;
    min-height: 100svh !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    background-size: cover !important;
    background-position: center !important;
  }

  /* Lock background image to static viewport height on mobile to prevent scroll zoom */
  body.page-template-template-landing .olaf-hero .wp-block-cover__image-background {
    height: 100svh !important;
    min-height: 100svh !important;
  }

  /* Lock video to static viewport height on mobile to prevent scroll zoom */
  body.page-template-template-landing .olaf-hero .olaf-hero-video {
    height: 100svh !important;
    min-height: 100svh !important;
  }

  /* On mobile, align content to top and reduce top padding */
  body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container {
    min-height: 100svh !important; /* Changed from dvh to svh to prevent scroll zoom */
    padding-top: clamp(4rem, 5vh, 5.5rem) !important;
    padding-bottom: clamp(4.5rem, 12vh, 8rem) !important;
  }

  /* Extra breathing room between CTA and feature card */
  body.page-template-template-landing .olaf-hero .wp-block-buttons {
    margin-bottom: clamp(0.8rem, 3vh, 1.6rem) !important;
  }

  body.page-template-template-landing .olaf-feature-float {
    margin-bottom: clamp(16px, 4vh, 32px) !important;
  }

  /* Tighten hero text spacing on small screens */
  body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container>.wp-block-group {
    gap: clamp(0.55rem, 1.6vh, 0.95rem);
  }

  body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container>.wp-block-group:first-child>p {
    margin-top: 0.3rem !important;
  }

  /* Cleaner mobile header: hide CTA when hamburger is present */
  body.page-template-template-landing .olaf-site-header .wp-block-buttons {
    display: none !important;
  }

  body.page-template-template-landing .olaf-feature-card .wp-block-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* separators for 2x2 */
  body.page-template-template-landing .olaf-feature-card .wp-block-column {
    padding: 0.85rem 0.75rem 0.95rem;
  }

  body.page-template-template-landing .olaf-feature-card .wp-block-column {
    border-right: 0;
  }

  body.page-template-template-landing .olaf-feature-card .wp-block-column:nth-child(odd) {
    border-right: 1px solid var(--olaf-sep);
  }

  body.page-template-template-landing .olaf-feature-card .wp-block-column:nth-child(-n+2) {
    border-bottom: 1px solid var(--olaf-sep);
  }

}

/* Mobile optimizations for booking page */
@media (max-width: 767px) {
  .olaf-booking-page-wrapper {
    padding: 1.5rem 0.75rem;
  }

  .olaf-booking-page-title {
    margin-bottom: 2rem;
  }

  .olaf-booking-container {
    gap: 0;
    padding: 0;
  }

  .olaf-booking-pricing-sidebar {
    padding: 0;
    margin: 0;
  }

  .olaf-pricing-card {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
    background: var(--wp--preset--color--paper);
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .price-section-heading {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .olaf-pricing-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
  }

  .price-row {
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
  }

  .price-row .label {
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
  }

  .price-row .value {
    font-size: 0.95rem;
    font-weight: 400;
    text-align: right;
    min-width: 110px;
    padding-left: 1rem;
    white-space: nowrap;
  }

  .olaf-calendar-legend {
    gap: 1.25rem;
    font-size: 0.9rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
  }

  .olaf-calendar-legend .dot {
    width: 14px;
    height: 14px;
  }

  .olaf-calendar-legend .legend-item {
    font-size: 0.88rem;
  }

  .olaf-extras-list {
    margin: 0.75rem 0 1.25rem 0;
  }

  .price-rows {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  .olaf-pricing-card .book-btn {
    margin-top: 1.5rem;
  }

  .olaf-pricing-card .book-btn .wp-block-button__link {
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
  }

  /* Booking calculator mobile polish */
  .olaf-booking-calculator-display {
    margin: 1rem 0 1.25rem 0;
    padding: 1rem 1rem;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
  }

  .calculator-empty-state {
    padding: 2.5rem 1rem;
  }

  .calculator-empty-state p {
    font-size: 0.95rem;
    color: var(--wp--preset--color--text-medium);
  }

  .calc-row {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    padding: 0.2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .calc-row .label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    flex: 1;
    line-height: 1.4;
  }

  .calc-row .value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wp--preset--color--text-dark);
    text-align: right;
    min-width: 95px;
    padding-left: 1rem;
    white-space: nowrap;
  }

  /* Mobile booking header adjustments */
  .booking-header-dates {
    font-size: 1.1rem;
  }

  .calc-row.total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    font-size: 1rem;
  }

  .calc-row.total .label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-dark);
  }

  .calc-row.total .value {
    font-size: 1.3rem;
    color: #2b8cff;
    font-weight: 700;
  }

  .pool-heating-option {
    margin: 0;
    padding: 0;
  }

  .pool-heating-option label {
    padding: 0.5rem 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .pool-heating-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
  }

  .pool-heating-option .pool-price {
    text-align: right;
    font-size: 0.95rem;
    flex-shrink: 0;
  }
}

/* --------------------------------------------------
   10.4 Small Mobile (max-width: 480px)
   -------------------------------------------------- */

@media (max-width: 480px) {
  /* Húsið: 2-column facts on small phones */
  body.page-husid .olaf-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container {
    padding-bottom: clamp(3.5rem, 10vh, 6rem) !important;
  }

  body.page-template-template-landing .olaf-feature-float {
    margin-bottom: clamp(12px, 3vh, 24px) !important;
  }

  body.page-template-template-landing .olaf-feature-card .wp-block-column {
    padding: 0.7rem 0.6rem 0.8rem;
  }

  body.page-template-template-landing .olaf-feature-card figure.wp-block-image img {
    width: 28px !important;
    height: 28px !important;
  }

  body.page-template-template-landing .olaf-feature-card p strong {
    font-size: 0.9rem;
  }

  /* Footer: Add padding and stack items vertically on small mobile */
  .olaf-footer-meta {
    padding: 0 1rem;
    flex-direction: column;
    align-items: center;
  }

  .olaf-footer-item {
    display: flex; /* Change from inline-flex to flex for full width */
    text-align: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  /* Hide only the location icon (first item) - address is too long for small mobile */
  .olaf-footer-item:first-child .olaf-footer-icon {
    display: none;
  }

  /* Center buttons on landing page sections */
  body.page-template-template-landing .wp-block-buttons:not(.olaf-hero .wp-block-buttons) {
    justify-content: center !important;
  }

  body.page-template-template-landing .olaf-feature-card p:not(:has(strong)) {
    font-size: 0.82rem;
  }

  /* Reduce whitespace on rates-calendar section on mobile */
  .rates-calendar-section h2 {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .rates-calendar-section>.wp-block-group>.wp-block-heading {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .rates-calendar-section p {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }
}

/* --------------------------------------------------
   10.5 Short Viewports (max-height: 640px)
   -------------------------------------------------- */

@media (max-height: 640px) {
  body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container {
    padding-bottom: clamp(6.5rem, 18vh, 10rem) !important;
  }

  body.page-template-template-landing .olaf-feature-float {
    margin-bottom: clamp(14px, 4vh, 30px);
  }

  /* Hide scroll hint on short viewports - scroll is obvious, space is precious */
  .olaf-scroll-hint-container {
    display: none !important;
  }
}

/* --------------------------------------------------
   10.6 Very Small Screens - Progressive Content Reduction
   -------------------------------------------------- */

/* On very narrow screens (< 420px), hide secondary descriptive text in feature cards
   to prevent overflow while maintaining core information (icons + headings) */
@media (max-width: 420px) {
  body.page-template-template-landing .olaf-feature-card p:not(:has(strong)) {
    display: none;
  }

  /* Tighten spacing since we removed bottom text */
  body.page-template-template-landing .olaf-feature-card figure.wp-block-image {
    margin-bottom: 0.45rem;
  }

  /* Reduce column padding to compensate for removed content */
  body.page-template-template-landing .olaf-feature-card .wp-block-column {
    padding: 0.65rem 0.55rem 0.7rem;
  }
}

/* Combined constraint: narrow + short viewports need aggressive space saving */
@media (max-width: 480px) and (max-height: 700px) {
  body.page-template-template-landing .olaf-feature-card p:not(:has(strong)) {
    display: none;
  }

  body.page-template-template-landing .olaf-feature-card figure.wp-block-image {
    margin-bottom: 0.45rem;
  }

  body.page-template-template-landing .olaf-feature-card .wp-block-column {
    padding: 0.65rem 0.55rem 0.7rem;
  }

  /* Extra aggressive padding reduction for hero */
  body.page-template-template-landing .olaf-hero .wp-block-cover__inner-container {
    padding-bottom: clamp(3rem, 8vh, 5rem) !important;
  }

  body.page-template-template-landing .olaf-feature-float {
    margin-bottom: clamp(10px, 2.5vh, 20px) !important;
  }
}

/* Ultra-small screens (< 360px) - further compaction for older/smaller devices */
@media (max-width: 360px) {
  body.page-template-template-landing .olaf-feature-card .wp-block-column {
    padding: 0.6rem 0.5rem 0.65rem;
  }

  body.page-template-template-landing .olaf-feature-card figure.wp-block-image img {
    width: 26px !important;
    height: 26px !important;
  }

  body.page-template-template-landing .olaf-feature-card p strong {
    font-size: 0.85rem;
  }
}

/* --------------------------------------------------
   10.7 Desktop & Larger Screens
   -------------------------------------------------- */

@media (max-width: 899px) {
  .olaf-rates-grid {
    flex-direction: column;
  }

  body.page-husid .olaf-gallery .wp-block-group.olaf-gallery-grid,
  body.page-husid .olaf-gallery .wp-block-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* For exactly 3 images: make the 3rd image span both columns (no empty space) */
  body.page-husid .olaf-gallery .wp-block-gallery:has(.wp-block-image:nth-last-child(3):first-child) .wp-block-image:nth-child(3) {
    grid-column: span 2;
  }

  /* FAQ mobile padding - ensure text doesn't touch edges */
  .olaf-booking-faq .wp-block-details,
  .olaf-faq .wp-block-details {
    padding: 1rem 1.25rem !important;
  }

  .olaf-booking-faq .wp-block-details summary,
  .olaf-faq .wp-block-details summary {
    gap: 1rem;
  }

  .olaf-booking-faq .wp-block-details summary::after,
  .olaf-faq .wp-block-details summary::after {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .olaf-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .olaf-booking-page-wrapper {
    padding: 2rem 2rem 1.5rem;
  }

  .olaf-booking-container {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    /* Calendar: 63%, Pricing: 37% */
    gap: 4rem;
    align-items: flex-start;
    padding: 0 2rem;
  }

  /* Sticky pricing sidebar */
  .olaf-booking-pricing-sidebar {
    position: sticky;
    top: 2rem;
  }

  .olaf-calendar-legend {
    justify-content: center;
    padding-top: 0.5rem;
  }

  .olaf-booking-page-title {
    margin-bottom: 2rem;
  }

  .olaf-pricing-card {
    padding: 2.5rem 2.25rem;
  }

  .price-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .price-rows .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
  }

}

/* --------------------------------------------------
   Accessibility
   -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
