@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body, html {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;           /* A slightly larger base size is easier to read */
    font-weight: 400;          /* 400 is the "regular" weight */
    line-height: 1.6;          /* This is the space between lines of text, crucial for readability */
    color: var(--cou-text);    /* Uses the dark grey text color you already defined */
    -webkit-font-smoothing: antialiased; /* Makes text look smoother on Mac/iOS */
    -moz-osx-font-smoothing: grayscale;    /* Makes text look smoother on Firefox */
}

/* 3. Style All Headings (h1, h2, h3, etc.) */
/* This makes headings stand out with a bolder weight. */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif; /* Ensures headings also use Inter */
    font-weight: 600;                 /* 600 is "Semi-Bold", which is strong but not overly heavy */
    color: var(--cou-text);           /* You can change this to var(--cou-primary) for colored headings */
    line-height: 1.3;                 /* Headings look better with slightly less line spacing */
    margin-bottom: 0.75em;            /* Adds proper spacing below each heading */
}

/* 4. Ensure Buttons and Form Inputs Inherit the Font */
/* Sometimes these elements don't automatically use the body font, so we force it. */
button, input, select, textarea {
    font-family: 'Inter', sans-serif;
}
/* ============= VARIABLES ============= */
:root {
    --cou-primary: #049FCB;
    --cou-primary-dark: #037ea3;
    --cou-secondary: #f8f9fa;
    --cou-text: #333;
    --cou-border: #ddd;
    --cou-error: #dc3545;
    --cou-success: #28a745;
    --cou-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --cou-radius: 8px;
}



/* ============= GENERAL STYLES ============= */

.cou-form-group .cou-input-invalid {
    border-color: var(--cou-error);
}

.cou-form-group .cou-input-invalid:focus {
    border-color: var(--cou-error);
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

.cou-form-group .cou-input-valid {
    border-color: var(--cou-success);
}

.cou-form-group .cou-input-valid:focus {
    border-color: var(--cou-success);
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

/* ============= BUTTON STYLING OVERRIDE ============= */
.cou-form-actions .cou-btn-primary {
    background-color: var(--cou-primary);
    color: white;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}
.cou-form-actions .cou-btn-primary:hover {
    background-color: var(--cou-primary-dark);
}
.cou-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--cou-radius);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cou-btn-primary {
    background: var(--cou-primary);
    color: white;
}

.cou-btn-primary:hover {
    background: var(--cou-primary-dark);
    color: white;
}

.cou-btn-secondary {
    background: var(--cou-secondary);
    color: var(--cou-text);
    border: 1px solid var(--cou-border);
}

.cou-btn-secondary:hover {
    background: #e9ecef;
}

.cou-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.cou-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}



.cou-listing-card .cou-fav-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 3 !important;

    /* Force a perfect circle */
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    
    background-color: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    color: white !important;

    /* Flexbox to perfectly center the icon */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
}

/* Ensure there's no text */
.cou-listing-card .cou-fav-btn span {
    display: none !important;
}

/* Simple hover effect */
.cou-listing-card .cou-fav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8) !important;
    transform: scale(1.1); /* Add a subtle pop on hover */
}

/* --- ACTIVE (SAVED) STATE --- */
.cou-listing-card .cou-fav-btn.active {
    background-color: #e74c3c !important;
    border-color: #fff !important;
    color: white !important;
    animation: pop 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28); /* Pop on success */
}

/* Optional: Add pop animation keyframes if you don't have them */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}


#couPostForm input[readonly] {
    background-color: #f0f2f5 !important;
    cursor: not-allowed;
    border-style: dashed !important;
    color: #555 !important;
}

/* Style the VIN input group */
#cou-vin-lookup-step .cou-input-group {
    display: flex;
    gap: 10px;
}

#cou-vin-lookup-step .cou-input-group input {
    flex-grow: 1; /* Allows the input to take up available space */
}

#cou-vin-lookup-step .cou-input-group button {
    flex-shrink: 0; /* Prevents the button from shrinking */
}

/* Ensure the main title is readonly *only* when posting a car */
#couCarFields:visible ~ .cou-form-grid-wrapper #couTitleInput {
    background-color: #f0f2f5 !important;
    cursor: not-allowed;
    border-style: dashed !important;
    color: #555 !important;
}
.cou-field-hint {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
    font-style: italic;
}
.vin-filled,
select.vin-filled {
    background-color: #f0f8ff !important;
    border-color: #4CAF50 !important;
    cursor: not-allowed;
    opacity: 0.85;
}

.vin-filled::after {
    content: '✓ Verified';
    font-size: 11px;
    color: #4CAF50;
    font-weight: 600;
    margin-left: 8px;
}
/* On mobile, stack the VIN decode button below the input */
@media (max-width: 500px) {
    #cou-vin-lookup-step .cou-input-group {
        flex-direction: column;
    }
}

.cou-filter-item input::placeholder {
    color: var(--cou-text) !important; /* Your theme's dark text color (#333) */
    font-weight: 600 !important;       /* Semi-bold to match other fields */
    opacity: 1;                        /* Prevents browsers from fading the color */
}

/* Cross-browser compatibility for different vendor prefixes */
.cou-filter-item input::-webkit-input-placeholder {
    color: var(--cou-text) !important;
    font-weight: 600 !important;
}

.cou-filter-item input:-ms-input-placeholder {
    color: var(--cou-text) !important;
    font-weight: 600 !important;
}
/* FIX: Ensure Select2 container takes full width of parent */
.select2-container--default {
    width: 100% !important;
}

/* 1. Style the main, visible dropdown box with the CORRECT height */
.select2-container--default .select2-selection--single {
    height: 46px !important; /* CORRECTED: The proper height for your theme's inputs */
    border: 2px solid var(--cou-border) !important;
    border-radius: var(--cou-radius) !important;
    transition: all 0.3s ease !important;
}

/* 2. Style BOTH the selected text and the placeholder text */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--cou-text) !important; /* Your theme's dark text color (#333) */
    font-weight: 600 !important;       /* Makes the font semi-bold */
    font-size: 15px !important;        /* Matches other filter inputs */
    line-height: 41px !important;      /* PERFECTLY centers text (45px height - 4px border) */
    padding-left: 8px !important;
}

/* 3. Style the dropdown arrow to be correctly centered */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 8px !important;
}

/* 4. Style the focus effect (when open) */
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--cou-primary) !important;
    box-shadow: 0 0 0 3px rgba(4, 159, 203, 0.2) !important;
}

/* --- Styles for the open dropdown panel (no changes needed here) --- */
.select2-dropdown {
    border: 1px solid var(--cou-border) !important;
    border-radius: var(--cou-radius) !important;
    box-shadow: var(--cou-shadow) !important;
    margin-top: 0 !important; /* FIX: Remove gap between field and dropdown */
    top: 100% !important; /* FIX: Position dropdown directly below field */
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    outline: none !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--cou-primary) !important;
    color: white !important;
}

/* For filter dropdowns */
.cou-filter-item .select2-container {
    font-size: 14px;
}

.select2-container--default .select2-selection__clear {
    /* Appearance */
    font-size: 24px;      /* Makes the '×' character larger and easier to click */
    color: #999;           /* A neutral gray for the default state */
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s ease;

    /* Positioning (This is the key fix) */
    position: absolute;
    top: 50%;             /* Start from the middle */
    right: 35px;          /* Place it to the left of the main dropdown arrow */
    transform: translateY(-50%); /* Perfectly center it vertically */
    
    /* Remove any default styles that might interfere */
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
}

.select2-container--default .select2-selection__clear:hover {
    color: var(--cou-error) !important; /* Use your theme's red on hover */
}


/* ============================================
   MESSAGING SYSTEM STYLES
   ============================================ */

/* Message Button on Single Listing */
.cou-btn-message {
    background: linear-gradient(135deg, #2ecc71 0%, #28b661 100%) !important;
}
.cou-btn-message:hover {
    background: linear-gradient(135deg, #29b765 0%, #25a95a 100%) !important;
}

/* Message Modal */
#cou-message-modal .cou-modal-body {
    padding: 25px;
}
#cou-message-modal textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    min-height: 120px;
    resize: vertical;
}
#cou-send-message-response.success {
    padding: 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 6px;
    text-align: center;
}
#cou-send-message-response.error {
    padding: 12px;
    background: #fbe9e7;
    color: #c62828;
    border-radius: 6px;
    text-align: center;
}

/* Messages Page Layout */
.cou-messages-page {
    height: calc(100vh - 200px);
    min-height: 600px;
    max-width: 100%;
    margin: 0px;
    padding: 20px;
}

.cou-messages-layout {
    display: flex;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============================================================
   CONVERSATIONS LIST (LEFT SIDE)
   ============================================================ */
#couPostForm input[readonly] {
    background-color: #f0f2f5 !important;
    cursor: not-allowed;
    border-style: dashed !important;
    color: #555 !important;
}

/* Style the VIN input group */
#cou-vin-lookup-step .cou-input-group {
    display: flex;
    gap: 10px;
}

#cou-vin-lookup-step .cou-input-group input {
    flex-grow: 1; /* Allows the input to take up available space */
}

#cou-vin-lookup-step .cou-input-group button {
    flex-shrink: 0; /* Prevents the button from shrinking */
}

/* Ensure the main title is readonly *only* when posting a car */
#couCarFields:visible ~ .cou-form-grid-wrapper #couTitleInput {
    background-color: #f0f2f5 !important;
    cursor: not-allowed;
    border-style: dashed !important;
    color: #555 !important;
}

/* On mobile, stack the VIN decode button below the input */
@media (max-width: 500px) {
    #cou-vin-lookup-step .cou-input-group {
        flex-direction: column;
    }
}
.cou-conversations-list {
    width: 350px;
    border-right: 1px solid #e8ecef;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 100%;
    flex-shrink: 0;
}

.cou-conversations-header {
    padding: 20px;
    border-bottom: 1px solid #e8ecef;
    background: #049fcb;
	
    flex-shrink: 0;
}

.cou-conversations-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.cou-conversations-body {
    flex: 0 1 auto;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}
.cou-conversation-item:last-child {
    border-bottom: none;
}

.cou-conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin: 0 !important;
    border-bottom: 1px solid #e8ecef;
    cursor: pointer;
    transition: background 0.2s;
}

.cou-conversation-item:hover {
    background: #f8f9fa;
}

.cou-conversation-item.active {
    background: #e3f2fd;
    border-left: 3px solid #068EB7;
}

.cou-conversation-item.unread {
    background: #f0f9ff;
}

.cou-convo-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.cou-convo-thumb.cou-no-thumb {
    background: #e8ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
}


