.guest-home-layout {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.guest-hero-media-block,
.guest-hero-content-block {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.75rem;
}

.guest-hero-media {
    position: relative;
    height: clamp(220px, 38vh, 340px);
    min-height: 220px;
    border-radius: 12px;
    overflow: hidden;
}

.guest-hero-banner {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    display: block;
    position: relative;
    z-index: 0;
    pointer-events: none;
}

.guest-hero-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.guest-hero-eyebrow {
    margin: 0 0 0.5rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
}

.guest-hero-title {
    font-size: clamp(2rem, 4.5vw, 4.4rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.05;
    text-transform: uppercase;
    color: #111827;
}

.guest-hero-text {
    margin-top: 1rem;
    max-width: 700px;
    color: #1f2937;
}

.guest-hero-text p {
    margin-bottom: 0.65rem;
}

.guest-hero-cta {
    display: inline-flex;
    margin-top: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.18);
}

.guest-hero-cta:hover {
    color: #111827;
    background: #f8fafc;
}

.guest-hero-cta-on-image {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 5;
    pointer-events: auto;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.guest-hero-cards {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.guest-mini-card {
    width: min(220px, 100%);
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 0.65rem;
}

.guest-mini-card strong {
    display: block;
    margin-bottom: 0.45rem;
}

.guest-mini-card img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

@media (max-width: 768px) {
    .guest-hero-media-block,
    .guest-hero-content-block {
        padding: 0.6rem;
    }

    .guest-hero-media {
        height: clamp(180px, 30vh, 250px);
        min-height: 180px;
    }

    .guest-hero-title {
        font-size: clamp(1.6rem, 8vw, 2.5rem);
    }
}

/*
 * Frosted glass hero cards when dashboard has a background image.
 * Uses section.guest-home-hero-glass (set in *layouts/home.blade.php) so it works even if main.main-dashboard-bg is missing.
 * !important beats base .guest-hero-* { background: #fff } and theme JS inline clears.
 */
section.guest-home-hero-glass,
main.main-dashboard-bg .guest-home-layout {
    background: transparent !important;
}

section.guest-home-hero-glass .guest-hero-media-block,
section.guest-home-hero-glass .guest-hero-content-block,
main.main-dashboard-bg .guest-hero-media-block,
main.main-dashboard-bg .guest-hero-content-block {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px) saturate(1.06) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.06) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

section.guest-home-hero-glass .guest-hero-content,
main.main-dashboard-bg .guest-hero-content {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

section.guest-home-hero-glass .guest-hero-media,
main.main-dashboard-bg .guest-hero-media {
    background: transparent !important;
}

section.guest-home-hero-glass .guest-hero-banner,
main.main-dashboard-bg .guest-hero-banner {
    background: transparent !important;
}

section.guest-home-hero-glass .guest-mini-card,
main.main-dashboard-bg .guest-mini-card {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

section.guest-home-hero-glass .guest-hero-cta,
main.main-dashboard-bg .guest-hero-cta {
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

/* Title/body contrast on bright frosted glass (light + gray themes); dark theme uses dashboard.css */
section.guest-home-hero-glass .guest-hero-title,
main.main-dashboard-bg .guest-hero-title {
    color: #0f172a;
    text-shadow: none;
}

section.guest-home-hero-glass .guest-hero-text,
main.main-dashboard-bg .guest-hero-text {
    color: #0f172a;
    text-shadow: none;
}

/* CMS home copy: spacing and readable type on glass hero */
section.guest-home-layout.guest-home-hero-glass .guest-hero-content {
    padding: 1.25rem 1.35rem 1.45rem;
}

section.guest-home-layout.guest-home-hero-glass .guest-hero-text {
    font-size: 1.0625rem;
    line-height: 1.65;
    max-width: 48rem;
}

section.guest-home-layout.guest-home-hero-glass .guest-hero-text p {
    margin-bottom: 0.85rem;
}

section.guest-home-layout.guest-home-hero-glass .guest-hero-text p:last-child {
    margin-bottom: 0;
}

section.guest-home-layout.guest-home-hero-glass .guest-hero-text ul,
section.guest-home-layout.guest-home-hero-glass .guest-hero-text ol {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

section.guest-home-layout.guest-home-hero-glass .guest-hero-text li {
    margin-bottom: 0.35rem;
}

section.guest-home-layout.guest-home-hero-glass .guest-hero-text strong,
section.guest-home-layout.guest-home-hero-glass .guest-hero-text b {
    font-weight: 600;
    color: #020617;
}

/* Light + gray theme: beat inline CMS colors on frosted glass */
body.guest-dashboard:not(.theme-dark) main section.guest-home-layout.guest-home-hero-glass .guest-hero-text p,
body.guest-dashboard:not(.theme-dark) main section.guest-home-layout.guest-home-hero-glass .guest-hero-text li,
body.guest-dashboard:not(.theme-dark) main section.guest-home-layout.guest-home-hero-glass .guest-hero-text span,
body.guest-dashboard:not(.theme-dark) main section.guest-home-layout.guest-home-hero-glass .guest-hero-text td {
    color: #0f172a !important;
}

body.guest-dashboard:not(.theme-dark) main section.guest-home-layout.guest-home-hero-glass .guest-hero-text a {
    color: #1d4ed8 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/*
 * Guest homepage: this file is included from layouts/home after <main> content, so it loads after head CSS.
 * Reinforce horizontal primary nav + spacing (Bootstrap .navbar-nav column rule + toolbar sibling layout).
 */
body.guest-dashboard nav.owner-dashboard-navbar .guest-dashboard-navbar-cluster {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.35rem 0.65rem !important;
}

body.guest-dashboard nav.owner-dashboard-navbar .navbar-nav.owner-dashboard-navbar-inner {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.25rem 0.5rem !important;
}

body.guest-dashboard nav.owner-dashboard-navbar .guest-dashboard-navbar-tools {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.35rem 0.65rem !important;
}
