# static/css/custom.css
/* Custom styles for the social media app */

.post-card {
    transition: transform 0.2s ease-in-out;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-title-row,
.profile-edit-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-header-avatar,
.profile-edit-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
}

.profile-header-avatar {
    width: 82px;
    height: 82px;
    border: 3px solid rgba(255, 255, 255, 0.75);
    font-size: 3rem;
}

.profile-edit-avatar {
    width: 72px;
    height: 72px;
    font-size: 2.4rem;
}

.profile-header-avatar-fallback,
.profile-edit-avatar-fallback {
    color: #fff;
    background: #198754;
    font-weight: 800;
}

.like-btn {
    transition: all 0.2s ease-in-out;
}

.like-btn:hover {
    transform: scale(1.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: transparent;
    border-radius: 0;
}

.site-brand-logo {
    display: block;
    width: auto;
    height: 34px;
}

@media (max-width: 767px) {
    .navbar > .container {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
    }

    .navbar > .container::before,
    .navbar > .container::after {
        display: none;
        content: none;
    }

    .site-brand {
        margin-right: 0 !important;
        padding: 5px;
    }

    .site-brand-logo {
        width: 38px;
        height: 38px;
        background: #fff;
        border-radius: 50%;
        object-fit: contain;
    }

    .navbar form.d-flex {
        min-width: 0;
        margin-right: 0 !important;
    }

    .navbar form.d-flex .form-control {
        min-width: 0;
    }

    .burger-dropdown .btn {
        padding: 4px 7px;
    }

    .burger-dropdown {
        justify-self: end;
    }
}

.post-content {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.post-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.post-author-avatar {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #198754;
    border-radius: 50%;
    font-weight: 800;
    object-fit: cover;
}

.post-author-meta {
    min-width: 0;
}

.post-author-meta strong {
    display: block;
    line-height: 1.2;
}

.post-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 9px;
    line-height: 1.2;
}

.post-content-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    max-height: 6.2em;
    overflow: hidden;
}

.post-read-more {
    padding: 0;
    margin: 0 0 12px;
    font-weight: 700;
    text-decoration: none;
}

.post-read-more i {
    margin-right: 4px;
}

.user-card {
    transition: transform 0.2s ease-in-out;
}

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

.shared-post-page {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto 50px;
}

.shared-post-intro {
    max-width: 760px;
    margin: 18px auto 28px;
    text-align: center;
}

.shared-post-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #0d6efd;
    font-weight: 800;
    text-transform: uppercase;
}

.shared-post-intro h1 {
    margin: 0;
    color: #17202a;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.1;
}

.shared-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: flex-start;
    gap: 24px;
}

.shared-post-main,
.shared-post-sidebar,
.shared-post-card {
    min-width: 0;
    max-width: 100%;
}

.shared-post-card,
.shared-post-cta {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe6ed;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(26, 54, 93, 0.1);
}

.shared-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
}

.shared-post-author a,
.shared-post-author strong {
    color: #17202a;
    font-size: 1.65rem;
    font-weight: 800;
}

.shared-post-image {
    display: flex;
    width: 100%;
    justify-content: center;
    overflow: hidden;
    background: #101820;
}

.shared-post-image img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(58vh, 520px);
    object-fit: contain;
}

.shared-post-body {
    padding: 22px;
}

.shared-post-body > p {
    margin: 12px 0 20px;
    color: #26323d;
    font-size: 1.8rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.shared-post-category {
    display: inline-block;
    padding: 5px 10px;
    color: #0b5ed7;
    background: #eaf3ff;
    border-radius: 999px;
    font-weight: 700;
}

.shared-post-actions,
.shared-post-share,
.shared-post-likes {
    display: flex;
    align-items: center;
}

.shared-post-actions {
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8edf2;
}

.shared-post-share,
.shared-post-likes {
    flex-wrap: wrap;
    gap: 8px;
}

.shared-post-cta {
    position: sticky;
    top: 20px;
    padding: 28px;
    text-align: center;
}

.shared-post-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #198754);
    border-radius: 50%;
    font-size: 2.8rem;
}

.shared-post-cta h2 {
    margin: 0 0 12px;
    color: #17202a;
    font-size: 2.5rem;
    font-weight: 800;
}

.shared-post-cta p {
    margin-bottom: 20px;
    color: #596673;
    font-size: 1.55rem;
    line-height: 1.55;
}