.cou-convo-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.cou-convo-user,
.cou-convo-listing,
.cou-convo-excerpt {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.cou-convo-user {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}

.cou-convo-listing {
    font-size: 13px;
    color: #666;
}

.cou-convo-excerpt {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.cou-convo-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.cou-convo-time {
    font-size: 12px;
    color: #999;
}
.cou-convo-time {
    margin: 0 !important;
    padding: 0 !important;
}

.cou-unread-badge {
    background: #068EB7;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.cou-no-conversations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    gap: 15px;
    padding: 40px;
    text-align: center;
    margin: 0;
}

.cou-no-conversations i {
    font-size: 48px;
}

/* ============================================================
   MESSAGE VIEW (RIGHT SIDE) - CRITICAL LAYOUT
   ============================================================ */

#cou-message-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.cou-message-view-header {
    padding: 20px;
    border-bottom: 1px solid #e8ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.cou-message-header-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cou-listing-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cou-listing-thumb.cou-no-image {
    background: #e8ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 24px;
}

.cou-message-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cou-convo-with {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.cou-regarding {
    font-size: 14px;
    color: #068EB7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cou-regarding:hover {
    text-decoration: underline;
}

.cou-btn-delete {
    margin-left: auto;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.cou-btn-delete:hover {
    background: #c82333;
}

.cou-message-view-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f5f7f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cou-message-view-footer {
    padding: 20px;
    border-top: 1px solid #e8ecef;
    background: #fff;
    flex-shrink: 0;
}

.cou-message-view-footer form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.cou-message-view-footer textarea {
    flex: 1;
    min-height: 45px;
    max-height: 120px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s;
}

.cou-message-view-footer textarea:focus {
    outline: none;
    border-color: #068EB7;
}

.cou-message-view-footer button[type="submit"] {
    padding: 12px 20px;
    background: #068EB7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.cou-message-view-footer button[type="submit"]:hover {
    background: #057199;
}

.cou-message-view-footer button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================
   CHAT BUBBLES
   ============================================================ */

.cou-chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cou-chat-bubble.sender {
    background: #068EB7;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.cou-chat-bubble.receiver {
    background: #e8ecef;
    color: #1a1a1a;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.cou-chat-bubble p {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

.cou-chat-timestamp {
    font-size: 11px;
    opacity: 0.7;
    display: block;
}

.cou-message-view-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    gap: 10px;
}

.cou-message-view-placeholder i {
    font-size: 48px;
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */

.cou-conversations-body::-webkit-scrollbar,
.cou-message-view-body::-webkit-scrollbar {
    width: 6px;
}

.cou-conversations-body::-webkit-scrollbar-track,
.cou-message-view-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cou-conversations-body::-webkit-scrollbar-thumb,
.cou-message-view-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.cou-conversations-body::-webkit-scrollbar-thumb:hover,
.cou-message-view-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .cou-messages-page {
        height: calc(100vh - 80px);
        padding: 0;
        margin: 0;
    }
    
    .cou-messages-layout {
        border-radius: 10px;
        flex-direction: column;
    }
    
    /* Conversation List Mobile */
    .cou-conversations-list {
        width: 100%;
        max-height: 35vh;
        border-right: none;
        border-bottom: 2px solid #e8ecef;
    }
    
    .cou-conversations-header {
        padding: 12px 15px;
    }
    
    .cou-conversations-header h3 {
        font-size: 16px;
    }
    
    .cou-conversation-item {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .cou-convo-thumb {
        width: 45px;
        height: 45px;
    }
    
    .cou-convo-thumb.cou-no-thumb {
        font-size: 18px;
    }
    
    /* Message View Mobile */
    #cou-message-view {
        height: 65vh;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .cou-message-view-header {
        padding: 10px 15px;
        flex-shrink: 0 !important;
    }
    
    .cou-message-header-top {
        gap: 10px;
        align-items: flex-start;
    }
    
    .cou-listing-thumb {
        width: 40px !important;
        height: 40px !important;
        margin-top: 0;
    }
    
    .cou-listing-thumb.cou-no-image {
        font-size: 16px;
        padding: 0;
    }
    
    .cou-message-header-info {
        gap: 2px;
        flex: 1;
    }
    
    .cou-convo-with {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .cou-regarding {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .cou-btn-delete {
        padding: 0 !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 16px !important;
        margin: 0 !important;
    }
    
    .cou-btn-delete i {
        margin: 0 !important;
    }
    
    .cou-btn-delete span,
    .cou-btn-delete .fa + * {
        display: none !important;
    }
    
    /* Message Body - FIXED HEIGHT */
    .cou-message-view-body {
        padding: 15px;
        flex: 1 !important;
        overflow-y: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    
    .cou-chat-bubble {
        max-width: 80%;
        padding: 10px 14px;
    }
    
    .cou-chat-bubble p {
        font-size: 13px;
    }
    
    .cou-chat-timestamp {
        font-size: 10px;
    }
    
    /* Footer Input - ALWAYS VISIBLE */
    .cou-message-view-footer {
        padding: 10px 15px !important;
        flex-shrink: 0 !important;
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        bottom: 0 !important;
    }
    
    .cou-message-view-footer form {
        gap: 8px;
        display: flex !important;
    }
    
    .cou-message-view-footer textarea {
        min-height: 38px !important;
        max-height: 80px !important;
        padding: 9px 12px;
        font-size: 14px;
        flex: 1 !important;
    }
    
    .cou-message-view-footer button[type="submit"] {
        padding: 0 !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        font-size: 16px !important;
    }
    
    .cou-message-view-footer button[type="submit"] span {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .cou-messages-page {
        height: calc(100vh - 60px);
    }
    
    .cou-conversations-list {
        max-height: 30vh;
    }
    
    #cou-message-view {
        height: 70vh;
    }
}
@media (max-width: 768px) {
    #cou-delete-convo {
        font-size: 0 !important;
        padding: 0 !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    #cou-delete-convo i {
        font-size: 16px !important;
        margin: 0 !important;
    }
    
    #cou-delete-convo::before {
        content: '' !important;
    }
    
    #cou-delete-convo::after {
        content: '' !important;
    }
}
/* ============= FORMS ============= */
/* ============= IMPROVED POST LISTING FORM ============= */
.cou-post-listing {
    width: 100%;
    margin: 0;
    padding: 0;
	padding-bottom: 50px !important;
}
@media (min-width: 992px) {
    .cou-post-listing {
        width: 100%;
        margin-left: auto !important;  /* Force center */
        margin-right: auto !important; /* Force center */
    }
}

@media (max-width: 767px) {
    .cou-post-listing {
        max-width: 100%;
        padding: 15px;
    }
}

.cou-post-header {
    text-align: center;
    margin-bottom: 40px;
	margin-top: 40px;
}

.cou-post-header h2 {
    margin: 0 0 10px 0;
    color: var(--cou-primary);
    font-size: 32px;
}

.cou-post-header p {
    margin: 0;
    color: #666;
    font-size: 18px;
}

/* Type Selection Boxes */
.cou-type-selection {
    margin-bottom: 40px;
	margin-top: 25px;

}

.cou-type-selection h3 {
    margin: 0 0 20px 0;
    color: var(--cou-text);
    font-size: 22px;
}

.cou-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.cou-type-box {
    position: relative;
    cursor: pointer;
}

.cou-type-box input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cou-type-content {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: var(--cou-radius);
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.cou-type-box:hover .cou-type-content {
    border-color: var(--cou-primary);
    box-shadow: 0 4px 12px rgba(4, 159, 203, 0.2);
}

.cou-type-box input[type="radio"]:checked ~ .cou-type-content {
    border-color: var(--cou-primary);
    background: linear-gradient(135deg, rgba(4, 159, 203, 0.1) 0%, rgba(4, 159, 203, 0.05) 100%);
}

.cou-type-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #049FCB;
}

.cou-type-icon i {
    display: block;
}

.cou-type-box:hover .cou-type-icon {
    color: var(--cou-primary);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.cou-type-box input[type="radio"]:checked ~ .cou-type-content .cou-type-icon {
    color: var(--cou-primary);
}
@media (max-width: 768px) {

    /* 1. Style the new wrapper */
	.cou-horizontal-scroll-wrapper {
		position: relative; /* Keep this for the indicator positioning */
		/* The problematic margin and padding are now removed. */
	}

    /* 2. Style the gradient overlay (the indicator) */
    .cou-scroll-indicator {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 15px; /* Match the padding-bottom of the grid */
        width: 60px; /* How wide the fade effect is */
        
        /* The magic: a gradient from transparent to the background color */
        background: linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff 80%);
        
        pointer-events: none; /* Allows the user to click/drag "through" the overlay */
        transition: opacity 0.3s ease;
    }

    /* 3. Hide the indicator when scrolled to the end */
    .cou-type-grid:not(:hover) + .cou-scroll-indicator {
        opacity: 1; /* Default state */
    }
    
    /* A bit of JavaScript will be needed to hide this perfectly when scrolled to the end.
       This CSS provides a basic hide-on-hover effect as a fallback. */
    .cou-type-grid:hover + .cou-scroll-indicator {
        opacity: 0;
    }
}

#cou-toast-container {
	position: fixed;
	bottom: 25px;
	right: 25px;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: 15px;
	pointer-events: none; /* Allows clicking through the container */
}

.cou-toast {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 18px 24px;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
	min-width: 350px;
	max-width: 400px;
	color: white;
	font-weight: 500;
	opacity: 0;
	transform: translateX(100%);
	transition: all 0.4s cubic-bezier(0.215, 0.610, 0.355, 1);
	pointer-events: auto; /* Re-enable clicks on the toast itself */
}

.cou-toast.show {
	opacity: 1;
	transform: translateX(0);
}

.cou-toast i {
	font-size: 24px;
}

.cou-toast--success {
	background: linear-gradient(135deg, #28a745, #218838);
	border-left: 5px solid #1e7e34;
}

.cou-toast--error {
	background: linear-gradient(135deg, #dc3545, #c82333);
	border-left: 5px solid #b21f2d;
}

.cou-toast--info {
	background: linear-gradient(135deg, #17a2b8, #138496);
	border-left: 5px solid #117a8b;
}
.cou-type-content h4 {
    margin: 0 0 8px 0;
    color: var(--cou-text);
    font-size: 18px;
}

.cou-type-price {
    margin: 0 0 5px 0;
    color: var(--cou-primary);
    font-size: 20px;
    font-weight: 700;
}

.cou-type-desc {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Form Sections */
@media (min-width: 992px) {

    /*
     * This is the key selector. It targets the form sections ONLY on the
     * post listing page, but it EXCLUDES the "Featured" section at the bottom,
     * allowing that one to remain full-width for emphasis.
    */
    .cou-post-listing .cou-form-section:not(.cou-featured-section) {
        
        /* 1. Set a maximum width. This prevents the form from becoming
           too wide and hard to read on very large monitors. 800px is a
           comfortable width for forms. */
        max-width: 100%;

        /* 2. Use auto margins to horizontally center the element.
           We also restore the original bottom margin. */
        margin: 0 auto 25px auto !important;
		margin-right: 20px !important;
    }
}
.cou-form-section {
    background: white;
    border-radius: var(--cou-radius);
    padding: 30px;
	border: 1px solid var(--cou-border);
    margin-bottom: 25px;
    box-shadow: var(--cou-shadow);
}

.cou-form-section h3 {
    margin: 0 0 25px 0;
    color: var(--cou-text);
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--cou-primary);
}

.cou-form-row {
    display: grid;
    gap: 20px;
    margin-bottom: 0;
}
.cou-form-section .cou-form-row {
    margin-bottom: 20px;
}


.cou-form-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cou-form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cou-form-group {
}

.cou-form-group:last-child {
    margin-bottom: 0;
}



/* Reviews */

.cou-star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse; /* This is the key trick */
    justify-content: flex-end;
}
.cou-star-rating-input input { display: none; }
.cou-star-rating-input label {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}
.cou-star-rating-input label:before {
    content: '\f005'; /* Font Awesome star icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}
.cou-star-rating-input input:checked ~ label,
.cou-star-rating-input label:hover,
.cou-star-rating-input label:hover ~ label {
    color: #ffc107;
}

/* Review Form */
#cou-review-form {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
}
#cou-review-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Reviews List */
.cou-reviews-list {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}
.cou-review-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}
.cou-review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.cou-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.cou-review-author {
    font-weight: 600;
    color: #333;
}
.cou-review-comment {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.cou-review-date {
    font-size: 13px;
    color: #999;
}

/* Star Rating Display (for cards and lists) */
.cou-card-image-wrapper {
    position: relative;
    display: block; /* Ensures the wrapper behaves like a block element */
}

/* 2. Style the new "For Rent" / "For Sale" badge */
.cou-listing-status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2; /* Sits on top of the image */
    background-color: rgba(26, 26, 26, 0.8); /* Dark, semi-transparent background */
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(3px); /* Adds a modern frosted glass effect */
}

.cou-star-rating {
    color: #ffc107;
}
.cou-star-rating .far { /* Empty stars */
    color: #e0e0e0;
}
.cou-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.cou-review-count {
    font-size: 13px;
    color: #777;
    font-weight: 500;
}
/* File Input */
.cou-file-input {
    border: 2px dashed var(--cou-border);
    padding: 20px;
    border-radius: var(--cou-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cou-file-input:hover {
    border-color: var(--cou-primary);
    background: rgba(4, 159, 203, 0.05);
}

/* Featured Section */
.cou-featured-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

@media (min-width: 992px) {

    /* 1. Create the main two-column grid layout */
    .cou-post-listing-layout {
        display: grid;
        /* The form column is twice as wide as the sidebar */
        grid-template-columns: 2fr 1fr; 
        gap: 0px; /* Space between the form and the sidebar */
        align-items: start; /* Aligns both columns to the top */
    }
}

/* 2. Style the new sidebar and the tip cards within it */
.cou-form-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 0px;
    /* The 'position: sticky' and 'top: 20px' rules have been removed. */
}

.cou-tip-card {
    background: #fff;
    border-radius: var(--cou-radius);
    padding: 25px;
    border: 1px solid var(--cou-border);
    box-shadow: var(--cou-shadow);
	margin-bottom: 20px !important;
}

.cou-tip-card h3 {
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--cou-border);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cou-primary);
}

.cou-tip-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cou-tip-card li {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
}

/* Use a pseudo-element to create custom bullet points with icons */
.cou-tip-card li::before {
    content: '\f058'; /* Font Awesome check-circle icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--cou-success);
}

/* Use different icons for different cards */
.cou-tip-card:nth-of-type(2) li::before {
    content: '\f132'; /* Font Awesome shield-alt icon */
    color: #3498db; /* Blue for safety */
}
.cou-tip-card:nth-of-type(3) li::before {
    content: '\f071'; /* Font Awesome exclamation-triangle icon */
    color: #f39c12; /* Orange for warnings */
}

/* On mobile, remove the grid layout so columns stack naturally */
@media (max-width: 991px) {
    .cou-form-sidebar-column {
        margin-top: 40px; /* Add space above the tips on mobile */
    }
}
.cou-featured-checkbox {
    display: flex;
    /* THIS IS THE KEY FIX: Vertically centers the checkbox with the text block. */
    align-items: center; 
    gap: 15px; /* Slightly increased gap for better visual spacing */
    cursor: pointer;
    margin: 0;
}

.cou-featured-checkbox input[type="checkbox"] {
    /* The old top margin is no longer needed with center alignment, so we remove it. */
    margin-top: 0; 
    width: 20px;   /* Make the checkbox slightly larger and easier to click */
    height: 20px;
    cursor: pointer;
    flex-shrink: 0; /* This is good, it prevents the checkbox from shrinking */
}

.cou-featured-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 1;
}

.cou-featured-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.cou-featured-content > div {
    flex: 1;
}

.cou-featured-content strong {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.cou-featured-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Hover effect */


/* Checked state */
.cou-featured-checkbox input:checked ~ .cou-featured-content {
    color: #049FCB;
}

.cou-featured-checkbox input:checked ~ .cou-featured-content strong {
    color: #049FCB;
}
/* Package Notice */
.cou-package-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--cou-primary);
    color: white;
    border-radius: var(--cou-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: auto;
}

.cou-package-checkbox:hover {
    background: var(--cou-primary-dark);
    transform: translateY(-2px);
}

.cou-package-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cou-active-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cou-active-package-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cou-active-package-card:hover {
    border-color: var(--cou-primary);
    box-shadow: 0 4px 12px rgba(4, 159, 203, 0.15);
}

.cou-package-card-header {
    display: flex;
    align-items: center;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;

    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e0e0e0;
}

.cou-package-icon {
    width: 50px;
    height: 50px;
    background: var(--cou-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cou-package-icon i {
    font-size: 24px;
    color: white;
}

.cou-package-info-text {
    flex: 1;
}

.cou-package-info-text h4 {
    margin: 0 0 6px 0 !important;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.cou-package-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.cou-package-status-badge i {
    font-size: 10px;
}

.cou-package-card-body {
    padding: 20px;
}

.cou-package-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.cou-detail-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.cou-detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.cou-package-card-actions {
    padding: 0 20px 20px 20px;
}

.cou-active-package-card {
    overflow: visible !important;
}

/* 2. Style the actions area to align both buttons correctly */
.cou-package-card-actions {
    display: flex;
    justify-content: space-between; /* Puts space between items */
    align-items: center;
    padding: 0 20px 20px 20px; /* Restore original padding */
}

/* 3. Style the More Options menu wrapper and button */
.cou-more-options-wrapper {
    position: relative;
}

.cou-more-options-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.cou-more-options-btn:hover,
.cou-more-options-wrapper.active .cou-more-options-btn {
}

/* 4. Style the dropdown menu and fix the visibility issue */
.cou-more-options-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100; /* CRITICAL: This makes it appear on top of other content */
    overflow: hidden;
    min-width: 200px;
}

.cou-more-options-wrapper.active .cou-more-options-menu {
    display: block;
}

/* 5. Style the links inside the menu */
.cou-more-options-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.cou-more-options-menu a:hover {
    background-color: #f8f9fa;
}

.cou-more-options-menu a.cou-cancel-package {
    color: var(--cou-error);
}

.cou-more-options-menu a.cou-cancel-package i {
    color: var(--cou-error);
}

.cou-package-card-actions .cou-btn {
    width: 100%;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .cou-active-packages-grid {
        grid-template-columns: 1fr;
    }
}

/* Cart Styling */
.cou-package-cart {
    background: white;
    border-radius: var(--cou-radius);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--cou-shadow);
}

.cou-package-cart h3 {
    margin-top: 0;
    color: var(--cou-text);
    border-bottom: 2px solid var(--cou-primary);
    padding-bottom: 15px;
}

#couCartItems {
    margin: 20px 0;
}

.cou-cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
}

.cou-cart-total {
    padding: 20px 15px;
    font-size: 20px;
    text-align: right;
    border-top: 2px solid var(--cou-primary);
    margin-top: 15px;
}

.cou-cancel-package {
    width: 100%;
    margin-top: 10px;
}
.cou-package-notice {
    background: #e3f2fd;
    border: 2px solid #068EB7;
    border-radius: var(--cou-radius);
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}
.cou-checkout-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--cou-border);
}

