/* ================================================================
   Public tenant website — BASE styles (shared by ALL templates)
   Nav styles:    .nav-solid | .nav-transparent | .nav-centered | .nav-minimal
   Hero styles:   .hero-full-bleed | .hero-contained | .hero-split | .hero-minimal
   Button styles: .btn-rounded | .btn-pill | .btn-square | .btn-outline
   ================================================================ */

/* ================================= */
/* 1. RESET & BASE                   */
/* ================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
.pub-section[id] { scroll-margin-top: 80px; }

body {
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    line-height: 1.6;
    color: var(--text, #1a1a1a);
    background: var(--bg, #ffffff);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading, var(--font-body, 'Inter', sans-serif));
}
img { max-width: 100%; height: auto; }
a { color: var(--primary, #2563eb); }
html { scroll-behavior: smooth; }

/* ================================= */
/* 2. LAYOUT & CONTAINER             */
/* ================================= */

.pub-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================= */
/* 3. HEADER / NAV STYLES            */
/* ================================= */

/* 3a. Base header (shared) */
.pub-header {
    position: sticky;
    top: var(--announcement-height, 0px);
    z-index: 100;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.pub-header .pub-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.pub-logo {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text, #1a1a1a);
    flex-shrink: 0;
    min-width: 0;
}
.pub-logo img { display: block; max-width: 180px; }
.pub-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.pub-nav a {
    text-decoration: none;
    color: var(--text, #1a1a1a);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.pub-nav a:hover, .pub-nav a.active { opacity: 1; }
.pub-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text, #1a1a1a);
}

/* 3b. nav-solid (default) */
.nav-solid {
    background: var(--bg, #fff);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* 3c. nav-transparent */
.nav-transparent {
    position: fixed;
    top: var(--announcement-height, 0px);
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 1px solid transparent;
}
.nav-transparent .pub-logo { color: #fff; }
.nav-transparent .pub-nav a { color: #fff; }
.nav-transparent .pub-nav-dropdown-trigger { color: #fff; }
.nav-transparent .pub-nav-toggle { color: #fff; }
.nav-transparent.scrolled {
    background: var(--bg, #fff);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nav-transparent.scrolled .pub-logo { color: var(--text, #1a1a1a); }
.nav-transparent.scrolled .pub-nav a { color: var(--text, #1a1a1a); }
.nav-transparent.scrolled .pub-nav-dropdown-trigger { color: var(--text, #1a1a1a); }
.nav-transparent.scrolled .pub-nav-toggle { color: var(--text, #1a1a1a); }

/* 3d. nav-centered */
.nav-centered .pub-container {
    flex-direction: column;
    height: auto;
    padding-top: 16px;
    padding-bottom: 12px;
    gap: 8px;
}
.nav-centered {
    background: var(--bg, #fff);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-centered .pub-nav { gap: 20px; }

/* 3e. nav-minimal */
.nav-minimal {
    background: var(--bg, #fff);
    border-bottom: none;
}

/* 3f. nav-dark (Growth+) */
.nav-dark {
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-dark .pub-logo { color: #f1f5f9; }
.nav-dark .pub-nav a { color: rgba(241,245,249,0.7); opacity: 1; }
.nav-dark .pub-nav-dropdown-trigger { color: rgba(241,245,249,0.7); opacity: 1; }
.nav-dark .pub-nav a:hover, .nav-dark .pub-nav a.active,
.nav-dark .pub-nav-dropdown-trigger:hover { color: #f1f5f9; }
.nav-dark .pub-nav-toggle { color: #f1f5f9; }
.nav-dark .pub-nav-admin-btn { color: #f1f5f9; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.nav-dark .pub-nav-admin-btn:hover { background: rgba(255,255,255,0.15); }

/* 3g. nav-floating (Growth+) */
.nav-floating {
    position: sticky;
    top: calc(var(--announcement-height, 0px) + 12px);
    background: var(--bg, #fff);
    border-bottom: none;
    margin: 12px 24px 0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    z-index: 100;
}
.nav-floating .pub-container { max-width: none; padding: 0 20px; }

/* 3h. nav-glass (Growth+) */
.nav-glass {
    background: rgba(255,255,255,0.6);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.nav-glass.scrolled {
    background: rgba(255,255,255,0.88);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 3i. nav-pill (Growth+) */
.nav-pill {
    background: var(--bg, #fff);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-pill .pub-nav { gap: 4px; }
.nav-pill .pub-nav a {
    padding: 6px 16px;
    border-radius: 9999px;
    opacity: 1;
    color: var(--text, #1a1a1a);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.25s, color 0.25s;
}
.nav-pill .pub-nav a:hover { background: rgba(0,0,0,0.06); }
.nav-pill .pub-nav a.active { background: var(--primary, #2563eb); color: #fff; }

/* 3j. nav-split (Growth+) — logo centered, links split left/right */
.nav-split {
    background: var(--bg, #fff);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-split .pub-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
}
.nav-split .pub-nav-left,
.nav-split .pub-nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}
.nav-split .pub-nav-left a,
.nav-split .pub-nav-right a {
    text-decoration: none;
    color: var(--text, #1a1a1a);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.nav-split .pub-nav-left a:hover,
.nav-split .pub-nav-left a.active,
.nav-split .pub-nav-right a:hover,
.nav-split .pub-nav-right a.active { opacity: 1; }
.nav-split .pub-nav-left { justify-content: flex-end; }
.nav-split .pub-nav-right { justify-content: flex-start; }
.nav-split .pub-logo {
    margin: 0 40px;
    font-size: 26px;
    flex-shrink: 0;
}
.nav-split .pub-logo img { max-height: 44px !important; }
.nav-split .pub-nav-right a.pub-nav-admin-btn { opacity: 1; }
.nav-split .pub-nav { display: none; }
.nav-split .pub-nav-toggle { display: none; }
/* Split nav link interaction support — both nav groups inherit navlink-* styles */
.nav-split.navlink-underline .pub-nav-left a,
.nav-split.navlink-underline .pub-nav-right a:not(.pub-nav-admin-btn) {
    position: relative; opacity: 1; padding-bottom: 4px;
}
.nav-split.navlink-underline .pub-nav-left a::after,
.nav-split.navlink-underline .pub-nav-right a:not(.pub-nav-admin-btn)::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary, #2563eb); transition: width 0.3s ease;
}
.nav-split.navlink-underline .pub-nav-left a:hover::after,
.nav-split.navlink-underline .pub-nav-left a.active::after,
.nav-split.navlink-underline .pub-nav-right a:not(.pub-nav-admin-btn):hover::after,
.nav-split.navlink-underline .pub-nav-right a:not(.pub-nav-admin-btn).active::after { width: 100%; }
.nav-split.navlink-highlight .pub-nav-left a,
.nav-split.navlink-highlight .pub-nav-right a:not(.pub-nav-admin-btn) {
    padding: 4px 10px; border-radius: 6px; opacity: 1; transition: background 0.25s;
}
.nav-split.navlink-highlight .pub-nav-left a:hover,
.nav-split.navlink-highlight .pub-nav-right a:not(.pub-nav-admin-btn):hover { background: rgba(0,0,0,0.06); }
.nav-split.navlink-highlight .pub-nav-left a.active,
.nav-split.navlink-highlight .pub-nav-right a:not(.pub-nav-admin-btn).active { background: rgba(0,0,0,0.1); font-weight: 600; }
.nav-split.navlink-glow .pub-nav-left a,
.nav-split.navlink-glow .pub-nav-right a:not(.pub-nav-admin-btn) { opacity: 1; transition: text-shadow 0.3s, color 0.3s; }
.nav-split.navlink-glow .pub-nav-left a:hover,
.nav-split.navlink-glow .pub-nav-right a:not(.pub-nav-admin-btn):hover {
    text-shadow: 0 0 12px rgba(37,99,235,0.5); color: var(--primary, #2563eb);
}

/* 3k. nav-capsule (Growth+) — pill container with dark CTA pill inside */
.nav-capsule {
    background: transparent;
    border-bottom: none;
    padding: 12px 20px 0;
}
.nav-capsule .pub-container {
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 9999px;
    padding: 0 10px 0 28px;
    height: 62px;
    max-width: 960px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.8);
}
.nav-capsule .pub-logo { font-size: 22px; font-weight: 700; }
.nav-capsule .pub-nav { gap: 4px; }
.nav-capsule .pub-nav a {
    opacity: 1;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 15px;
    transition: background 0.25s, color 0.25s;
}
.nav-capsule .pub-nav a:hover { background: rgba(0,0,0,0.05); }
.nav-capsule .pub-nav a.active { background: rgba(0,0,0,0.08); font-weight: 600; }
/* Dark pill CTA button inside the capsule */
.nav-capsule .pub-nav-admin-btn {
    background: var(--text, #1a1a1a) !important;
    color: var(--bg, #fff) !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 14px;
    margin-left: 12px;
    transition: background 0.25s, transform 0.15s;
    opacity: 1 !important;
}
.nav-capsule .pub-nav-admin-btn:hover {
    background: var(--primary, #2563eb) !important;
    transform: scale(1.03);
}
.nav-capsule .pub-nav-admin-btn--out {
    background: var(--text, #1a1a1a) !important;
    color: var(--bg, #fff) !important;
}
/* Capsule suppresses underline/glow on admin btn */
.nav-capsule.navlink-underline .pub-nav-admin-btn::after { display: none; }

/* 3l. nav-segmented (Growth+) — dark bar with individually bordered segments */
.nav-segmented {
    background: transparent;
    border-bottom: none;
    padding: 14px 24px 0;
}
.nav-segmented .pub-container {
    background: rgba(20, 25, 18, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 0 8px 0 20px;
    height: 60px;
    max-width: 1100px;
    border: 1px solid rgba(255,255,255,0.08);
}
.nav-segmented .pub-logo {
    font-size: 20px;
    font-weight: 700;
    color: #faf5eb;
    letter-spacing: 0.5px;
}
.nav-segmented .pub-nav { gap: 4px; }
.nav-segmented .pub-nav a,
.nav-segmented .pub-nav-dropdown-trigger {
    opacity: 1;
    padding: 7px 16px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(250,245,235,0.8);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Roboto Mono', 'SF Mono', monospace;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.nav-segmented .pub-nav a:hover,
.nav-segmented .pub-nav-dropdown-trigger:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
    color: #faf5eb;
}
.nav-segmented .pub-nav a.active {
    background: rgba(255,255,255,0.1);
    border-color: rgba(234,179,8,0.5);
    color: #EAB308;
    font-weight: 600;
}
.nav-segmented .pub-nav-toggle { color: #faf5eb; }
/* Segmented CTA button — gold fill */
.nav-segmented .pub-nav-admin-btn {
    background: #EAB308 !important;
    color: #1a1a0e !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 22px !important;
    font-weight: 700 !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Roboto Mono', 'SF Mono', monospace;
    margin-left: 8px;
    transition: background 0.25s, transform 0.15s;
    opacity: 1 !important;
}
.nav-segmented .pub-nav-admin-btn:hover {
    background: #ca9a06 !important;
    transform: scale(1.03);
}
.nav-segmented .pub-nav-admin-btn--out {
    background: rgba(255,255,255,0.12) !important;
    color: #faf5eb !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
}
/* Segmented suppresses link-style decorations on admin btn */
.nav-segmented.navlink-underline .pub-nav-admin-btn::after { display: none; }
.nav-segmented.navlink-glow .pub-nav-admin-btn { text-shadow: none; }

/* 3m. nav-overlay (Growth+) — fullscreen overlay menu */
.nav-overlay {
    background: var(--bg, #fff);
    border-bottom: none;
}
.nav-overlay .pub-nav { display: none; }
.nav-overlay .pub-nav-toggle { display: none; }
/* Animated hamburger trigger */
.pub-overlay-trigger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
}
.pub-overlay-trigger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text, #1a1a1a);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
}
.pub-overlay-trigger:focus-visible {
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 2px;
    border-radius: 4px;
}
/* Fullscreen overlay panel — circle-expand from hamburger position */
.pub-overlay-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--text, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: circle(0% at calc(100% - 48px) 32px);
    transition: clip-path 0.6s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
}
.pub-overlay-menu.open {
    clip-path: circle(150% at calc(100% - 48px) 32px);
    pointer-events: auto;
}
/* Close button */
.pub-overlay-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 48px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s, transform 0.3s;
    z-index: 1001;
}
.pub-overlay-close:hover { color: #fff; transform: rotate(90deg); }
.pub-overlay-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 4px;
}
/* Overlay navigation links — large staggered text */
.pub-overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.pub-overlay-nav a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 700;
    font-family: var(--font-heading, var(--font-body));
    letter-spacing: -0.02em;
    line-height: 1.3;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1),
                opacity 0.5s cubic-bezier(0.4,0,0.2,1),
                color 0.3s;
}
.pub-overlay-menu.open .pub-overlay-nav a {
    transform: translateY(0);
    opacity: 1;
}
/* Staggered entrance delays — covers both <a> and <div.pub-overlay-dropdown> children */
.pub-overlay-nav > a:nth-child(1),
.pub-overlay-nav > :nth-child(1) .pub-overlay-dropdown-trigger { transition-delay: 0.08s; }
.pub-overlay-nav > a:nth-child(2),
.pub-overlay-nav > :nth-child(2) .pub-overlay-dropdown-trigger { transition-delay: 0.14s; }
.pub-overlay-nav > a:nth-child(3),
.pub-overlay-nav > :nth-child(3) .pub-overlay-dropdown-trigger { transition-delay: 0.2s; }
.pub-overlay-nav > a:nth-child(4),
.pub-overlay-nav > :nth-child(4) .pub-overlay-dropdown-trigger { transition-delay: 0.26s; }
.pub-overlay-nav > a:nth-child(5),
.pub-overlay-nav > :nth-child(5) .pub-overlay-dropdown-trigger { transition-delay: 0.32s; }
.pub-overlay-nav > a:nth-child(6),
.pub-overlay-nav > :nth-child(6) .pub-overlay-dropdown-trigger { transition-delay: 0.38s; }
.pub-overlay-nav > a:nth-child(7),
.pub-overlay-nav > :nth-child(7) .pub-overlay-dropdown-trigger { transition-delay: 0.44s; }
.pub-overlay-nav > a:nth-child(8),
.pub-overlay-nav > :nth-child(8) .pub-overlay-dropdown-trigger { transition-delay: 0.5s; }
.pub-overlay-menu.open .pub-overlay-nav a:hover {
    color: #fff;
    transform: translateX(12px);
}
.pub-overlay-menu.open .pub-overlay-nav a.active {
    color: var(--primary, #2563eb);
}
/* Overlay CTA (login) */
.pub-overlay-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 36px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 9999px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transform: translateY(20px);
    opacity: 0;
    transition: background 0.3s, border-color 0.3s, transform 0.5s, opacity 0.5s;
}
.pub-overlay-menu.open .pub-overlay-cta {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.45s;
}
.pub-overlay-cta:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
/* Overlay logout form */
.pub-overlay-logout {
    margin-top: 28px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}
.pub-overlay-menu.open .pub-overlay-logout {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.45s;
}
.pub-overlay-logout button {
    background: none;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 9999px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 36px;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.3s, border-color 0.3s;
}
.pub-overlay-logout button:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ================================= */
/* 3.1 NAV LINK INTERACTION STYLES   */
/* ================================= */

/* 3.1a. navlink-fade — default, uses base opacity behavior, no extra CSS */

/* 3.1b. navlink-underline (Growth+) */
.navlink-underline .pub-nav a {
    position: relative;
    opacity: 1;
    padding-bottom: 4px;
}
.navlink-underline .pub-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary, #2563eb);
    transition: width 0.3s ease;
}
.navlink-underline .pub-nav a:hover::after,
.navlink-underline .pub-nav a.active::after { width: 100%; }
.navlink-underline .pub-nav a.active { opacity: 1; }
/* Dark variant */
.nav-dark.navlink-underline .pub-nav a::after { background: #93c5fd; }

/* 3.1c. navlink-highlight (Growth+) */
.navlink-highlight .pub-nav a {
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 1;
    transition: background 0.25s, color 0.25s;
}
.navlink-highlight .pub-nav a:hover { background: rgba(0,0,0,0.06); }
.navlink-highlight .pub-nav a.active { background: rgba(0,0,0,0.1); font-weight: 600; }
/* Dark variant */
.nav-dark.navlink-highlight .pub-nav a:hover { background: rgba(255,255,255,0.1); }
.nav-dark.navlink-highlight .pub-nav a.active { background: rgba(255,255,255,0.15); }

/* 3.1d. navlink-glow (Growth+) */
.navlink-glow .pub-nav a {
    opacity: 1;
    transition: text-shadow 0.3s, color 0.3s;
}
.navlink-glow .pub-nav a:hover {
    text-shadow: 0 0 12px rgba(37,99,235,0.5), 0 0 24px rgba(37,99,235,0.2);
    color: var(--primary, #2563eb);
}
.navlink-glow .pub-nav a.active {
    color: var(--primary, #2563eb);
    text-shadow: 0 0 8px rgba(37,99,235,0.4);
}
/* Dark variant */
.nav-dark.navlink-glow .pub-nav a:hover {
    text-shadow: 0 0 16px rgba(96,165,250,0.6), 0 0 32px rgba(96,165,250,0.3);
    color: #93c5fd;
}
.nav-dark.navlink-glow .pub-nav a.active {
    color: #93c5fd;
    text-shadow: 0 0 12px rgba(96,165,250,0.5);
}

/* 3.1e. Dropdown trigger inherits navlink-* active styles */
.navlink-underline .pub-nav-dropdown-trigger,
.navlink-highlight .pub-nav-dropdown-trigger,
.navlink-glow .pub-nav-dropdown-trigger { opacity: 1; }
.navlink-highlight .pub-nav-dropdown-trigger {
    padding: 4px 10px; border-radius: 6px;
}
.navlink-highlight .pub-nav-dropdown-trigger:hover { background: rgba(0,0,0,0.06); }
.nav-dark.navlink-highlight .pub-nav-dropdown-trigger:hover { background: rgba(255,255,255,0.1); }

/* 3.2 Combination overrides */
/* Pill already has own active indicator — suppress underline */
.nav-pill.navlink-underline .pub-nav a::after { display: none; }
/* Floating + hero transparent: flatten while over hero, restore on scroll */
.nav-floating.pub-nav-hero-transparent { margin: 0; border-radius: 0; box-shadow: none; }
.nav-floating.pub-nav-scrolled { margin: 12px 24px 0; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

/* ================================= */
/* 3.3 NAV DROPDOWN MENUS (Growth+)  */
/* ================================= */

/* Dropdown container */
.pub-nav-dropdown { position: relative; display: flex; align-items: center; }

/* Trigger button — inherits nav link appearance */
.pub-nav-dropdown-trigger {
    background: none; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    color: inherit; font-size: inherit; font-weight: inherit;
    font-family: inherit; opacity: 0.7; padding: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    line-height: inherit;
}
.pub-nav-dropdown-trigger:hover,
.pub-nav-dropdown.open .pub-nav-dropdown-trigger { opacity: 1; }

/* Chevron icon rotation */
.pub-nav-chevron { transition: transform 0.25s ease; flex-shrink: 0; }
.pub-nav-dropdown.open .pub-nav-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.pub-nav-dropdown-menu {
    display: none; position: absolute; top: calc(100% + 16px); left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 200px; background: #fff;
    border-radius: 12px; padding: 8px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    z-index: 100; opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.pub-nav-dropdown.open .pub-nav-dropdown-menu {
    display: block; opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* Desktop: also open on hover for mouse users */
@media (hover: hover) and (pointer: fine) {
    .pub-nav-dropdown:hover .pub-nav-dropdown-menu {
        display: block; opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    .pub-nav-dropdown:hover .pub-nav-chevron { transform: rotate(180deg); }
    .pub-nav-dropdown:hover .pub-nav-dropdown-trigger { opacity: 1; }
}

/* Dropdown menu items */
.pub-nav-dropdown-menu a {
    display: block; padding: 10px 20px;
    color: var(--text, #1a1a1a) !important; opacity: 1 !important;
    font-size: 14px; font-weight: 400; text-decoration: none;
    transition: background 0.15s; white-space: nowrap;
}
.pub-nav-dropdown-menu a:hover { background: rgba(0,0,0,0.04); }
.pub-nav-dropdown-menu a.active { font-weight: 600; color: var(--primary, #2563eb) !important; }

/* --- Nav variant overrides for dropdowns --- */

/* Dark nav dropdown */
.nav-dark .pub-nav-dropdown-menu {
    background: #1e293b; border-color: rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.nav-dark .pub-nav-dropdown-menu a { color: rgba(241,245,249,0.8) !important; }
.nav-dark .pub-nav-dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: #f1f5f9 !important; }
.nav-dark .pub-nav-dropdown-menu a.active { color: #93c5fd !important; }

/* Capsule dropdown */
.nav-capsule .pub-nav-dropdown-menu {
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-color: rgba(255,255,255,0.8);
}
.nav-capsule .pub-nav-dropdown-trigger { opacity: 1; font-size: 15px; }

/* Segmented dropdown */
.nav-segmented .pub-nav-dropdown-menu {
    background: rgba(20, 25, 18, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.nav-segmented .pub-nav-dropdown-menu a {
    color: rgba(250,245,235,0.8) !important;
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px;
    font-family: 'Roboto Mono', 'SF Mono', monospace;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
    margin: 2px 4px; padding: 7px 12px;
}
.nav-segmented .pub-nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.08); color: #faf5eb !important;
    border-color: rgba(255,255,255,0.25);
}
.nav-segmented .pub-nav-dropdown-menu a.active { color: #EAB308 !important; border-color: rgba(234,179,8,0.4); }
.nav-segmented .pub-nav-dropdown-trigger {
    opacity: 1; font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px;
    font-family: 'Roboto Mono', 'SF Mono', monospace;
}

/* Glass dropdown */
.nav-glass .pub-nav-dropdown-menu {
    background: rgba(255,255,255,0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-color: rgba(255,255,255,0.5);
}

/* Pill nav dropdown — items get pill shape */
.nav-pill .pub-nav-dropdown-menu a {
    border-radius: 8px; margin: 2px 6px; padding: 8px 14px;
}
.nav-pill .pub-nav-dropdown-menu a.active {
    background: var(--primary, #2563eb); color: #fff !important;
}

/* Split nav — dropdown trigger inherits split link styles */
.nav-split .pub-nav-dropdown-trigger {
    font-size: 14px; font-weight: 500;
}

/* --- Overlay nav accordion --- */
.pub-overlay-dropdown { display: flex; flex-direction: column; align-items: center; }
.pub-overlay-dropdown-trigger {
    background: none; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.5); text-decoration: none;
    font-size: clamp(28px, 5vw, 56px); font-weight: 700;
    font-family: var(--font-heading, var(--font-body));
    letter-spacing: -0.02em; line-height: 1.3;
    transform: translateY(30px); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1),
                opacity 0.5s cubic-bezier(0.4,0,0.2,1), color 0.3s;
}
.pub-overlay-menu.open .pub-overlay-dropdown-trigger {
    transform: translateY(0); opacity: 1;
}
.pub-overlay-menu.open .pub-overlay-dropdown-trigger:hover { color: #fff; }
.pub-overlay-dropdown-children {
    display: none; flex-direction: column; align-items: center;
    gap: 0; padding: 4px 0 8px;
}
.pub-overlay-dropdown.open .pub-overlay-dropdown-children { display: flex; }
.pub-overlay-dropdown-children a {
    color: rgba(255,255,255,0.4) !important; text-decoration: none;
    font-size: clamp(16px, 2.5vw, 24px); font-weight: 500;
    padding: 4px 0; transition: color 0.3s;
}
.pub-overlay-dropdown-children a:hover { color: #fff !important; }
.pub-overlay-dropdown-children a.active { color: var(--primary, #2563eb) !important; }
/* Overlay chevron — larger for the big text */
.pub-overlay-dropdown-trigger .pub-nav-chevron {
    width: 16px; height: 16px;
}
.pub-overlay-dropdown.open .pub-nav-chevron { transform: rotate(180deg); }

/* Mobile nav */
@media (max-width: 768px) {
    .pub-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg, #fff);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        gap: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .pub-nav.open { display: flex; }
    .pub-nav-toggle { display: block; }
    .nav-centered .pub-container { flex-direction: row; height: 64px; padding-top: 0; padding-bottom: 0; }
    .nav-transparent .pub-nav { background: var(--bg, #fff); }
    .nav-transparent .pub-nav a,
    .nav-transparent .pub-nav-dropdown-trigger { color: var(--text, #1a1a1a); }
    /* Mobile: nav-dark dropdown */
    .nav-dark .pub-nav { background: #0f172a; border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
    .nav-dark .pub-nav a,
    .nav-dark .pub-nav-dropdown-trigger { color: rgba(241,245,249,0.8); }
    .nav-dark .pub-nav a:hover, .nav-dark .pub-nav a.active { color: #f1f5f9; }
    /* Mobile: nav-floating */
    .nav-floating { margin: 8px 12px 0; border-radius: 12px; top: 8px; }
    .nav-floating .pub-nav { border-radius: 0 0 12px 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
    /* Mobile: nav-glass dropdown */
    .nav-glass .pub-nav { background: rgba(255,255,255,0.85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
    /* Mobile: nav-pill vertical pills */
    .nav-pill .pub-nav a { width: 100%; text-align: left; border-radius: 8px; padding: 8px 16px; }
    /* Mobile: nav-split — collapse to standard mobile dropdown */
    .nav-split .pub-container {
        flex-wrap: wrap; height: 64px; justify-content: space-between;
    }
    .nav-split .pub-logo { margin: 0; order: 0; font-size: 22px; }
    .nav-split .pub-nav-left,
    .nav-split .pub-nav-right {
        display: none; width: 100%; flex-direction: column; padding: 8px 0; gap: 8px;
        background: var(--bg, #fff); border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    .nav-split .pub-nav-left a,
    .nav-split .pub-nav-right a { font-size: 15px; padding: 6px 24px; }
    .nav-split .pub-nav-left.open { display: flex; order: 3; }
    .nav-split .pub-nav-right.open { display: flex; order: 4; }
    .nav-split .pub-nav-toggle { display: block; order: 2; }
    /* Mobile: nav-capsule — reduce pill shape */
    .nav-capsule { padding: 8px 12px 0; }
    .nav-capsule .pub-container {
        border-radius: 16px; padding: 0 6px 0 16px; height: 54px;
    }
    .nav-capsule .pub-nav { top: 62px; border-radius: 0 0 12px 12px; }
    /* Mobile: nav-segmented — reduce bar size */
    .nav-segmented { padding: 8px 12px 0; }
    .nav-segmented .pub-container {
        border-radius: 8px; padding: 0 6px 0 14px; height: 52px;
    }
    .nav-segmented .pub-nav {
        top: 60px; border-radius: 0 0 8px 8px;
        background: rgba(20, 25, 18, 0.92);
        -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }
    .nav-segmented .pub-nav a {
        border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
        margin: 2px 8px; padding: 8px 14px;
    }
    .nav-segmented .pub-nav-dropdown { width: auto; }
    .nav-segmented .pub-nav-dropdown-trigger {
        width: auto;
        border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
        margin: 2px 8px; padding: 8px 14px;
    }
    .nav-segmented .pub-nav-dropdown-menu a {
        border: none; margin: 0; padding: 6px 14px;
    }
    /* Mobile: nav-overlay — already fullscreen, just tweak header */
    .nav-overlay .pub-container { height: 56px; }
    .pub-overlay-nav a { line-height: 1.4; }
    .pub-overlay-cta, .pub-overlay-logout button {
        padding: 12px 28px; font-size: 14px;
    }
    /* Mobile: navlink-underline → left border indicator */
    .navlink-underline .pub-nav a::after { display: none; }
    .navlink-underline .pub-nav a.active { border-left: 3px solid var(--primary, #2563eb); padding-left: 12px; }
    /* Mobile: navlink-highlight full-width targets */
    .navlink-highlight .pub-nav a { width: 100%; border-radius: 8px; padding: 8px 12px; }
    /* Mobile: dropdown becomes accordion */
    .pub-nav-dropdown { flex-direction: column; align-items: flex-start; width: 100%; }
    .pub-nav-dropdown-trigger { width: 100%; justify-content: space-between; padding: 0; }
    .pub-nav-dropdown-menu {
        display: none !important; /* override desktop hover */
        position: static; transform: none; box-shadow: none;
        border: none; border-radius: 0; padding: 0 0 0 16px;
        min-width: auto; opacity: 1; background: transparent;
        border-left: 2px solid rgba(0,0,0,0.1);
        margin-top: 4px;
    }
    .pub-nav-dropdown.open .pub-nav-dropdown-menu { display: block !important; transform: none; left: auto; opacity: 1; }
    .pub-nav-dropdown-menu a { padding: 6px 12px; font-size: 13px; }
    .nav-dark .pub-nav-dropdown-menu { border-left-color: rgba(255,255,255,0.15); background: transparent; }
}

/* ================================= */
/* 4. HERO STYLES                    */
/* ================================= */

.pub-section-hero { padding: 0; }
.pub-section-hero .pub-container { padding: 0; max-width: none; }

/* 4a. hero-full-bleed (default) */
.pub-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-color: var(--primary, #2563eb);
    overflow: hidden;
    padding: 80px 24px;
}
.pub-hero-overlay {
    position: absolute;
    inset: 0;
    background: #000;
}
.pub-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 720px;
}
.pub-hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
}
.pub-hero-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 28px;
}

/* When transparent nav is used, add padding-top to push hero content down */
.nav-transparent ~ main .pub-hero { padding-top: 120px; }

/* 4b. hero-contained */
.hero-contained {
    min-height: 400px;
    border-radius: 12px;
    margin: 0 24px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.hero-contained .pub-hero-overlay { border-radius: 12px; }

/* 4c. hero-split */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    text-align: left;
    background-color: var(--bg, #fff);
    background-image: none !important;
    padding: 0;
}
.hero-split .pub-hero-overlay { display: none; }
.hero-split .pub-hero-content {
    color: var(--text, #1a1a1a);
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-split .pub-hero-image {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

/* 4d. hero-minimal */
.hero-minimal {
    min-height: 280px;
    background-image: none !important;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #1e40af));
}
.hero-minimal .pub-hero-overlay { display: none; }
.hero-minimal .pub-hero-content h1 { font-size: 40px; }

/* 4e. hero video background */
.pub-hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.pub-hero-video-bg video,
.pub-hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border: 0;
}
.pub-hero-video-bg iframe {
    width: 177.78vh;   /* 16:9 ratio: always wider or taller than container */
    height: 100vh;
}
.pub-hero--has-video .pub-hero-overlay {
    z-index: 1;
}
.pub-hero--has-video .pub-hero-content {
    z-index: 2;
}
/* split hero: video fills the image column */
.hero-split .pub-hero-video-bg {
    position: absolute;
    inset: 0;
}
.hero-split .pub-hero-image {
    overflow: hidden;
}

/* ================================= */
/* 4e. THIN PAGE HERO (sub-pages)    */
/* ================================= */

/* Dark gradient banner for non-home pages (About, Contact, Rooms, etc.)
   Shown when the page has no hero section of its own. */
.pub-page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    padding: 3.5rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pub-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.pub-page-hero-inner {
    position: relative;
    z-index: 1;
}
.pub-page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 8px;
}
.pub-page-hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    color: rgba(255,255,255,0.6);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================================= */
/* 5. BUTTON STYLES                  */
/* ================================= */

/* 5a. Base (.pub-btn) */
.pub-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary, #2563eb);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.2s, transform 0.15s;
    border: 2px solid transparent;
    cursor: pointer;
}
.pub-btn:hover { opacity: 0.9; }

/* 5b. btn-rounded (default) */
.btn-rounded .pub-btn { border-radius: 8px; }
.btn-rounded .pub-room-card,
.btn-rounded .pub-about-image img,
.btn-rounded .pub-gallery-item img,
.btn-rounded .pub-testimonial,
.btn-rounded .pub-cta { border-radius: 12px; }

/* 5c. btn-pill */
.btn-pill .pub-btn { border-radius: 9999px; }
.btn-pill .pub-room-card,
.btn-pill .pub-testimonial,
.btn-pill .pub-cta { border-radius: 16px; }
.btn-pill .pub-about-image img,
.btn-pill .pub-gallery-item img { border-radius: 12px; }

/* 5d. btn-square */
.btn-square .pub-btn { border-radius: 0; }
.btn-square .pub-room-card,
.btn-square .pub-about-image img,
.btn-square .pub-gallery-item img,
.btn-square .pub-testimonial,
.btn-square .pub-cta,
.btn-square .pub-hero.hero-contained { border-radius: 0; }

/* 5e. btn-outline */
.btn-outline .pub-btn {
    background: transparent;
    color: var(--primary, #2563eb);
    border: 2px solid var(--primary, #2563eb);
    border-radius: 8px;
}
.btn-outline .pub-btn:hover {
    background: var(--primary, #2563eb);
    color: #fff;
    opacity: 1;
}
/* Hero buttons stay white for contrast (except split layout which has light bg) */
.btn-outline .pub-hero:not(.hero-split) .pub-btn {
    color: #fff;
    border-color: #fff;
}
.btn-outline .pub-hero:not(.hero-split) .pub-btn:hover {
    background: #fff;
    color: var(--primary, #2563eb);
}

/* 5f. btn-soft — modern soft rounded with subtle shadow */
.btn-soft .pub-btn {
    border-radius: 14px;
    border: none;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.18), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s ease;
}
.btn-soft .pub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25), 0 2px 6px rgba(0, 0, 0, 0.08);
    opacity: 1;
}
.btn-soft .pub-room-card,
.btn-soft .pub-about-image img,
.btn-soft .pub-gallery-item img,
.btn-soft .pub-testimonial,
.btn-soft .pub-cta { border-radius: 16px; }

/* 5g. btn-glass — frosted glass translucent style */
.btn-glass .pub-btn {
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s ease, background 0.2s;
}
.btn-glass .pub-btn:hover {
    background: rgba(37, 99, 235, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    opacity: 1;
}
.btn-glass .pub-room-card,
.btn-glass .pub-testimonial,
.btn-glass .pub-cta { border-radius: 14px; }
.btn-glass .pub-about-image img,
.btn-glass .pub-gallery-item img { border-radius: 12px; }

/* 5h. btn-gradient — gradient fill with depth */
.btn-gradient .pub-btn {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary, #2563eb) 0%, var(--secondary, #1e40af) 100%);
    border: none;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.3), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s ease;
}
.btn-gradient .pub-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.38), 0 2px 6px rgba(0, 0, 0, 0.10);
    opacity: 1;
}
.btn-gradient .pub-room-card,
.btn-gradient .pub-about-image img,
.btn-gradient .pub-gallery-item img,
.btn-gradient .pub-testimonial,
.btn-gradient .pub-cta { border-radius: 12px; }

/* 5i. btn-elevated — raised shadow effect (Growth+) */
.btn-elevated .pub-btn {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 0 var(--secondary, #1e40af), 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-elevated .pub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--secondary, #1e40af), 0 10px 24px rgba(0, 0, 0, 0.16);
    opacity: 1;
}
.btn-elevated .pub-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--secondary, #1e40af), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.btn-elevated .pub-room-card,
.btn-elevated .pub-about-image img,
.btn-elevated .pub-gallery-item img,
.btn-elevated .pub-testimonial,
.btn-elevated .pub-cta { border-radius: 10px; }

/* 5j. btn-neon — glowing border effect (Growth+) */
.btn-neon .pub-btn {
    border-radius: 8px;
    background: transparent;
    color: var(--primary, #2563eb);
    border: 2px solid var(--primary, #2563eb);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4), inset 0 0 8px rgba(37, 99, 235, 0.1);
    transition: box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn-neon .pub-btn:hover {
    background: var(--primary, #2563eb);
    color: #fff;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.6), 0 0 32px rgba(37, 99, 235, 0.3);
    opacity: 1;
}
.btn-neon .pub-hero:not(.hero-split) .pub-btn {
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3), inset 0 0 8px rgba(255, 255, 255, 0.05);
}
.btn-neon .pub-hero:not(.hero-split) .pub-btn:hover {
    background: #fff;
    color: var(--primary, #2563eb);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5), 0 0 32px rgba(255, 255, 255, 0.2);
}
.btn-neon .pub-room-card,
.btn-neon .pub-about-image img,
.btn-neon .pub-gallery-item img,
.btn-neon .pub-testimonial,
.btn-neon .pub-cta { border-radius: 10px; }

/* 5k. btn-underline — text with animated underline (Growth+) */
.btn-underline .pub-btn {
    background: transparent;
    color: var(--primary, #2563eb);
    border: none;
    border-radius: 0;
    padding: 12px 8px;
    position: relative;
    box-shadow: none;
}
.btn-underline .pub-btn::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--primary, #2563eb);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-underline .pub-btn:hover::after {
    transform: scaleX(1);
}
.btn-underline .pub-btn:hover { opacity: 1; }
.btn-underline .pub-hero:not(.hero-split) .pub-btn {
    color: #fff;
}
.btn-underline .pub-hero:not(.hero-split) .pub-btn::after {
    background: #fff;
}
.btn-underline .pub-room-card,
.btn-underline .pub-about-image img,
.btn-underline .pub-gallery-item img,
.btn-underline .pub-testimonial,
.btn-underline .pub-cta { border-radius: 8px; }

/* 5l. btn-split — two-tone split background (Growth+) */
.btn-split .pub-btn {
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg, var(--primary, #2563eb) 50%, var(--secondary, #1e40af) 50%);
    background-size: 200% 100%;
    background-position: left;
    transition: background-position 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.2s ease;
}
.btn-split .pub-btn:hover {
    background-position: right;
    transform: translateY(-1px);
    opacity: 1;
}
.btn-split .pub-room-card,
.btn-split .pub-about-image img,
.btn-split .pub-gallery-item img,
.btn-split .pub-testimonial,
.btn-split .pub-cta { border-radius: 10px; }

/* 5m. btn-minimal — no background, subtle hover (Growth+) */
.btn-minimal .pub-btn {
    background: transparent;
    color: var(--primary, #2563eb);
    border: none;
    border-radius: 6px;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.btn-minimal .pub-btn:hover {
    background: rgba(37, 99, 235, 0.08);
    opacity: 1;
}
.btn-minimal .pub-hero:not(.hero-split) .pub-btn {
    color: #fff;
}
.btn-minimal .pub-hero:not(.hero-split) .pub-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}
.btn-minimal .pub-room-card,
.btn-minimal .pub-about-image img,
.btn-minimal .pub-gallery-item img,
.btn-minimal .pub-testimonial,
.btn-minimal .pub-cta { border-radius: 8px; }

/* ================================= */
/* 6. SECTION STYLES                 */
/* ================================= */

.pub-section {
    padding: 80px 0;
    position: relative;
}
.pub-section h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.pub-section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary, #2563eb);
    margin-bottom: 10px;
}
/* Alternating section backgrounds for semantic section types */
.pub-section-rooms_preview,
.pub-section-rooms_list,
.pub-section-amenities { background: #f8fafc; }

/* About */
.pub-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.pub-about-text h2 {
    font-size: 34px;
    line-height: 1.2;
}
.pub-about-text p,
.pub-about-body {
    font-size: 16px;
    line-height: 1.85;
    color: #475569;
}
.pub-about-image {
    position: relative;
    min-height: 320px; /* Gradient fallback visible even when image URL is broken */
}
.pub-about-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
}
.pub-about-image:hover img {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.14);
}
.pub-about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -14px;
    bottom: -14px;
    left: 20px;
    border: 2px solid var(--primary, #2563eb);
    opacity: 0.12;
    z-index: -1;
    transition: opacity 0.4s;
}
.pub-about-image:hover::after { opacity: 0.22; }
@media (max-width: 768px) {
    .pub-about { grid-template-columns: 1fr; gap: 32px; }
    .pub-about-image::after { display: none; }
}

/* Text */
.pub-text {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text, #1a1a1a);
}

/* Rich Content (Quill editor output) */
.rich-content p { margin: 0 0 12px; line-height: 1.8; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content h3 { font-size: 1.25rem; font-weight: 700; margin: 20px 0 8px; }
.rich-content h4 { font-size: 1.1rem; font-weight: 600; margin: 16px 0 6px; }
.rich-content ul, .rich-content ol { padding-left: 24px; margin: 0 0 12px; }
.rich-content li { margin-bottom: 4px; line-height: 1.7; }
.rich-content a { color: var(--primary, #2563eb); text-decoration: underline; }
.rich-content blockquote { border-left: 3px solid var(--primary, #2563eb); padding: 4px 0 4px 16px; margin: 12px 0; font-style: italic; color: #64748b; }
.rich-content strong { font-weight: 700; }

/* Gallery */
.pub-gallery {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 14px;
}
.pub-gallery-item {
    overflow: hidden;
    position: relative;
}
.pub-gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
a.pub-gallery-item { text-decoration: none; color: inherit; display: block; }
.pub-gallery-item:hover img {
    transform: scale(1.06);
}
@media (max-width: 768px) {
    .pub-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Testimonials */
.pub-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.pub-testimonial {
    background: #fff;
    padding: 36px 32px 32px;
    position: relative;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.pub-testimonial:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}
.pub-testimonial-quote {
    font-size: 56px;
    line-height: 1;
    color: var(--primary, #2563eb);
    opacity: 0.12;
    font-family: Georgia, 'Times New Roman', serif;
    position: absolute;
    top: 12px;
    left: 24px;
    pointer-events: none;
}
.pub-testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}
.pub-testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: #f59e0b;
}
.pub-testimonial p {
    font-style: italic;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #374151;
    position: relative;
}
.pub-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pub-testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #1e40af));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.pub-testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #1a1a1a);
}

/* FAQ */
.pub-faq { max-width: 720px; }
.pub-faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 0;
}
.pub-faq-item summary {
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s;
}
.pub-faq-item summary::-webkit-details-marker { display: none; }
.pub-faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--primary, #2563eb);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.pub-faq-item[open] summary::after {
    content: '\2212';
    transform: rotate(180deg);
}
.pub-faq-item summary:hover { color: var(--primary, #2563eb); }
.pub-faq-answer {
    overflow: hidden;
}
.pub-faq-item p {
    margin-top: 12px;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
    padding-right: 32px;
}

/* Contact — channels strip + redesigned form/side panel */
.pub-contact { font-size: 15px; }
.pub-contact p { margin-bottom: 8px; }
.pub-contact a { color: var(--primary, #2563eb); }

/* CTA Banner */
.pub-section-cta_banner { padding: 0; }
.pub-section-cta_banner .pub-container { max-width: none; padding: 0; }
.pub-cta {
    text-align: center;
    padding: 88px 32px;
    background: linear-gradient(135deg, var(--primary, #2563eb) 0%, var(--secondary, #1e40af) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pub-cta::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 70%);
    pointer-events: none;
}
.pub-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
    pointer-events: none;
}
.pub-cta h2 {
    margin-bottom: 12px;
    font-size: 38px;
    color: #fff;
    position: relative;
}
.pub-cta p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
    font-size: 18px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.pub-cta .pub-btn {
    background: #fff;
    color: var(--primary, #2563eb);
    font-size: 16px;
    padding: 14px 40px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s, opacity 0.2s;
}
.pub-cta .pub-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    opacity: 1;
}

/* ── Book Now Widget (base layout) ── */
.pub-book-now { background: transparent; }
.pub-book-now-inner {
    padding: 32px 40px;
    max-width: 960px;
    margin: 0 auto;
}
.pub-book-now-header { margin-bottom: 24px; }
.pub-book-now-header h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.pub-book-now-header h2::after { display: none !important; }
.pub-book-now-header p { font-size: 15px; margin: 0; }
.pub-book-now-form { width: 100%; }
.pub-book-now-fields { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pub-book-now-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 130px; }
.pub-book-now-field label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
    text-transform: uppercase; white-space: nowrap;
}
.pub-book-now-btn { flex-shrink: 0; white-space: nowrap; align-self: flex-end; }
@media (max-width: 680px) {
    .pub-book-now-inner { padding: 24px 20px; }
    .pub-book-now-fields { flex-direction: column; }
    .pub-book-now-field, .pub-book-now-btn { width: 100%; }
}

/* ── Check-In Lookup (base layout) ── */
.pub-checkin-lookup { text-align: center; max-width: 560px; margin: 0 auto; padding: 20px 0; }
.pub-checkin-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.pub-checkin-icon svg { width: 30px; height: 30px; }
.pub-checkin-lookup h2 { margin-bottom: 12px; }
.pub-checkin-instructions { font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.pub-checkin-btn { border-radius: 9999px; padding: 14px 46px; font-size: 16px; }
.pub-checkin-note { margin-top: 14px; font-size: 13px; }

/* Rooms disabled message */
.pub-rooms-disabled {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
    font-size: 16px;
}

/* Footer */
.pub-footer {
    padding: 32px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}
.pub-powered { margin-top: 8px; }

/* Footer legal links */
.pub-footer-legal {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 13px;
}
.pub-footer-legal a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.pub-footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}
.pub-footer-sep {
    opacity: 0.4;
    font-size: 11px;
}

/* Rooms grid */
.pub-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 24px;
}
.pub-room-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.pub-room-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}
.pub-room-image {
    position: relative;
    overflow: hidden;
}
.pub-room-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.pub-room-card:hover .pub-room-image img {
    transform: scale(1.08);
}
.pub-room-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}
.pub-room-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary, #2563eb);
    color: #fff;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.pub-room-badge small {
    font-weight: 400;
    font-size: 11px;
    opacity: 0.85;
}
.pub-room-info { padding: 22px 20px; }
.pub-room-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.pub-room-info p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.6;
}
.pub-room-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748b;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.pub-room-occupancy {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pub-room-occupancy svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.pub-room-price {
    font-weight: 700;
    color: var(--primary, #2563eb);
}
.pub-btn-room {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding: 10px 24px;
    font-size: 14px;
}
.pub-view-all-rooms {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid var(--primary, #2563eb);
    color: var(--primary, #2563eb);
    background: transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}
.pub-view-all-rooms:hover {
    background: var(--primary, #2563eb);
    color: #fff;
}

/* ================================= */
/* 7. RESPONSIVE                     */
/* ================================= */

/* Tablet */
@media (max-width: 1024px) {
    .pub-hero-content h1 { font-size: 40px; }
    .hero-split { grid-template-columns: 1fr; }
    .hero-split .pub-hero-image { min-height: 300px; order: -1; }
    .hero-split .pub-hero-content { padding: 40px 24px; }
    .pub-section { padding: 60px 0; }
    .pub-section h2 { font-size: 28px; }
    .pub-cta h2 { font-size: 32px; }
    .pub-about { gap: 36px; }
}

/* Mobile */
@media (max-width: 768px) {
    .pub-hero {
        min-height: 60vh;
        padding: 48px 16px;
    }
    .nav-transparent ~ main .pub-hero { padding-top: 80px; }
    .pub-hero-content h1 { font-size: 28px; }
    .pub-hero-content p { font-size: 16px; }
    .pub-section { padding: 48px 0; }
    .pub-section h2 { font-size: 24px; }
    .pub-container { padding: 0 16px; }
    .pub-logo img { max-width: 140px; }
    .pub-cta { padding: 48px 20px; }
    .pub-cta h2 { font-size: 28px; }
    .pub-cta p { font-size: 16px; }
    .pub-rooms-grid { grid-template-columns: 1fr; }
    .pub-room-image img { height: 200px; }
    .pub-testimonials { grid-template-columns: 1fr; }
    .pub-testimonial { padding: 28px 24px; }
    .hero-contained { margin: 0 16px; min-height: 300px; }
    .hero-minimal .pub-hero-content h1 { font-size: 28px; }
}

/* Small mobile */
@media (max-width: 480px) {
    .pub-gallery { grid-template-columns: 1fr; }
    .pub-gallery-item img { height: 200px; }
    .pub-hero {
        min-height: 50vh;
        padding: 36px 12px;
    }
    .nav-transparent ~ main .pub-hero { padding-top: 72px; }
    .pub-hero-content h1 { font-size: 24px; }
    .pub-hero-content p { font-size: 15px; }
    .pub-section h2 { font-size: 20px; }
    .pub-cta { padding: 40px 16px; }
    .pub-cta h2 { font-size: 24px; }
    .pub-about-text h2 { font-size: 24px; }
}

/* ================================= */
/* 8. UTILITIES & COMPONENTS         */
/* ================================= */

/* ── Social Links ── */
.pub-social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pub-social-links a {
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
    display: flex;
    align-items: center;
}
.pub-social-links a:hover {
    opacity: 1;
    color: var(--accent);
}

/* ── Gallery Captions ── */
.pub-gallery-caption {
    padding: 8px 4px 4px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

/* ── Photo Attribution ── */
.pub-photo-credit {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    text-align: center;
}
.pub-photo-credit a {
    color: #64748b;
    text-decoration: none;
}
.pub-photo-credit a:hover {
    text-decoration: underline;
}
.pub-hero-credit {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
}
.pub-hero-credit a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.pub-hero-credit a:hover {
    text-decoration: underline;
}

/* ── Cookie Consent Banner ── */
.pub-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: var(--text, #1a1a1a);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}
.pub-cookie-banner p { margin: 0; }
.pub-cookie-banner .pub-btn {
    white-space: nowrap;
    padding: 8px 20px;
    font-size: 13px;
}
.pub-cookie-banner a { color: rgba(255, 255, 255, 0.9); }
.pub-cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.pub-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    padding: 8px 20px;
    white-space: nowrap;
    transition: all 0.2s;
}
.pub-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 640px) {
    .pub-cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 14px 16px;
    }
    .pub-cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ── Contact Channels Strip ── */
.pub-contact-channels {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}
.pub-contact-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text, #1a1a1a);
    transition: color 0.2s;
}
a.pub-contact-channel:hover { color: var(--primary, #2563eb); }
.pub-contact-channel-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary, #2563eb);
}
.pub-contact-channel-icon svg { width: 20px; height: 20px; }
.pub-contact-channel-info { display: flex; flex-direction: column; gap: 1px; }
.pub-contact-channel-info strong { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.pub-contact-channel-info span:last-child { font-size: 13px; color: #64748b; }

/* ── Contact Form & Side Panel Layout ── */
.pub-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) {
    .pub-contact-layout { grid-template-columns: 1fr; }
}

/* Left panel: form */
.pub-contact-form-panel h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.pub-contact-intro {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.pub-contact-form { margin-top: 0; }
.pub-contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 520px) {
    .pub-contact-form-row { grid-template-columns: 1fr; }
}
.pub-contact-field {
    margin-bottom: 1rem;
}
.pub-contact-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text, #1a1a1a);
}
.pub-contact-optional {
    font-weight: 400;
    color: #94a3b8;
}
.pub-contact-submit {
    width: 100%;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* Inputs */
.pub-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.pub-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.pub-input::placeholder { color: #94a3b8; }

/* Success message */
.pub-contact-success {
    background: #dcfce7;
    color: #166534;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 14.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pub-contact-success svg { flex-shrink: 0; color: #16a34a; }

/* Right panel: map + info card */
.pub-contact-side-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.pub-contact-map {
    border-radius: 12px;
    overflow: hidden;
    min-height: 260px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.pub-contact-map iframe { display: block; }
.pub-contact-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    background: #f1f5f9;
    border-radius: 12px;
    color: #94a3b8;
    gap: 12px;
    text-align: center;
    font-size: 14px;
}
.pub-contact-map-placeholder svg { opacity: 0.5; }
.pub-contact-map-placeholder p { margin: 0; }
.pub-contact-info-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pub-contact-info-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.pub-contact-info-row svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary, #2563eb);
}
.pub-contact-info-row strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}
.pub-contact-info-row p {
    font-size: 14px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}
.pub-contact-info-row a { color: var(--primary, #2563eb); text-decoration: none; }
.pub-contact-info-row a:hover { text-decoration: underline; }

/* Legacy compat — old .pub-map-container still used by other templates */
.pub-map-container {
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
}
.pub-map-container iframe { display: block; }

/* Legacy compat — old .form-group from other sections */
.pub-contact-form .form-group { margin-bottom: 16px; }
.pub-contact-form .form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
}

/* ── GLightbox overrides (Growth+) ── */
.gslide-description:not(:has(p)) { display: none !important; }
.gslide-description p:empty { display: none; }

/* ── Lightbox ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    -webkit-user-select: none;
    user-select: none;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    padding: 4px 8px;
}
.lightbox-close:hover { color: #f59e0b; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 10;
    line-height: 1;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-caption {
    color: #e2e8f0;
    font-size: 15px;
    margin-top: 12px;
    text-align: center;
    max-width: 80vw;
}
@media (max-width: 640px) {
    .lightbox-nav { font-size: 28px; padding: 6px 12px; }
    .lightbox-close { font-size: 28px; top: 10px; right: 12px; }
}

/* ── Video Embed ── */
.pub-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.pub-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.pub-video-caption {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 10px;
}

/* ── Image Carousel ── */
.pub-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 16px;
}
.pub-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}
.pub-carousel-slide {
    min-width: 100%;
    position: relative;
    flex-shrink: 0;
}
.pub-carousel-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.pub-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
}
.pub-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.pub-carousel-arrow:hover { background: rgba(0,0,0,0.7); }
.pub-carousel-arrow:focus-visible { outline: 2px solid var(--primary, #2563eb); outline-offset: 2px; }
.pub-carousel-prev { left: 12px; }
.pub-carousel-next { right: 12px; }
.pub-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 4px;
}
.pub-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary, #2563eb);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.pub-carousel-dot.active { background: var(--primary, #2563eb); }
.pub-carousel-dot:hover { background: var(--primary, #2563eb); opacity: 0.7; }
.pub-carousel-dot:focus-visible { outline: 2px solid var(--primary, #2563eb); outline-offset: 2px; }
@media (max-width: 640px) {
    .pub-carousel-slide img { height: 260px; }
    .pub-carousel-arrow { width: 34px; height: 34px; font-size: 15px; }
}

/* ── Amenities Grid ── */
.pub-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 16px;
}
.pub-amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.6);
    transition: transform 0.15s, box-shadow 0.15s;
}
.pub-amenity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.pub-amenity-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}
.pub-amenity-icon svg {
    width: 100%;
    height: 100%;
}
.pub-amenity-item span {
    font-size: 13px;
    font-weight: 500;
}
@media (max-width: 640px) {
    .pub-amenities-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .pub-amenity-item { padding: 12px 6px; }
}

/* ── WhatsApp Floating Button ── */
.pub-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9980;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.pub-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
@media (max-width: 640px) {
    .pub-whatsapp-btn { bottom: 16px; right: 16px; width: 48px; height: 48px; }
    .pub-whatsapp-btn svg { width: 24px; height: 24px; }
}

/* ── Area Guide Public ── */
.pub-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.pub-area-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.pub-area-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.pub-area-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
}
.pub-area-info {
    padding: 16px;
}
.pub-area-info h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}
.pub-area-info p {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 8px;
}
.pub-area-address {
    font-size: 13px !important;
    color: #94a3b8 !important;
}
.pub-area-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
@media (max-width: 640px) {
    .pub-area-grid { grid-template-columns: 1fr; }
}

/* ── Reviews Public ── */
.pub-reviews-list {
    display: grid;
    gap: 16px;
}
.pub-review-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* ================================= */
/* 9. SCROLL REVEAL ANIMATIONS       */
/* ================================= */

/* Only hide elements once JS signals it has set up the observer.
   This prevents invisible gaps on first paint before JS runs. */
.js-reveal-ready .pub-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
/* Elements already in viewport on load — reveal instantly, no animation */
.js-reveal-ready .pub-reveal.revealed-instant {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}
.pub-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children for grid items */
.js-reveal-ready .pub-reveal-stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.js-reveal-ready .pub-reveal-stagger.revealed-instant > * {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}
.pub-reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}
.pub-reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.pub-reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.12s; }
.pub-reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.19s; }
.pub-reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.26s; }
.pub-reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.33s; }
.pub-reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.40s; }

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pub-reveal,
    .js-reveal-ready .pub-reveal,
    .pub-reveal-stagger > *,
    .js-reveal-ready .pub-reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .pub-carousel-track { transition: none; }
    /* Overlay: disable clip-path and stagger animations */
    .pub-overlay-menu { transition: opacity 0.01s; clip-path: none; }
    .pub-overlay-menu:not(.open) { opacity: 0; visibility: hidden; }
    .pub-overlay-menu.open { opacity: 1; visibility: visible; }
    .pub-overlay-nav a { transition-delay: 0s !important; transition: opacity 0.01s; }
    .pub-overlay-cta, .pub-overlay-logout { transition-delay: 0s !important; transition: opacity 0.01s; }
}

/* ================================= */
/* 10. SAMPLE ROOM NOTICE            */
/* ================================= */

.pub-sample-room-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 20px;
}
.pub-sample-room-notice a { color: #b45309; font-weight: 600; }
.pub-room-card--sample { opacity: 0.85; }
.pub-room-sample-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f59e0b;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.pub-btn-room--sample { pointer-events: none; }

/* ================================= */
/* 11. NAV ADMIN BUTTON              */
/* ================================= */

.pub-nav-admin-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    background: rgba(0,0,0,0.05);
    color: var(--text, #1a1a1a);
    border: 1px solid rgba(0,0,0,0.08);
    transition: background 0.2s;
    opacity: 0.7;
    white-space: nowrap;
}
.pub-nav-admin-btn:hover { opacity: 1; background: rgba(0,0,0,0.09); }
.pub-nav-admin-icon { display: inline-block; vertical-align: -2px; margin-right: 3px; }
.pub-nav-logout-form { display: inline; }
.pub-nav-admin-btn--out {
    background: none;
    border: 1px solid rgba(0,0,0,0.12);
    cursor: pointer;
    font-family: var(--font-body);
}
.nav-transparent .pub-nav-admin-btn,
.nav-transparent:not(.scrolled) .pub-nav-admin-btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

/* ================================= */
/* 12. FOOTER IMPROVEMENTS           */
/* ================================= */

.pub-footer-social-heading {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 10px;
}
.pub-footer-tagline { color: #64748b; margin-bottom: 6px; }
.pub-footer-copy { color: #94a3b8; font-size: 13px; }

/* ================================= */
/* 13. SECTION SUBTITLE              */
/* ================================= */

.pub-section-subtitle {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.65;
    max-width: 640px;
    margin-top: 0.5rem;
}
.pub-section-header { margin-bottom: 2rem; }

/* ================================= */
/* 14. SECTION BACKGROUNDS (dark/accent) */
/* ================================= */

/* Dark sections */
.pub-section-dark {
    background: #0f172a;
    color: #e2e8f0;
}
.pub-section-dark h1,
.pub-section-dark h2,
.pub-section-dark h3,
.pub-section-dark h4 { color: #f8fafc; }
.pub-section-dark p,
.pub-section-dark li { color: #cbd5e1; }
.pub-section-dark .pub-section-subtitle { color: #94a3b8; }
.pub-section-dark .pub-section-tag { color: #93c5fd; }

/* Accent sections */
.pub-section-accent {
    background: linear-gradient(135deg, var(--primary, #2563eb) 0%, #1e40af 100%);
    color: #fff;
}
.pub-section-accent h1,
.pub-section-accent h2,
.pub-section-accent h3 { color: #fff; }
.pub-section-accent p,
.pub-section-accent li { color: rgba(255,255,255,0.88); }
.pub-section-accent .pub-section-subtitle { color: rgba(255,255,255,0.75); }
.pub-section-accent .pub-section-tag { color: rgba(255,255,255,0.6); }

/* Custom/gradient light text */
.pub-section-light-text { color: #f1f5f9; }
.pub-section-light-text h1,
.pub-section-light-text h2,
.pub-section-light-text h3 { color: #fff; }
.pub-section-light-text p,
.pub-section-light-text li { color: #e2e8f0; }
.pub-section-light-text .pub-section-subtitle { color: rgba(255,255,255,0.75); }
.pub-section-light-text .pub-section-tag { color: rgba(255,255,255,0.6); }
.pub-section-light-text .pub-stat-number { color: #fff; }
.pub-section-light-text .pub-stat-label { color: #cbd5e1; }
.pub-section-light-text .pub-card { background: rgba(255,255,255,0.95); color: #1a1a1a; }
.pub-section-light-text .pub-card h3,
.pub-section-light-text .pub-card p { color: inherit; }
.pub-section-light-text a:not(.pub-btn) { color: #93c5fd; }

/* ================================= */
/* 14. HERO BADGE                    */
/* ================================= */

.pub-hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(255,255,255,0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ================================= */
/* 15. STATS SECTION                 */
/* ================================= */

.pub-stats { width: 100%; }
.pub-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    text-align: center;
}
.pub-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.pub-stat-number {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--primary, #2563eb);
}
.pub-section-dark .pub-stat-number,
.pub-section-accent .pub-stat-number { color: #fff; }
.pub-stat-label {
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.pub-section-dark .pub-stat-label { color: #94a3b8; }
.pub-section-accent .pub-stat-label { color: rgba(255,255,255,0.75); }

/* ================================= */
/* 16. FOOTER GRID                   */
/* ================================= */

.pub-footer-brand-link { text-decoration: none; }
.pub-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
}
/* Dynamic footer column counts (Growth+ footer customizer) */
.pub-footer-cols-2 { grid-template-columns: 1.5fr 1fr; }
.pub-footer-cols-3 { grid-template-columns: 1.5fr 1fr 1fr; }
.pub-footer-cols-4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 768px) {
    .pub-footer-inner,
    .pub-footer-cols-2,
    .pub-footer-cols-3,
    .pub-footer-cols-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0 2rem;
    }
}
.pub-footer-custom-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--footer-text, var(--text, #1a1a1a));
    opacity: 0.85;
}
.pub-footer-logo { max-height: 40px; width: auto; display: block; }
.pub-footer-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--footer-text, var(--text, #1a1a1a));
}
.pub-footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--footer-muted, #9ca3af);
    margin-bottom: 1rem;
}
.pub-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.pub-footer-link {
    font-size: 0.9rem;
    color: var(--footer-text, #374151);
    text-decoration: none;
    transition: color 0.2s;
}
.pub-footer-link:hover { color: var(--primary, #2563eb); }
.pub-footer-address {
    font-size: 0.875rem;
    color: var(--footer-muted, #6b7280);
    line-height: 1.6;
}
.pub-footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.pub-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--footer-social-bg, rgba(0,0,0,0.06));
    color: var(--footer-muted, #6b7280);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.pub-footer-social-link:hover {
    background: var(--primary, #2563eb);
    color: #fff;
}
.pub-footer-bottom {
    border-top: 1px solid var(--footer-border, #e5e7eb);
    padding: 1.2rem 0;
}
.pub-footer-bottom .pub-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.pub-footer-legal {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}
.pub-footer-legal-link {
    font-size: 0.8rem;
    color: var(--footer-muted, #9ca3af);
    text-decoration: none;
    transition: color 0.2s;
}
.pub-footer-legal-link:hover { color: var(--primary, #2563eb); }

/* ================================= */
/* 17. FEATURE CARDS SECTION         */
/* ================================= */

.pub-feature-cards { width: 100%; }
.pub-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}
.pub-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 2rem;
    transition:
        transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.pub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.pub-card-body { display: flex; flex-direction: column; flex: 1; }
.pub-card-icon { width: 40px; height: 40px; margin-bottom: 12px; color: var(--primary, #2563eb); }
.pub-card-icon svg { width: 100%; height: 100%; }
.pub-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    color: var(--text, #1a1a1a);
}
.pub-card-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.pub-card-btn { font-size: 14px; }
.pub-card-image {
    margin-top: 1.25rem;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.pub-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.pub-card:hover .pub-card-image img { transform: scale(1.04); }

/* Card colour presets */
.pub-card--cream    { background: #fef9ee; }
.pub-card--mint     { background: #edfaf4; }
.pub-card--sky      { background: #edf5ff; }
.pub-card--rose     { background: #fff0f3; }
.pub-card--lavender { background: #f3f0ff; }
.pub-card--slate    { background: #f1f5f9; }

/* Cards on dark sections — white cards for contrast */
.pub-section-dark .pub-card,
.pub-section-accent .pub-card { background: rgba(255,255,255,0.95); }

@media (max-width: 640px) {
    .pub-cards-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════ */
/* 17. SECTION LAYOUT OVERRIDES       */
/* ═══════════════════════════════════ */
/* User-chosen column counts via editor "Columns" dropdown.
   Applied as .pub-layout-{N}col on grid containers.
   Uses !important to override default auto-fit/auto-fill rules. */

.pub-layout-1col { grid-template-columns: 1fr !important; max-width: 640px; margin-inline: auto; }
.pub-layout-2col { grid-template-columns: repeat(2, 1fr) !important; }
.pub-layout-3col { grid-template-columns: repeat(3, 1fr) !important; }
.pub-layout-4col { grid-template-columns: repeat(4, 1fr) !important; }
.pub-layout-5col { grid-template-columns: repeat(5, 1fr) !important; }
.pub-layout-6col { grid-template-columns: repeat(6, 1fr) !important; }

/* Responsive: gracefully collapse to fewer columns */
@media (max-width: 1024px) {
    .pub-layout-4col,
    .pub-layout-5col,
    .pub-layout-6col { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    .pub-layout-3col,
    .pub-layout-4col,
    .pub-layout-5col,
    .pub-layout-6col { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .pub-layout-2col,
    .pub-layout-3col,
    .pub-layout-4col,
    .pub-layout-5col,
    .pub-layout-6col { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════ */
/* 18. SCROLL EFFECTS (Growth+)       */
/* ═══════════════════════════════════ */

/* 18a. Sticky Hero with Curved Content Overlay
   Hero stays fixed in place while content scrolls up over it
   with curved top corners — a card-sliding-over effect.

   Specificity note: selectors use .pub-section.pub-section-hero (0,3,0)
   to beat template-specific .tpl-X .pub-section rules (0,2,0) that
   would otherwise override position: sticky with position: relative. */

/* Hero stays put behind everything */
.scroll-sticky-hero .pub-section.pub-section-hero {
    position: sticky;
    top: 0;
    z-index: 0;
    height: 100vh;
    overflow: hidden;
}
.scroll-sticky-hero .pub-section.pub-section-hero .pub-container {
    height: 100%;
}
.scroll-sticky-hero .pub-section.pub-section-hero .pub-hero {
    height: 100%;
    min-height: 100vh;
}
/* All sections after the hero rise above it */
.scroll-sticky-hero .pub-section:not(.pub-section-hero) {
    position: relative;
    z-index: 1;
    background: var(--bg, #fff);
}
/* Dark/accent sections keep their backgrounds */
.scroll-sticky-hero .pub-section-dark {
    background: #1a1a2e;
}
.scroll-sticky-hero .pub-section-accent {
    background: var(--accent, #f59e0b);
}
/* First section after hero gets the curved overlay effect */
.scroll-sticky-hero .pub-section-hero + .pub-section {
    border-radius: var(--overlay-radius, 32px) var(--overlay-radius, 32px) 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
    margin-top: -40px;
}
/* Sub-page hero banner (thin) — do not make sticky */
.scroll-sticky-hero .pub-page-hero {
    position: relative;
    z-index: 1;
}

/* 18b. Navbar Transparent on Hero */
.pub-nav-hero-transparent {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pub-nav-hero-transparent .pub-logo,
.pub-nav-hero-transparent .pub-nav a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.pub-nav-hero-transparent .pub-nav a.active {
    color: #fff;
    opacity: 0.85;
}
.pub-nav-hero-transparent.pub-nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}
.pub-nav-hero-transparent.pub-nav-scrolled .pub-logo,
.pub-nav-hero-transparent.pub-nav-scrolled .pub-nav a {
    color: var(--text, #1a1a1a);
    text-shadow: none;
}

/* 18c. Scroll Progress Indicator */
.pub-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--primary, #2563eb);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* 18d. Hero Zoom on Scroll */
.hero-zoom-active .pub-hero img,
.hero-zoom-active .pub-hero video {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* 18e. Scroll Snap Pages (Pro) */
.scroll-snap-pages {
    scroll-snap-type: y proximity;
    overflow-y: auto;
    height: 100vh;
}
.scroll-snap-pages .pub-section {
    scroll-snap-align: start;
    min-height: 100vh;
}
/* Hero already full height */
.scroll-snap-pages .pub-section-hero .pub-hero {
    min-height: 100vh;
}
/* Footer and short sections shouldn't force full height */
.scroll-snap-pages .pub-footer,
.scroll-snap-pages .pub-cookie-banner {
    scroll-snap-align: none;
    min-height: 0;
}

/* 18f. Smooth Scroll — Lenis overrides */
html:has(.smooth-scroll-active) {
    scroll-behavior: auto;  /* Let Lenis handle it */
}

/* 18g. Reduced motion — disable all scroll effects */
@media (prefers-reduced-motion: reduce) {
    .scroll-sticky-hero .pub-section-hero {
        position: relative;
        height: auto;
    }
    .scroll-sticky-hero .pub-section-hero + .pub-section {
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
    }
    .pub-scroll-progress { display: none; }
    .hero-zoom-active .pub-hero img,
    .hero-zoom-active .pub-hero video { will-change: auto; }
    .scroll-snap-pages { scroll-snap-type: none; height: auto; }
    .scroll-snap-pages .pub-section { min-height: 0; }
}

/* ═══════════════════════════════════ */
/* 19. ANNOUNCEMENT BAR (Growth+)     */
/* ═══════════════════════════════════ */

.pub-announcement-bar {
    position: sticky;
    top: 0;
    z-index: 101;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
}
.pub-announcement-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 40px 8px 16px;
    max-width: 1100px;
    margin: 0 auto;
}
.pub-announcement-link {
    text-decoration: none;
    transition: opacity 0.2s;
}
.pub-announcement-link:hover { opacity: 0.85; text-decoration: underline; }
.pub-announcement-text { flex: 1; }
.pub-announcement-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    padding: 4px 8px;
    line-height: 1;
    transition: opacity 0.2s;
}
.pub-announcement-close:hover { opacity: 1; }
@media (max-width: 480px) {
    .pub-announcement-inner { font-size: 12px; padding: 6px 32px 6px 12px; }
}

/* ================================= */
/* 20. MASONRY GALLERY (Growth+)     */
/* ================================= */
.pub-gallery-masonry {
    display: block;
    columns: var(--columns, 3) 280px;
    column-gap: 1rem;
}
.pub-gallery-masonry .pub-gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
}
.pub-gallery-masonry .pub-gallery-item img {
    height: auto;
}
@media (max-width: 600px) {
    .pub-gallery-masonry { columns: 2 180px; }
}

/* ── Gallery Album Filter Tabs ── */
.pub-gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
    justify-content: center;
}
.pub-gallery-filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--primary, #2563eb);
    border-radius: 20px;
    background: transparent;
    color: var(--primary, #2563eb);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.pub-gallery-filter-btn.active,
.pub-gallery-filter-btn:hover {
    background: var(--primary, #2563eb);
    color: #fff;
}
.pub-gallery-item[data-album] {
    transition: opacity 0.3s, transform 0.3s;
}
.pub-gallery-item.album-hidden {
    display: none;
}