.shared-post-benefits {
    margin: 22px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #e8edf2;
    list-style: none;
    text-align: left;
}

.shared-post-benefits li {
    margin: 9px 0;
    color: #43515e;
}

.shared-post-benefits i {
    margin-right: 8px;
    color: #198754;
}

.ad-slot {
    margin-top: 20px;
    padding: 16px;
    overflow: hidden;
    color: #43515e;
    background: #f8fafc;
    border: 1px dashed #aebbc8;
    border-radius: 10px;
}

.ad-slot-label {
    display: block;
    margin-bottom: 10px;
    color: #77838f;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-slot-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-slot-content strong {
    display: block;
    margin-bottom: 3px;
    color: #26323d;
}

.ad-slot-content p {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.ad-slot-enquiry-link {
    color: inherit;
    text-decoration: none;
}

.ad-slot-enquiry-link:hover,
.ad-slot-enquiry-link:focus {
    color: #198754;
    text-decoration: none;
}

.advertising-enquiry-page {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 36px;
    max-width: 1120px;
    margin: 32px auto 60px;
}

.advertising-enquiry-intro {
    padding: 38px;
    color: #fff;
    background: linear-gradient(145deg, #17202a, #0b6b55);
    border-radius: 18px;
}

.advertising-enquiry-intro h1 {
    margin: 10px 0 18px;
    font-size: 3.5rem;
    font-weight: 800;
}

.advertising-enquiry-intro > p {
    font-size: 1.7rem;
    line-height: 1.6;
}

.advertising-enquiry-intro ul {
    margin: 28px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    list-style: none;
}

.advertising-enquiry-intro li {
    margin: 12px 0;
}

.advertising-enquiry-intro li i {
    margin-right: 8px;
    color: #7ee2b8;
}

.advertising-enquiry-form {
    border: 1px solid #dce5e1;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(23, 32, 42, 0.12);
}

.advertising-enquiry-form .card-body {
    padding: 34px;
}

.advertising-privacy-note {
    margin: 14px 0 0;
    color: #69757f;
    font-size: 1.25rem;
    text-align: center;
}

.advertising-success-card {
    max-width: 720px;
    margin: 55px auto;
    padding: 48px;
    background: #fff;
    border: 1px solid #dce5e1;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(23, 32, 42, 0.12);
    text-align: center;
}

.advertising-success-icon {
    display: inline-flex;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #fff;
    background: #198754;
    border-radius: 50%;
    font-size: 3rem;
}

.ad-slot-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: #198754;
    border-radius: 50%;
}

.ad-slot--inline {
    margin: 20px 0;
}

.ad-slot-image {
    display: block;
    margin: -4px -4px 14px;
    overflow: hidden;
    border-radius: 8px;
}

.ad-slot-image img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.ad-slot-advert strong {
    display: block;
    margin-bottom: 5px;
    color: #26323d;
    font-size: 1.7rem;
}

.ad-slot-advert p {
    white-space: pre-wrap;
}

.ad-slot-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.ad-slot-links > a:not(.btn) {
    font-size: 2rem;
}

.admin-ad-thumb {
    width: 100px;
    height: 60px;
    margin-top: 6px;
    border-radius: 5px;
    object-fit: cover;
}

.pro-badge,
.pro-post-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: linear-gradient(135deg, #6d28d9, #2563eb);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.pro-badge {
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 1.25rem;
}

.pro-post-card {
    border: 2px solid #7c3aed !important;
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.14);
}

.pro-post-ribbon {
    display: flex;
    padding: 9px 14px;
    border-radius: 0;
}

.pro-post-ribbon a {
    color: #fff;
    text-decoration: underline;
}

.pro-post-headline {
    margin: 0 0 10px;
    color: #2e1065;
    font-size: 2.2rem;
    font-weight: 800;
}

.pro-post-cta {
    margin-bottom: 16px;
}

.pro-menu-link {
    color: #6d28d9 !important;
    font-weight: 800 !important;
}