.cou-checkout-form h4 {
    margin: 0 0 20px 0;
    color: var(--cou-text);
    font-size: 20px;
}

.cou-stripe-element {
    padding: 15px;
    border: 2px solid var(--cou-border);
    border-radius: var(--cou-radius);
    background: white;
    transition: border-color 0.3s ease;
}

.cou-stripe-element:focus-within {
    border-color: var(--cou-primary);
    box-shadow: 0 0 5px rgba(4, 159, 203, 0.3);
}

.cou-error-message {
    color: var(--cou-error);
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

.cou-payment-notice {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.cou-payment-notice i {
    color: var(--cou-success);
    margin-right: 5px;
}

#couSubmitPayment {
    width: 100%;
    position: relative;
}

#couButtonSpinner {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.cou-cart-items {
    margin-bottom: 20px;
}

.cou-package-notice p {
    margin: 0;
    color: #1565c0;
    font-size: 16px;
    font-weight: 600;
}

/* Form Actions */
.cou-form-actions {
    text-align: center;
    padding: 20px 0 0 0;
}

.cou-form-actions .cou-btn {
    min-width: 250px;
}

/* Conditional Sections */
.cou-conditional-section {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* in main/styles.css */

/* ==========================================================
   POST LISTING - MOBILE TYPE SELECTOR REHAUL
   ========================================================== */

/* This media query targets screens 768px wide or smaller */
@media (max-width: 768px) {

    /* 1. Turn the grid container into a horizontal scroller */
	.cou-type-grid {
		display: flex !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		gap: 12px !important;
		
		/* --- THIS IS THE FIX --- */
		padding-top: 10px !important; /* Adds space at the top for the lift effect */

		padding-bottom: 15px !important;
		scrollbar-width: none; /* Firefox */
	}
    .cou-type-grid::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }

    /* 2. Style each item to be a compact, fixed-width tab */
    .cou-type-box {
        flex: 0 0 140px !important; /* Don't grow, don't shrink, base width of 140px */
        scroll-snap-align: start;   /* (Optional) Aligns item to the start on snap */
    }

    /* 3. Adjust the content inside each tab to be more compact */
    .cou-type-content {
        padding: 20px 10px !important; /* Reduce padding */
        border-width: 2px !important;  /* Make border slightly thinner */
    }

    .cou-type-icon {
        font-size: 36px !important;    /* Make the icon smaller */
        margin-bottom: 12px !important;
    }

    .cou-type-content h4 {
        font-size: 16px !important;    /* Make the title smaller */
    }

    .cou-type-price {
        font-size: 16px !important;    /* Make the price smaller */
        font-weight: 600 !important;
    }

    .cou-type-desc {
        display: none !important;      /* Hide the description text to save space */
    }

    /* 4. Make the "checked" state more prominent */
    .cou-type-box input[type="radio"]:checked ~ .cou-type-content {
    }
}
/* Responsive */
@media (max-width: 768px) {
    .cou-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cou-form-row-2,
    .cou-form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .cou-form-section {
        padding: 20px;
    }
    
    .cou-post-header h2 {
        font-size: 24px;
    }
}


#couSubmitPayment {
    position: relative;
    min-height: 48px;
}

#couButtonSpinner {
    display: inline-block;
    margin-left: 10px;
}

.cou-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: cou-spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes cou-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .cou-type-grid {
        grid-template-columns: 1fr;
    }
}

.cou-post-listing,
.cou-my-account,
.cou-listing-page,
.cou-cars-page {
    max-width: 100%;
    margin: 0px;
    padding: 0px;
}

.cou-form-group {
}

.cou-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cou-text);
}
.cou-subtitle {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.cou-meta {
    margin: 5px 0;
    color: #999;
    font-size: 13px;
}
.cou-form-group input[type="text"],
.cou-form-group input[type="email"],
.cou-form-group input[type="tel"],
.cou-form-group input[type="number"],
.cou-form-group input[type="url"],
.cou-form-group select,
.cou-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: var(--cou-radius);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.cou-form-group input:focus,
.cou-form-group select:focus,
.cou-form-group textarea:focus {
    outline: none;
    border-color: var(--cou-primary);
}

.cou-form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 14px;
}

/* ============= FILTERS ============= */
/* ============= MODERN FILTERS ============= */
.cou-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.cou-listing-card > a > img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 2.5; /* Enforce the same aspect ratio */
    object-fit: cover;     /* Make the image cover the area */
    position: relative;
}

@media (max-width: 768px) {
    .cou-listing-card > a > img {
        height: 220px; /* You can adjust this height if needed for mobile */
    }
}

