/*
 * Guesthouse storefront design. Loaded on every store as a static asset, but every
 * class here is only ever emitted into the DOM by blocks that self-check the
 * SeoMatrix target store (see StoreScope) — so on any other store (Paycheap
 * included) these rules simply never match anything and have zero visual effect.
 */

:root {
    --gh-ink: #1c2321;
    --gh-ink-soft: #2a332f;
    --gh-line: #3a453f;
    --gh-ground: #faf9f6;
    --gh-surface: #ffffff;
    --gh-text: #24302a;
    --gh-muted: #6b7a72;
    --gh-accent: #2f6b4f;
    --gh-accent-dark: #234f3a;
    --gh-accent-soft: #e8f0ea;
    --gh-display: 'Fraunces', Georgia, serif;
    --gh-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

/*
 * Full-bleed breakout: Luma/Blank caps .header.content, .footer.content and similar
 * wrappers at max-width:1280px with side padding (see styles-l.css). These three
 * sections need to reach the true viewport edges regardless of that cap, so each
 * stretches to 100vw and re-centers with a negative margin — the standard technique
 * for breaking a full-width band out of a centered, padded parent.
 *
 * width must be 100vw here, not 100%: these elements sit inside Luma/Blank's
 * max-width:1280px wrappers (.header.content, .page-main, .footer.content), so on
 * any browser window wider than 1280px, width:100% would only stretch to that
 * capped parent width while the margin math below still shifts using true
 * viewport units — pinning the whole block to the left with dead space on the
 * right. 100vw is the only unit that tracks the real window width regardless of
 * the parent's cap.
 *
 * The known tradeoff: 100vw includes the vertical scrollbar's own width, which the
 * visible content area does not, so it can overflow past the true right edge by
 * the scrollbar's width and produce a page-wide horizontal scrollbar. That must be
 * absorbed on a stable ancestor, NOT on these elements themselves — overflow-x
 * here would clip their own negative margin-left and produce dark gutters down
 * both sides instead of a true full-bleed band (this has happened twice; don't
 * "fix" the scrollbar by adding overflow-x back onto .gh-header/.gh-hero/.gh-footer).
 * .page-wrapper (Blank/Luma's whole-page flex wrapper, never negative-margined)
 * absorbs it safely below — inert on every other store since nothing there ever
 * pushes past its edge.
 */
.gh-header,
.gh-hero,
.gh-footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.page-wrapper {
    overflow-x: hidden;
}

/* ---------- Header ---------- */
.gh-header {
    background: var(--gh-ink) !important;
    padding: 14px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
    text-align: left !important;
}

.gh-wordmark {
    font-family: var(--gh-display);
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-decoration: none;
}

.gh-wordmark:hover {
    color: var(--gh-accent-soft);
}

.gh-logo-link {
    display: inline-flex;
}

.gh-logo {
    display: block;
    height: 48px;
    width: auto;
}

.gh-header-contact {
    display: flex;
    align-items: center;
    gap: 28px;
    font-family: var(--gh-body);
    font-size: 14px;
}

.gh-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d7ddd9;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
}

.gh-topbar-link:hover {
    color: #ffffff;
}