.pro-guest-links {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.pro-auth-shell,
.pro-form-shell {
    width: 100%;
    max-width: 760px;
    margin: 28px auto 60px;
}

.pro-auth-shell {
    max-width: 520px;
}

.pro-auth-card,
.pro-form-card,
.event-detail-card,
.pro-public-header {
    padding: 28px;
    background: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(76, 29, 149, 0.1);
}

.pro-auth-card h1,
.pro-page-heading h1,
.pro-public-header h1,
.event-detail-card h1 {
    color: #24104f;
    font-weight: 800;
}

.pro-auth-foot {
    margin: 18px 0 0;
    text-align: center;
}

.pro-page-heading {
    margin-bottom: 20px;
}

.pro-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.pro-dashboard-header h1 {
    margin-top: 8px;
}

.pro-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pro-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.pro-usage-grid,
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.pro-usage-grid > div,
.admin-stat {
    padding: 18px;
    background: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
}

.plan-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.plan-comparison-grid > div {
    padding: 14px;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
}

.plan-comparison-grid strong,
.plan-comparison-grid span,
.plan-comparison-grid small {
    display: block;
}

.pro-usage-grid strong,
.pro-usage-grid span,
.admin-stat strong,
.admin-stat span {
    display: block;
}

.pro-usage-grid strong,
.admin-stat strong {
    color: #4c1d95;
    font-size: 2.4rem;
}

.opening-hours-row {
    display: grid;
    grid-template-columns: 130px 90px 1fr 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #ede9fe;
    border-radius: 10px;
}

.opening-hours-row legend {
    margin: 0;
    border: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.opening-hours-error {
    grid-column: 3 / 5;
}

.pro-opening-hours {
    margin-bottom: 28px;
    padding: 22px;
    background: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
}

.pro-opening-hours dl {
    margin: 0;
}

.pro-opening-hours dl div {
    display: grid;
    grid-template-columns: 140px 1fr;
    padding: 7px 0;
    border-bottom: 1px solid #f0ecfa;
}

.pro-opening-hours dl div:last-child {
    border-bottom: 0;
}

.pro-opening-hours dd {
    margin: 0;
}

.report-content-link {
    display: block;
    margin-top: 18px;
    color: #9b1c1c;
    font-size: 1.3rem;
}

.admin-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.admin-navigation {
    margin-bottom: 16px;
    background: #24104f;
    box-shadow: 0 4px 12px rgba(36, 16, 79, 0.18);
}

.admin-navigation .container {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.admin-navigation a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    color: #e9e1ff;
    text-decoration: none;
}

.admin-navigation a:hover,
.admin-navigation a:focus,
.admin-navigation a.active {
    color: #fff;
    background: #6d28d9;
}

.admin-navigation-site {
    margin-left: auto;
}

.admin-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pro-action-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 3px 14px;
    padding: 20px;
    color: #362168;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    text-decoration: none;
}

.pro-action-card i {
    grid-row: 1 / 3;
    align-self: center;
    font-size: 3rem;
}

.pro-action-card strong {
    font-size: 1.8rem;
}

.pro-action-card span {
    color: #655a75;
}

.pro-offering-dashboard {
    margin-bottom: 30px;
}

.pro-offering-list,
.pro-offering-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pro-offering-card,
.pro-offering-public-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
}

.pro-offering-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pro-offering-card h4,
.pro-offering-public-card h3 {
    margin: 0 0 6px;
    color: #24104f;
    font-weight: 800;
}

.pro-offering-card p,
.pro-offering-public-card p {
    margin: 0;
}

.pro-offering-card--inactive {
    opacity: 0.62;
}

.pro-offerings-section {
    margin-bottom: 30px;
}

.pro-offering-public-card {
    box-shadow: 0 10px 28px rgba(76, 29, 149, 0.08);
}

.pro-offering-card-heading,
.pro-offering-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pro-offering-card-heading {
    justify-content: space-between;
    margin-bottom: 10px;
    color: #6d28d9;
    font-weight: 800;
}

.pro-offering-detail {
    margin-top: 12px;
    color: #4b5563;
    white-space: pre-wrap;
}

.pro-offering-detail i {
    color: #6d28d9;
}

.event-list-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 14px;
    color: #30234e;
    background: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    text-decoration: none;
}

.event-list-card:hover {
    color: #4c1d95;
    border-color: #7c3aed;
}

.event-list-card small,
.event-list-card strong {
    display: block;
}

.event-list-image {
    width: 76px;
    height: 58px;
    flex: 0 0 76px;
    border-radius: 8px;
    object-fit: cover;
}