.cou-listing-card {
    background: white;
    border-radius: var(--cou-radius);
    overflow: hidden;
    box-shadow: var(--cou-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.cou-listing-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cou-listing-card.cou-featured {
    border: 2px solid var(--cou-primary);
}
.cou-featured-ribbon {
	/* Core Properties */
	position: absolute;
	padding: 8px 10px; /* Reduced padding since it's just an icon */
	background: var(--cou-primary, #068EB7);
	color: white;
	font-size: 16px; /* Larger for better visibility of the star */
	font-weight: 700;
	text-align: center;
	z-index: 2;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	/* Positioning for the Top-Left Corner */
	top: 10px !important;
	left: 10px !important;
	right: auto !important;
	transform: none !important; /* Remove rotation for cleaner look */
	border-radius: 4px !important; /* Small rounded corners */
}
.cou-listing-card a {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	color: white;
	height: 100%;
	}

.cou-card-image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 2.5;
    background-color: #f0f2f5; /* Background for the placeholder */
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden; /* Ensures badges don't poke out */
}

/* 2. MAKE THE IMAGE & PLACEHOLDER FILL THE WRAPPER */
.cou-card-image-wrapper img,
.cou-card-image-wrapper .cou-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image cover the area without distortion */
}

/* 3. STYLE THE "NO IMAGE" PLACEHOLDER */
.cou-card-image-wrapper .cou-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 600;
}

.cou-no-image i {
    font-size: 48px;
    color: #ccc;
}

.cou-is-featured-notice {
	display: flex;
	align-items: center;
	gap: 20px;
	background: #fffbe6;
	border: 2px solid #ffc107;
	padding: 20px;
	border-radius: 12px;
	color: #664d03;
}
.cou-is-featured-notice i {
	font-size: 32px;
	color: #ffc107;
}
.cou-is-featured-notice strong {
	display: block;
	font-size: 16px;
	color: #664d03;
}
.cou-is-featured-notice span {
	font-size: 14px;
}

.cou-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cou-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--cou-text);
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cou-card-content h3:hover {
    color: var(--cou-primary);
}

.cou-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.cou-card-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cou-price {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--cou-primary) !important;
    margin-bottom: 5px !important;
}

.cou-subtitle {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.cou-meta {
    margin: 0;
    color: #999;
    font-size: 13px;
}

.cou-mileage,
.cou-location {
    font-size: 14px;
    color: #666;
}

.cou-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.cou-location::before {
    content: "📍";
    font-size: 16px;
}


/* Category badges */
.cou-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--cou-secondary);
    color: var(--cou-text);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Listing page wrapper */
.cou-listing-page,
.cou-cars-page {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .cou-listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .cou-listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .cou-listing-card img,
    .cou-no-image {
        height: 180px;
    }
    
    .cou-card-content {
        padding: 15px;
    }
    
    .cou-card-content h3 {
        font-size: 16px;
    }
    
    .cou-price {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .cou-listings-grid {
        grid-template-columns: 1fr;
    }
}
.cou-page-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--cou-primary) 0%, var(--cou-primary-dark) 100%);
    border-radius: var(--cou-radius);
    color: white;
}


.cou-page-header h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    color: white;
}

.cou-page-header p {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
}

.cou-filters-modern {
    background: white;
    border-radius: var(--cou-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--cou-shadow);
	margin-top: 20px !important;
}

.cou-filter-form {
    width: 100%;
}

.cou-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.cou-filter-item {
    display: flex;
    flex-direction: column;
}

.cou-filter-item label {
    font-size: 14px;
    font-weight: 600;
    color: var(--cou-text);
    margin-bottom: 8px;
}

.cou-filter-item input,
.cou-filter-item select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--cou-border);
    border-radius: var(--cou-radius);
    font-size: 15px;
    transition: all 0.3s ease;
}

.cou-filter-item input:focus,
.cou-filter-item select:focus {
    outline: none;
    border-color: var(--cou-primary);
    box-shadow: 0 0 0 3px rgba(4, 159, 203, 0.1);
}

.cou-filter-actions {
    display: flex;
    gap: 10px;
}

.cou-filter-actions .cou-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cou-results-info {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--cou-secondary);
    border-radius: var(--cou-radius);
}

.cou-results-info p {
    margin: 0;
    font-size: 16px;
    color: var(--cou-text);
}

.cou-no-results {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.cou-no-results i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.cou-no-results h3 {
    margin: 0 0 10px 0;
    color: var(--cou-text);
    font-size: 24px;
}

.cou-no-results p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .cou-filter-grid {
        grid-template-columns: 1fr;
    }
    
    .cou-page-header {
        padding: 30px 20px;
    }
    
    .cou-page-header h1 {
        font-size: 28px;
    }
    
    .cou-filters-modern {
        padding: 20px;
		margin-top: 10px !important;
    }
}
/* ============= CAR SEARCH HERO ============= */
.cou-car-search-hero {
    background: linear-gradient(135deg, var(--cou-primary) 0%, var(--cou-primary-dark) 100%);
    color: white;
    padding: 60px 20px;
    border-radius: var(--cou-radius);
    margin-bottom: 40px;
    text-align: center;
}

.cou-car-search-hero h2 {
    margin: 0 0 30px 0;
    font-size: 32px;
    font-weight: 700;
}

.cou-search-form {
    max-width: 1000px;
    margin: 0 auto;
}

.cou-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.cou-search-grid select,
.cou-search-grid input {
    padding: 14px;
    border: none;
    border-radius: var(--cou-radius);
    font-size: 16px;
}

/* ============= MY ACCOUNT ============= */
/* ============= MY ACCOUNT PAGE - FULL WIDTH REDESIGNED ============= */
.cou-my-account {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Account Header */
.cou-account-header {
    display: flex;
    justify-content: space-between; /* This is the key change */
    align-items: center;
    flex-wrap: wrap; /* Allows stacking on small screens */
    gap: 20px;
    background: linear-gradient(135deg, var(--cou-primary) 0%, var(--cou-primary-dark) 100%);
    color: white;
    padding: 50px 40px;
    border-radius: var(--cou-radius);
    color: white;
    margin: 0 0 30px 0;

}

.cou-account-welcome {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cou-account-welcome i {
    font-size: 72px;
    opacity: 0.9;
}

.cou-account-welcome h2 {
    margin: 0;
    font-size: 36px;
    color: white;
    border: none;
}

.cou-account-welcome p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 18px;
}

/* Stats Overview */
.cou-account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 0 0 30px 0;
    padding: 0;
}

.cou-stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--cou-radius);
    box-shadow: var(--cou-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.cou-stat-card:hover {
    transform: translateY(-3px);
}

.cou-stat-card i {
    font-size: 48px;
    color: var(--cou-primary);
}

.cou-stat-card h3 {
    margin: 0;
    font-size: 36px;
    color: var(--cou-text);
    border: none;
}

.cou-stat-card p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

/* Account Section */
.cou-account-section {
    background: white;
    padding: 40px;
    border-radius: var(--cou-radius);
    box-shadow: var(--cou-shadow);
    margin: 0 0 30px 0;
}

.cou-section-header {
    margin: 0 0 30px 0;
    padding: 0 0 20px 0;
    border-bottom: 2px solid var(--cou-secondary);
}

.cou-section-header h3 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    color: var(--cou-text);
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
}

.cou-section-header i {
    color: var(--cou-primary);
    font-size: 24px;
}

/* Package Info */
.cou-package-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.cou-package-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cou-package-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cou-package-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cou-package-value {
    font-size: 20px;
    color: var(--cou-text);
    font-weight: 600;
}

.cou-package-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.cou-package-active {
    background: #d4edda;
    color: #155724;
}

.cou-package-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* No Package - Professional */
.cou-no-package {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--cou-radius);
}

.cou-no-package i {
    font-size: 56px;
    color: var(--cou-primary);
    margin: 0 0 20px 0;
}

.cou-no-package p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
}

/* Quick Actions */
.cou-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 0 0 30px 0;
    padding: 0;
}

.cou-action-btn {
    background: white;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: var(--cou-text);
    transition: all 0.3s ease;
    border-radius: var(--cou-radius) !important;
    box-shadow: var(--cou-shadow) !important;
}

.cou-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--cou-primary);
}

.cou-action-btn i {
    font-size: 36px;
    color: var(--cou-primary);
}

.cou-action-btn span {
    font-size: 18px;
    font-weight: 600;
}

/* Listing Category */
.cou-listing-category {
    margin: 0 0 50px 0;
    padding: 0;
}

.cou-listing-category:last-child {
    margin-bottom: 0;
}

.cou-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 25px 0;
    padding: 18px 25px;
    background: var(--cou-secondary);
    border-radius: var(--cou-radius);
    font-size: 20px;
    color: var(--cou-text);
}

.cou-category-title i {
    color: var(--cou-primary);
    font-size: 22px;
}

.cou-count {
    margin-left: auto;
    color: #666;
    font-size: 16px;
}

/* Account Listings Grid */
.cou-account-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 0;
    padding: 0;
}

.cou-account-listing-card {
    background: white;
    border: 1px solid var(--cou-border);
    border-radius: var(--cou-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.cou-account-listing-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.cou-card-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--cou-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cou-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--cou-secondary);
}

.cou-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cou-account-listing-card:hover .cou-card-image img {
    transform: scale(1.05);
}

.cou-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cou-card-no-image i {
    font-size: 56px;
    color: #ccc;
}

.cou-card-body {
    padding: 20px;
}

