/* ===== MOSAIC GRID FINAL 2 WORKING VERSION  DO NOT DELETE ===== */

.tile-grid-wrap {
    --wrap: 32vh;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6px;
    background: #d7d2c8;
    box-sizing: border-box;
}

.tile-grid {
    --gap: 4px;
    --tile: min( calc((100% - (14 * var(--gap))) / 15), calc((var(--wrap)- (5 * var(--gap))) / 6) );
    --tileH: var(--tile);
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 6px;
    width: 100%;
    height: 100%;
    min-height: 260px;
    overflow: hidden;
}



.tile {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    background: #d9d6d1;
    border: 2px solid #6c6c6c;
    border-radius: 4px;
}

body { 
    font-family: Arial; 
    margin: 0; background: linear-gradient(to bottom, #cfe5fb 0%, #e8f4ff 100%);
}

.homepage-shell-clean {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px;
}

.boxed-panel {
    background: #ffffff;
    border: 1px solid #d9e3ef;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
    padding: 14px;
    margin-bottom: 18px;
}
.home-hero-bar {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 10px;
}

.home-hero-left {
    border: 1px solid #d5e3f2;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    height: 132px;
    min-height: 132px;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(228,241,255,0.96) 0%, rgba(214,232,249,0.96) 100%);

    .skyline-hero {
        position: relative;
    }

        .skyline-hero::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image: linear-gradient(to bottom, rgba(255,255,255,0.10), rgba(255,255,255,0.02)), url('/images/skyline-header.png');
            background-repeat: no-repeat;
            background-position: center 65%;
            background-size: 100% auto;
            opacity: 0.52;
            pointer-events: none;
        }



    .home-logo-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        position: relative;
        z-index: 1;
        min-height: 132px;
        padding: 8px 24px 8px 28px;
    }

    .home-ball-logo {
        width: 58px;
        height: 58px;
        object-fit: contain;
    }

    .home-logo-small {
        width: 355px;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .home-hero-text {
        position: relative;
        z-index: 1;
        margin-top: 22px;
        padding-left: 235px;
    }

    .hero-presents {
        font-size: 20px;
        color: #a8b0b8;
        margin-bottom: 2px;
        opacity: 0.6;
    }

    .hero-tagline-large {
        font-size: 24px;
        font-weight: 700;
        color: #2f2f2f;
        letter-spacing: 0.3px;
        margin-left: 46px;
        margin-top: -6px;
    }
    /* ===== WEATHER CARD ===== */

    .weather-box {
        width: 260px;
        min-height: 170px;
        border-radius: 16px;
        overflow: hidden;
        border: 2px solid #6aa9e9;
        box-shadow: 0 6px 14px rgba(0,0,0,0.15);
        background: linear-gradient(to bottom, rgba(63,144,228,0.95) 0%, rgba(115,183,245,0.92) 36%, rgba(220,241,255,0.88) 68%, rgba(198,236,184,0.92) 84%, rgba(120,193,74,0.95) 100%);
        position: relative;
        display: block;
        text-decoration: none;
        color: inherit;
        transition: all 0.2s ease;
    }

        .weather-box:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.18);
        }

        .weather-box::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 22% 16%, rgba(255,235,120,0.95) 0%, rgba(255,210,70,0.75) 8%, rgba(255,210,70,0) 14%), linear-gradient(to right, rgba(255,255,255,0.22), rgba(255,255,255,0));
            pointer-events: none;
        }

    .weather-title {
        position: relative;
        z-index: 1;
        color: white;
        font-size: 16px;
        font-weight: 700;
        padding: 14px 16px 12px 16px;
        background: linear-gradient(to bottom, #2f78d6, #4c98ea);
        border-bottom: 1px solid rgba(255,255,255,0.25);
    }

    .weather-icon {
        margin-right: 8px;
        font-size: 22px;
        vertical-align: middle;
    }

    .weather-current {
        position: relative;
        z-index: 1;
        padding: 18px;
        color: #2f5f9c;
    }

    .weather-temp {
        font-size: 34px;
        font-weight: 700;
        line-height: 1;
    }

    .weather-condition {
        font-size: 20px;
        font-weight: 600;
        margin-top: 6px;
    }

    .weather-details {
        font-size: 14px;
        margin-top: 8px;
        color: #4f6d8a;
    }

    .weather-footer {
        position: absolute;
        right: 14px;
        bottom: 10px;
        z-index: 1;
        font-size: 12px;
        color: #4f6d8a;
        font-style: italic;
    }

    .tile-status-row {
        text-align: center;
        margin: 18px 0 10px;
    }

    .tile-status-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .tile-community-title {
        font-size: 30px;
        font-weight: 700;
        color: #3f6b42;
    }

    .tile-counter-note {
        color: #4f6476;
        font-size: 15px;
    }

    .tile-counter {
        font-size: 24px;
        font-weight: 700;
        color: #2f5f9c;
    }

    .tile-status-row::after {
        content: "";
        display: block;
        width: 60%;
        height: 1px;
        margin: 10px auto 6px;
        background: rgba(0,0,0,0.08);
    }

    .home-tile-grid {
        display: grid;
        grid-template-columns: repeat(20, 1fr);
        gap: 6px;
        background: #cfd8e3;
        /* grout color*/
        padding: 6px;
        border-radius: 8px;
    }

    .home-tile {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 54px;
        max-height: 54px;
        border: 1px solid #bfc9d8;
        border-radius: 6px;
        text-decoration: none;
        background: #ffffff;
        color: #5f77c2;
        font-size: 10px;
        text-align: center;
        padding: 3px;
        overflow: hidden;
        line-height: 1.05;
    }

    .available-tile {
        background: #f4f1e6;
    }

    .reserved-tile {
        background: #ece8db;
        color: #4a5ea8;
    }

    .tile-label-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tile-label-main {
        font-size: 10px;
        font-weight: 600;
    }

    .tile-label-sub {
        font-size: 8px;
        opacity: .8;
    }

    .tile-help-text {
        text-align: center;
        margin: 12px 0 0;
        color: #666;
        font-size: 13px;
    }

    .promo-strip {
        text-align: center;
        margin: 10px 0 6px;
        font-size: 20px;
        font-weight: 600;
    }

    .promo-red {
        color: #c43d3d;
        margin-right: 6px;
    }

    .promo-blue {
        color: #2f5f9c;
    }

    .promo-strip {
        opacity: 0.9
    }

    .home-link-columns {
        display: grid;
        grid-template-columns: 1.1fr 1.5fr 0.9fr;
        gap: 18px;
        margin-bottom: 18px;
    }

    .link-panel h3 {
        margin-top: 0;
        font-size: 22px;
        color: #444;
    }

    .link-panel ul {
        margin: 0;
        padding-left: 18px;
    }

    .link-panel li {
        margin-bottom: 8px;
    }

    .events-mini-box {
        margin-top: 14px;
        background: #dff4fb;
        border: 1px solid #a7d0de;
        border-radius: 6px;
        padding: 12px;
        font-size: 14px;
        max-height: 145px;
        overflow-y: auto;
    }

    .subhead {
        margin-top: 18px;
    }

    .home-bottom-columns {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

        .home-bottom-columns h4 {
            margin-top: 0;
            color: #444;
            font-size: 20px;
        }

        .home-bottom-columns ul {
            margin: 0;
            padding-left: 18px;
        }

        .home-bottom-columns li {
            margin-bottom: 8px;
        }



    .affiliates-row {
        text-align: center;
        margin: 10px 0 18px;
    }

    .affiliates-inline-link {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        flex-wrap: wrap;
        justify-content: center;
    }

    .affiliates-ball {
        width: 34px;
        height: 34px;
        object-fit: contain;
    }

    .affiliates-brand {
        color: #1d5fb8;
        font-weight: 700;
        font-size: 20px;
    }

    .affiliates-title {
        color: #2f6b47;
        font-weight: 700;
        font-size: 22px;
        margin-left: 4px;
        text-decoration: underline;
    }

    .affiliates-subtitle {
        color: #4d5e58;
        font-size: 17px;
        font-weight: 600;
    }

    @media (max-width: 1100px) {
        .home-hero-bar,
        .home-link-columns,
        .home-bottom-columns {
            grid-template-columns: 1fr;
        }

        .home-tile-grid {
            grid-template-columns: repeat(10, 1fr);
        }
    }

    @media (max-width: 700px) {
        .home-tile-grid {
            grid-template-columns: repeat(5, 1fr);
        }

        .home-logo-small {
            width: 160px;
        }

        .hero-community-title {
            font-size: 24px;
        }
    }

    .media-panel h3 a {
        color: #4f79d8;
        text-decoration: underline;
    }

        .media-panel h3 a:hover {
            text-decoration: underline;
        }


    .promo-ball-logo {
        width: 20px;
        height: 20px;
        object-fit: contain;
        margin-left: 8px;
        vertical-align: middle;
    }

    .available-tile .tile-label-main {
        font-size: 18px;
        line-height: 1;
        color: #6d84cf;
        font-weight: 700;
    }

    .reserved-tile .tile-label-main {
        font-size: 10px;
        line-height: 1.05;
    }
    /* GLOBAL SPACING TIGHTEN */
    section {
        margin-bottom: 16px;
    }

    .home-hero-bar {
        margin-bottom: 8px;
    }

    .tile-status-row {
        margin: 12px 0 6px;
    }


    .boxed-panel {
        margin-top: 6px;
    }
    /* ALIGN CONTENT WIDTH */
    .home-hero-bar,
    .tile-status-row,
    .boxed-panel,
    .home-link-columns {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    .tile-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
        background: white;
        border-radius: 4px;
    }

    .affiliate-icon-strip {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 8px;
        flex-wrap: wrap;
    }

    .affiliate-icon-box {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border: 1px solid #d7dee8;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        text-decoration: none;
    }

        .affiliate-icon-box img {
            max-width: 26px;
            max-height: 26px;
            display: block;
        }

    .legacy-page-shell {
        background: #fff;
        border: 1px solid #d8e2eb;
        border-radius: 8px;
        box-shadow: 0 1px 6px rgba(0,0,0,.05);
        padding: 20px 24px;
    }

    .legacy-page-title {
        margin: 0 0 10px 0;
        font-size: 30px;
        color: #1f4f88;
    }

    .legacy-page-intro {
        margin: 0 0 14px 0;
        color: #5f7082;
        font-size: 15px;
        line-height: 1.45;
    }

    .legacy-top-links {
        margin-bottom: 18px;
        font-size: 15px;
        line-height: 1.6;
    }

        .legacy-top-links a {
            color: #2b65b1;
            text-decoration: none;
            font-weight: 600;
        }

            .legacy-top-links a:hover {
                text-decoration: underline;
            }

        .legacy-top-links span {
            color: #8a97a5;
            margin: 0 6px;
        }

    .legacy-category-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .legacy-category-column {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

        .legacy-category-column a {
            color: #2b65b1;
            text-decoration: none;
            font-size: 16px;
            line-height: 1.35;
        }

            .legacy-category-column a:hover {
                text-decoration: underline;
            }

    .legacy-page-note {
        margin-top: 20px;
        padding-top: 14px;
        border-top: 1px solid #e4eaf0;
        color: #6a7988;
        font-size: 14px;
    }

    @media (max-width: 800px) {
        .legacy-category-columns {
            grid-template-columns: 1fr;
        }
    }
    /* ===== INTERIOR PAGE LAYOUT ===== */

    .lp-interior-body {
        margin: 0;
        background: #eef5f8;
        font-family: Arial, Helvetica, sans-serif;
        color: #2d2d2d;
    }

    .lp-interior-shell {
        max-width: 1400px;
        margin: 0 auto;
        background: transparent;
    }

    .lp-interior-header {
        margin: 14px 14px 0 14px;
        border: 1px solid #d8e4ea;
        border-radius: 10px 10px 0 0;
        overflow: hidden;
        background: linear-gradient(to bottom, rgba(255,255,255,.20), rgba(255,255,255,.06)), url('/images/skyline-header.png') center bottom / cover no-repeat, linear-gradient(to bottom, #edf7fc 0%, #f8fcff 65%, #ffffff 100%);
    }

    .lp-interior-header-top {
        text-align: center;
        padding: 18px 20px 12px 20px;
    }

    .lp-interior-logo {
        max-width: 420px;
        width: 100%;
        height: auto;
    }

    .lp-community-strip {
        text-align: center;
        background: linear-gradient(to bottom, #cf232a 0%, #b7171d 100%);
        color: #fff;
        font-size: 30px;
        font-weight: 700;
        padding: 10px 12px;
        border-top: 1px solid rgba(255,255,255,.5);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
    }

    .lp-interior-main {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 16px;
        margin: 0 14px 0 14px;
        align-items: start;
    }

    .lp-sidebar {
        background: #f4f4f4;
        border: 1px solid #d5d5d5;
        border-top: none;
        min-height: 100%;
        padding: 14px 14px 18px 14px;
    }

    .lp-sidebar-nav a {
        display: block;
        color: #1f1f1f;
        text-decoration: underline;
        font-size: 16px;
        line-height: 1.35;
        margin: 4px 0;
    }

        .lp-sidebar-nav a:hover {
            color: #0c63b8;
        }

    .lp-sidebar-home-link {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .lp-sidebar-section {
        margin-bottom: 28px;
    }

    .lp-sidebar-heading {
        font-size: 18px;
        font-weight: 700;
        color: #111;
        margin-bottom: 8px;
    }

    .lp-content-area {
        background: #fff;
        border: 1px solid #d8e4ea;
        border-top: none;
        min-height: 700px;
        padding: 20px 24px 28px 24px;
    }

    .lp-interior-footer {
        margin: 0 14px 20px 14px;
        background: linear-gradient(to bottom, #f9fcfd, #edf4f7);
        border: 1px solid #d8e4ea;
        border-top: none;
        border-radius: 0 0 10px 10px;
        padding: 14px 20px 18px 20px;
        text-align: center;
    }

    .lp-interior-footer-links {
        font-size: 15px;
        margin-bottom: 8px;
    }

        .lp-interior-footer-links a {
            color: #0c63b8;
            text-decoration: none;
            font-weight: 600;
            margin: 0 6px;
        }

            .lp-interior-footer-links a:hover {
                text-decoration: underline;
            }

        .lp-interior-footer-links span {
            color: #8a99a3;
        }

    .lp-interior-footer-copy {
        font-size: 13px;
        color: #5d6a73;
    }
    /* ===== PAGE CONTENT ===== */

    .page-container {
        max-width: 1100px;
    }

    .page-title {
        font-size: 28px;
        font-weight: 700;
        color: #334;
        margin: 0 0 8px 0;
    }

    .page-subtitle {
        color: #5f6d77;
        margin-bottom: 18px;
        font-size: 15px;
    }

    .quick-links {
        margin-bottom: 18px;
        line-height: 1.8;
    }

        .quick-links a {
            color: #0c63b8;
            text-decoration: underline;
            margin-right: 10px;
            font-size: 15px;
        }

    .legacy-columns {
        display: grid;
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        gap: 18px;
        margin-top: 16px;
    }

    .legacy-column {
        background: #fbfbfb;
        border: 1px solid #dde5e9;
        border-radius: 8px;
        padding: 14px 16px;
    }

        .legacy-column h3 {
            margin: 0 0 12px 0;
            font-size: 21px;
            color: #2f3f4d;
        }

        .legacy-column a {
            display: block;
            color: #0c63b8;
            text-decoration: underline;
            font-size: 16px;
            line-height: 1.5;
            margin-bottom: 6px;
        }

            .legacy-column a:hover {
                color: #074c90;
            }

    .note {
        margin-top: 18px;
        font-size: 13px;
        color: #6a777f;
    }

    @media (max-width: 1000px) {
        .lp-interior-main {
            grid-template-columns: 1fr;
        }

        .lp-sidebar {
            min-height: auto;
        }

        .legacy-columns {
            grid-template-columns: 1fr;
        }

        .lp-community-strip {
            font-size: 24px;
        }
    }
    /* ===== INTERIOR PAGE LAYOUT ===== */

    .lp-interior-body {
        margin: 0;
        background: #eef5f8;
        font-family: Arial, Helvetica, sans-serif;
        color: #2d2d2d;
    }

    .lp-interior-shell {
        max-width: 1400px;
        margin: 0 auto;
        background: transparent;
    }

    .lp-interior-header {
        margin: 14px 14px 0 14px;
        border: 1px solid #d8e4ea;
        border-radius: 10px 10px 0 0;
        overflow: hidden;
        background: linear-gradient(to bottom, rgba(255,255,255,.20), rgba(255,255,255,.06)), url('/images/skyline-header.png') center bottom / cover no-repeat, linear-gradient(to bottom, #edf7fc 0%, #f8fcff 65%, #ffffff 100%);
    }

    .lp-interior-header-top {
        text-align: center;
        padding: 18px 20px 12px 20px;
    }

    .lp-interior-logo {
        max-width: 360px;
        width: 360;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .lp-community-strip {
        text-align: center;
        background: linear-gradient(to bottom, #cf232a 0%, #b7171d 100%);
        color: #fff;
        font-size: 30px;
        font-weight: 700;
        padding: 10px 12px;
        border-top: 1px solid rgba(255,255,255,.5);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
    }

    .lp-interior-main {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 16px;
        margin: 0 14px 0 14px;
        align-items: start;
    }

    .lp-sidebar {
        background: #f4f4f4;
        border: 1px solid #d5d5d5;
        border-top: none;
        min-height: 100%;
        padding: 14px 14px 18px 14px;
    }

    .lp-sidebar-nav a {
        display: block;
        color: #1f1f1f;
        text-decoration: underline;
        font-size: 16px;
        line-height: 1.35;
        margin: 4px 0;
    }

        .lp-sidebar-nav a:hover {
            color: #0c63b8;
        }

    .lp-sidebar-home-link {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .lp-sidebar-section {
        margin-bottom: 28px;
    }

    .lp-sidebar-heading {
        font-size: 18px;
        font-weight: 700;
        color: #111;
        margin-bottom: 8px;
    }

    .lp-content-area {
        background: #fff;
        border: 1px solid #d8e4ea;
        border-top: none;
        min-height: 700px;
        padding: 20px 24px 28px 24px;
    }

    .lp-interior-footer {
        margin: 0 14px 20px 14px;
        background: linear-gradient(to bottom, #f9fcfd, #edf4f7);
        border: 1px solid #d8e4ea;
        border-top: none;
        border-radius: 0 0 10px 10px;
        padding: 14px 20px 18px 20px;
        text-align: center;
    }

    .lp-interior-footer-links {
        font-size: 15px;
        margin-bottom: 8px;
    }

        .lp-interior-footer-links a {
            color: #0c63b8;
            text-decoration: none;
            font-weight: 600;
            margin: 0 6px;
        }

            .lp-interior-footer-links a:hover {
                text-decoration: underline;
            }

        .lp-interior-footer-links span {
            color: #8a99a3;
        }

    .lp-interior-footer-copy {
        font-size: 13px;
        color: #5d6a73;
    }
    /* ===== PAGE CONTENT ===== */

    .page-container {
        max-width: 1100px;
    }

    .page-title {
        font-size: 28px;
        font-weight: 700;
        color: #334;
        margin: 0 0 8px 0;
    }

    .page-subtitle {
        color: #5f6d77;
        margin-bottom: 18px;
        font-size: 15px;
    }

    .quick-links {
        margin-bottom: 18px;
        line-height: 1.8;
    }

        .quick-links a {
            color: #0c63b8;
            text-decoration: underline;
            margin-right: 10px;
            font-size: 15px;
        }

    .legacy-columns {
        display: grid;
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        gap: 18px;
        margin-top: 16px;
    }

    .legacy-column {
        background: #fbfbfb;
        border: 1px solid #dde5e9;
        border-radius: 8px;
        padding: 14px 16px;
    }

        .legacy-column h3 {
            margin: 0 0 12px 0;
            font-size: 21px;
            color: #2f3f4d;
        }

        .legacy-column a {
            display: block;
            color: #0c63b8;
            text-decoration: underline;
            font-size: 16px;
            line-height: 1.5;
            margin-bottom: 6px;
        }

            .legacy-column a:hover {
                color: #074c90;
            }

    .note {
        margin-top: 18px;
        font-size: 13px;
        color: #6a777f;
    }

    @media (max-width: 1000px) {
        .lp-interior-main {
            grid-template-columns: 1fr;
        }

        .lp-sidebar {
            min-height: auto;
        }

        .legacy-columns {
            grid-template-columns: 1fr;
        }

        .lp-community-strip {
            font-size: 24px;
        }

        .lp-sidebar {
            background: #f4f4f4;
            border: 3px solid red;
            border-top: none;
            min-height: 100%;
            padding: 14px 14px 18px 14px;
        }

        .lp-content-area {
            background: #fff;
            border: 3px solid blue;
            border-top: none;
            min-height: 700px;
            padding: 20px 24px 28px 24px;
        }
        /* === GLOBAL PAGE BACKGROUND (Happy Blue Theme) === */
        .lp-page-bg {
            background: linear-gradient(180deg, #98dcff 0%, #c9f0ff 100%);
            min-height: calc(100vh - 120px); /* keeps full-page coverage */
            padding: 20px;
        }
    }
}
   