.event-date {
    flex: 0 0 58px;
    padding: 9px 5px;
    color: #fff;
    background: #7c3aed;
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
}

.pro-public-header {
    min-height: 205px;
    margin-bottom: 30px;
    background: linear-gradient(145deg, #fff, #f5f3ff);
}

.pro-public-header--banner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #fff;
    background-position: center;
    background-size: cover;
}

.pro-public-header--banner h1,
.pro-public-header--banner .pro-category {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.pro-public-header--banner .btn-default {
    color: #24104f;
    background: rgba(255, 255, 255, 0.94);
}

.pro-banner-preview {
    margin-bottom: 20px;
}

.pro-banner-preview img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 10px;
}

.pro-banner-preview small {
    display: block;
    margin-top: 8px;
}

.pro-category {
    color: #6d28d9;
    font-weight: 700;
}

.pro-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pro-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.event-detail-card {
    max-width: 760px;
    margin: 20px auto 50px;
}

.event-share-actions {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

.event-share-actions h2 {
    margin: 0 0 12px;
    color: #24104f;
    font-size: 1.25rem;
    font-weight: 800;
}

.event-share-actions #copy-event-status {
    min-height: 20px;
    margin-top: 8px;
}

.event-banner,
.event-banner-preview img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
}

.event-banner {
    margin-bottom: 22px;
}

.event-banner-preview {
    margin-bottom: 20px;
}

.event-banner-preview small {
    display: block;
    margin-top: 8px;
}

.event-age-range {
    padding: 0;
    border: 0;
}

.event-age-range legend {
    margin-bottom: 8px;
    border: 0;
    font-size: inherit;
    font-weight: 700;
}

.event-facts {
    margin: 24px 0;
    border-top: 1px solid #ede9fe;
}

.event-facts div {
    display: grid;
    grid-template-columns: 90px 1fr;
    padding: 12px 0;
    border-bottom: 1px solid #ede9fe;
}

.event-facts dt {
    color: #6d28d9;
}

.event-facts dd {
    margin: 0;
}

.event-description {
    white-space: pre-wrap;
}

.map-legend {
    display: flex;
    gap: 18px;
    margin: -6px 0 12px;
}

.map-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 5px;
    border-radius: 50%;
}

.map-dot--post {
    background: #dc2626;
}

.map-dot--event {
    background: #7c3aed;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.profile-tab {
    padding: 9px 14px;
    color: #495057;
    border-bottom: 3px solid transparent;
    font-weight: 700;
    text-decoration: none;
}

.profile-tab:hover {
    color: #0d6efd;
    text-decoration: none;
}

.profile-tab.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.invite-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
    gap: 20px;
    margin-bottom: 40px;
}

.invite-card,
.invite-qr-card {
    margin-bottom: 0;
}

.invite-card .card-body,
.invite-qr-card .card-body {
    padding: 26px;
}

.invite-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #6d28d9;
    font-weight: 800;
}

.invite-link-group {
    display: flex;
    align-items: stretch;
    margin-bottom: 6px;
}

.invite-link-group .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.invite-link-group .btn {
    flex: 0 0 auto;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#invite-copy-status {
    min-height: 20px;
}

.invite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.invite-message-preview {
    padding: 16px;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
}

.invite-message-preview p {
    margin: 6px 0 0;
}

.invite-qr-card {
    text-align: center;
}

.invite-qr-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 244px;
    min-height: 244px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 14px;
}

.invite-qr-code img,
.invite-qr-code canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.invite-qr-help {
    margin: 10px 0 22px;
    color: #6b7280;
}

.invite-count {
    display: flex;
    flex-direction: column;
    padding: 18px;
    color: #24104f;
    background: #f5f3ff;
    border-radius: 12px;
}

.invite-count strong {
    font-size: 2.3rem;
    line-height: 1;
}

.invite-count span {
    margin-top: 6px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .invite-page-grid {
        grid-template-columns: 1fr;
    }

    .invite-card .card-body,
    .invite-qr-card .card-body {
        padding: 20px;
    }
}

/* Landing page */
.landing-hero {
    padding: 46px 0 34px;
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #0d6efd;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
}

.landing-title {
    max-width: 700px;
    margin: 0 0 18px;
    color: #111;
    font-size: clamp(3.4rem, 6vw, 6.8rem);
    font-weight: 800;
    line-height: 1.02;
}