.cou-card-body h5 {
    margin: 0 0 15px 0;
    font-size: 17px;
    color: var(--cou-text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cou-card-meta {
    display: flex;
    gap: 18px;
    margin: 0 0 18px 0;
    font-size: 13px;
}

.cou-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.cou-status-publish {
    color: var(--cou-success);
}

.cou-status-pending {
    color: #ffc107;
}

.cou-status-draft {
    color: #6c757d;
}

.cou-card-date {
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cou-card-actions {
    display: flex;
    gap: 10px;
}

.cou-card-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--cou-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cou-btn-view {
    background: var(--cou-primary);
    color: white;
}

.cou-btn-view:hover {
    background: var(--cou-primary-dark);
    color: white;
}

.cou-btn-edit {
    background: #ffc107;
    color: #333;
}

.cou-btn-edit:hover {
    background: #e0a800;
    color: #333;
}

.cou-btn-delete {
    background: var(--cou-error);
    color: white;
}

.cou-btn-delete:hover {
    background: #c82333;
}

.cou-show-more-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-top: 15px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 6px;
    color: #049FCB;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cou-show-more-btn:hover {
    background: #e9ecef;
    border-color: #049FCB;
}

.cou-show-more-btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.cou-show-more-btn:hover i {
    transform: translateY(2px);
}

/* Hidden Listings */
.cou-listing-hidden {
    display: none;
}

/* Listing Category Spacing */
.cou-listing-category {
    margin-bottom: 40px;
}

.cou-category-title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}
/* No Listings */
.cou-no-listings {
    text-align: center;
    padding: 80px 40px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #ddd;
    margin: 20px 0;
}

.cou-no-listings i.fa-inbox {
    font-size: 72px;
    color: #d0d0d0;
    margin-bottom: 24px;
}

.cou-no-listings h4 {
    margin: 0 0 12px 0;
    font-size: 28px;
    color: #333;
    font-weight: 700;
}

.cou-no-listings p {
    margin: 0 0 30px 0;
    font-size: 16px;
    color: #666;
}

.cou-no-listings .cou-btn-primary {
    background: var(--cou-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.cou-no-listings .cou-btn-primary:hover {
    background: var(--cou-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 159, 203, 0.3);
}

.cou-no-listings .cou-btn-primary i {
    margin-right: 8px;
    font-size: 16px;
}

/* XML Feeds */



/* ============================================
   XML FEED & IMPORT STYLES
   ============================================ */

/* XML Feed Form */
.cou-xml-form {
    margin-bottom: 30px;
}

.cou-xml-form .cou-form-group {
    margin-bottom: 0;
}

.cou-xml-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.cou-input-group {
    display: flex;
    gap: 10px;
}

.cou-input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.cou-input-group input:focus {
    outline: none;
    border-color: #049FCB;
}

.cou-input-group button {
    flex-shrink: 0;
}

/* XML Feeds List */
.cou-feeds-list {
    margin-top: 20px;
}

/* Individual Feed Item */
.cou-feed-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.cou-feed-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Top row with info and buttons */
.cou-feed-item > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Feed Info Section */
.cou-feed-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 1;
}

.cou-feed-info i.fa-rss {
    font-size: 20px;
    color: #049FCB;
    margin-top: 2px;
    flex-shrink: 0;
}

.cou-feed-info > div {
    flex: 1;
    min-width: 0; /* Allows text to wrap properly */
}

.cou-feed-info strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 15px;
    word-break: break-all; /* Breaks long URLs */
}

.cou-feed-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Feed Status Badge */
.cou-feed-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.cou-status-active {
    background: #d4edda;
    color: #155724;
}

.cou-status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.cou-status-error {
    background: #fff3cd;
    color: #856404;
}

/* Feed Actions (Buttons) */
.cou-feed-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.cou-btn-small {
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
}

.cou-btn-small i {
    margin-right: 4px;
}

/* Import Progress Container */
.cou-import-progress {
    width: 100%;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #049FCB;
    margin-top: 0;
}

/* Processing State */
.cou-import-processing {
    text-align: center;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.cou-import-processing i {
    color: #049FCB;
    margin-right: 8px;
    font-size: 18px;
}

/* Import Results */
.cou-import-results {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cou-import-results > i {
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cou-import-success > i {
    color: #28a745;
}

.cou-import-error > i {
    color: #dc3545;
}

/* Import Stats */
.cou-import-stats {
    flex: 1;
}

.cou-import-stats strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

.cou-import-stats p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.cou-import-stats p strong {
    display: inline;
    margin: 0;
    font-size: inherit;
    color: #049FCB;
}

.cou-import-warning {
    color: #856404 !important;
}

/* Spinner Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Bar (if using indeterminate progress) */
.cou-progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.cou-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #049FCB, #037ba3);
    width: 100%;
    animation: progress-indeterminate 1.5s infinite;
}

@keyframes progress-indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Empty State (No Feeds) */
.cou-no-feeds {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cou-no-feeds i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cou-feed-item > div:first-child {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cou-feed-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .cou-feed-info {
        width: 100%;
    }
    
    .cou-input-group {
        flex-direction: column;
    }
    
    .cou-input-group button {
        width: 100%;
    }
    
    .cou-btn-small {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cou-feed-item {
        padding: 15px;
    }
    
    .cou-feed-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cou-feed-actions button {
        width: 100%;
    }
    
    .cou-import-progress {
        padding: 12px;
    }
    
    .cou-import-results {
        flex-direction: column;
        gap: 10px;
    }
    
    .cou-import-results > i {
        font-size: 20px;
    }
}



.cou-status-active {
    background: #d4edda;
    color: #155724;
}

/* Login Prompt */
.cou-account-login-prompt {
    max-width: 550px;
    margin: 100px auto;
    text-align: center;
    padding: 70px 50px;
    background: white;
    border-radius: var(--cou-radius);
    box-shadow: var(--cou-shadow);
}

.cou-account-login-prompt i {
    font-size: 72px;
    color: var(--cou-primary);
    margin: 0 0 25px 0;
}

.cou-account-login-prompt h3 {
    margin: 0 0 12px 0;
    font-size: 28px;
}

.cou-account-login-prompt p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .cou-account-header {
        padding: 35px 25px;
    }
    
    .cou-account-welcome {
        flex-direction: column;
        text-align: center;
    }
    
    .cou-account-welcome h2 {
        font-size: 28px;
    }
    
    .cou-account-welcome i {
        font-size: 56px;
    }
    
    .cou-account-stats {
        grid-template-columns: 1fr;
    }
    
    .cou-account-section {
        padding: 25px;
    }
    
    .cou-account-listings-grid {
        grid-template-columns: 1fr;
    }
    
    .cou-package-info {
        flex-direction: column;
    }
    
    .cou-package-details {
        grid-template-columns: 1fr;
    }
}



/* ========================================
   REPORT LISTING STYLES
   ======================================== */

.cou-report-listing-wrapper {
    margin-top: 0px;
    padding-top: 0px;
    text-align: left;
}

.cou-report-listing-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff8989;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cou-report-listing-link:hover {
    color: red;
}

.cou-report-listing-link i {
    font-size: 14px;
}

/* Desktop: Show desktop version only */
.cou-report-mobile {
    display: none;
}

.cou-report-desktop {
    display: block;
}

/* Mobile: Show mobile version only (at end of sidebar) */
@media (max-width: 1024px) {
    .cou-report-desktop {
        display: none !important;
    }
    
    .cou-report-mobile {
        display: block !important;
		padding-bottom: 10px;
    }
}
/* ============= TABLE ============= */
.cou-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cou-table thead {
    background: var(--cou-secondary);
}

.cou-table th,
.cou-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--cou-border);
}

.cou-table th {
    font-weight: 600;
    color: var(--cou-text);
}

/* ============= PAGINATION ============= */
.cou-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.cou-pagination a,
.cou-pagination span {
    padding: 10px 15px;
    border: 1px solid var(--cou-border);
    border-radius: var(--cou-radius);
    text-decoration: none;
    color: var(--cou-text);
    transition: all 0.3s ease;
}

.cou-pagination a:hover {
    background: var(--cou-primary);
    color: white;
    border-color: var(--cou-primary);
}

.cou-pagination .current {
    background: var(--cou-primary);
    color: white;
    border-color: var(--cou-primary);
}

/* ============= RESULTS COUNT ============= */
.cou-results-count {
    margin: 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--cou-text);
}

@media (max-width: 480px) {
    .cou-pagination {
        /* 1. THIS IS THE KEY FIX: Allow the buttons to wrap to a new line */
        flex-wrap: wrap;

        /* 2. Center the buttons. This is crucial for making the wrapped layout look good. */
        justify-content: center;

        /* 3. Slightly reduce the gap between buttons to save horizontal space */
        gap: 8px;
        
        /* 4. Add a bit of vertical space between the wrapped rows */
        row-gap: 12px;
    }

    /* Keep the slightly smaller button size for a better fit */
    .cou-pagination a,
    .cou-pagination span {
        padding: 8px 12px;
        font-size: 15px;
        white-space: nowrap; /* Keep this to prevent text like "Next »" from breaking */
    }
}
/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .cou-filter-row,
    .cou-search-grid {
        grid-template-columns: 1fr;
    }
    
    .cou-listings-grid {
        grid-template-columns: 1fr;
    }
    
    .cou-car-search-hero {
        padding: 40px 15px;
    }
    
    .cou-car-search-hero h2 {
        font-size: 24px;
    }
    
    .cou-listing-actions {
        flex-direction: column;
    }
    
    .cou-table {
        font-size: 14px;
    }
    
    .cou-table th,
    .cou-table td {
        padding: 8px;
    }
}

/* ============= LOADING SPINNER ============= */
.cou-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: cou-spin 0.8s linear infinite;
}

@keyframes cou-spin {
    to { transform: rotate(360deg); }
}

/* ============= ALERTS ============= */
.cou-alert {
    padding: 15px 20px;
    border-radius: var(--cou-radius);
    margin-bottom: 20px;
}

.cou-alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.cou-alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.cou-alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}
#cou-report-message {
    padding: 15px 20px !important;
    border-radius: var(--cou-radius) !important;
    margin-bottom: 15px !important;
}

/* ========================================
   SINGLE LISTING - MODERN PROFESSIONAL
======================================== */



/* ============= PACKAGES PAGE ============= */
/* ============= PACKAGES PAGE - LIST STYLE ============= */
.cou-packages-page {
    max-width: 100%;
    margin: 0px;
    padding: 20px;
}

.cou-packages-header {
    text-align: center;
    margin-bottom: 50px;
}

.cou-packages-header h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    color: var(--cou-text);
}

.cou-packages-header p {
    margin: 0;
    font-size: 18px;
    color: #666;
}

/* Package List Items */
.cou-package-list-item {
    display: grid;
    grid-template-columns: 70px 1fr auto auto;
    align-items: center;
    gap: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}
.cou-package-price-action-wrapper {
    display: contents; /* This makes the wrapper div behave as if it doesn't exist */
}

.cou-package-list-price {
    text-align: right;
    padding-right: 25px;
    border-right: 2px solid #e0e0e0;
}
.cou-package-list-item:hover {
    border-color: var(--cou-primary);
    box-shadow: 0 4px 16px rgba(4, 159, 203, 0.15);
}

/* Active Package Highlight */
.cou-package-active-item {
    border-color: var(--cou-success);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.03) 0%, rgba(40, 167, 69, 0.08) 100%);
}

/* Free Package */
.cou-package-free {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #dee2e6;
}

/* Package Icon */
.cou-package-list-icon {
    width: 70px;
    height: 70px;
    background: var(--cou-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cou-package-free .cou-package-list-icon {
    background: #6c757d;
}

.cou-package-list-icon i {
    font-size: 32px;
    color: white;
}

/* Package Info */
.cou-package-list-info {
    flex: 1;
}

.cou-package-list-info h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--cou-text);
}

.cou-package-list-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Price Display */

.cou-price-main {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--cou-primary);
    line-height: 1;
}

.cou-price-sub {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Action Area */
.cou-package-list-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    min-width: 150px;
}

.cou-package-list-status {
    min-width: 150px;
    text-align: center;
}

/* Status Badges */
.cou-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.cou-status-always-active {
    background: #d4edda;
    color: #155724;
}

.cou-status-active {
    background: #d4edda;
    color: #155724;
}

/* Checkbox Button */
.cou-package-list-checkbox {
    cursor: pointer;
}

.cou-package-list-checkbox input[type="checkbox"] {
    display: none;
}

.cou-checkbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--cou-primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cou-checkbox-btn:hover {
    background: var(--cou-primary-dark);
    transform: translateY(-2px);
}

.cou-checkbox-btn i {
    transition: transform 0.3s ease;
}

/* Checked State - "Added to Cart" */
.cou-package-list-checkbox input[type="checkbox"]:checked ~ .cou-checkbox-btn {
    background: var(--cou-success);
}

.cou-package-list-checkbox input[type="checkbox"]:checked ~ .cou-checkbox-btn i {
    transform: rotate(45deg);
}

