:root {
    --primary-green: #198754;
    --hover-green: #157347;
    --light-green: #e9f7ef;
    --dark-text: #2c3e50;
    --light-text: #777;
    --border-color: #e9ecef;
}

body {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--dark-text);
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--dark-text);
    font-weight: 700;
}

.text-success {
    color: var(--primary-green) !important;
}

/* Form Styles */
.form-label.required:after {
    content: " *";
    color: #dc3545; /* Bootstrap danger color */
    margin-left: 2px;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: white;
}

.interactive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-green);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
    border: none;
    box-shadow: 0 4px 6px rgba(25, 135, 84, 0.2);
    transition: all 0.2s ease;
}

.btn-success:hover {
    background-color: var(--hover-green);
    border-color: var(--hover-green);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(25, 135, 84, 0.3);
}

.btn-success:disabled,
.btn-secondary:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary,
.btn-outline-secondary {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
}

.btn-outline-success {
    color: var(--primary-green);
    border-color: var(--primary-green);
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
}

.btn-outline-success:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

/* Radio & Checkbox Controls */
.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.form-check-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

/* Horizontal Rule */
hr {
    border: 0;
    border-top: 1px solid #e9ecef;
    opacity: 0.75;
    margin: 1rem 0;
}

/* Focus Indicators (Accessibility) */
.form-control:focus,
.form-select:focus,
.btn:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-indicator i {
    font-size: 0.9rem;
}

.status-success {
    background-color: #e6f4ea;
    color: #1e7e34;
}

.status-pending {
    background-color: #fff8e1;
    color: #b08900;
}

.status-cancelled {
    background-color: #fce8e6;
    color: #d93025;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-family: 'Prata', serif;
    font-weight: 400;
}

.nav-link {
    color: var(--dark-text);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-green);
}

/* List Groups */
.list-group-item {
    border-color: var(--border-color);
    padding: 1rem 1.25rem;
}

.list-group-item:hover {
    background-color: var(--light-green);
}

.list-group-item.active {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Progress Bars */
.progress {
    background-color: var(--light-green);
}

.progress-bar {
    background-color: var(--primary-green);
}

/* Badges */
.badge.bg-success {
    background-color: var(--primary-green) !important;
}

/* Icons */
.bi {
    vertical-align: -0.125em;
}

/* Mobile Optimizations */
@media (max-width: 991.98px) {
    /* Reduce padding on mobile */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Adjust heading sizes for mobile */
    h1 {
        font-size: 1.75rem;
    }

    /* Reduce card margins on mobile */
    .card {
        margin-bottom: 1rem;
    }

    /* Make navbar dropdown menu full width on mobile */
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin-top: 0.5rem;
    }

    /* Ensure proper spacing in mobile menu */
    .navbar-collapse .list-group-item {
        border: none;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Adjust status icons size on mobile */
    .rounded-circle {
        padding: 0.5rem !important;
    }

    /* Make text smaller on mobile */
    .small {
        font-size: 0.75rem;
    }

    /* Adjust card padding on mobile */
    .card-body {
        padding: 1rem;
    }

    /* Improve touch targets on mobile */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* Reduce spacing between sections */
    .mb-4 {
        margin-bottom: 1rem !important;
    }

    /* Make status icons more compact */
    .status-icon {
        font-size: 1.25rem;
    }

    /* Invoice Section */
    .invoice-section {
        position: relative;
        top: 0;
    }
}

/* Override Bootstrap's default active state colors for list group items */
.list-group-item.active {
    background-color: #198754 !important; /* Bootstrap's success color */
    border-color: #198754 !important;
}

/* Hover state for active items */
.list-group-item.active:hover {
    background-color: #157347 !important; /* Slightly darker shade for hover */
    border-color: #157347 !important;
}

/* Dropdown Menu */
.dropdown-item:active {
    background-color: var(--primary-green);
}

.dropdown-item:hover {
    background-color: var(--light-green);
    color: var(--primary-green);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1 0 auto;
}

.footer {
    margin-top: auto;
    background-color: #198754;
    color: white;
    width: 100%;
}

/* Accommodation page specific styles */
.invoice-section {
    position: sticky;
    top: 1rem;
    z-index: 10;
    border-radius: 1rem;
    overflow: hidden;
}

.invoice-section .card-body {
    background-color: #fff;
}

.invoice-section h2 {
    color: var(--dark-text);
    font-weight: 600;
}

.invoice-section h3 {
    color: var(--dark-text);
    font-weight: 500;
}

.invoice-section .text-muted {
    color: #6c757d !important;
}

.invoice-section .btn-success {
    font-weight: 500;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

.invoice-section .text-danger {
    font-size: 0.875rem;
}

.profile-dropdown {
    z-index: 1050;
}

.navbar {
    z-index: 1050;
}

.guest-results {
    position: absolute;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.guest-result-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.guest-result-item:hover {
    background-color: #f8f9fa;
}

.guest-result-item:last-child {
    border-bottom: none !important;
}

/* Pagination Styling */
.page-item.active .page-link {
    background-color: #198754;  /* Bootstrap's success green */
    border-color: #198754;
}

.page-link {
    color: #198754;
}

.page-link:hover {
    color: #157347;  /* Darker shade of green for hover */
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.disabled .page-link {
    color: #6c757d;
}

/* Footer Styles */
footer {
    background-color: #198754;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer .nav-link {
    color: #fff;
}

footer .nav-link:hover {
    color: #e9ecef;
}

footer a:hover {
    color: #e9ecef;
    text-decoration: underline;
}

/* Typography Helper Classes */
.font-serif {
    font-family: 'Lora', 'Merriweather', serif;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Card Hover Effects */
.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}