.landing-copy {
    max-width: 660px;
    margin-bottom: 26px;
    color: #4d5965;
    font-size: 1.85rem;
    line-height: 1.55;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.landing-actions .btn,
.landing-community .btn {
    border-radius: 8px;
    font-weight: 700;
    white-space: normal;
}

.landing-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #4d5965;
    font-weight: 700;
}

.landing-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
}

.activity-preview {
    position: relative;
    padding: 18px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(13, 110, 253, 0.12);
}

.activity-preview::before {
    content: "";
    position: absolute;
    inset: 12px -12px -12px 12px;
    z-index: -1;
    background: #198754;
    border-radius: 8px;
}

.activity-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.preview-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 5px;
    background: #0d6efd;
    border-radius: 50%;
}

.preview-dot-green {
    background: #198754;
}

.preview-dot-yellow {
    background: #ffc107;
}

.preview-area {
    color: #4d5965;
    font-weight: 700;
}

.preview-post {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    margin-top: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e6edf3;
    border-radius: 8px;
}

.preview-post-featured {
    background: #eef6ff;
    border-color: #b8d9ff;
}

.preview-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
}

.preview-meta {
    margin-bottom: 4px;
    color: #66717d;
    font-size: 1.25rem;
    font-weight: 700;
}

.preview-post h2 {
    margin: 0 0 6px;
    color: #111;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.preview-post p {
    margin: 0;
    color: #4d5965;
    font-size: 1.42rem;
    line-height: 1.45;
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.preview-tags span {
    padding: 5px 9px;
    color: #0b5ed7;
    background: #fff;
    border: 1px solid #b8d9ff;
    border-radius: 8px;
    font-size: 1.22rem;
    font-weight: 700;
}

.landing-section {
    padding: 30px 0;
}

.landing-feature {
    height: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
}

.landing-feature i {
    margin-bottom: 14px;
    color: #0d6efd;
    font-size: 3.4rem;
}

.landing-feature h3 {
    margin: 0 0 10px;
    color: #111;
    font-size: 2.15rem;
    font-weight: 800;
}

.landing-feature p,
.landing-community p {
    margin: 0;
    color: #4d5965;
    font-size: 1.55rem;
    line-height: 1.5;
}

.landing-community {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 28px 0 46px;
    padding: 26px;
    color: #111;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-left: 8px solid #198754;
    border-radius: 8px;
}

.landing-community h2 {
    margin: 0 0 10px;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
}



/* Force a responsive square box with black bars */
.post-image-square{
  position: relative;
  width: 100%;
  background: #000;          /* letterbox color */
  overflow: hidden;
}
/* The pseudo-element creates a square via padding trick */
.post-image-square::before{
  content: "";
  display: block;
  padding-top: 100%;         /* = height equals width */
}
/* Make the image fill the square and keep aspect ratio */
.post-image-square > img{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;       /* show all of the image, add black bars if needed */
  display: block;
}


/* post button */
/* Full-width oval compose button */
.btn-compose{
  border-radius: 9999px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #777;
  text-align: left;
  padding: 10px 16px;
}
.btn-compose:hover{ background:#eee; color:#555; }

/* Image icon “button” */
.btn-icon{
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 9999px;
  padding: 8px 12px;
  line-height: 1;
  display: inline-block;
}
.btn-icon i{ font-size: 18px; vertical-align: middle; }

.compose-toolbar{
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Utility */
.hidden{ display:none !important; }



.modal { z-index: 2000; }
.modal-backdrop { z-index: 1900; }


.burger-dropdown .dropdown-toggle::after {
  display: none !important;
}

.burger-dropdown .dropdown-menu {
  right: 0 !important;
  left: auto !important;
  max-width: calc(100vw - 16px);
  transform: none !important;
}
#mapSection{
  width: 100%;
  height: 70vh;
  min-height: 400px;
  border-radius: 8px;
}

/* /////////////////////////////////////Categories/////////////////////////////////////////// */
.activity-box {
    background: #d9d9d9;
    padding: 22px 28px;
    border-radius: 4px;
}

.activity-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
}

.activity-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.activity-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    color: #111;
    cursor: pointer;
    margin: 0;
}

.activity-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

