/* ============================================================
   Court Booking System — site.css
   Bootstrap 4 + AdminLTE 3 customisation
   ============================================================ */

:root {
    --brand-primary: #0f4c81;       /* deep court blue */
    --brand-primary-dark: #0a3a64;
    --brand-accent: #ffb627;        /* warm net-yellow accent */
    --brand-bg-soft: #f4f6f9;
    --brand-text-dark: #1c2434;
}

html, body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--brand-text-dark);
}

/* ---------- Navbar (override AdminLTE primary) ---------- */
.navbar-primary {
    background-color: var(--brand-primary) !important;
}
.navbar-primary .navbar-brand {
    font-size: 1.25rem;
    letter-spacing: 0.3px;
}
.navbar-primary .nav-link:hover {
    color: var(--brand-accent) !important;
}

.navbar-brand i {
    color: #f59e0b;
}

/* ---------- Hero ---------- */
.hero-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: #fff;
    padding: 5.5rem 0 5rem;
    position: relative;
    overflow: hidden;
}

/* Image-backed hero — used on landing page */
.hero-image {
    background-image: url('https://images.unsplash.com/photo-1554068865-24cecd4e34b8?auto=format&fit=crop&w=2000&q=70');
    background-size: cover;
    background-position: center;
    padding: 7rem 0 6.5rem;
}
.hero-image .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(10, 44, 74, 0.92) 0%, rgba(10, 44, 74, 0.65) 55%, rgba(10, 44, 74, 0.45) 100%);
    z-index: 0;
}
.hero-image .hero-content { position: relative; z-index: 1; }

.hero-section::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255,182,39,0.10);
    z-index: 0;
    pointer-events: none;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.12);
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}
.hero-title {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.1rem;
    letter-spacing: -.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-title .text-accent { color: var(--brand-accent); }
.hero-subtitle {
    font-size: 1.18rem;
    opacity: .95;
    margin-bottom: 1.9rem;
    max-width: 620px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.hero-cta .btn-primary {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--brand-text-dark);
    font-weight: 700;
    padding: .8rem 1.6rem;
    box-shadow: 0 4px 14px rgba(255,182,39,0.35);
}
.hero-cta .btn-primary:hover {
    background-color: #ffa500;
    border-color: #ffa500;
    transform: translateY(-1px);
}
.hero-cta .btn-outline-light {
    padding: .8rem 1.4rem;
    font-weight: 600;
}
.hero-cta .btn-outline-light:hover { color: var(--brand-primary); }

/* ---------- Quick Booking Widget ---------- */
.quick-widget-section {
    position: relative;
    margin-top: -3.5rem;
    z-index: 5;
}
.quick-widget {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem 1.75rem 1rem;
    box-shadow: 0 16px 40px rgba(10, 44, 74, 0.15);
    border: 1px solid #eef0f5;
}
.quick-widget-title {
    margin: 0 0 1rem;
    font-weight: 700;
    color: var(--brand-primary);
}
.quick-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #6c757d;
    margin-bottom: .3rem;
}
.quick-widget-form .form-control {
    height: 44px;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
}
.quick-widget-form .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 .15rem rgba(15,76,129,0.15);
}
.quick-search-btn {
    height: 44px;
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    font-weight: 600;
}
.quick-search-btn:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}

.sport-card-link { color: inherit; text-decoration: none; display: block; }
.sport-card-link:hover { color: inherit; text-decoration: none; }

/* ============================================================
   About Royal Court section
   ============================================================ */
.section-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: .5rem;
}
.section-header h2 {
    font-weight: 700;
    color: var(--brand-text-dark);
}

.about-card {
    border: 1px solid #e3e6f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15,76,129,0.05);
    transition: transform .15s ease, box-shadow .15s ease;
}
.about-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,76,129,0.1);
}
.about-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.about-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.about-icon-accent { background: var(--brand-accent); color: var(--brand-text-dark); }

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-list li {
    padding: .5rem 0;
    border-bottom: 1px solid #f1f3f6;
    display: flex;
    align-items: center;
}
.about-list li:last-child { border-bottom: 0; }
.about-bullet {
    color: var(--brand-primary);
    margin-right: .85rem;
    width: 22px;
    text-align: center;
    font-size: 1rem;
}
.about-list.two-col {
    column-count: 2;
    column-gap: 1.5rem;
}
.about-list.two-col li { break-inside: avoid; }

.info-card {
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.info-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15,76,129,0.1);
}
.info-icon {
    width: 46px; height: 46px;
    margin: 0 auto .65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.info-title {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: #6c757d;
    margin-bottom: .35rem;
}
.info-text { font-size: .92rem; color: var(--brand-text-dark); line-height: 1.35; }

/* ============================================================
   Gallery section
   ============================================================ */
.gallery-card {
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15,76,129,0.15);
}
.gallery-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9ecef;
}
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.gallery-card:hover .gallery-image { transform: scale(1.06); }