.gh-topbar-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ---------- Hero ---------- */
.gh-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 560px;
    padding: 72px 24px;
    background: linear-gradient(180deg, rgba(28, 35, 33, 0.55), rgba(28, 35, 33, 0.68)), var(--gh-hero-image, linear-gradient(160deg, #24332c, #16201b));
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.gh-hero-eyebrow {
    font-family: var(--gh-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #cfe3d5;
    margin: 0 0 14px;
}

.gh-hero-title {
    font-family: var(--gh-display);
    font-weight: 600;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    margin: 0 0 20px;
    text-wrap: balance;
}

.gh-hero-rule {
    width: 64px;
    height: 2px;
    background: var(--gh-accent);
    margin: 0 0 20px;
    border: none;
}

.gh-hero-subtitle {
    font-family: var(--gh-body);
    font-size: clamp(15px, 2vw, 18px);
    max-width: 620px;
    line-height: 1.65;
    color: #e7ede9;
    margin: 0;
}

/* ---------- Homepage content ---------- */
.gh-intro {
    max-width: 760px;
    margin: 48px auto 8px;
    padding: 0 24px;
    text-align: center;
    font-family: var(--gh-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--gh-muted);
}

.gh-section-title {
    font-family: var(--gh-display);
    font-weight: 600;
    color: var(--gh-text);
}

/* Restyle the existing store-locator grid (built by SeoMatrix) so it reads as part
   of this design rather than the plain default styling it ships with. Class names
   (pc-store-locator-*) belong to CategoryManager's grid markup, reused here. */
.pc-store-locator-cities-title {
    font-family: var(--gh-display) !important;
    font-weight: 600 !important;
    color: var(--gh-text) !important;
}

.pc-store-locator-search-input:focus {
    border-color: var(--gh-accent) !important;
    box-shadow: 0 0 0 4px var(--gh-accent-soft) !important;
}

.pc-store-locator-city-card:hover {
    border-color: var(--gh-accent) !important;
    box-shadow: 0 14px 32px rgba(47, 107, 79, 0.12) !important;
}

.pc-store-locator-city-name {
    font-family: var(--gh-display) !important;
    color: var(--gh-accent-dark) !important;
}

/* ---------- Footer ---------- */
.gh-footer {
    background: var(--gh-ink);
    color: #cbd3ce;
    font-family: var(--gh-body);
    margin-top: 56px;
}

.gh-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 24px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.gh-footer-col {
    min-width: 180px;
}

.gh-footer-heading {
    font-family: var(--gh-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gh-accent);
    display: inline-block;
}

.gh-footer-social {
    display: flex;
    gap: 10px;
}

.gh-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gh-line);
    color: #cbd3ce;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.gh-social-icon:hover {
    border-color: var(--gh-accent);
    color: #ffffff;
}

.gh-social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.gh-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gh-footer-links li {
    margin-bottom: 10px;
}

.gh-footer-links a,
.gh-footer-text {
    color: #cbd3ce;
    text-decoration: none;
}

.gh-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.gh-footer-bottom {
    border-top: 1px solid var(--gh-line);
    padding: 18px 24px;
    text-align: center;
    font-size: 13px;
    color: #8a968f;
}

/* Other Branches block (embedded in landing pages) */
.pc-other-branches {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.pc-other-branches-title {
    font-family: var(--gh-display);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--gh-text);
}

.pc-other-branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.pc-other-branch-card {
    display: block;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: var(--gh-accent-soft);
    text-decoration: none !important;
    color: var(--gh-text);
    transition: all 0.2s ease;
}

.pc-other-branch-card:hover {
    transform: translateY(-2px);
    border-color: var(--gh-accent);
    box-shadow: 0 8px 20px rgba(47, 107, 79, 0.12);
}

.pc-other-branch-img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.pc-other-branch-body {
    padding: 16px 18px;
}

.pc-other-branch-name {
    font-family: var(--gh-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.pc-other-branch-meta {
    font-size: 13px;
    color: var(--gh-muted);
}

/* Book Now button (matches the accent used throughout this module) */
.pc-book-now-wrap--stacked {
    flex-direction: column;
    gap: 12px;
}

.pc-book-site-btn {
    box-sizing: border-box;
    max-width: 340px;
    width: 100%;
    padding: 14px 28px;
    border-radius: 10px;
    background: var(--gh-surface);
    color: var(--gh-accent-dark) !important;
    text-decoration: none !important;
    font-family: var(--gh-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 2px solid var(--gh-accent);
    transition: 0.25s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pc-book-site-btn:hover {
    background: var(--gh-accent);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.pc-book-site-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

@media (max-width: 768px) {
    .gh-hero {
        min-height: 300px;
        padding: 44px 20px;
    }

    .gh-header {
        padding: 12px 16px !important;
        gap: 14px !important;
    }

    .gh-header-contact {
        gap: 16px;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .gh-footer-inner {
        gap: 28px;
        padding: 36px 20px 24px;
    }

    .gh-footer-col {
        min-width: 140px;
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .gh-header {
        justify-content: center !important;
        text-align: center !important;
    }

    .gh-header-contact {
        justify-content: center;
        width: 100%;
    }

    .gh-topbar-link {
        font-size: 13px;
    }

    .gh-hero {
        min-height: 260px;
        padding: 36px 16px;
    }

    .gh-hero-subtitle {
        font-size: 14px;
    }

    .pc-other-branches-grid {
        grid-template-columns: 1fr;
    }
}