@media (max-width: 768px) {
    .activity-title {
        font-size: 1.5rem;
    }

    .activity-item {
        font-size: 1.05rem;
    }
}
/* .activity-preferences-box {
    background: #d9d9d9;
    padding: 24px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.category-group {
    margin-bottom: 22px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #111;
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
}

.subcategory-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    color: #111;
    cursor: pointer;
    margin: 0;
}

.subcategory-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
} */
/* /////////////////////////////////////Categories/////////////////////////////////////////// */



@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .post-card {
        margin-bottom: 15px;
    }

    .shared-post-intro {
        margin-top: 4px;
    }

    .shared-post-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .shared-post-page {
        overflow: hidden;
    }

    .shared-post-card,
    .shared-post-cta {
        width: 100%;
        border-radius: 10px;
    }

    .shared-post-image img {
        max-height: 68vh;
    }

    .shared-post-cta {
        position: static;
        margin-top: 0;
    }

    .shared-post-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .pro-dashboard-header {
        flex-direction: column;
    }

    .pro-action-grid,
    .pro-event-grid,
    .pro-offering-grid,
    .pro-offering-list,
    .pro-usage-grid,
    .admin-stat-grid,
    .plan-comparison-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .opening-hours-row {
        grid-template-columns: 1fr 1fr;
    }

    .opening-hours-row legend,
    .opening-hours-closed,
    .opening-hours-error {
        grid-column: 1 / 3;
    }

    .admin-navigation .container {
        overflow-x: auto;
    }

    .admin-navigation a {
        flex: 0 0 auto;
        padding: 11px 12px;
    }

    .admin-navigation-site {
        margin-left: 0;
    }

    .advertising-enquiry-page {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-top: 18px;
    }

    .advertising-enquiry-intro,
    .advertising-enquiry-form .card-body,
    .advertising-success-card {
        padding: 24px;
    }

    .pro-auth-card,
    .pro-form-card,
    .event-detail-card,
    .pro-public-header {
        padding: 20px;
    }

    .pro-public-header {
        min-height: 220px;
    }

    .landing-hero {
        padding-top: 22px;
    }

    .landing-title {
        font-size: 3.7rem;
    }

    .landing-copy {
        font-size: 1.6rem;
    }

    .activity-preview {
        margin-right: 8px;
    }

    .preview-post {
        grid-template-columns: 42px 1fr;
        padding: 14px;
    }

    .preview-avatar {
        width: 42px;
        height: 42px;
    }

    .landing-community {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-community h2 {
        font-size: 2.35rem;
    }
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: #198754;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus {
    color: #fff;
    background: #146c43;
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(25, 135, 84, 0.35);
    outline-offset: 3px;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

.site-footer {
    margin-top: 54px;
    padding: 24px 0;
    color: #52606d;
    background: #f4f7f9;
    border-top: 1px solid #e2e8ee;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.site-footer .container span {
    margin-right: auto;
}

.pro-info-page {
    max-width: 1120px;
    margin: 24px auto 0;
}

.pro-info-hero {
    padding: clamp(32px, 7vw, 74px);
    color: #fff;
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 255, 255, .2), transparent 26%),
        linear-gradient(135deg, #126b54, #1769e0);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(20, 71, 111, .18);
}

.pro-info-hero h1 {
    max-width: 760px;
    margin: 18px 0 14px;
    font-size: clamp(2.35rem, 5vw, 5rem);
    line-height: 1.02;
}