/* Cart Section */
.cou-package-cart {
    background: white;
    border: 2px solid var(--cou-primary);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.cou-package-cart h3 {
    margin: 0 0 20px 0;
    color: var(--cou-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .cou-package-list-item {
        /* This is now a 2-row grid on mobile */
        display: grid !important;
        grid-template-columns: 60px 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 0 15px !important;
        padding: 20px !important;
    }
	.cou-package-cart {
		padding-left: 10px !important;
		padding-right: 10px !important;

		padding-top: 30px !important;
		padding-bottom: 30px !important;
	}
    
	.cou-packages-page {
		max-width: 100%;
		margin: 10px;
		padding: 0px;
	}

    /* Place Icon and Info on the first row */
    .cou-package-list-item .cou-package-list-icon {
        grid-row: 1;
        grid-column: 1;
        align-self: center;
    }
    .cou-package-list-item .cou-package-list-info {
        grid-row: 1;
        grid-column: 2;
		margin-left: 10px !important;
    }
    
    /* --- THIS IS THE KEY FIX --- */
    /* Make the new wrapper span the full width on the second row */
    .cou-package-price-action-wrapper {
        grid-row: 2;
        grid-column: 1 / -1; /* This makes it span both columns */
        
        /* Turn it into a flex container to align items horizontally */
        display: flex;
        justify-content: space-between;
        align-items: center;
        
        /* Add a separator line and space from the content above */
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e0e0e0;
    }

    /* Remove old borders and padding from the price div */
    .cou-package-list-price {
        border-right: none !important;
        padding-right: 0 !important;
        text-align: left;
    }
}

/* Further refinement for very small screens (optional but good) */
@media (max-width: 480px) {
    .cou-price-main {
        font-size: 24px !important;
    }
    
    .cou-checkbox-btn, .cou-btn-primary.cou-btn-small {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}






.cou-image-uploader {
    width: 100%;
}

.cou-drop-zone {
    border: 3px dashed var(--cou-border);
    border-radius: var(--cou-radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.cou-drop-zone:hover,
.cou-drop-zone.drag-over {
    border-color: var(--cou-primary);
    background-color: #eef9ff;
}

.cou-drop-zone-text i {
    font-size: 48px;
    color: var(--cou-primary);
    margin-bottom: 15px;
}

.cou-drop-zone-text p {
    margin: 10px 0;
    color: #666;
    font-size: 16px;
}

#couBrowseBtn {
    margin-top: 10px;
}

.cou-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.cou-preview-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates a square aspect ratio */
    border-radius: var(--cou-radius);
    overflow: hidden;
    box-shadow: var(--cou-shadow);
}

.cou-preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the square nicely */
}

#couPostForm .cou-preview-delete {
    /* Positioning */
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;

    /* A clean, circular shape */
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    
    /* Simple, functional appearance */
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: none !important;
    box-shadow: none !important; /* Remove any previous shadow */
    
    /* Centering the '×' perfectly */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    
    /* No transforms or animations on the element itself */
    transform: none !important;
    transition: background-color 0.2s ease !important; /* Keep a subtle hover transition */
    cursor: pointer !important;
}

/* A simple, clean hover effect: just a color change */
#couPostForm .cou-preview-delete:hover {
    background-color: var(--cou-error) !important; /* Uses your theme's red */
    color: white !important;
}
.cou-drop-zone .cou-btn-secondary {
    background-color: var(--cou-primary);
    border-color: var(--cou-primary);
    color: white;
}

.cou-drop-zone .cou-btn-secondary:hover {
    background-color: var(--cou-primary-dark);
    border-color: var(--cou-primary-dark);
    color: white;
}



@media (max-width: 768px) {
    .cou-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .cou-featured-package {
        transform: scale(1);
    }
    
    .cou-packages-faq,
    .cou-addon-features {
        padding: 25px 20px;
    }
}


.cou-role-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

/* --- Desktop Navigation --- */
.cou-role-nav-desktop ul {
    flex-wrap: wrap; 
    gap: 25px;
    justify-content: flex-end; /* Add this line */
}

.cou-role-nav a {
    text-decoration: none;
    color: var(--cou-text);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.cou-role-nav a:hover {
    color: var(--cou-primary);
}

.cou-role-nav a.cou-nav-btn { /* Make the selector more specific */
    display: inline-block; /* Ensures padding is applied correctly */
    border-radius: var(--cou-radius);
    text-align: center;
}

.cou-nav-post {
}



.cou-nav-logout {
    color: var(--cou-error);
}
.cou-nav-logout:hover {
    color: #a72835;
}
.cou-role-nav-desktop a.cou-nav-logout {
    /* Remove the button background and border */
    background: none !important;
    border: none !important;
    
    /* Set the text color to your theme's error/red color */
    color: var(--cou-error) !important;
    
    /* Remove padding to make it look like a regular text link */
    padding: 5px 0 !important;
    
    /* Optional: Add a subtle underline on hover for better affordance */
    text-decoration: none;
}

.cou-role-nav-desktop a.cou-nav-logout:hover {
    /* Make the red slightly darker on hover */
    color: #a72835 !important; 
    
    /* Add the underline on hover */
    text-decoration: underline;
}

/* Vertical divider for visual separation */
.cou-nav-divider {
    display: none; /* Hide by default, shown on mobile */
}

/* ========================================================================
   CORRECTED MOBILE & HAMBURGER NAVIGATION STYLES
   ======================================================================== */
/* ========================================================================
   MODERN MOBILE NAVIGATION
   ======================================================================== */

/* ========================================================================
   MOBILE NAVIGATION - COMPLETE
   ======================================================================== */

/* Mobile Menu Wrapper */
.cou-mobile-nav-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* Hamburger Button - Clean & Simple */
.cou-hamburger-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    margin-left: auto;
}

.cou-hamburger-button:focus {
    outline: none;
}

.cou-hamburger-button span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--cou-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* X Icon When Open - Normal & Clean */
body.mobile-nav-open .cou-hamburger-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10003;
}

body.mobile-nav-open .cou-hamburger-button span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.mobile-nav-open .cou-hamburger-button span:nth-child(2) {
    opacity: 0;
}

body.mobile-nav-open .cou-hamburger-button span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu List */
.cou-role-nav-mobile ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.cou-role-nav-mobile li {
    width: 100%;
    border-bottom: 1px solid var(--cou-border);
}

.cou-role-nav-mobile li:last-child {
    border-bottom: none;
}

/* Mobile Menu Items with Icons */
.cou-role-nav-mobile a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 600;
    color: var(--cou-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cou-role-nav-mobile a i {
    width: 20px;
    font-size: 18px;
    color: var(--cou-primary);
}

.cou-role-nav-mobile a:hover {
    background: var(--cou-secondary);
    padding-left: 30px;
}

/* Login/Register Same Line */
.cou-nav-auth-row {
    display: flex !important;
    gap: 8px;
    padding: 10px 15px !important;
    border-bottom: 1px solid var(--cou-border);
}

.cou-nav-auth-row a {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px !important;
    text-align: center;
    border-radius: var(--cou-radius);
    margin: 0 !important;
    font-size: 15px;
}

.cou-nav-auth-row a i {
    color: white !important;
    width: auto !important;
    margin: 0 !important;
}

.cou-nav-auth-row a span {
    white-space: nowrap;
}

.cou-nav-auth-row a:hover {
    padding-left: 10px !important;
    padding-right: 10px !important;
    transform: translateY(-2px);
}


.cou-nav-login {
    background: var(--cou-primary) !important;
    color: white !important;
}

.cou-nav-login:hover {
    background: var(--cou-primary-dark) !important;
}
/* Button Styles in Mobile Menu */
.cou-role-nav-mobile a.cou-nav-btn {
    color: white !important;
    text-align: center;
    margin: 10px 15px;
    border-radius: var(--cou-radius);
    padding: 15px 25px;
    justify-content: center;
}

.cou-role-nav-mobile a.cou-nav-btn i {
    color: white !important;
}

.cou-role-nav-mobile a.cou-nav-btn:hover {
    padding-left: 25px !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cou-role-nav-mobile a.cou-nav-post { 
    background: var(--cou-primary); 
}

.cou-role-nav-mobile a.cou-nav-post:hover { 
    background: var(--cou-primary-dark); 
}

.cou-role-nav-mobile a.cou-nav-register { 
    background: #333; 
}

.cou-role-nav-mobile a.cou-nav-register:hover { 
    background: #555; 
}

.cou-role-nav-mobile a.cou-nav-logout { 
    background: var(--cou-error); 
}

.cou-role-nav-mobile a.cou-nav-logout:hover { 
    background: #c82333; 
}

/* Mobile Menu Panel */
#couMobileNavMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    transition: right 0.4s ease;
    overflow-y: auto;
    padding-top: 70px;
}

/* Overlay */
.cou-mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

/* OPEN STATE */
#couMobileNavMenu.cou-role-nav-mobile {
    position: fixed;
    top: 0;
    right: 0; /* Changed from left: 0 */
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    transform: translateX(100%); /* Changed from -100% to slide from right */
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1); /* Shadow on left side */
}

/* 2. Allow content to expand */
#couMobileNavMenu ul {
    padding: 20px 0;
    margin: 0;
    list-style: none;
    min-height: 100%; /* Allow content to expand */
}
#couMobileNavMenu .cou-nav-dropdown {
    display: none; /* Hidden by default */
    padding-left: 0;
    background: #f8f9fa;
}

#couMobileNavMenu .cou-nav-dropdown-wrapper.open .cou-nav-dropdown {
    display: block; /* Show when parent has .open class */
}

/* Mobile nav overlay */
#couMobileNavOverlay.cou-mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

/* 3. Stop background scrolling */
body.mobile-nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
body.mobile-nav-open #couMobileNavMenu {
    right: 0;
}
body.mobile-nav-open #couMobileNavMenu {
    transform: translateX(0);
}

body.mobile-nav-open .cou-mobile-nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.mobile-nav-open {
    overflow: hidden;
}

body.mobile-nav-open .cou-mobile-nav-overlay {
    z-index: 10001;
}

body.mobile-nav-open #couMobileNavMenu {
    z-index: 10002;
}

/* Mobile Menu Header */
#couMobileNavMenu::before {
    content: 'Menu';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 22px 25px;
    font-size: 20px;
    font-weight: 700;
    color: var(--cou-text);
    border-bottom: 2px solid var(--cou-secondary);
    background: white;
}

/* Nav Divider */
.cou-role-nav-desktop .cou-nav-divider {
    /* 1. Keep the magic spacer that pushes items to the right */

    /* 2. Give it a visible size and color */
    width: 1px;
    height: 24px; /* A good height to align with the text */
    background-color: #c5c5c5; /* The color you requested */

    /* 3. Fine-tune the spacing around the divider */
    /* This creates 25px of space on either side of the line */

    /* 4. Remove old styles that made it invisible */
    overflow: visible;
    display: list-item; /* Ensures it stays in the flex layout */
    list-style: none;   /* Removes any default bullet points */
}

/* ========================================================================
   MODERN LOGIN/REGISTER FORM STYLES
   ======================================================================== */
.cou-auth-form {
    max-width: 450px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: var(--cou-radius);
    box-shadow: var(--cou-shadow);
    border-top: 5px solid var(--cou-primary);
}

.cou-auth-form h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 28px;
    color: var(--cou-text);
}

.cou-auth-form > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.cou-auth-form .cou-form-group {
    margin-bottom: 20px;
}
.cou-auth-form .cou-form-group:last-of-type {
    margin-bottom: 30px;
}

.cou-auth-form .cou-btn {
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Remember me checkbox */
.cou-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cou-remember-me input[type="checkbox"] {
    width: auto;
}
.cou-remember-me label {
    margin: 0;
    font-weight: 400;
}

/* Switch between login/register */
.cou-auth-switch {
    text-align: center;
    margin-top: 25px;
    font-size: 15px;
}
.cou-auth-switch a {
    color: var(--cou-primary);
    font-weight: 600;
    text-decoration: none;
}
.cou-auth-switch a:hover {
    text-decoration: underline;
}

/* Error & Success Messages */
.cou-auth-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--cou-radius);
    border: 1px solid transparent;
}
.cou-auth-message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.cou-auth-message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.cou-form-group {
    position: relative;
}

.cou-password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(25%); /* Adjust for label height */
    cursor: pointer;
    color: #999;
}

/* ============= AUTH FORM INPUTS - CLEAN & SIMPLE ============= */
.cou-auth-form .cou-input {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-family: 'Inter', sans-serif !important;
    background-color: #fff !important;
    color: #333 !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.cou-auth-form .cou-input:focus {
    outline: none !important;
    border-color: #049FCB !important;
    box-shadow: 0 0 0 3px rgba(4, 159, 203, 0.1) !important;
}

.cou-auth-form .cou-input::placeholder {
    color: #999 !important;
}