.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,76,129,0) 50%, rgba(15,76,129,0.55) 100%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity .25s ease;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }

.gallery-body {
    padding: 1rem 1.1rem 1.15rem;
    flex: 1 1 auto;
}
.gallery-title {
    font-weight: 700;
    color: var(--brand-text-dark);
    margin-bottom: .35rem;
    font-size: 1rem;
}
.gallery-caption {
    font-size: .85rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 700; }
.hero-stats span { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; opacity: .8; }

.hero-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(6px);
}
.hero-card-header { font-weight: 600; margin-bottom: 1rem; font-size: 1.05rem; }
.hero-card-list { list-style: none; padding: 0; margin: 0; }
.hero-card-list li { padding: .4rem 0; font-size: .95rem; }
.hero-card-list li i { margin-right: .5rem; }

/* ---------- Sections ---------- */
.section-light    { background: var(--brand-bg-soft); padding: 4rem 0; }
.section-default  { background: #fff; padding: 4rem 0; }
.section-header h2 { font-weight: 700; margin-bottom: .25rem; }

/* ---------- Sport cards ---------- */
.sport-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15,76,129,0.06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.sport-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15,76,129,0.12);
}
.sport-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}
.sport-name { font-weight: 700; margin-bottom: .25rem; }
.sport-meta { margin-bottom: .5rem; }
.sport-price { color: var(--brand-text-dark); margin-bottom: 0; }
.sport-price strong { font-size: 1.1rem; color: var(--brand-primary); }

/* ---------- Court cards ---------- */
.court-card {
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.court-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 6px 18px rgba(15,76,129,0.10);
}
.court-sport-tag {
    background: var(--brand-bg-soft);
    color: var(--brand-primary);
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.court-rate strong {
    color: var(--brand-primary);
    font-size: 1.25rem;
}

/* ---------- CTA ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    color: #fff;
    padding: 3.5rem 0;
}
.cta-section h3 { font-weight: 700; }
.cta-section .btn-light { color: var(--brand-primary); font-weight: 600; }
.cta-section .btn-outline-light:hover { color: var(--brand-primary); }

/* ---------- Content wrapper override (layout-top-nav) ---------- */
.layout-top-nav .content-wrapper {
    min-height: calc(100vh - 57px - 53px);
    background: #fff;
}

/* ---------- Footer ---------- */
.main-footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767.98px) {
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-image { padding: 4rem 0 5rem; }
    .section-light, .section-default { padding: 2.5rem 0; }
    .quick-widget-section { margin-top: -2rem; }
    .quick-widget { padding: 1.25rem 1rem .75rem; }
    .about-list.two-col { column-count: 1; }
    .about-card-header h4 { font-size: 1.1rem; }
}

/* ============================================================
   Booking flow
   ============================================================ */
.booking-card {
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(15,76,129,0.04);
}
.booking-card .card-header {
    background: #fff;
    border-bottom: 1px solid #eef0f5;
    font-weight: 600;
    color: var(--brand-primary);
}

/* Slot grid */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: .5rem;
    margin-top: .25rem;
}
.slot-btn {
    background: #fff;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    padding: .5rem .25rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--brand-text-dark);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .1s ease;
    text-align: center;
}
.slot-btn:hover:not(:disabled) {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: #f4f9ff;
}
.slot-btn.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(15,76,129,0.18);
}
.slot-btn.slot-unavailable {
    background: #f4f5f7;
    color: #98a0ad;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Payment options */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
.payment-option { margin: 0; cursor: pointer; }
.payment-option input { display: none; }
.payment-option-card {
    border: 2px solid #e3e6f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: border-color .15s ease, background .15s ease;
}
.payment-option-card i { font-size: 1.5rem; color: var(--brand-primary); display: block; margin-bottom: .35rem; }
.payment-option-card strong { display: block; margin-bottom: .15rem; }
.payment-option-card small { display: block; line-height: 1.25; }
.payment-option input:checked + .payment-option-card {
    border-color: var(--brand-primary);
    background: #f4f9ff;
}

/* Summary */
.booking-summary {
    border: 1px solid #e3e6f0;
    border-radius: 12px;
}
.booking-summary .card-header {
    background: var(--brand-primary);
    color: #fff;
    border-bottom: 0;
    font-weight: 600;
}
.summary-list {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: .35rem .75rem;
    margin: 0;
    font-size: .92rem;
}
.summary-list dt { font-weight: 500; color: #6c757d; }
.summary-list dd { margin: 0; color: var(--brand-text-dark); font-weight: 500; }
.summary-total { font-size: 1.4rem; font-weight: 700; color: var(--brand-primary); }

/* Confirmation page */
.confirmation-hero {
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(15,76,129,0.06);
}
.confirmation-check {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #d4edda;
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}
.confirmation-ref {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--brand-bg-soft);
    border: 1px dashed var(--brand-primary);
    border-radius: 10px;
    padding: .75rem 1.5rem;
}
.confirmation-ref .label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6c757d;
}
.confirmation-ref .value {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: 1px;
}
.confirmation-amount { font-size: 1.2rem; color: var(--brand-primary); }