.pro-info-hero > p {
    max-width: 700px;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.pro-signup-notice {
    max-width: 720px;
    padding: 18px 20px;
    color: #173148;
    background: rgba(255, 255, 255, .92);
    border-radius: 14px;
}

.pro-signup-notice strong {
    display: block;
    margin-bottom: 3px;
}

.pro-info-section {
    padding: 56px 0 8px;
}

.pro-section-heading {
    max-width: 720px;
    margin-bottom: 24px;
}

.pro-section-heading > span,
.legal-kicker {
    color: #15745b;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pro-feature-grid,
.pro-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.pro-feature-grid article,
.pro-plan-card,
.pro-info-legal {
    padding: 25px;
    background: #fff;
    border: 1px solid #dfe7ec;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(31, 55, 74, .06);
}

.pro-feature-grid i {
    margin-bottom: 18px;
    color: #15745b;
    font-size: 1.5rem;
}

.pro-feature-grid h3,
.pro-plan-card h3 {
    margin: 0 0 10px;
}

.pro-plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.pro-plan-card {
    position: relative;
}

.pro-plan-featured {
    border: 2px solid #1769e0;
}

.pro-plan-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 9px;
    color: #fff;
    background: #1769e0;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
}

.pro-plan-price {
    margin: 12px 0 4px;
    color: #173148;
    font-size: 2rem;
    font-weight: 800;
}

.pro-plan-price small {
    font-size: .9rem;
    font-weight: 500;
}

.pro-plan-card ul {
    padding-left: 19px;
}

.pro-plan-card li {
    margin: 8px 0;
}

.pro-info-legal {
    margin-top: 48px;
    background: #eff8f5;
}

.legal-page {
    max-width: 900px;
    margin: 34px auto 0;
    color: #243746;
}

.legal-page header {
    padding-bottom: 24px;
    border-bottom: 1px solid #dce5ea;
}

.legal-page header h1 {
    margin: 8px 0;
    font-size: clamp(2.25rem, 5vw, 4rem);
}

.legal-review-note {
    margin: 24px 0;
    padding: 16px 18px;
    color: #624d13;
    background: #fff8df;
    border-left: 4px solid #e0a800;
    border-radius: 8px;
}

.legal-page section {
    padding: 14px 0;
}

.legal-page section h2 {
    margin-bottom: 9px;
    font-size: 1.35rem;
}

.legal-page section p {
    line-height: 1.75;
}

.legal-plan-table {
    overflow-x: auto;
    margin: 16px 0;
}

.legal-plan-table table {
    width: 100%;
    border-collapse: collapse;
}

.legal-plan-table th,
.legal-plan-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dce5ea;
}

.contact-ticket-page {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
    gap: 34px;
    max-width: 1040px;
    margin: 38px auto 0;
    align-items: start;
}

.contact-ticket-intro {
    padding: 28px 8px;
}

.contact-ticket-intro h1 {
    margin: 10px 0 16px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.04;
}

.contact-ticket-intro > p {
    color: #526575;
    font-size: 1.08rem;
    line-height: 1.7;
}

.contact-ticket-note {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    padding: 18px;
    color: #174c3c;
    background: #eff8f5;
    border-radius: 13px;
}

.contact-ticket-note i {
    margin-top: 3px;
    font-size: 1.3rem;
}

.contact-ticket-note strong,
.contact-ticket-note span {
    display: block;
}

.contact-ticket-note span {
    margin-top: 3px;
    color: #526575;
}

.contact-ticket-form {
    margin: 0;
}

.communication-message-card p {
    line-height: 1.7;
    white-space: pre-wrap;
}

.rollout-gate-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
    gap: 42px;
    max-width: 1040px;
    margin: 42px auto 0;
    align-items: center;
}

.rollout-gate-message {
    padding: 30px 10px;
}

.rollout-gate-message h1 {
    margin: 10px 0 18px;
    font-size: clamp(2.7rem, 6vw, 5.3rem);
    line-height: 1;
}

.rollout-gate-message > p {
    max-width: 620px;
    font-size: 1.08rem;
    line-height: 1.7;
}

.rollout-postcode {
    display: flex;
    gap: 14px;
    max-width: 520px;
    margin: 28px 0 20px;
    padding: 18px;
    color: #174c3c;
    background: #eff8f5;
    border-radius: 14px;
}

.rollout-postcode i {
    margin-top: 4px;
    font-size: 1.45rem;
}

.rollout-postcode strong,
.rollout-postcode span {
    display: block;
}

.rollout-postcode strong {
    font-size: 1.15rem;
}

.rollout-interest-form {
    margin: 0;
}

.rollout-consent label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    line-height: 1.5;
}

.rollout-consent input {
    margin-top: 4px;
}

.rollout-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.rollout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    align-items: center;
}

.rollout-actions form {
    display: inline;
}

.rollout-interest-heading {
    margin-top: 44px;
}

@media (max-width: 900px) {
    .pro-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-ticket-page {
        grid-template-columns: 1fr;
    }

    .rollout-gate-page,
    .rollout-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .pro-feature-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer .container span {
        margin-right: 0;
    }

    .contact-ticket-page {
        margin-top: 20px;
    }

    .rollout-gate-page {
        margin-top: 20px;
    }
}