/* PACKAGE MODAL */
/* Feature Payment Modal - Compact Version */
.cou-feature-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.cou-feature-modal-inner {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cou-feature-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

.cou-feature-close:hover {
    color: #333;
}

.cou-feature-modal-inner h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.cou-feature-modal-inner h2 i {
    color: #ffc107;
    margin-right: 8px;
}

.cou-feature-modal-inner > p {
    color: #666;
    margin: 0 0 20px;
    font-size: 14px;
}

.cou-feature-price-box {
    background: linear-gradient(135deg, #068EB7 0%, #0575a3 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.cou-feature-price-box h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.cou-feature-price {
    margin-bottom: 12px;
}

.cou-feature-price-amount {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
}

.cou-feature-price-period {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.cou-feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.cou-feature-benefits li {
    padding: 5px 0;
    font-size: 13px;
    color: #fff;
}

.cou-feature-benefits li i {
    margin-right: 8px;
    color: #4ade80;
}

.cou-feature-payment-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #333;
}

.cou-feature-form-group {
    margin-bottom: 15px;
}

.cou-feature-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.cou-feature-stripe-field {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    transition: border-color 0.2s;
}

.cou-feature-stripe-field:hover {
    border-color: #068EB7;
}

.cou-feature-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}

.cou-feature-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cou-feature-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cou-feature-btn-pay {
    background: #068EB7;
    color: #fff;
}

.cou-feature-btn-pay:hover:not(:disabled) {
    background: #0575a3;
}

.cou-feature-btn-cancel {
    background: #f5f5f5;
    color: #333;
}

.cou-feature-btn-cancel:hover:not(:disabled) {
    background: #e0e0e0;
}

.cou-feature-notice {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

.cou-feature-notice i {
    color: #4ade80;
    margin-right: 4px;
}

.cou-feature-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin-feature 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin-feature {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .cou-feature-modal-inner {
        padding: 25px 20px;
    }
}
/* Package Purchase Modal */
.cou-package-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    
    /* Use flexbox to center the modal content vertically and horizontally */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Add padding for small screens so the modal doesn't touch the edges */
    padding: 20px;
    box-sizing: border-box;
}

body.modal-open {
    position: static !important; /* Prevents the body from trapping the admin bar. */
    overflow: hidden !important; /* This correctly stops background scrolling. */
}

/* Step 1.2: Force the modal overlay to sit BELOW the admin bar. */
#cou-profile-modal-overlay {
    z-index: 99990 !important;
}

#cou-business-logo-preview img {
    border-radius: 12px !important;
    object-fit: contain !important;
    background: #f0f2f5 !important;
}

#cou-business-logo-preview .cou-avatar-placeholder {
    border-radius: 12px !important;
}
/* Step 1.3: Force the modal itself to sit BELOW the admin bar. */
#cou-profile-modal {
    z-index: 99991 !important;
}

/* Step 1.4: Force the WordPress Admin Bar to ALWAYS be on top and visible. */
#wpadminbar {
    display: block !important;
    visibility: visible !important;
    position: fixed !important; /* Re-assert its fixed position */
    z-index: 999999 !important; /* Highest possible value to ensure it's on top of everything. */
}
.cou-package-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    
    /* Set a max-width and max-height */
    max-width: 500px;
    width: 100%;
    max-height: 90vh; /* Max height is 90% of the viewport height */
    
    /* THIS IS THE KEY: Allow vertical scrolling INSIDE the modal */
    overflow-y: auto;
    
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}


.cou-package-modal-content h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.cou-package-modal-content > p {
    color: #666;
    margin-bottom: 30px;
}

.cou-package-info {
    background: #f8f9fa;
    border: 2px solid #049FCB;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}


.cou-package-info h3 {
    margin-bottom: 0px !important; /* Reduce the bottom margin */
}

.cou-package-info .cou-package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.cou-package-info .cou-price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #049FCB;
}

.cou-package-info .cou-price-period {
    font-size: 18px;
    color: #666;
}

.cou-checkout-form h4 {
    margin: 0 0 20px 0;
    color: #333;
}

.cou-checkout-form .cou-form-group {
    margin-bottom: 20px;
}

.cou-checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.cou-stripe-element {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
}

.cou-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

.cou-checkout-form .cou-btn {
    width: 100%;
    margin-bottom: 10px;
}

.cou-checkout-form .cou-payment-notice {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 20px;
}

.cou-checkout-form .cou-payment-notice i {
    color: #28a745;
    margin-right: 5px;
}

.cou-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .cou-package-modal {
        padding: 10px;
    }
    
    .cou-package-modal-content {
        padding: 25px 20px;
    }
    
    .cou-package-info .cou-price-amount {
        font-size: 28px;
    }
}

/* ============================================
   GLOBAL FOOTER
   ============================================ */

.cou-global-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 20px 20px;
}

.cou-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Top Section */
.cou-footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

/* About Column */
.cou-footer-about {
    padding-right: 20px;
}

.cou-footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.cou-footer-about p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Social Icons */
.cou-footer-social {
    display: flex;
    gap: 12px;
}

.cou-footer-social a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.cou-footer-social a:hover {
    background: #049FCB;
    transform: translateY(-3px);
}

/* Footer Columns */
.cou-footer-column h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.cou-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cou-footer-column ul li {
    margin-bottom: 12px;
}

.cou-footer-column ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.cou-footer-column ul li a:hover {
    color: #049FCB;
    padding-left: 5px;
}

/* Footer Bottom */
.cou-footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.cou-footer-bottom p {
    color: #808080;
    font-size: 14px;
    margin: 5px 0;
}

.cou-footer-bottom .fa-heart {
    color: #e74c3c;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 992px) {
    .cou-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .cou-footer-about {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .cou-footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cou-global-footer {
        padding: 40px 15px 15px;
    }
    
    .cou-footer-logo {
        max-width: 150px;
    }
    
    .cou-footer-column h4 {
        font-size: 16px;
    }
}

.cou-import-message,
.cou-import-success,
.cou-import-warning {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.cou-import-message {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #1976d2;
}

.cou-import-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.cou-import-warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.cou-import-message i,
.cou-import-success i,
.cou-import-warning i {
    margin-right: 8px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dealer Profile Form */
.cou-dealer-profile-section,
.cou-xml-feed-section {
    margin-bottom: 30px;
}

.cou-section-divider {
    margin: 40px 0;
    border: 0;
    border-top: 2px solid #e0e0e0;
}
/* Fix Dealer Section Spacing */
.cou-dealer-profile-section h4,
.cou-xml-feed-section h4 {
    margin: 0 0 8px 0 !important;
}

.cou-help-text {
    margin: 0 0 24px 0 !important;
}

.cou-dealer-form .cou-form-group {
    margin-bottom: 20px !important;
}

.cou-dealer-form .cou-form-group label {
    display: block !important;
    margin-bottom: 8px !important;
}



.cou-logo-upload-wrapper {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff;
    max-width: 100%;
    box-sizing: border-box;
}

/* Logo Preview Container */
.cou-logo-preview {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Image Wrapper - Constrained */
.cou-logo-image-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
	background: #fff !important;
}

/* Responsive Logo Image */
.cou-current-logo-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    object-fit: contain;
	box-shadow: none !important;
}

/* Button Container */
.cou-logo-preview button,
.cou-logo-preview .cou-btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .cou-logo-upload-wrapper {
        padding: 15px;
    }
    
    .cou-logo-image-wrapper {
        max-width: 100%;
    }
    
    .cou-logo-preview button,
    .cou-logo-preview .cou-btn {
        max-width: 100%;
    }

}
.cou-logo-preview button,
.cou-logo-preview .cou-btn {
    width: 100% !important;
    max-width: 200px !important;
    margin: 0 auto !important;
    display: block !important;
}
.cou-logo-empty {
    padding: 30px 20px !important;
}

.cou-logo-empty-text {
    margin: 0 0 16px 0 !important;
}

.cou-form-help {
    display: block !important;
    margin-top: 12px !important;
}

.cou-section-divider {
    margin: 40px 0 !important;
}

/* Fix Feed List Spacing */
.cou-feeds-header {
    margin: 32px 0 16px 0 !important;
}

.cou-feeds-header h5 {
    margin: 0 !important;
}

.cou-feeds-list {
    gap: 16px !important;
}

.cou-feed-item {
    padding: 20px !important;
    gap: 20px !important;
}

.cou-feed-url {
    margin: 0 0 6px 0 !important;
}

.cou-feed-meta {
    margin: 0 !important;
}
.cou-help-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.cou-logo-upload-section {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.cou-current-logo img {
    max-width: 300px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.cou-logo-upload-prompt {
    padding: 40px 20px;
}

.cou-logo-upload-prompt i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 10px;
}

/* Single Listing - Dealer Info */
.cou-dealer-info {
    text-align: center;
    margin-bottom: 20px;
}

.cou-dealer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
	object-fit: contain !important;
}

.cou-dealer-address {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}


/* ========================================================================
   NAVIGATION DROPDOWN - REBHAUL
   ======================================================================== */

/* 1. Common Dropdown Wrapper & Menu Styling */
.cou-nav-dropdown-wrapper {
    position: relative;
}

.cou-nav-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    margin-top: 10px; /* Space between button and dropdown */
    overflow: hidden;
}

/* Show on hover for desktop */
.cou-role-nav-desktop .cou-nav-dropdown-wrapper:hover .cou-nav-dropdown {
    display: block;
}

.cou-nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 15px;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
}

.cou-nav-dropdown a:last-child {
    border-bottom: none;
}

.cou-nav-dropdown a:hover {
    background-color: #f8f9fa;
    color: #068EB7;
}

.cou-nav-dropdown a i {
    width: 20px;
    color: #068EB7;
}
.cou-nav-messages-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px; /* For mobile view */
}

.cou-nav-messages-link i {
    font-size: 22px; /* Slightly larger icon */
}
.cou-nav-badge {
    position: absolute;
    top: -5px;      /* Position badge above the icon */
    right: -10px;   /* Position badge to the right of the icon */
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
    border: 2px solid white; /* Adds a clean separation */
}

/* Mobile-specific adjustments */
.cou-role-nav-mobile .cou-nav-badge {
    position: relative; /* Revert to normal flow in mobile menu */
    top: 0;
    right: 0;
    margin-left: 8px;
    border: none;
}

.cou-role-nav-mobile .cou-nav-dropdown-wrapper .cou-nav-dropdown {
    display: none; /* Hidden by default for mobile toggle */
    position: static;
    box-shadow: none;
    margin-top: 0;
    background-color: #f8f9fa; /* Slightly different background for sub-menu */
}

.cou-role-nav-mobile .cou-nav-dropdown-wrapper.active .cou-nav-dropdown {
    display: block; /* Show when active */
}

.cou-role-nav-mobile .cou-nav-dropdown a {
    padding-left: 50px; /* Indent sub-menu items */
}

.cou-role-nav-mobile .cou-nav-account-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.cou-role-nav-desktop > ul > li {
    display: flex;
    align-items: center;
}

/* 2. Normalize the main dropdown links and buttons to align properly */
.cou-role-nav-desktop .cou-nav-dropdown-wrapper > a {
    display: flex;
    align-items: center;
    padding-top: 10px;    /* Add padding to match the button's height */
    padding-bottom: 10px; /* Add padding to match the button's height */
}

/* 3. Remove the old padding/margin hack from the wrapper */
.cou-role-nav-desktop .cou-nav-dropdown-wrapper {
    padding-bottom: 0;
    margin-bottom: 0;
}
/* Remove the margin from the dropdown itself */
.cou-role-nav-desktop .cou-nav-dropdown-wrapper::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px; /* A safe height for the bridge */
    background: transparent;
}

/* 5. Adjust the dropdown to account for the bridge */
.cou-role-nav-desktop .cou-nav-dropdown {
    margin-top: 15px; /* Match the bridge height */
}