/* ---------- Payment proof upload & thumbnails ---------- */
.proof-upload-form { padding: .75rem; background: #f4f9ff; border: 1px dashed var(--brand-primary); border-radius: 8px; }
.proof-upload-form .form-control-file { padding: .35rem 0; }
.proof-uploaded { text-align: left; }
.proof-thumbnail-lg {
    max-width: 280px;
    max-height: 220px;
    border-radius: 8px;
    border: 1px solid #e3e6f0;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(15,76,129,0.08);
    cursor: zoom-in;
    transition: transform .15s ease, box-shadow .15s ease;
}
.proof-thumbnail-lg:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 14px rgba(15,76,129,0.15);
}
.proof-thumbnail {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    border: 1px solid #e3e6f0;
    object-fit: cover;
    cursor: zoom-in;
    transition: border-color .15s ease, transform .15s ease;
}
.proof-thumbnail:hover {
    border-color: var(--brand-primary);
    transform: scale(1.06);
}
.proof-modal-image {
    max-height: 75vh;
    max-width: 100%;
    background: #000;
}

/* Find Availability — slot buttons */
.availability-card .card-header { background: #fff; }
.availability-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .5rem;
    padding: .25rem;
}
.availability-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    padding: .55rem .25rem;
    color: var(--brand-text-dark);
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.availability-slot-btn:hover {
    border-color: var(--brand-primary);
    background: #f4f9ff;
    color: var(--brand-primary);
    text-decoration: none;
    transform: translateY(-1px);
}
.availability-slot-btn .time { font-weight: 600; font-size: .9rem; line-height: 1.2; }
.availability-slot-btn .price { font-size: .8rem; color: var(--brand-primary); margin-top: .25rem; }

/* ============ NAVBAR LOGO (CMS-driven) ============ */
.navbar-logo {
    max-height: 36px;
    max-width: 140px;
    object-fit: contain;
    vertical-align: middle;
}

/* ============ PRINT RECEIPT (mobile-friendly) ============ */
.receipt-page {
    background: #f4f5f9;
    padding: 28px 14px 60px;
    min-height: 100vh;
}
.receipt-card {
    background: #fff;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(20,20,40,.10);
    overflow: hidden;
}
.receipt-header {
    background: linear-gradient(135deg, var(--brand-primary, #0d3b66), #0a2a4f);
    color: #fff;
    padding: 22px 24px;
    text-align: center;
}
.receipt-header .brand { font-size: 1.3rem; font-weight: 700; letter-spacing: .5px; }
.receipt-header .tagline { font-size: .82rem; opacity: .85; }
.receipt-body { padding: 26px 24px 8px; }
.receipt-ref {
    text-align: center;
    border: 2px dashed #c8ccd6;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 22px;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 1.05rem;
}
.receipt-ref .label { display: block; font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: #6b7280; }
.receipt-ref .value { font-weight: 700; color: var(--brand-primary, #0d3b66); }
.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid #eef0f4;
    font-size: .95rem;
}
.receipt-row:last-of-type { border-bottom: 0; }
.receipt-row .label { color: #6b7280; flex: 0 0 40%; }
.receipt-row .value { color: #1c1f2a; font-weight: 600; text-align: right; }
.receipt-amount { font-size: 1.4rem; color: var(--brand-primary, #0d3b66); font-weight: 700; }
.receipt-actions {
    display: flex; gap: 10px; justify-content: center;
    padding: 18px 18px 6px; flex-wrap: wrap;
}
.receipt-actions .btn { min-width: 150px; }
.receipt-footer {
    text-align: center;
    font-size: .8rem;
    color: #6b7280;
    padding: 0 24px 24px;
}
.receipt-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.badge-confirmed   { background: #e6f7ee; color: #1f7a4d; }
.badge-pending     { background: #fff5e1; color: #9a6500; }
.badge-forapproval { background: #e3f2fd; color: #0c5460; }
.badge-cancelled   { background: #fde9e9; color: #b3261e; }
.badge-completed   { background: #e6f0fb; color: #0d3b66; }
.badge-approved    { background: #e6f7ee; color: #1f7a4d; }
.badge-submitted   { background: #e3f2fd; color: #0c5460; }
.badge-unpaid      { background: #fde9e9; color: #b3261e; }

@media print {
    @page { size: A4; margin: 12mm; }
    body { background: #fff !important; }
    .no-print, .receipt-actions, .main-header, .main-footer, nav, header, footer { display: none !important; }
    .content-wrapper, body { margin: 0 !important; padding: 0 !important; }
    .receipt-page { background: #fff !important; padding: 0 !important; }
    .receipt-card { box-shadow: none !important; border: 1px solid #e6e8ee; max-width: 100% !important; }
}
