/* ================= ROOT WRAPPER ================= */
.gcal-wrap{
    --gcal-gold:#fbb040;
    --gcal-dark:#070707;
    --gcal-panel:#0b0b0d;
    --gcal-border:rgba(251,176,64,.55);
    --gcal-cream:#f5e6b8;
    --gcal-days-font-color:#111111;
    --gcal-guest-pay-font-color:#000000;
    --gcal-guest-pay-font-hover-color:#000000;

     width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 10px;
}

/* ================= FORCE FULL WIDTH ================= */
.gcal-wrap{
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.fc{
    width: 100% !important;
}

.fc .fc-scrollgrid{
    width: 100% !important;
}

/* REMOVE RIGHT SCROLL BAR */
.fc-scroller{
    overflow: visible !important;
}

.fc .fc-daygrid-body{
    width: 100% !important;
}

@media (max-width:768px){

    .fc .fc-daygrid-day-frame{
        min-width: 0 !important;
    }

    .fc .fc-daygrid-body-natural{
        width: 100% !important;
    }

    .fc table{
        table-layout: fixed !important;
    }

}


/* ================= TOP BAR ================= */
.gcal-topbar,
.gcal-modal-card{
    background:linear-gradient(90deg,#050505,#111318);
    border:1px solid var(--gcal-border);
    border-radius:22px;
    box-shadow:0 14px 36px rgba(0,0,0,.28);
}

.gcal-topbar{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:center;
    padding:26px 20px;
    margin-bottom:18px;
}

.gcal-title-group h2{
    margin:0 0 4px;
    color:var(--gcal-gold);
    font-size:26px;
}

.gcal-title-group p{
    margin:0;
    color:var(--gcal-cream);
    font-size:14px;
}

/* ================= BUTTONS ================= */
.gcal-btn{
    background:linear-gradient(180deg,#f5bf4f,#d89a23);
    color:#121212;
    border:none;
    border-radius:14px;
    padding:11px 18px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 0 18px rgba(251,176,64,.25);
}

.gcal-btn-secondary{
    background:#141414;
    color:var(--gcal-cream);
    border:1px solid var(--gcal-border);
    box-shadow:none;
}

.gcal-btn-danger{
    background:#5a1212;
    color:#fff;
}

/* ================= FULLCALENDAR ================= */
.fc{
    background:#050505;
    border:1px solid var(--gcal-border);
    border-radius:22px;
    padding:12px;
}

.fc .fc-toolbar-title,
.fc .fc-button,
.fc .fc-col-header-cell-cushion{
    color:var(--gcal-gold)!important;
}

.fc .fc-button{
    background:#101113!important;
    border:1px solid var(--gcal-border)!important;
    text-transform:capitalize;
}

.fc .fc-button:hover{
    background:#1a1b1e!important;
}

.fc .fc-daygrid-day-number,
.fc .fc-daygrid-day-top a{
    color:#f2f2f2!important;
}

.fc .fc-col-header-cell-cushion{
    color:var(--gcal-days-font-color)!important;
    background:var(--gcal-gold);
    display:inline-block;
    padding:1px 4px;
    font-weight:700;
}

.fc-theme-standard td,
.fc-theme-standard th{
    border-color:rgba(255,255,255,.13)!important;
}

.fc .fc-daygrid-event{
    background:transparent!important;
    border:none!important;
    padding:0 2px;
}

.fc .fc-daygrid-event-dot{
    border-color:var(--gcal-gold)!important;
}

.fc .fc-event-title,
.fc .fc-event-time,
.fc .fc-event a,
.fc .fc-daygrid-event a,
.fc .fc-h-event .fc-event-main,
.fc .fc-event-main{
    color:#fff!important;
    text-decoration:none!important;
    font-weight:600;
}

.fc .fc-event:hover .fc-event-title,
.fc .fc-event:hover .fc-event-time{
    color:var(--gcal-gold)!important;
}

/* ================= MODAL ================= */
.gcal-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.72);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
    padding:20px;
}

.gcal-modal-card{
    position:relative;
    width:min(760px,95vw);
    max-height:90vh;
    overflow:auto;
    padding:24px;
    color:#fff;
}

.gcal-close{
    position:absolute;
    right:14px;
    top:12px;
    background:none;
    border:none;
    color:var(--gcal-gold);
    font-size:28px;
    cursor:pointer;
}

/* ================= FORM GRID ================= */
.gcal-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.gcal-field label{
    display:block;
    color:var(--gcal-gold);
    font-weight:700;
    margin-bottom:6px;
}

.gcal-field input,
.gcal-field select,
.gcal-field textarea{
    width:100%;
    background:#111;
    border:1px solid rgba(255,255,255,.14);
    color:#fff;
    padding:10px;
    border-radius:12px;
}

.gcal-full{
    grid-column:1 / -1;
}

.gcal-actions{
    display:flex;
    gap:12px;
    margin-top:18px;
}

/* ================= IMAGES ================= */
.gcal-image-row{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.gcal-image-preview img,
.gcal-hover-card img,
.gcal-detail-hero img{
    width:100%;
    height:auto;
    border-radius:16px;
    border:1px solid var(--gcal-border);
}

/* ================= HOVER CARD ================= */
.gcal-hover-card{
    position:fixed;
    z-index:99998;
    width:min(420px,calc(100vw - 30px));
    max-height:min(78vh,620px);
    overflow:auto;
    background:linear-gradient(180deg,#0a0a0c,#15161c);
    border:1px solid var(--gcal-border);
    border-radius:18px;
    box-shadow:0 16px 42px rgba(0,0,0,.45);
    padding:16px;
    color:#fff;
    pointer-events:none;
}

.gcal-hover-card h4,
.gcal-detail-card h3{
    margin:0 0 8px;
    color:var(--gcal-gold);
}

.gcal-hover-meta,
.gcal-detail-meta{
    font-size:13px;
    color:#f0ddb1;
    margin-bottom:10px;
}

.gcal-hover-summary,
.gcal-detail-summary{
    font-size:14px;
    line-height:1.5;
    color:#fff;
}

/* ================= DETAIL ================= */
.gcal-detail-card{
    width:min(820px,95vw);
}

.gcal-detail-hero{
    margin:12px 0 16px;
}

.gcal-detail-badge{
    display:inline-block;
    background:rgba(251,176,64,.16);
    border:1px solid var(--gcal-border);
    border-radius:999px;
    padding:5px 10px;
    color:var(--gcal-gold);
    font-size:12px;
    font-weight:700;
    margin-bottom:10px;
}

/* ================= ADMIN ================= */
.gcal-admin-wrap .gcal-admin-card{
    background:#fff;
    border:1px solid #e2e2e2;
    border-radius:14px;
    padding:18px;
    margin:16px 0;
}
/* ================= MOBILE ================= */
@media (max-width: 700px){

    .gcal-grid{
        grid-template-columns: 1fr;
    }

    .gcal-topbar{
        flex-direction: column;
        align-items: flex-start;
    }

    .gcal-login-card form{
        grid-template-columns: 1fr;
    }
}


/* ================= LINKS ================= */
.gcal-hover-card a,
.gcal-detail-card a{
    color: var(--gcal-gold) !important;
    text-decoration: none;
}

.gcal-hover-card a:hover,
.gcal-detail-card a:hover{
    text-decoration: underline;
}


/* ================= IMAGES ================= */
.gcal-hover-card img{
    max-height: 220px;
    object-fit: cover;
}

.gcal-detail-hero img{
    max-height: 420px;
    object-fit: cover;
}


/* ================= PAYMENT BUTTON ================= */
.gcal-pay-wrap{
    margin: 12px 0 10px;
}

.gcal-pay-btn{
    display: inline-block;
    background: linear-gradient(180deg,#f5bf4f,#d89a23);
    color: #000 !important;
    border: 1px solid rgba(251,176,64,.65);
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 0 18px rgba(251,176,64,.22);
}

.gcal-pay-btn:hover,
.gcal-pay-btn:focus,
.gcal-pay-btn:active,
.gcal-pay-btn:visited{
    color: #000 !important;
    transform: none;
}

.gcal-pay-btn-detail{
    padding: 12px 18px;
}


/* ================= GUEST PAY TEXT FIX ================= */
.gcal-pay-wrap .gcal-pay-btn,
.gcal-hover-card .gcal-pay-btn,
.gcal-detail-card .gcal-pay-btn,
.gcal-hover-card a.gcal-pay-btn,
.gcal-detail-card a.gcal-pay-btn{
    color: #000000 !important;
}

.gcal-pay-wrap .gcal-pay-btn:hover,
.gcal-pay-wrap .gcal-pay-btn:focus,
.gcal-pay-wrap .gcal-pay-btn:active,
.gcal-pay-wrap .gcal-pay-btn:visited,
.gcal-hover-card .gcal-pay-btn:hover,
.gcal-hover-card .gcal-pay-btn:focus,
.gcal-hover-card .gcal-pay-btn:active,
.gcal-hover-card .gcal-pay-btn:visited,
.gcal-detail-card .gcal-pay-btn:hover,
.gcal-detail-card .gcal-pay-btn:focus,
.gcal-detail-card .gcal-pay-btn:active,
.gcal-detail-card .gcal-pay-btn:visited{
    color: #000000 !important;
    text-decoration: none !important;
}


/* ================= ANNOUNCEMENT MODAL ================= */
.gcal-announcement-modal{
    z-index: 100000;
}

.gcal-announcement-card{
    width: min(640px,94vw);
    text-align: center;
    background: radial-gradient(circle at top,#1e2027 0%,#0a0a0d 55%,#050505 100%);
    overflow: hidden;
}

.gcal-announcement-kicker{
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(251,176,64,.16);
    border: 1px solid var(--gcal-border);
    color: var(--gcal-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gcal-announcement-hero{
    margin: -24px -24px 18px;
}

.gcal-announcement-hero img{
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    border: none;
}

.gcal-announcement-body{
    color: #fff;
    line-height: 1.65;
    font-size: 15px;
    max-width: 540px;
    margin: 0 auto;
}

.gcal-announcement-body p{
    margin: 0 0 10px;
}

.gcal-announcement-card h3{
    margin: 0 0 12px;
    color: var(--gcal-gold);
    font-size: 30px;
}

.gcal-announcement-card .gcal-btn{
    margin: 0 auto;
    display: inline-block;
}


/* ================= TOPBAR ACTIONS ================= */
.gcal-topbar-actions{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gcal-manager-link{
    color: var(--gcal-cream);
    text-decoration: none;
    font-weight: 700;
}

.gcal-manager-link:hover{
    color: var(--gcal-gold);
}

.gcal-edit-toggle[aria-pressed="true"]{
    background: linear-gradient(180deg,#f5bf4f,#d89a23);
    color: #121212;
}


/* ================= LOGIN PANEL ================= */
.gcal-login-panel{
    margin: 0 0 18px;
}

.gcal-login-card{
    background: linear-gradient(180deg,#0a0a0c,#14161c);
    border: 1px solid var(--gcal-border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 14px 36px rgba(0,0,0,.24);
    color: #fff;
}

.gcal-login-card h3{
    margin: 0 0 8px;
    color: var(--gcal-gold);
}

.gcal-login-card p{
    margin: 0 0 14px;
    color: var(--gcal-cream);
}

.gcal-login-card form{
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    align-items: end;
}

.gcal-login-card label{
    display: block;
    color: var(--gcal-gold);
    font-weight: 700;
    margin-bottom: 6px;
}

.gcal-login-card input[type="text"],
.gcal-login-card input[type="password"]{
    width: 100%;
    background: #111;
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    padding: 10px;
    border-radius: 12px;
}

.gcal-login-card .login-remember{
    grid-column: 1 / -1;
    color: var(--gcal-cream);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gcal-login-card .login-submit{
    grid-column: 1 / -1;
}

.gcal-login-card .button-primary{
    background: linear-gradient(180deg,#f5bf4f,#d89a23);
    color: #121212;
    border: none;
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(251,176,64,.25);
}

.gcal-login-footer{
    margin: 14px 0 18px;
    text-align: right;
}

.gcal-btn-small{
    padding: 8px 14px;
    font-size: 15px;
    box-shadow: none;
}

.gcal-login-card > p{
    display: none;
}

/* ================= FORCE TRUE FULL WIDTH ================= */

/* Break out of ALL WordPress containers */
./* ================= CLEAN CENTERED LAYOUT ================= */

.gcal-wrap,
.gcal-container,
.gcal-inner {
    width: 100% !important;
    max-width: 1400px; /* adjust if you want tighter */
    margin: 0 auto !important;
    padding: 0 10px;
}

/* Prevent page overflow */
html, body {
    overflow-x: hidden !important;
}

/* Calendar sizing */
#calendar,
.fc {
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix grid alignment */
.fc-scrollgrid,
.fc-scrollgrid-sync-table {
    width: 100% !important;
    table-layout: fixed !important;
}

/* REMOVE internal scrollbars */
.fc-scroller {
    overflow: hidden !important;
}

/* Ensure 7 equal columns */
.fc-daygrid-body {
    width: 100% !important;
}

/* Kill any horizontal scroll */
body {
    overflow-x: hidden !important;
}

/* Calendar sizing */
#calendar,
.fc {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure full 7-day grid fits */
.fc-scrollgrid {
    width: 100% !important;
}

/* Remove internal scrollbars */
.fc-scroller {
    overflow: hidden !important;
}

/* Make sure cells distribute evenly */
.fc .fc-daygrid-body,
.fc .fc-scrollgrid-sync-table {
    width: 100% !important;
    table-layout: fixed !important;
}

/* Optional: tighten padding so Saturday fits clean */
.fc .fc-daygrid-day {
    padding: 2px !important;
}

.fc .fc-daygrid-day-number {
    font-size: 12px;
    opacity: 0.8;
}

.fc .fc-toolbar-title {
    letter-spacing: 1px;
}