/* Add the dropdown arrow icon */
.cou-role-nav-desktop .cou-nav-dropdown-toggle::after {
    content: '\f078'; /* Font Awesome chevron-down icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

/* Rotate the arrow on hover */
.cou-role-nav-desktop .cou-nav-dropdown-wrapper:hover .cou-nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Adjust arrow for button-style links */
.cou-role-nav-desktop .cou-nav-btn.cou-nav-dropdown-toggle::after {
}

/*
 * 3. Mobile Dropdown General Styles (some may be duplicates, but this ensures it works)
*/
.cou-role-nav-mobile .cou-nav-dropdown-wrapper .cou-nav-dropdown {
    display: none; /* Hidden by default */
    background-color: #f8f9fa;
    box-shadow: none;
    position: static;
    margin-top: 0;
    border-bottom: 1px solid #e0e0e0;
}

.cou-role-nav-mobile .cou-nav-dropdown-wrapper.open .cou-nav-dropdown {
    display: block; /* Shown when parent has 'open' class */
}

.cou-role-nav-mobile .cou-nav-dropdown a {
    padding-left: 50px !important; /* Indent sub-items */
}

.cou-role-nav-mobile .cou-nav-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.cou-role-nav-mobile .cou-nav-toggle-icon {
    transition: transform 0.3s ease;
}

.cou-role-nav-mobile .cou-nav-dropdown-wrapper.open .cou-nav-toggle-icon {
    transform: rotate(180deg);
}

/* 2. Desktop Hover Functionality */
@media (min-width: 992px) {
    .cou-role-nav-desktop .cou-nav-dropdown {
        position: absolute;
        top: 100%; /* Position it right below the parent */
        right: 0;
        min-width: 220px;
        margin-top: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        z-index: 1000;
    }

    .cou-role-nav-desktop .cou-nav-dropdown-wrapper:hover > .cou-nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}


/* 3. Mobile Click Functionality */
@media (max-width: 991px) {
    /* Main toggle button */
	.cou-role-nav-mobile .cou-nav-post-toggle {
		display: flex;
		justify-content: space-between; /* Pushes arrow to the right */
		align-items: center;
		width: 100%;
		padding: 18px 25px; /* Matches other nav items */
		background: none;   /* CRITICAL: No button background */
		margin: 0;          /* CRITICAL: No button margin */
		border-radius: 0;   /* CRITICAL: No button corners */
		border-bottom: 1px solid var(--cou-border); /* Add the standard separator line */
	}

	/* Inner container for icon + text */
	.cou-nav-post-toggle > div {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	/* Ensure the icon and text colors are correct */
	.cou-nav-post-toggle span {
		color: var(--cou-text);
	}
	 .cou-nav-post-toggle i {
		color: var(--cou-primary);
	}

	/* The dropdown arrow icon */
	.cou-nav-toggle-icon {
		transition: transform 0.3s ease;
	}
	.cou-nav-dropdown-wrapper.open .cou-nav-toggle-icon {
		transform: rotate(180deg);
	}

	/* The sub-menu that slides down */
	.cou-role-nav-mobile .cou-nav-dropdown {
		display: none; /* Hidden by default, opened by JS */
		background-color: #f8f9fa; /* Slight background to show nesting */
		box-shadow: none;
		border-bottom: 1px solid var(--cou-border);
	}

	/* Indent the links inside the dropdown */
	.cou-role-nav-mobile .cou-nav-dropdown a {
		padding-left: 50px !important; 
	}
}

/* ============= INACTIVE LISTING NOTICE ============= */
.cou-listing-inactive-notice {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 25px;
    border-radius: var(--cou-radius);
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.cou-listing-inactive-notice i {
    font-size: 32px;
    opacity: 0.9;
    flex-shrink: 0;
}

.cou-listing-inactive-notice h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: white;
}

.cou-listing-inactive-notice p {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.95);
}

.cou-listing-inactive-notice .cou-btn {
    background: white;
    color: #ff6b6b;
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cou-listing-inactive-notice .cou-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ============= DEALER LOCKED STATE ============= */
.cou-dealer-locked {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: var(--cou-radius);
    border: 2px dashed #ccc;
}

.cou-dealer-locked i {
    font-size: 64px;
    color: #999;
    margin-bottom: 20px;
}

.cou-dealer-locked h3 {
    margin: 0 0 10px 0;
    color: var(--cou-text);
    font-size: 24px;
}

.cou-dealer-locked p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
}

.cou-body-type-filters {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 15px;
	padding-bottom: 30px;
    background: #fff;
    flex-wrap: wrap;
}

.cou-body-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #202124;
    transition: all 0.2s;
    min-width: 80px;
}



.cou-body-type-icon {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.2s;
    border: 2px solid #e8eaed;
}

.cou-body-type-item:hover .cou-body-type-icon {
    border-color: #068EB7;
    opacity: 0.8;

}

.cou-body-type-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.2s;
}

.cou-body-type-item:hover .cou-body-type-icon img {
}

.cou-body-type-item span {
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    transition: color 0.2s;
}



@media (max-width: 768px) {
    .cou-body-type-filters {
        gap: 8px;
        padding-top: 5px;
        padding-bottom: 25px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .cou-body-type-item {
        min-width: 70px;
        flex-shrink: 0;
    }
    
    .cou-body-type-icon {
        width: 65px;
        height: 65px;
    }
    
    .cou-body-type-icon img {
        width: 57px;
        height: 57px;
    }
    
    .cou-body-type-item span {
        font-size: 12px;
    }
}

/* FILE: styles.css */

/* ==========================================================
   RESULTS INFO BAR & SORTING DROPDOWN (v2 - Corrected)
   ========================================================== */

.cou-results-info {
    display: flex;
    justify-content: space-between; /* This is the key for alignment */
    align-items: center;
    flex-wrap: wrap; 
    gap: 20px;
    margin-bottom: 25px;
    padding: 12px 20px;

	
    background: white;
    border-radius: var(--cou-radius);
    box-shadow: var(--cou-shadow);
}

.cou-results-info p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--cou-text);
}

.cou-sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cou-sort-by label {
    font-size: 14px;
    font-weight: 600;
    color: #5f6368; /* Slightly softer color */
}

.cou-sort-select-dropdown {
    padding: 8px 12px !important;
    border: 2px solid var(--cou-border) !important;
    border-radius: var(--cou-radius) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    background-color: white !important;
    color: var(--cou-text) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333'%3E%3Cpath d='M6 9L0 3h12L6 9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px !important;
}

.cou-sort-select-dropdown:focus {
    outline: none !important;
    border-color: var(--cou-primary) !important;
    box-shadow: 0 0 0 3px rgba(4, 159, 203, 0.2) !important;
}

/* Responsive for the results bar */
@media (max-width: 640px) {
    .cou-results-info {
        flex-direction: column;       /* Stack elements vertically */
        align-items: stretch;         /* Make them full width */
        justify-content: flex-start;  /* Align to the start */
		margin-top: 10px;
    }
    
    .cou-sort-by {
        justify-content: space-between; /* Space out label and select */
        width: 100%;
    }
	.cou-results-info p {
		display: none !important;
	}
}





.cou-account-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1; /* Allows this section to take up available space */
}

.cou-account-welcome img.avatar {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.cou-account-welcome h2 {
    color: white;
    margin: 0;
    font-size: 28px;
    border: none;
}
.cou-account-welcome p {
    margin: 4px 0 0 0;
    opacity: 0.9;
}

.cou-header-actions {
    flex-shrink: 0; /* Prevents the button container from shrinking */
}

.cou-header-actions .cou-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.cou-header-actions .cou-btn:hover {
    background: white;
    color: var(--cou-primary);
}

.cou-account-welcome .avatar,
.cou-account-welcome img.avatar {
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border: 3px solid #068EB7 !important;
    box-shadow: 0 4px 12px rgba(6, 142, 183, 0.2) !important;
}

/* If there's a specific avatar container */
.cou-account-welcome > img,
.cou-account-welcome > .avatar {
    border-radius: 50% !important;
}
@media (max-width: 768px) {
    .cou-header-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .cou-header-actions .cou-btn {
        width: 100% !important;
        max-width: 300px !important;
        text-align: center !important;
        justify-content: center !important;
    }
}


.cou-page-header .cou-header-action-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: var(--cou-radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.cou-page-header .cou-header-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* --- 1. Cars Page Header --- */
.cou-cars-page .cou-page-header {
    position: relative !important; 
    padding: 60px 20px !important;
    overflow: hidden !important;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.80)), 
        url('https://classifiedsofutah.com/wp-content/uploads/2025/10/cars-1.jpg') !important;
    background-size: cover !important;
    background-position: center 30% !important;
    background-repeat: no-repeat !important;
}

/* --- 2. Classifieds Page Header --- */
.cou-classifieds-page .cou-page-header {
    position: relative !important; 
    padding: 60px 20px !important;
    overflow: hidden !important;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.80)), 
        url('https://classifiedsofutah.com/wp-content/uploads/2025/10/items.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* --- 3. Jobs Page Header --- */
.cou-jobs-page .cou-page-header {
    position: relative !important; 
    padding: 60px 20px !important;
    overflow: hidden !important;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.80)), 
        url('https://classifiedsofutah.com/wp-content/uploads/2025/10/jobs-1.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* --- 4. Real Estate Page Header --- */
.cou-realestate-page .cou-page-header {
    position: relative !important; 
    padding: 60px 20px !important;
    overflow: hidden !important;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.80)), 
        url('https://classifiedsofutah.com/wp-content/uploads/2025/10/realestate-1.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* --- 5. Services Page Header --- */
.cou-services-page .cou-page-header {
    position: relative !important; 
    padding: 60px 20px !important;
    overflow: hidden !important;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.80)), 
        url('https://classifiedsofutah.com/wp-content/uploads/2025/10/services-1.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}


/* --- Responsive Styles for ALL Header Buttons on Mobile --- */
/* ============= DYNAMIC PAGE HEADER - MOBILE OVERRIDE ============= */

/* This media query targets screens 768px wide or smaller */
@media (max-width: 768px) {

    /* 
     * Target all five of the custom page headers at once.
     * We list them all to ensure this rule is specific enough to override the desktop styles.
    */
    .cou-cars-page .cou-page-header,
    .cou-classifieds-page .cou-page-header,
    .cou-jobs-page .cou-page-header,
    .cou-realestate-page .cou-page-header,
    .cou-services-page .cou-page-header {
        
        /* 1. REMOVE the background image and REVERT to the original blue gradient */
        background-image: linear-gradient(135deg, var(--cou-primary) 0%, var(--cou-primary-dark) 100%) !important;
        
        /* 2. MAKE the header shorter by reducing padding */
        padding: 30px 20px !important;

        /* 3. Ensure the title, subtitle, and button are all centered */
        text-align: center !important;
    }

    /* 
     * Target the action button inside any of those headers.
    */
    .cou-cars-page .cou-page-header .cou-header-action-btn,
    .cou-classifieds-page .cou-page-header .cou-header-action-btn,
    .cou-jobs-page .cou-page-header .cou-header-action-btn,
    .cou-realestate-page .cou-page-header .cou-header-action-btn,
    .cou-services-page .cou-page-header .cou-header-action-btn {

        /* 4. MAKE the button size to its content, NOT full-width */
        position: static !important;       /* Removes absolute positioning */
        display: inline-flex !important;   /* Makes it behave like an inline element */
        width: auto !important;            /* Removes the full-width property */
        max-width: none !important;        /* Removes the max-width constraint */
        
        /* Spacing and style */
        margin-top: 20px !important;
        padding: 4px 12px !important; /* Keep it easy to tap */
		font-size: 14px;
        
        /* Keep the frosted glass look, but on a blue background */
        background-color: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
}